/* Public site styles (landing, support, privacy, invite). Tokens follow DESIGN.md and the
   app's Swift colors: light only, charcoal primary, Leaf signal as a rare accent. */

@font-face {
  font-family: 'Pharo Wordmark';
  src: url('/assets/pharo-wordmark.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f7f7f5;
  --surface: #fff;
  --ink: #1b1c1c;
  --charcoal: #222;
  --muted: #5c5d59;
  --hairline: rgba(27, 28, 28, 0.09);
  --tile: #efeded;
  --signal: #7ccb3b;
  --next: #0f766e;
  --success: #047857;
  --danger: #ba1a1a;
  --radius: 24px;
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.12);
  /* SF Pro Rounded, as in the app. Apple's licence rules out serving the file, so it comes from the device. */
  --font: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Line icons: symbol contents inherit these through <use>. */
svg use { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 30;
  padding: 8px 16px; border-radius: 12px; background: var(--ink); color: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Type ---------- */

.display {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 800;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.9vw, 20px); color: var(--muted); }
.lead.strong { color: var(--ink); font-weight: 600; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.section-head .lead { margin-top: 16px; }
.fine { font-size: 14px; color: var(--muted); }
.center { text-align: center; }
.text-link { font-weight: 600; text-underline-offset: 4px; }

/* ---------- Buttons and nav ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 1px solid var(--charcoal); border-radius: 999px;
  background: var(--charcoal); color: #fff;
  font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(27, 28, 28, 0.18); }
.btn-ghost:hover { background: #fff; }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #8bd84c; }
.landing .btn[href='#get'] { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.landing .btn[href='#get']:hover { background: #8bd84c; }

.nav { position: sticky; top: 12px; z-index: 20; margin-top: 16px; padding: 0 16px; }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(900px, 100%); margin-inline: auto; padding: 8px 8px 8px 16px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}
.brand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.wordmark { font-family: 'Pharo Wordmark', var(--font); font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: -0.01em; padding-bottom: 3px; }
.nav-links, .doc-links { display: flex; gap: 4px; }
.doc-links a { display: inline-block; padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
.doc-links a[aria-current='page'] { background: var(--tile); color: var(--ink); }
.nav-links a { display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); background: var(--canvas); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; margin-top: -64px; padding-top: 128px; }
.hero-copy { text-align: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(46px, 12vw, 116px); line-height: 0.99; letter-spacing: -0.045em; font-weight: 800; }
.hero-sub { max-width: 620px; margin: 24px auto 0; font-size: clamp(18px, 2vw, 20px); color: var(--muted); text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 12px; row-gap: 8px; margin-top: 24px; }
.stores img { display: block; max-width: none; }
.closing-card .stores, .join-page .stores { margin-top: 16px; }
.store-apple { display: block; width: 144px; height: 48px; border-radius: 8px; }
.store-google { display: block; width: 161px; height: 48px; border-radius: 8px; }
.store-google img { width: 185px; height: 71.4px; margin: -11.7px -12px; }

.hero-stage { position: relative; display: flex; justify-content: center; width: min(1060px, 100%); margin: 56px auto 0; height: 704px; }
/* The lighthouse beam: the one large use of Signal on the page. */

.note {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border: 1px solid var(--hairline); border-radius: 20px;
  background: rgba(255, 255, 255, 0.95); font-size: 14px; line-height: 1.35; color: var(--muted);
}
.note b { display: block; color: var(--ink); font-weight: 650; }
.note-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--canvas); }

/* ---------- Phone and app screens ---------- */

