/*
 * tripstash.site. One stylesheet for every page.
 * Colours are the app's Golden Hour palette (src/constants/theme.ts), light and dark, following the system setting.
 * Type is the app's: Fraunces SemiBold for display, Nunito for words, Bricolage Grotesque for dates and labels.
 * The fonts are served from this site (scripts/fonts.sh): nothing loads from Google.
 */

@font-face { font-family: 'Fraunces'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/fraunces-600.16630b595f.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/nunito-500.62a91a05a3.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/fonts/nunito-800.03c0331ee6.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/fonts/bricolage-800.0708e388c4.woff2') format('woff2'); }

/* --- tokens ------------------------------------------------------------------------------------------------------ */

:root {
  color-scheme: light dark;
  --bg: #F1EEE7;
  --surface: #FFFDF9;
  --ink: #0E1D26;
  --ink2: #54606A;
  --line: #E0D9CC;
  --track: #E9E3D7;
  --accent: #C93C63;
  --accent-ink: #B5304F;
  --on-accent: #FFFFFF;
  --accent-tint: #F7E2E4;
  --ok: #2E7D4F;
  --error: #B3261E;
  --error-tint: #FBEDE9;
  --route: #C99234;
  --route-a: #E0A030;
  --route-b: #E0603F;
  --route-c: #C93C63;
  --frame: #FFFFFF;
  --shade: #F6EBD9;
  --rib: #E7D6BA;
  --pull: #C9AF84;
  --glow: rgba(255, 184, 92, 0.5);
  --gold-tint: #FFF2DD;
  --pebble: #C93C63;
  --pebble-hi: #F5B0C3;
  --pocket-water: #CFE2E4;
  --pocket-ripple: #9FC4C9;
  --pocket-shadow: #0E1D26;
  --pocket-shadow-opacity: 0.1;
  --sheet: #F6EEDD;
  --sheet-line: #E7DCC6;
  --envelope: #FBF6EA;
  --postmark: #5F6B72;
  --bezel: #1B2730;
  --flight: #2F6FD0;
  --stay: #7B4FB8;
  --do: #13807B;
  --eat: #C4621E;
  --flight-bg: #E3EBF7;
  --stay-bg: #EEE8F3;
  --do-bg: #E0EFEB;
  --eat-bg: #F8EAE0;
  --e1: 0 1px 2px rgba(70, 45, 10, 0.07), 0 14px 30px -18px rgba(70, 45, 10, 0.34);
  --e2: 0 2px 4px rgba(70, 45, 10, 0.08), 0 26px 44px -24px rgba(70, 45, 10, 0.5);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --date: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
  --gutter: 16px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1317;
    --surface: #14232A;
    --ink: #ECEFEA;
    --ink2: #A3B3B6;
    --line: #24363E;
    --track: #1C2E36;
    --accent: #C93C63;
    --accent-ink: #F0698F;
    --accent-tint: #2D2732;
    --ok: #6FCF97;
    --error: #FF8A80;
    --error-tint: #33262A;
    --route: #F4B23E;
    --route-a: #F4B23E;
    --route-b: #F0705F;
    --route-c: #F0698F;
    --frame: #1E3038;
    --shade: #1A2B32;
    --rib: #23373F;
    --pull: #3A5560;
    --glow: rgba(244, 178, 62, 0.32);
    --gold-tint: #303632;
    --pebble: #E04F78;
    --pebble-hi: #FFC4D3;
    --pocket-water: #173A44;
    --pocket-ripple: #2A5A66;
    --pocket-shadow: #000000;
    --pocket-shadow-opacity: 0.3;
    --sheet: #1D3038;
    --sheet-line: #2B3D45;
    --envelope: #1D3038;
    --postmark: #93A3A8;
    --bezel: #2A3B44;
    --flight: #6FA3F0;
    --stay: #B48AF0;
    --do: #4FC7C0;
    --eat: #F2A15E;
    --flight-bg: #1B3043;
    --stay-bg: #262A43;
    --do-bg: #183539;
    --eat-bg: #2D2B28;
    --e1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 30px -18px rgba(0, 0, 0, 0.7);
    --e2: 0 2px 4px rgba(0, 0, 0, 0.35), 0 26px 44px -22px rgba(0, 0, 0, 0.85);
  }
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* --- base -------------------------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 800; }
a { color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--route-a) 45%, transparent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }

/* Labels: the app's eyebrow (Nunito ExtraBold, spaced capitals). */
.eyebrow { font-family: var(--body); font-weight: 800; font-size: 0.78rem; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2); margin: 0 0 12px; }
.eyebrow.pink { color: var(--accent-ink); }

/* The dotted gold route, sideways: under labels ("UP NEXT ........") and between things. */
.dotted, .rule-label::after {
  height: 4px;
  background-image: radial-gradient(circle, var(--route) 1.5px, transparent 1.9px);
  background-size: 9px 4px;
  background-repeat: repeat-x;
  background-position: left center;
}
.rule-label { display: flex; align-items: center; gap: 14px; }
.rule-label::after { content: ''; flex: 1; min-width: 24px; }

/* --- buttons and fields ------------------------------------------------------------------------------------------ */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--radius-md);
  background: var(--accent); color: var(--on-accent);
  font-family: var(--body); font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.7; cursor: progress; }
.button-small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; border-radius: 12px; box-shadow: none; }
.button-quiet { background: var(--surface); color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--line); }
.button-quiet:hover { background: var(--accent-tint); }

/* --- header and footer ------------------------------------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.button) { display: inline-block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 0.95rem; border-radius: 10px; }
.site-nav a:not(.button):hover { background: var(--track); }
.site-nav a[aria-current='page'] { color: var(--accent-ink); }
.nav-wide { display: none; }
@media (min-width: 760px) { .nav-wide { display: block; } .site-nav li:last-child { margin-left: 8px; } }

.site-footer { margin-top: 96px; padding-bottom: 40px; }
.footer-grid { display: grid; gap: 32px; padding-top: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { color: var(--ink2); max-width: 34ch; margin-top: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a, .site-footer a { font-weight: 800; }
.fine { color: var(--ink2); font-size: 0.92rem; }
.footer-base { margin: 40px 0 0; color: var(--ink2); font-size: 0.9rem; }

/* --- Pocket ------------------------------------------------------------------------------------------------------ */

.pocket { width: 120px; height: auto; overflow: visible; }
.pocket-water { fill: var(--pocket-water); }
.pocket-ripple { stroke: var(--pocket-ripple); }
.pocket-shadow { fill: var(--pocket-shadow); opacity: var(--pocket-shadow-opacity); }

/* Pocket and his speech bubble: how the app opens a screen (PocketSays). */
.says { display: flex; align-items: flex-end; gap: 6px; }
.says .pocket { width: 96px; flex: none; }
.bubble { position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--e1); margin-bottom: 18px; }
.bubble::before { content: ''; position: absolute; left: -9px; bottom: 26px; width: 20px; height: 20px; background: var(--surface); transform: rotate(45deg); border-radius: 3px; }
.bubble > * { position: relative; }
.bubble h1, .bubble h2, .bubble h3 { font-size: 1.3rem; margin-bottom: 6px; }
.bubble p { color: var(--ink2); margin: 0; }
.bubble p + p { margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.012); } }
}

/* --- the hero ---------------------------------------------------------------------------------------------------- */

.hero { position: relative; padding: 36px 0 24px; overflow: clip; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; }
  .hero h1 em { display: block; }
}
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pill svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem); line-height: 1.5; color: var(--ink2); max-width: 36ch; margin-bottom: 28px; }

/* The waitlist form, drawn as a ticket to launch day. */
.ticket-form { position: relative; display: grid; grid-template-columns: 1fr; max-width: 560px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--e2); overflow: hidden; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ticket-body { padding: 20px 20px 18px; }
.ticket-body label { display: block; font-weight: 800; font-size: 0.95rem; margin-bottom: 8px; }
.field-row { display: grid; gap: 10px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr auto; } }
input[type='email'] {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: var(--radius-md);
  background: var(--bg); color: var(--ink);
  font: 800 1.05rem/1.2 var(--body);
}
input[type='email']::placeholder { color: var(--ink2); opacity: 1; font-weight: 500; }
input[type='email']:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
input[aria-invalid='true'] { border-color: var(--error); }
.consent { margin: 12px 0 0; font-size: 0.9rem; color: var(--ink2); }
.form-status:empty { display: none; }
.form-status { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--error-tint); color: var(--ink); font-size: 0.95rem; }
.form-status.is-working { background: var(--gold-tint); }
.turnstile:empty { display: none; }
.turnstile { margin-top: 12px; min-height: 0; }
.ticket-stub { display: none; }
@media (min-width: 640px) {
  .ticket-form { grid-template-columns: 1fr 64px; }
  .ticket-head { grid-column: 1 / -1; }
  .ticket-stub { display: flex; align-items: center; justify-content: center; position: relative; border-left: 2px dashed var(--line); writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--date); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--ink2); text-transform: uppercase; }
}
.joined-inner:focus { outline: none; }
.joined-inner .says .pocket { width: 92px; }
.joined-inner h2 { font-size: 1.5rem; }
.joined-inner .bubble { box-shadow: none; background: var(--bg); margin-bottom: 14px; }
.joined-inner .bubble::before { background: var(--bg); }
.joined-inner .fine { margin: 6px 0 0; }
.noscript { margin: 12px 0 0; font-size: 0.92rem; color: var(--ink2); }