.phone {
  flex: none; position: relative; width: 320px; height: 672px; padding: 10px;
  border-radius: 56px; background: #101111;
  box-shadow: 0 0 0 2px #3a3b3b, 0 30px 70px -20px rgba(0, 0, 0, 0.35);
  user-select: none;
}
.phone-hero { z-index: 1; }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: 47px; background: #fff; }
.island { position: absolute; top: 9px; left: 50%; z-index: 1; width: 94px; height: 27px; transform: translateX(-50%); border-radius: 20px; background: #000; }

@keyframes pulse { 50% { opacity: 0.3; } }

.faces { display: inline-flex; }
.av { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; font-size: 10.5px; font-style: normal; font-weight: 600; line-height: 1; }
.faces .av + .av { margin-left: -8px; }
.faces .plus { align-self: center; margin-left: 3px; color: var(--muted); font-size: 8.5px; font-style: normal; font-weight: 700; }

.type { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; }
.type svg { width: 18px; height: 18px; }

/* ---------- Animated app screens ---------- */

.screen { letter-spacing: -0.024em; font-size: 11.2px; line-height: 1.32; text-align: left; }
.screen svg { width: 16px; height: 16px; flex: none; }
.s-head { display: flex; align-items: center; gap: 8px; padding: 6px 16px 0; }
.s-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s-trip { display: flex; align-items: center; gap: 5px; font-weight: 650; color: var(--muted); white-space: nowrap; font-size: 9.7px; }
.s-trip > span { overflow: hidden; text-overflow: ellipsis; }
.s-pro { border-radius: 99px; background: var(--signal); color: #000; font: 700 9px/15px ui-monospace, monospace; letter-spacing: 0.08em; font-size: 8.2px; line-height: 13px; padding: 0 6px; }
.s-head-text b { font-weight: 800; font-size: 20.9px; line-height: 1.22; letter-spacing: -0.025em; }
.s-round { display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.07); width: 32px; height: 32px; }
.s-me { width: 32px; height: 32px; font-size: 13.4px; }
.s-chips { display: flex; overflow: hidden; white-space: nowrap; gap: 4px; padding: 19px 12px 8px; }
.s-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; border-radius: 99px; color: var(--muted); font-weight: 650; height: 26px; padding: 0 10.4px; font-size: 11.2px; letter-spacing: -0.034em; }
.s-chip.on { background: #fff; color: var(--ink); box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.screen .s-chip svg { width: 13px; height: 13px; }

.s-tabs { position: absolute; left: 13px; right: 13px; bottom: 13px; display: flex; gap: 9px; z-index: 3; }
.s-tabset { flex: 1; display: flex; border-radius: 99px; background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 4px; }
.s-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; border-radius: 99px; font-weight: 650; font-size: 7.5px; padding: 4px 0 3px; }
.screen .s-tab svg { width: 17px; height: 17px; }
.s-tab.on { background: var(--tile); }
.s-add { display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); font-weight: 300; width: 44px; font-size: 23px; }