/* The phone the app screens sit in. */
.phone {
  position: relative; width: min(290px, 74vw); flex: none;
  padding: 9px; border-radius: 46px; background: var(--bezel);
  box-shadow: var(--e2), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), inset 0 0 0 4px rgba(0, 0, 0, 0.35);
}
.phone::before, .phone::after { content: ''; position: absolute; width: 4px; border-radius: 3px; background: var(--bezel); }
.phone::before { left: -3px; top: 22%; height: 9%; }
.phone::after { right: -3px; top: 28%; height: 14%; }
.phone img, .phone picture { display: block; width: 100%; aspect-ratio: 390 / 844; border-radius: 37px; background: var(--bg); }
.phone picture img { border-radius: 37px; }
.phone-small { width: min(250px, 66vw); border-radius: 40px; padding: 8px; }
.phone-small img, .phone-small picture img { border-radius: 32px; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 440px; padding: 24px 0 32px; }
.hero-art .phone { z-index: 2; transform: rotate(2.5deg); }
.hero-art .pad { position: absolute; z-index: 3; left: calc(50% - 222px); top: 10%; transform: rotate(-7deg); }
.hero-art .hero-pocket { position: absolute; z-index: 4; width: 132px; left: calc(50% + 86px); bottom: 0; }
@media (max-width: 560px) {
  .hero-art { min-height: 0; padding: 16px 0 24px; }
  .hero-art .pad { display: none; }
  .hero-art .hero-pocket { left: auto; right: 0; width: 25vw; }
}

/* A boarding pass, as the Stash draws one: the strip, the codes, the times. */
.pass { position: absolute; z-index: 3; left: calc(50% - 262px); bottom: 7%; width: 236px; transform: rotate(-6deg); background: var(--surface); border-radius: 18px; box-shadow: var(--e2); overflow: hidden; }
.pass-head { display: flex; justify-content: space-between; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 14px; }
.pass-body { padding: 10px 14px 12px; }
.pass-route { display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1.05; }
.pass-route svg { width: 22px; height: 22px; color: var(--ink2); }
.pass-sub { margin: 2px 0 8px; color: var(--ink2); font-weight: 800; font-size: 0.8rem; }
.pass-meta { display: flex; gap: 18px; }
.pass-meta span { display: block; font-weight: 800; font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2); }
.pass-meta b { font-family: var(--date); font-size: 0.95rem; }
@media (max-width: 560px) { .pass { left: 0; bottom: 4%; transform: rotate(-6deg) scale(0.72); transform-origin: left bottom; } }

/* The aircraft window, with a golden-hour sky and the shade half up. Pocket's window on Home. */
.window {
  aspect-ratio: 1 / 1.3; padding: 5.2%;
  border-radius: 47% / 36.2%;
  background: var(--frame);
  box-shadow: var(--e2), inset 0 1.5px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 5px rgba(0, 0, 0, 0.08);
}
.pane { position: relative; width: 100%; height: 100%; border-radius: 47% / 36.2%; overflow: hidden; isolation: isolate; }
.pane .sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.pane .shade {
  position: absolute; left: 0; right: 0; top: 0; height: 34%;
  background:
    linear-gradient(0deg, var(--glow), transparent 30%),
    repeating-linear-gradient(0deg, var(--rib) 0 2px, transparent 2px 9px),
    var(--shade);
  border-bottom: 4px solid var(--rib);
}
.pane .shade::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 26%; height: 6px; border-radius: 4px; transform: translateX(-50%); background: var(--pull); }
.pane::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.18); pointer-events: none; }
.pane .pocket { position: absolute; left: 50%; bottom: -4%; width: 46%; transform: translateX(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .pane .shade { animation: shade-lift 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
  @keyframes shade-lift { from { height: 92%; } to { height: 34%; } }
}

/* The tear-off calendar pad from Home. */
.pad { width: 104px; filter: drop-shadow(0 10px 14px rgba(70, 45, 10, 0.18)); }
.pad-page { position: relative; border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: 3px 3px 0 -1px var(--sheet), 6px 6px 0 -2px var(--sheet-line), 0 0 0 1px var(--line); text-align: center; }
.pad-head { background: var(--accent); color: #fff; font-family: var(--body); font-weight: 800; font-size: 0.62rem; letter-spacing: 0.16em; padding: 9px 0 5px; text-transform: uppercase; }
.pad-num { display: block; font-family: var(--date); font-weight: 800; font-size: 2.6rem; line-height: 1; padding: 10px 0 4px; letter-spacing: -0.03em; color: var(--ink); }
.pad-foot { display: block; font-weight: 800; font-size: 0.7rem; color: var(--ink2); padding-bottom: 10px; }
.pad::before, .pad::after { content: ''; position: absolute; top: -9px; width: 8px; height: 18px; border-radius: 5px; border: 2.5px solid var(--postmark); background: transparent; z-index: 2; }
.pad { position: relative; }
.pad::before { left: 28%; }
.pad::after { right: 28%; }

/* --- sections ---------------------------------------------------------------------------------------------------- */

.section { padding: 72px 0 0; }
@media (min-width: 960px) { .section { padding-top: 112px; } }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { font-size: 1.15rem; color: var(--ink2); max-width: 58ch; }

/* How it works: stops down the dotted route, each with its tear-off tile, like the Plan. */
.route { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; padding: 0 0 0 74px; margin: 0; list-style: none; }
.route::before {
  content: ''; position: absolute; left: 26px; top: 20px; bottom: 20px; width: 4px;
  background-image: radial-gradient(circle, var(--route) 1.6px, transparent 2px); background-size: 4px 9px; background-repeat: repeat-y;
}
.stop { position: relative; display: grid; gap: 28px; align-items: center; }
.stop .tile { position: absolute; left: -74px; top: 0; }
.stop-text h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.015em; margin-bottom: 12px; }
.stop-text p { color: var(--ink2); font-size: 1.08rem; max-width: 52ch; }
.stop-text .fine { font-size: 0.95rem; }
.stop-art { display: flex; justify-content: center; position: relative; }
@media (min-width: 900px) {
  .route { padding-left: 0; gap: 96px; grid-template-columns: none; }
  .route::before { left: 50%; transform: translateX(-50%); }
  .stop { grid-template-columns: 1fr 1fr; gap: 96px; }
  .stop .tile { left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .stop-text { padding-right: 24px; }
  .stop:nth-child(even) .stop-text { order: 2; padding: 0 0 0 24px; }
  .stop:nth-child(even) .stop-art { order: 1; }
}

/* A Plan date tile, torn off a pad: a pink strip, a big number, a word under it. */
.tile { z-index: 2; width: 56px; border-radius: 12px; background: var(--surface); text-align: center; box-shadow: var(--e1), 0 0 0 1px var(--line); overflow: hidden; }
.tile-head { display: block; background: var(--accent); color: #fff; font-family: var(--body); font-weight: 800; font-size: 0.62rem; letter-spacing: 0.12em; padding: 7px 0 3px; text-transform: uppercase; }
.tile-num { display: block; font-family: var(--date); font-weight: 800; font-size: 1.6rem; line-height: 1.1; padding-top: 3px; color: var(--ink); }
.tile-foot { display: block; font-weight: 800; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--ink2); padding-bottom: 6px; text-transform: uppercase; }

.art-pocket { position: absolute; z-index: 3; width: 110px; bottom: -10px; right: calc(50% - 190px); }
.art-pocket-left { right: auto; left: calc(50% - 250px); bottom: -34px; width: 96px; }
@media (max-width: 560px) { .art-pocket { width: 84px; right: 0; } .art-pocket-left { left: 0; right: auto; bottom: -48px; width: 76px; } }

/* Little cards drawn in the app's style, for things the screenshots don't show. */
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--e1); padding: 18px; }
.members { width: min(330px, 100%); display: grid; gap: 10px; }
.member { display: flex; align-items: center; gap: 12px; }
.member + .member { padding-top: 10px; border-top: 1px solid var(--line); }
.member .avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--date); font-weight: 800; color: #fff; font-size: 1.05rem; }
.av-1 { background: #C93C63; }
.av-2 { background: #13807B; }
.av-3 { background: #7B4FB8; }
.member b { display: block; line-height: 1.2; }
.member div > span { display: block; color: var(--ink2); font-size: 0.9rem; }
.member > div { min-width: 0; }
.role { white-space: nowrap; flex: none; margin-left: auto; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--track); color: var(--ink2); }
.role.edit { background: var(--accent-tint); color: var(--accent-ink); }
@media (max-width: 400px) {
  .members { padding: 14px; }
  .member { gap: 8px; }
  .member .avatar { width: 34px; height: 34px; font-size: 0.9rem; }
  .role { padding: 2px 7px; font-size: 0.64rem; letter-spacing: 0.06em; }
}

/* The airmail envelope that carries a plan link. */
.envelope {
  position: relative; width: min(360px, 100%); padding: 10px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, var(--envelope) 12px 20px, var(--flight) 20px 32px, var(--envelope) 32px 40px);
  border-radius: 14px; box-shadow: var(--e2);
}
.envelope-inner { background: var(--envelope); border-radius: 8px; padding: 18px 18px 16px; }
.airmail { display: inline-block; border: 2px solid var(--flight); color: var(--flight); font-weight: 800; font-size: 0.62rem; letter-spacing: 0.12em; line-height: 1.25; padding: 3px 7px; border-radius: 4px; text-transform: uppercase; }
.postmark { position: absolute; top: 22px; right: 22px; width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--postmark); color: var(--postmark); display: grid; place-items: center; text-align: center; font-family: var(--date); font-weight: 800; font-size: 0.6rem; letter-spacing: 0.08em; line-height: 1.2; transform: rotate(-12deg); opacity: 0.85; text-transform: uppercase; }
.plan-mini { margin-top: 14px; display: grid; gap: 8px; }
.plan-mini h4 { font-size: 1.15rem; }
.plan-mini .meta { color: var(--ink2); font-size: 0.85rem; margin: -4px 0 4px; }
.plan-row { display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: baseline; font-size: 0.92rem; }
.plan-row time { font-family: var(--date); font-weight: 800; color: var(--accent-ink); }
.plan-row span { color: var(--ink2); }
.link-chip { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); font-weight: 800; font-size: 0.85rem; color: var(--ink2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.link-chip svg { width: 16px; height: 16px; flex: none; color: var(--accent-ink); }

/* And the small stuff: tiles like "Japan, briefly" on Home. */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tile-card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--e1); }
.tile-card .icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.tile-card .icon svg { width: 22px; height: 22px; }
.tile-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.tile-card p { color: var(--ink2); margin: 0; font-size: 0.98rem; }
.tone-flight { background: var(--flight-bg); color: var(--flight); }
.tone-stay { background: var(--stay-bg); color: var(--stay); }
.tone-do { background: var(--do-bg); color: var(--do); }
.tone-eat { background: var(--eat-bg); color: var(--eat); }
.tone-doc { background: var(--accent-tint); color: var(--accent-ink); }