/* The app's own map, with the page as a sheet over it. */
.s-map { position: absolute; inset: 0 0 auto; }
.s-mapimg { display: block; width: 100%; height: auto; }
.screen { --field: #f4f4f4; background: #eef0e8; }
.s-pin { position: absolute; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.pin-j { left: 117.5px; top: 46px; width: 27px; height: 27px; }
.pin-e { left: 83px; top: 127.5px; width: 15px; height: 15px; border-width: 1.5px; }
.pin-a { left: 44px; top: 103px; width: 15px; height: 15px; border-width: 1.5px; }
.s-sheet { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; background: #fff; border-radius: 30px 30px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.09); }
.s-trip { display: none; }
.s-sheet.mid { top: 42%; }
.s-sheet.big { top: 46px; }
.s-grab { width: 34px; height: 5px; margin: 6px auto 0; border-radius: 3px; background: rgba(27,28,28,.2); }

/* The Home list, as in the app. */
.b-meta { display: flex; align-items: center; color: var(--muted); white-space: nowrap; font-size: 9px; gap: 3.7px; }
.screen .b-meta svg { width: 9px; height: 9px; }
.screen .k-stay { color: #c2410c; }
.screen .k-transit { color: #2563eb; }
.b-stat { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-variant-numeric: tabular-nums; }
.b-stat b { font-weight: 750; letter-spacing: -.01em; font-size: 14.9px; }
.b-stat small { text-transform: uppercase; color: var(--muted); font-size: 8.2px; letter-spacing: 0; font-weight: 600; }
.b-stat.big b { font-size: 25.4px; }
.b-stat.late b { color: var(--danger); font-size: 14.9px; }
.b-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; background: var(--charcoal); color: #fff; font-weight: 650; height: 25px; padding: 0 10.4px; gap: 4.5px; font-size: 10.4px; }
.screen .b-pill svg { width: 11px; height: 11px; }

/* The day is a timeline: a line runs from each time to the next, and each plan sits on a card beside its time. */
.d-day { padding-top: 4px; }
.d-row { display: flex; padding-right: 10px; }
.d-lead { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; width: 63px; padding-left: 9px; padding-right: 6px; }
.d-line { width: 2px; flex: 1; border-radius: 2px; background: #d6d6d3; }
.d-top { flex: none; height: 16px; opacity: 0; }
.d-in { flex: none; height: 14px; }
.d-gap { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 26px; font-weight: 550; color: var(--muted); width: 63px; padding-left: 9px; padding-right: 6px; font-size: 8.2px; }
.d-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 7px 10px 9px; border-radius: 15px; background: var(--field); }
.d-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; }
.d-head .faces .av { width: 21px; height: 21px; font-size: 8px; border-width: 1.5px; }
.d-head .faces .av + .av { margin-left: -6px; }
.d-head em { font-style: normal; font-weight: 700; color: var(--danger); white-space: nowrap; font-size: 9px; }
.d-title { font-weight: 750; line-height: 1.25; font-size: 14.9px; letter-spacing: -0.022em; }
.d-title.small { font-weight: 650; font-size: 12.7px; letter-spacing: -0.03em; }
.d-detail { color: var(--muted); font-size: 11.2px; }
.d-foot { display: flex; align-items: center; gap: 9px; min-height: 26px; margin-top: 8px; color: var(--muted); font-weight: 550; font-size: 9.7px; }
.d-foot .b-pill { margin-left: auto; }
.d-foot > span:not(.b-pill) { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.screen .d-foot > span:not(.b-pill) svg { width: 8.5px; height: 8.5px; }

/* ---------- The hero screen's entrance, run by site.js ---------- */

.in { transition: opacity .5s var(--ease), translate .5s var(--ease), scale .5s var(--ease); }
.playing .in:not(.on) { opacity: 0; translate: 0 14px; scale: 0.96; }
.s-sheet.in { transition-duration: .8s; }
.playing .s-sheet.in:not(.on) { translate: 0 80px; scale: 1; }
.s-map { overflow: hidden; }

/* ---------- Hero entrance ---------- */

.js .phone-hero { animation: rise .9s var(--ease) .15s backwards; }

@keyframes rise { from { opacity: 0; translate: 0 22px; } }

/* ---------- Ticked lists and tags ---------- */

.ticks { margin-top: 24px; }
.ticks li { position: relative; padding: 8px 0 8px 32px; border-top: 1px solid var(--hairline); font-size: 16px; font-weight: 600; }
.ticks li::before { content: ''; position: absolute; left: 3px; top: 17px; width: 12px; height: 6px; border-left: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success); transform: rotate(-45deg); }
.pro { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 6px; background: var(--charcoal); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; vertical-align: 2px; }
/* ---------- Features ---------- */

.features { padding-block: 128px 48px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.tile-card { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 32px; border: 1px solid var(--hairline); border-radius: 32px; background: var(--surface); }
.tile-card h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 700; }
.tile-card h3 > span:not(.pro) { color: var(--muted); font-weight: 400; }
/* Two slim cards side by side, with Smart add in a wide card under them. */
.bento-half { grid-column: span 3; }
.bento-tall { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-half { grid-column: span 1; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 176px; padding: 24px; border-radius: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
  .bento-half:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
  .bento-wide { grid-column: span 2; min-height: 230px; padding: 32px; }
  .bento-wide h3 { font-size: 24px; }
  .bento-wide .mini { padding: 16px 18px; font-size: 15px; }
  .bento-wide .mini b { font-size: 17px; }
  /* The small ones sit quietly under the big ones: no card, just the icon and the words. */
  .bento-quiet { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 0; padding: 8px 4px; border: 0; background: none; border-radius: 0; }
  .bento-quiet:hover { transform: none; box-shadow: none; }
  .bento-quiet h3 { font-size: 16px; }
  .bento-half h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
  .bento-tall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-content: center; }
  .bento-tall > :not(.demo) { grid-column: 1; }
  .bento-tall .demo { grid-column: 2; grid-row: 1 / span 3; margin-block: 0; }
}
/* The example sits in the middle of whatever height the tall card has. */
.bento-tall .demo { margin-block: auto; }
/* Each card shows one small example, all the same shape. */
.demo { margin-top: auto; }
.demo.note { background: var(--canvas); box-shadow: none; }
.demo.note .note-icon { background: #fff; }
/* Smart add: the text you give it, and the plan it becomes. */
.smart { display: grid; gap: 8px; }
/* The app's Smart add bar: a rounded field with what you've typed, a file button and send. */
.ask { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border: 1px solid var(--hairline); border-radius: 28px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }
.ask p { flex: 1; min-width: 0; align-self: center; padding: 4px 0 4px 8px; color: var(--ink); font-size: 17px; line-height: 1.4; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; border-radius: 1px; background: #0a7aff; vertical-align: -0.2em; }
.ask-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tile); color: var(--ink); }
.ask-send { background: var(--signal); color: #000; }
.arrow { justify-self: center; font-size: 20px; line-height: 1; color: var(--muted); }
.smart .note { background: #fff; box-shadow: none; }
.smart .note-icon { background: var(--canvas); }
.smart svg { width: 18px; height: 18px; }
.demo svg { width: 18px; height: 18px; }

/* ---------- Privacy, pricing, FAQ ---------- */

.role { padding: 32px; border: 1px solid var(--hairline); border-radius: 32px; background: var(--surface); }
.role h3 { margin: 16px 0 16px; font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; }
.role > p:last-child { color: var(--muted); }

.privacy { padding-top: 96px; }
.privacy-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px 64px; padding: 48px; border: 1px solid var(--hairline); border-radius: 36px; background: var(--surface); }
.privacy-card h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.privacy-card ul { grid-column: 2; grid-row: 1 / span 2; }
.privacy-card li { padding: 16px 0; border-top: 1px solid var(--hairline); color: var(--muted); }
.privacy-card li:first-child { border-top: 0; padding-top: 0; }
.privacy-card li { display: flex; align-items: flex-start; gap: 16px; }
.privacy-card li b { display: block; color: var(--ink); }
.privacy-card .text-link { align-self: end; }

.pricing { padding-block: 128px 24px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 840px; margin-inline: auto; }
.plan { padding: 32px; border: 1px solid var(--hairline); border-radius: 32px; background: var(--surface); }
.plan-pro { border: 2px solid var(--charcoal); }
.plan h3 { font-size: 18px; }
.price { margin-top: 8px; font-size: 56px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }

.pricing > .fine { margin-top: 16px; }

.faq { max-width: 780px; padding-block: 128px 0; }
.faq .display { text-align: center; margin-bottom: 48px; }
details { border-top: 1px solid var(--hairline); }
details:last-child { border-bottom: 1px solid var(--hairline); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; padding: 16px 4px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 28px; font-weight: 300; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { max-width: 50ch; padding: 0 4px 24px; color: var(--muted); }

/* ---------- Closing and footer ---------- */

.closing { padding-block: 128px 48px; }
.closing-card { display: flex; flex-direction: column; align-items: center; padding: 96px 24px 64px; border-radius: 44px; background: var(--charcoal); color: #fff; text-align: center; }
.closing-card h2 { margin-top: 24px; font-size: clamp(32px, 5vw, 56px); }
.closing-card > p:not(.fine) { max-width: 520px; margin: 16px 0 32px; font-size: 18px; color: rgba(255, 255, 255, 0.76); }
.closing-card .fine { margin-top: 16px; color: rgba(255, 255, 255, 0.64); }
.closing-card :focus-visible { outline-color: var(--signal); }

.site-footer { padding-block: 8px 48px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.footer-row .brand { color: var(--ink); }
.footer-row ul { display: flex; gap: 8px; }
.footer-row li a { display: inline-block; padding: 8px; }

/* ---------- Entrance motion (only when JS is running) ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Document pages: support, privacy ---------- */

.doc { width: min(760px, 100% - 40px); margin: 56px auto 80px; }
.doc h1 { margin-top: 10px; font-size: clamp(40px, 7vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.page-meta { margin-top: 12px; color: var(--muted); font-size: 14px; }
.doc .lead { margin-top: 16px; }
.prose { margin-top: 36px; padding: 4px 36px 36px; border: 1px solid var(--hairline); border-radius: 32px; background: var(--surface); overflow-wrap: break-word; }
.prose h2 { margin: 36px 0 12px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.prose h3 { margin: 24px 0 8px; font-size: 18px; }
.prose p, .prose li { color: #3d3e3b; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 14px; padding-left: 22px; list-style: disc; }
.prose li { margin-block: 6px; }
.prose a { font-weight: 600; text-underline-offset: 3px; }
.prose a.btn { margin-top: 16px; color: #fff; text-decoration: none; }
.prose .faq-item { padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }

/* ---------- Invite preview (/join) ---------- */

.invite-page { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 20px; }
.shell { width: min(480px, 100%); border: 1px solid var(--hairline); border-radius: 32px; background: var(--surface); box-shadow: var(--shadow-float); overflow: hidden; }
.shell-inner { padding: 24px; }
.shell-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.trip-title { margin-top: 8px; font-size: 36px; line-height: 1.08; letter-spacing: -0.032em; font-weight: 800; overflow-wrap: anywhere; }
.trip-dates { margin-top: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.main-quest { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: rgba(15, 118, 110, 0.07); }
.main-quest .eyebrow { color: var(--next); }
.main-quest h2 { margin-top: 8px; font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.quest-time { margin-top: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.upcoming { margin-top: 24px; }
.upcoming-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.upcoming-title { min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.upcoming-time { flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.actions { display: grid; gap: 10px; margin-top: 28px; }
.button { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border: 1px solid var(--charcoal); border-radius: 999px; font-weight: 650; text-decoration: none; text-align: center; }
.button-primary { background: var(--charcoal); color: #fff; }
.button-secondary { border-color: rgba(27, 28, 28, 0.18); }
.app-hint { margin-top: 16px; font-size: 13.5px; color: var(--muted); text-align: center; }
.error p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
.loading p { color: var(--muted); font-size: 14px; }
.skeleton-line { height: 18px; margin-bottom: 14px; border-radius: 9px; background: var(--tile); animation: pulse 1.4s ease-in-out infinite; }
.skeleton-line:first-child { width: 70%; height: 34px; }
.skeleton-line:nth-child(2) { width: 45%; }
.shell .footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }

.gate { display: grid; gap: 10px; margin-top: 26px; }
.gate label { font-size: 14px; font-weight: 650; }
.gate input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid rgba(27, 28, 28, 0.18); border-radius: 16px; background: var(--surface); color: var(--ink); font: 17px var(--font); }
.gate input:focus { outline: 2px solid var(--charcoal); outline-offset: 0; }
.gate input[aria-invalid='true'] { border-color: var(--danger); }
.gate-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.gate .button { margin-top: 6px; font: 650 17px var(--font); cursor: pointer; }

/* ---------- Smaller screens ---------- */

@media (max-width: 899px) {
  .bento-half, .bento-tall { grid-column: 1 / -1; grid-row: auto; }
  .privacy-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .privacy-card ul { grid-column: auto; grid-row: auto; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Document pages on phones: the links don't fit beside the logo, so they get their own row. */
@media (max-width: 560px) {
  .nav-bar:has(.doc-links) { flex-direction: column; gap: 2px; padding: 4px 6px 6px; border-radius: 28px; }
  .doc-links { width: 100%; }
  .doc-links li { flex: 1; }
  .doc-links a { display: block; padding: 10px 4px; font-size: 14px; text-align: center; }
  section[id] { scroll-margin-top: 130px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 128px; }
  .plans { grid-template-columns: 1fr; }
  .tile-card, .role, .plan { padding: 24px; }
  .prose { padding: 4px 20px 24px; }
  /* Less empty space between and inside sections. */
  .features, .privacy, .pricing, .faq, .closing { padding-top: 64px; }
  .features { padding-bottom: 32px; }
  .section-head { margin-bottom: 32px; }
  .faq .display { margin-bottom: 24px; }
  .closing-card { padding: 48px 24px; border-radius: 32px; }
  /* The two main buttons stack at one width. */
  .hero .cta-row { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  /* Feature cards: the icon sits beside the words, so each card is shorter. */
  .tile-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 16px; border-radius: 24px; }
  .tile-card > :not(.card-icon, h3) { grid-column: 1 / -1; }
  .tile-card h3 { align-self: center; font-size: 18px; }
  .ask p { font-size: 16px; }
  .ask-btn { width: 32px; height: 32px; }
  .ask { align-items: center; }
  .privacy-card li { gap: 16px; }
  /* Footer links line up with the logo above them. */
  .footer-row ul { margin-left: -8px; }
}

@media (max-width: 359px) {
  .phone-hero { zoom: 0.86; }
  /* Keeps the header button inside its bar. */
  .nav-bar { gap: 8px; padding-left: 12px; }
  .nav-bar .btn-sm { padding: 0 12px; font-size: 13px; }
}

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

/* ---------- The questions a group chat keeps repeating ---------- */
.loop { padding-block: 130px 110px; }
.loop > .display { max-width: 900px; margin-inline: auto; text-align: center; }
.chat { max-width: 520px; margin: 48px auto 0; padding: 22px; border: 1px solid var(--hairline); border-radius: 32px; background: #ececea; }
.chat figcaption { display: flex; justify-content: space-between; margin-bottom: 16px; font-weight: 700; }
.chat figcaption span { font-weight: 600; color: var(--muted); font-size: 14px; }
.chat ol { display: flex; flex-direction: column; gap: 9px; }
.bubble { align-self: flex-start; display: flex; align-items: flex-end; gap: 8px; max-width: 86%; padding: 9px 15px; border-radius: 20px 20px 20px 6px; background: #fff; font-size: 16px; }
.bubble .av { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; }
.bubble b { display: block; font-size: 12px; color: var(--muted); }
.bubble-me { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--charcoal); color: #fff; }
@media (max-width: 899px) {
  .loop { padding-block: 90px 80px; }
}

/* The chat on one side, the answers on the other */
.loop-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 980px; margin: 48px auto 0; align-items: center; }
.loop-grid .chat { margin: 0; width: 100%; }
.answers { display: flex; flex-direction: column; gap: 10px; }
.answers-head { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--muted); }
.answers-head .wordmark { color: var(--ink); font-size: 24px; }
.answer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--hairline); border-radius: 20px; background: #fff; }
.answer-text { display: grid; gap: 2px; }
.answer .av { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; }
.answer b { font-size: 18px; letter-spacing: -0.02em; }
.answer-text > span:last-child { color: var(--muted); font-size: 14px; }
.answer-tag { font-size: 12px; font-weight: 700; color: var(--next); }
@media (min-width: 900px) { .loop-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* The home sheet sits lower now, so the city map is enlarged to fill the screen above it */
.s-map.map-city { overflow: visible; transform: scale(1.3); transform-origin: 38% 0; }

/* Small examples inside the feature tiles */
.mini { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px 14px; border-radius: 16px; background: var(--canvas); font-size: 14px; color: var(--muted); }
.mini b { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.mini-alert { flex-direction: column; align-items: flex-start; gap: 2px; border-left: 4px solid var(--signal); }
.mini-people .av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.mini-chips { background: none; padding: 0; gap: 8px; flex-wrap: wrap; }
.mini-chips span { padding: 8px 14px; border-radius: 999px; background: var(--canvas); color: var(--ink); font-weight: 600; }
.mini-chips .on { background: var(--charcoal); color: #fff; }
.mini-flight { justify-content: space-between; }
.mini-flight b { font-size: 16px; }
.mini-flight .late { color: var(--danger); font-weight: 700; }

.privacy-line { margin-top: 12px; font-size: 20px; color: var(--muted); }
.plan { display: flex; flex-direction: column; }
.plan .ticks { margin-bottom: 0; }

/* Three bigger features, each with its own picture */
.feature-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px; border: 1px solid var(--hairline); border-radius: 36px; background: var(--surface); }
.feature-copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.feature-copy h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.feature-copy p { margin: 0; max-width: 440px; font-size: 18px; color: var(--muted); }
.feature-copy .fine { font-size: 14px; }
.feature-visual { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 32px; border-radius: 28px; background: var(--canvas); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px; min-height: 380px; }
  .feature-flip .feature-copy { order: 2; }
}
/* Flights as on Home: the time outside, the plan on its card. */
.flight-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 8px; }
.flight-time { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--danger); }
.on-time .flight-time { color: var(--ink); }
.flight-card { display: grid; gap: 4px; padding: 16px; border-radius: 20px; background: #fff; }
.flight-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.flight-top i { display: inline-flex; align-items: center; gap: 4px; font-style: normal; color: var(--muted); }
.flight-top svg { width: 13px; height: 13px; color: #2563eb; fill: currentColor; }
.flight-top .late, .flight-top .ok { white-space: nowrap; font-weight: 700; }
.flight-top .late { color: var(--danger); }
.flight-top .ok { color: var(--success); }
.flight-card b { font-size: 16px; letter-spacing: -0.01em; }
.flight-card small { font-size: 13px; color: var(--muted); }
.offline-bar { display: flex; align-items: center; gap: 8px; align-self: center; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.offline-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offline-row { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: #fff; }
.offline-row > span:not(.v-mark, .pay-pair) { flex: 1; display: grid; font-size: 14px; color: var(--muted); }
.offline-row .pay-pair .av { width: 36px; height: 36px; border: 0; }
.offline-row > .av { width: 36px; height: 36px; border: 0; }
.offline-row b { color: var(--ink); font-size: 16px; }
.offline-row em { font-style: normal; font-weight: 700; color: var(--ink); }
.feature-visual .demo { margin: 0; }

/* Phones: less padding inside the feature cards, so the examples get the width. */
@media (max-width: 640px) {
  .feature { gap: 24px; padding: 16px; border-radius: 28px; }
  .feature-visual { padding: 8px; border-radius: 20px; }
  .offline-row { gap: 8px; padding: 16px 8px; border-radius: 14px; }
  .flight-row { grid-template-columns: 58px minmax(0, 1fr); gap: 4px; }
  .flight-time { font-size: 18px; }
  .flight-card { padding: 16px 8px; border-radius: 14px; }
  .offline-row > span:not(.v-mark, .pay-pair) { min-width: 0; overflow-wrap: anywhere; }
}

/* Spot graphics, the same drawings as the app's. */
.spot { display: block; max-width: none; }
.spot-feature { margin: -12px 0 -4px -10px; }
@media (max-width: 640px) { .spot-feature { width: 88px; height: 88px; margin: -8px 0 0 -8px; } }

/* Invite and missing pages: the lighthouse, one message and one button. */
.join-page .shell-header { justify-content: center; }
.join-page .error, .join-page .trip-info, .join-page .app-hint { text-align: center; }
.join-page .spot-state { margin: 0 auto 8px; }
.join-page .shell .footer { justify-content: center; border-top: 0; padding-top: 0; }
.invite-inviter { margin-bottom: 6px; font-size: 15px; font-weight: 650; color: var(--muted); }
.invite-faces { display: flex; justify-content: center; margin-top: 18px; }
.invite-faces img { width: 52px; height: 52px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; }
.invite-faces img + img { margin-left: -12px; }
.invite-crew { margin: 8px 0 20px; padding: 0 16px; font-size: 14px; color: var(--muted); text-wrap: balance; }

/* The Vault as the app draws it: a switch over one soft grey card to a row. */
.pane.vault-pane { align-items: stretch; padding: 16px; }
.vault-tabs { display: flex; gap: 4px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.vault-tabs span { padding: 8px 16px; border-radius: 999px; }
.vault-tabs .on { background: #fff; color: var(--ink); box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); }
.vault-row { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: #f4f4f4; }
.vault-row > span:not(.v-mark) { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; color: var(--muted); }
.vault-row b { font-size: 16px; font-weight: 600; color: var(--ink); }
@media (max-width: 359px) { .offline-bar { gap: 4px; padding: 8px; font-size: 12px; } }
@media (max-width: 640px) { .pane.vault-pane { padding: 8px; } .vault-row { gap: 8px; padding: 16px 8px; } }

/* The trip day: one big card to each moment, each showing one thing. */
/* The section above already ends with plenty of room. */
#trip-day { padding-top: 32px; }
.pane { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border-radius: 20px; background: #fff; }
.pane-note { font-size: 14px; color: var(--muted); }
.pane-title { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.pane-big { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; font-variant-numeric: tabular-nums; }
.pane-big.owe { color: var(--danger); }
.pane-button { display: flex; align-items: center; justify-content: center; align-self: stretch; gap: 8px; min-height: 48px; margin-top: 8px; border-radius: 999px; background: var(--charcoal); color: #fff; font-weight: 600; }
.pane-button svg { width: 16px; height: 16px; }
.invite-card { align-items: center; text-align: center; }
.invite-card .invite-faces { margin-top: 8px; }
.stay-times { display: grid; grid-template-columns: 1fr 1fr; align-self: stretch; gap: 16px; margin-block: 8px; }
.stay-times > span { display: grid; }
.stay-times b { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stay-place { display: grid; margin-bottom: 8px; }
/* The grey cards inside an event: who's going, costs and what's attached. */
.g-card { display: flex; align-items: center; align-self: stretch; gap: 12px; padding: 12px; border-radius: 16px; background: #f4f4f4; }
.g-icon { flex: none; width: 20px; height: 20px; margin-inline: 10px; }
.g-words { flex: 1; display: grid; min-width: 0; overflow-wrap: anywhere; font-size: 14px; color: var(--muted); }
.g-words b { color: var(--ink); font-size: 15px; font-weight: 600; }
.g-dots { letter-spacing: 2px; }
.g-card strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.g-card .faces .av { width: 28px; height: 28px; }
.g-chev { flex: none; width: 14px; height: 14px; color: var(--muted); }
/* A Vault item's mark: what it is, with the face of whoever added it on its corner. */
.v-mark { position: relative; display: grid; flex: none; place-items: center; width: 40px; height: 40px; margin: 0 4px 4px 0; border-radius: 50%; background: #fff; color: var(--charcoal); }
.offline-row .v-mark { background: #f4f4f4; }
.v-mark svg { width: 22px; height: 22px; }
.v-mark .av { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border: 2px solid #fff; }
.pane-by { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.offline-row .pay-pair { display: flex; flex: none; align-items: center; gap: 8px; }
.pay-pair i { font-style: normal; color: var(--muted); }
.voice-play svg { display: block; width: 16px; height: 16px; }
.voice-play use, .shot-time use { fill: currentColor; }
/* Three squares across, as in the app; the third is still to be filled. */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.shots > span { position: relative; aspect-ratio: 1; }
.shot { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.shot-by { position: absolute; left: 8px; bottom: 8px; }
.shot-time { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; }
.shot-time svg { width: 9px; height: 9px; }
@media (max-width: 640px) {
  .pane { padding: 24px 16px; border-radius: 14px; }
  .pane-big { font-size: 24px; }
  .g-card { gap: 8px; padding: 12px 8px; }
  .g-icon { margin-inline: 2px; }
  .g-card .faces .av { width: 22px; height: 22px; }
  .shots .shot-time { top: 8px; bottom: auto; }
}