.dark-pair { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* The privacy promise: four papers in the wallet. */
.promise { position: relative; border-radius: 28px; padding: 32px 20px; background: var(--surface); box-shadow: var(--e1); overflow: hidden; }
@media (min-width: 760px) { .promise { padding: 48px; } }
.promise-grid { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 760px) { .promise-grid { grid-template-columns: 1fr 1fr; } }
.paper { position: relative; border-radius: 18px; padding: 20px 20px 18px 20px; color: #fff; overflow: hidden; }
.paper::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.paper .kind { font-weight: 800; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.paper h3 { font-size: 1.3rem; margin: 4px 0 8px; color: #fff; }
.paper p { margin: 0; color: #fff; font-size: 0.98rem; }
.paper a { color: #fff; }
.paper-1 { background: #A16207; }
.paper-2 { background: #31585A; }
.paper-3 { background: #1F4E79; }
.paper-4 { background: #8C2A47; }
@media (prefers-color-scheme: dark) {
  .paper-1 { background: #7A4B0A; }
  .paper-2 { background: #24484A; }
  .paper-3 { background: #193E61; }
  .paper-4 { background: #6E2139; }
}
.promise-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.promise-foot p { margin: 0; color: var(--ink2); }

/* FAQ. */
.faq { max-width: 820px; }
.faq details { background-image: radial-gradient(circle, var(--route) 1.5px, transparent 1.9px); background-size: 9px 4px; background-repeat: repeat-x; background-position: left bottom; padding-bottom: 8px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 14px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--track) center / 14px no-repeat; background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 12px 2.5px, 2.5px 12px; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { color: var(--ink2); max-width: 66ch; }
.faq details > div { padding-bottom: 10px; }

/* The last word: a big window and a button. */
.closing { display: grid; gap: 32px; align-items: center; justify-items: center; text-align: center; }
.closing .window { width: min(220px, 56vw); }
.closing h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); letter-spacing: -0.02em; }
.closing p { color: var(--ink2); max-width: 46ch; margin-inline: auto; }
@media (min-width: 860px) { .closing { grid-template-columns: auto 1fr; text-align: left; justify-items: start; gap: 56px; } .closing p { margin-inline: 0; } }

/* --- the legal pages and other plain pages ----------------------------------------------------------------------- */

.doc-head, .doc-layout { max-width: 1024px; margin-inline: auto; }
.doc-head { padding: 40px 0 8px; }
@media (max-width: 560px) {
  .doc-head { padding-top: 24px; }
  .doc-head .says { flex-direction: column; align-items: flex-start; gap: 0; }
  .doc-head .says .pocket { width: 80px; margin: 0 0 4px 16px; }
  .doc-head .bubble { margin-bottom: 0; }
  .doc-head .bubble::before { left: 46px; top: -8px; bottom: auto; }
}
.doc-head .says { max-width: 760px; }
.doc-head .bubble { padding: 22px 24px; }
.doc-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.date-pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 5px 12px; border-radius: 999px; background: var(--track); color: var(--ink); font-family: var(--date); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 32px; }
@media (min-width: 1024px) { .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.toc { align-self: start; }
@media (min-width: 1024px) { .toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; } }
.toc details { background: var(--surface); border-radius: var(--radius-md); padding: 4px 16px; box-shadow: var(--e1); }
.toc summary { cursor: pointer; padding: 10px 0; font-weight: 800; }
.toc ol { margin: 0 0 12px; padding-left: 20px; font-size: 0.92rem; line-height: 1.45; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink2); text-decoration: none; font-weight: 800; }
.toc a:hover { color: var(--accent-ink); }
.prose { max-width: 720px; background: var(--surface); border-radius: 28px; padding: 28px 20px; box-shadow: var(--e1); }
@media (min-width: 640px) { .prose { padding: 44px 48px; } }
.prose h2 { font-size: 1.65rem; margin: 48px 0 14px; padding-top: 22px; background-image: radial-gradient(circle, var(--route) 1.5px, transparent 1.9px); background-size: 9px 4px; background-repeat: repeat-x; background-position: left top; }
.prose h2:first-child { margin-top: 0; padding-top: 0; background: none; }
.prose h3 { font-size: 1.22rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--route); }
.prose .note { background: var(--gold-tint); border-radius: var(--radius-md); padding: 16px 18px; margin: 0 0 1.2em; }
.prose .note p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink2); }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.table-scroll table { margin: 0; min-width: 560px; }
.prose a { overflow-wrap: anywhere; }

/* Steps down the route (delete your account). */
.steps { list-style: none; padding: 0 !important; margin: 0 0 1.4em; display: grid; gap: 14px; position: relative; }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; margin: 0; }
.steps .tile { width: 52px; }
.steps .tile-num { font-size: 1.35rem; }
.steps li p { margin: 0; }
.kbd { display: inline-block; padding: 1px 9px; border-radius: 8px; background: var(--track); font-weight: 800; white-space: nowrap; }

/* Small centred pages: 404, waitlist removal. */
.plain { padding-top: 56px; display: grid; justify-items: center; text-align: center; }
.plain .pocket { width: 150px; margin-bottom: 8px; }
.plain h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-bottom: 12px; letter-spacing: -0.02em; }
.plain p { color: var(--ink2); max-width: 46ch; }
.plain .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  .prose { box-shadow: none; padding: 0; max-width: none; }
  body { background: #fff; color: #000; }
}
