/* Site layout. Every colour, font, space and radius comes from /brand/tokens.css; buttons, tags, plan cards and meters from /brand/components.css. */

/* The website look (from the Figma "iPhone 16 - 1" frame): Mint page ground, Instrument Sans for reading, Special Gothic Expanded One for display lines. */
:root { --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --ticker-h: 36px; --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }
:root, [data-theme="light"] { --surface: var(--mint); --surface-raised: var(--white); --accent: var(--night); --on-accent: var(--mint); --border-control: var(--night); }

.t-display, .t-title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.07em; }
.t-display { font-size: clamp(38px, 8vw, 88px); line-height: 0.86; }
.t-title { font-size: clamp(26px, 4vw, 36px); line-height: 0.92; }
.t-heading { letter-spacing: -0.01em; }
.t-label { font-family: var(--font-sans); letter-spacing: 0.02em; }
.qm-btn { height: 44px; padding: 0 20px; font: 500 13px/1 var(--font-sans); letter-spacing: 0.01em; text-transform: uppercase; }
.qm-btn--ghost { box-shadow: inset 0 0 0 1px var(--border-control); }
.qm-tag { font: 500 12px/1 var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; interpolate-size: allow-keywords; }
/* The page ground is Mint, but the canvas behind it is Night: overscroll and the browser bars then match the Night ticker at the top and the Night footer at the bottom, so no Mint strip shows below the footer on phones. */
:root { background-color: var(--night); }
body { background-color: var(--surface); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; font: 400 16px/24px var(--font-sans); -webkit-font-smoothing: antialiased; font-synthesis: none; }
main { flex: 1; }
img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
/* Instrument Sans is narrower than the brand's Outfit, so measures are set in ch: about 60 to 75 characters a line. */
p, li, figcaption { text-wrap: pretty; }
.t-display, .t-title, .t-heading { text-wrap: balance; }
.t-body-lg, .faq details p { max-width: 60ch; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[id] { scroll-margin-top: var(--space-6); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: var(--space-4); top: var(--space-4); z-index: 1; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

.wrap { width: min(100% - 2 * var(--space-6), 1200px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 2 * var(--space-8), 1200px); } }

.section { padding-block: var(--space-14); }
@media (min-width: 768px) { .section { padding-block: calc(var(--space-14) * 2); } }

/* Heading beside content on wide screens */
.split { display: grid; gap: var(--space-8); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-14); align-items: start; }
  .split > :first-child { position: sticky; top: var(--space-8); }
}
.split__intro { display: grid; gap: var(--space-4); }
.split__intro p { max-width: 24em; color: var(--ink-muted); }

/* Ticker: one Night strip that links to the waitlist. It stops on hover, on focus and with its own pause button (WCAG 2.2.2), and stands still with reduced motion. */
.ticker { display: flex; height: var(--ticker-h); }
.ticker__link { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; font: 500 12px/1 var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; }
.ticker__link:focus-visible { outline-offset: -4px; }
.ticker__track, .ticker__half { display: flex; flex: none; }
.ticker__half span { padding-right: 0.5em; white-space: nowrap; }
.ticker__half b { font: 500 1em/1 var(--font-mono); }
.ticker__toggle { position: relative; flex: none; display: grid; place-items: center; width: 44px; padding: 0; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.ticker__toggle:focus-visible { outline-offset: -4px; }
.ticker__toggle::before { content: ""; position: absolute; inset: 0; width: 9px; height: 10px; margin: auto; border-inline: 3px solid currentColor; }
.ticker__toggle[aria-pressed="true"]::before { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); translate: 1px 0; } /* a triangle looks centred nudged 1px right */
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 40s linear infinite; }
  .ticker.is-paused .ticker__track, .ticker__link:is(:hover, :focus-visible) .ticker__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .ticker__toggle { display: none; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Header: the Q and a two-line menu button */
.site-header__inner { display: flex; justify-content: space-between; align-items: center; padding-block: var(--space-3); }
.site-header__logo { display: block; padding: var(--space-2) 0; }
.site-header__logo img { width: auto; height: 24px; }
.menu-button { display: grid; place-content: center; gap: 4.5px; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink); cursor: pointer; }
.menu-button img { width: 25px; height: 1px; }
.menu-button--close img:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-button--close img:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* Menu: a full-screen popover that wipes down from the top; its close button sits where the menu button was. */
.menu { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--mint-bright); color: var(--night); }
html:has(.menu:popover-open) { overflow: hidden; }
.menu::backdrop { background: transparent; }
.menu > .site-header__inner { margin-top: var(--ticker-h); }
.menu__links { display: grid; gap: var(--space-3); padding-block: var(--space-14); }
.menu__links a { display: inline-block; padding-block: 0.06em; font: 400 clamp(36px, 10vw, 96px)/0.9 var(--font-display); letter-spacing: -0.07em; text-decoration: none; }
.menu__links a:hover { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; }
@media (prefers-reduced-motion: no-preference) {
  .menu { clip-path: inset(0 0 100% 0); transition: clip-path 0.5s var(--ease-out), overlay 0.5s allow-discrete, display 0.5s allow-discrete; }
  .menu:popover-open { clip-path: inset(0); }
  .menu__links li, .menu-button--close img { transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); transition-delay: calc(0.12s + var(--i, 0) * 50ms); }
  .menu__links li:nth-child(2) { --i: 1; }
  .menu__links li:nth-child(3) { --i: 2; }
  .menu__links li:nth-child(4) { --i: 3; }
  @starting-style {
    .menu:popover-open { clip-path: inset(0 0 100% 0); }
    .menu:popover-open .menu__links li { opacity: 0; transform: translateY(24px); }
    .menu:popover-open .menu-button--close img { transform: none; }
  }
}

/* Hero */
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-8); padding-block: clamp(64px, 16vw, 160px) clamp(72px, 16vw, 160px); text-align: center; }
.hero__title { max-width: 9em; font: 400 clamp(44px, 12.2vw, 136px)/0.746 var(--font-display); letter-spacing: -0.08em; text-wrap: balance; }
/* The hero fills the first screen, so the next title waits below the fold. Its sign-up is one outlined pill holding the field and the solid button. */
.hero__inner { min-height: calc(100svh - var(--ticker-h) - 68px); align-content: center; } /* 68px: the header */
.hero__join { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-3); width: 100%; }
.join__form.hero__form { display: flex; gap: 0; width: min(100%, 420px); padding: 4px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--border-control); }
.hero__form:has(.hero__email:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.hero__email:focus-visible { outline: none; } /* the ring goes round the whole pill instead */
.hero__email { flex: 1; min-width: 0; height: 44px; padding: 0 6px 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); caret-color: var(--ink); font: 500 15px/1 var(--font-sans); }
.hero__form .qm-btn { padding: 0 12px; font-size: 12px; } /* narrower, so more of the address shows beside it */
.hero__email::placeholder { color: var(--ink-muted); }
.hero__join .join__error { color: var(--ink); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .hero__title { animation: wipe-up 0.9s var(--ease-out) 0.1s backwards; }
  .hero__join { animation: rise 0.6s var(--ease-out) 0.45s backwards; }
}
@keyframes wipe-up { from { clip-path: inset(-20% -10% 100% -10%); transform: translateY(0.3em); } to { clip-path: inset(-20% -10% -20% -10%); transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Intro: the bright band with the eSIM card. Phones: the title across the full width, the card large and centred to pick up and turn, then the facts. From 900px: the card beside the title and body. */
.intro { overflow-x: clip; padding-block: var(--space-14); background: var(--mint-bright); }
.intro__grid { container-type: inline-size; display: grid; grid-template-areas: "title" "card" "body"; row-gap: var(--space-8); }
/* "connectivity" is 6.54em wide in this face, so 100cqi / 6.7 sets the longest word to the full measure. */
.intro__title { grid-area: title; max-width: 6.7em; font: 400 clamp(36px, 12vw, 76px)/0.746 var(--font-display); font-size: min(100cqi / 6.7, 88px); letter-spacing: -0.08em; }
.intro__body { grid-area: body; display: grid; gap: var(--space-6); max-width: 34em; }
.intro__facts { border-bottom: 1px solid var(--border); }
.intro__facts li { display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-3); border-top: 1px solid var(--border); font-weight: 500; }
.intro__icon { flex: none; box-sizing: content-box; width: 18px; height: 18px; padding: 9px; border-radius: var(--radius-pill); background: var(--night); color: var(--mint); }
@media (min-width: 900px) {
  .intro { padding-block: calc(var(--space-14) * 2); }
  .intro__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "card title" "card body"; grid-template-rows: auto 1fr; column-gap: var(--space-14); align-items: start; }
  .intro__title { max-width: none; font-size: clamp(24px, 7.4vw, 76px); }
}

/* The eSIM card: CSS 3D. Front and back faces plus thin edge layers (added by site.js) give it depth; dragging turns it. */
/* The artwork's rings rise above the card's top edge, so phones give it room under the title. Perspective stays four card-widths at every size. */
.sim { grid-area: card; display: grid; gap: var(--space-4); justify-items: center; margin-block: var(--space-6) var(--space-2); }
.sim__stage { --w: min(64vw, 300px); width: var(--w); aspect-ratio: 120.725 / 156.311; perspective: calc(var(--w) * 4); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.sim__stage:active { cursor: grabbing; }
.sim__stage:focus-visible { outline-offset: 8px; border-radius: var(--radius-md); }
.sim__card { position: relative; height: 100%; transform-style: preserve-3d; scale: var(--lift, 1); transform: rotateX(calc(var(--rx, -8) * 1deg)) rotateY(calc(var(--ry, -16) * 1deg)); transition: scale 0.2s ease-out; }
.sim__face, .sim__layer { position: absolute; inset: 0; pointer-events: none; }
.sim__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* The Figma artwork has room around the card body; size and shift it so the body fills the stage exactly. Its Q is meant to hang off the corner. */
/* The artwork's rings run past the card; the card-shape mask trims them to its edge. */
.sim__face--front { transform: translateZ(7.5px); mask: url(/img/card-shape.svg) 0 0 / 100% 100% no-repeat; }
.sim__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.sim__tagline { position: absolute; left: 8.4%; top: 19.4%; color: var(--mint); font: 500 calc(var(--w) * 0.03)/1 var(--font-sans); letter-spacing: 0.72em; text-transform: uppercase; }
.sim__face--back { display: grid; place-content: center; justify-items: center; gap: var(--space-3); transform: rotateY(180deg) translateZ(7.5px); background: var(--night); color: var(--mint); mask: url(/img/card-shape-back.svg) 0 0 / 100% 100% no-repeat; } /* mirrored, so its cut corner lines up with the edge seen from behind */
.sim__face--back .sim__art { scale: -1 1; }
.sim__face--back .sim__mark { width: 30%; }
.sim__face--back .sim__mark, .sim__face--back span { position: relative; }
.sim__face--back span { font: 500 calc(var(--w) * 0.045)/1 var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; }
.sim__layer { transform: translateZ(calc(var(--z) * 1px)); background: var(--pine); mask: url(/img/card-shape.svg) 0 0 / 100% 100% no-repeat; }
.sim__hint { color: var(--ink-muted); font: 500 12px/16px var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; }
@media (min-width: 900px) { .sim { justify-items: start; margin-block: 0; } .sim__stage { --w: clamp(104px, 29vw, 320px); } }

/* Launch-list form */
.join { --pad: var(--space-6); width: 100%; max-width: 520px; padding: var(--pad); border-radius: var(--radius-lg); display: grid; gap: var(--space-3); }
.join__form { display: grid; gap: var(--space-2); }
.join__label { font-weight: 500; }
.join__row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.join__row .qm-btn { flex: 1 0 auto; height: 48px; }
.join__input { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 var(--space-4); border: 1.5px solid var(--border-control); border-radius: max(var(--radius-sm), calc(var(--radius-lg) - var(--pad))); background: var(--surface-raised); color: var(--ink); caret-color: var(--ink); font: 400 16px/24px var(--font-sans); }
.join__error { color: var(--ink); font-weight: 500; }
.join__note { color: var(--ink-muted); }
.join__done:focus { outline: none; }
.join__trap { position: absolute; left: -9999px; }
.qm-btn[aria-disabled="true"] { opacity: 0.4; cursor: progress; }
.dot { flex: none; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--dot); }

/* Centred section opener: heading, one line, one link */
.section-head { display: grid; justify-items: center; gap: var(--space-6); max-width: 46em; margin-inline: auto; text-align: center; }

/* Shared disclosure rows (How it works, FAQ) */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: calc(50% - 0.75px); width: 16px; height: 1.5px; background: currentColor; transition: transform 0.2s ease-out; }
.faq__icon::after { transform: rotate(90deg); }
details[open] .faq__icon::after { transform: rotate(0deg); }
@media (prefers-reduced-motion: no-preference) {
  details::details-content { height: 0; overflow: clip; transition: height 0.25s var(--ease-out), content-visibility 0.25s var(--ease-out) allow-discrete; }
  details[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .faq__icon::before, .faq__icon::after { transition: none; } }

/* How it works: three steps, one open at a time; the panel beside them shows that step. */
.how__grid { display: grid; gap: var(--space-8); margin-top: var(--space-14); }
@media (min-width: 900px) { .how__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-14); align-items: center; } }
.how__steps { border-bottom: 1px solid var(--border); }
.how__steps details { border-top: 1px solid var(--border); }
.how__steps summary { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); padding-block: var(--space-6); color: var(--ink-muted); }
.how__steps summary:hover, .how__steps details[open] summary { color: var(--ink); }
.how__num { font: 500 14px/20px var(--font-mono); }
.how__steps p { max-width: 34em; padding: 0 0 var(--space-6) 2.5rem; color: var(--ink-muted); }
.how__visual { display: grid; place-items: center; min-height: clamp(320px, 40vw, 480px); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--mint-bright); color: var(--night); }
.scene { --pad: var(--space-4); grid-area: 1 / 1; display: grid; gap: var(--space-2); width: min(100%, 360px); padding: var(--pad); border-radius: var(--radius-lg); background: var(--white); }
.scene__label { margin-bottom: var(--space-1); color: var(--pine); font: 500 12px/16px var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; }
.scene__row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 52px; padding: var(--space-2) var(--space-4); border-radius: max(var(--radius-sm), calc(var(--radius-lg) - var(--pad))); background: var(--mint-mist); font-weight: 600; }
.scene__row > :last-child { color: var(--pine); font-weight: 400; text-align: right; }
.scene__row.is-on { background: var(--night); color: var(--mint); }
.scene__row.is-on > :last-child { color: var(--mint); }
.scene__fig { font: 500 14px/20px var(--font-mono); }
.scene__live { display: inline-flex; align-items: center; gap: var(--space-2); }
.scene__note { margin-top: var(--space-1); color: var(--pine); font-size: 14px; line-height: 20px; }
/* Show the open step's scene; without :has(), the first. */
.scene:not(.scene--1) { visibility: hidden; opacity: 0; }
@supports selector(:has(a)) {
  .how__grid:has(details[open]) .scene { visibility: hidden; opacity: 0; }
  .how__grid:has(details:nth-child(1)[open]) .scene--1,
  .how__grid:has(details:nth-child(2)[open]) .scene--2,
  .how__grid:has(details:nth-child(3)[open]) .scene--3 { visibility: visible; opacity: 1; translate: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .scene { transition: opacity 0.3s var(--ease-out), translate 0.3s var(--ease-out), visibility 0s; }
  .scene:not(.scene--1), .how__grid:has(details[open]) .scene { translate: 0 8px; }
}

/* Spotlight: the journey chart beside a short pitch, on Night */
.spotlight__grid { display: grid; gap: var(--space-14); }
.spotlight__copy { display: grid; gap: var(--space-6); justify-items: start; align-content: start; }
.spotlight__copy p { color: var(--ink-muted); }
@media (min-width: 960px) {
  .spotlight__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "figure copy"; align-items: center; }
  .spotlight__copy { grid-area: copy; }
  .spotlight__grid .journey { grid-area: figure; }
}

/* Statement: one line set large, run straight into What works (no padding below; that section's own top padding is the gap). */
/* Four networks: the names set large, one to a row between hairlines, on a bright band */
.networks { background: var(--mint-bright); }
.networks__title { max-width: 8em; }
.networks__list { margin: var(--space-8) 0; padding: 0; list-style: none; border-top: 1px solid var(--border-control); }
.networks__list li { padding-block: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-control); font: 400 clamp(56px, 13vw, 144px)/1 var(--font-display); letter-spacing: -0.06em; }
.networks__note { max-width: 32em; }
.statement { padding-bottom: 0; }
.statement__inner { display: grid; justify-items: center; gap: var(--space-6); text-align: center; }
.statement__title { max-width: 11em; font: 400 clamp(44px, 9vw, 96px)/0.86 var(--font-display); letter-spacing: -0.07em; text-wrap: balance; }

/* What works: a tile per kind of app, with filters */
.works-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-6); }
.works-head h2 { max-width: 8em; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter { display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-4); border: 1px solid var(--border-control); border-radius: var(--radius-pill); background: none; color: var(--ink); font: 500 13px/1 var(--font-sans); letter-spacing: 0.01em; text-transform: uppercase; cursor: pointer; }
.filter span { font: 500 12px/1 var(--font-mono); }
@media (max-width: 639px) { .filters { gap: 6px; } .filter { flex: 1 1 auto; justify-content: center; padding: 0 9px; } } /* all three chips on one row down to 360px */
.filter:hover { background: var(--surface-raised); }
.filter[aria-pressed="true"] { border-color: var(--action); background: var(--action); color: var(--on-action); }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-8); }
/* Ten tiles: six that work, four that don't. Phones pair them up; wider screens give each group its own rows, the four a half-again wider (3:2) so both groups fill the width at the same height. */
@media (min-width: 640px) { .apps { grid-template-columns: repeat(12, minmax(0, 1fr)); } .apps .app--yes { grid-column: span 4; } .apps .app--no { grid-column: span 6; aspect-ratio: 3 / 2; } }
@media (min-width: 1000px) { .apps { margin-top: var(--space-14); } .apps .app--yes { grid-column: span 2; } .apps .app--no { grid-column: span 3; } }
.app { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); aspect-ratio: 1; padding: var(--space-4); border-radius: var(--radius-lg); }
.app--yes { background: var(--mint-bright); }
.app--no { border: 1px solid var(--border); color: var(--ink-muted); }
.app__tag { font: 500 12px/16px var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; }
.app__name { font: 400 clamp(19px, 2vw, 26px)/0.95 var(--font-display); letter-spacing: -0.06em; overflow-wrap: break-word; text-wrap: balance; }
.apps[data-show="yes"] .app--no, .apps[data-show="no"] .app--yes { display: none; }

/* The journey: one drive, your network's gaps and Quest Mobile filling them */
.journey { display: grid; gap: var(--space-8); }
.journey figcaption { max-width: 60ch; color: var(--ink-muted); }

.journey__readout { display: grid; gap: var(--space-3); }
.journey__readout p { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.journey__readout .t-label { color: var(--ink-muted); }
p.journey__odo { display: grid; gap: var(--space-1); justify-content: start; padding-top: 0; border-top: 0; }
.journey__mile { font: 500 64px/1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.journey__quest { display: inline-flex; align-items: center; gap: var(--space-2); }
.journey__quest:not(.is-live) .dot { display: none; }

.journey__chart { --track: 8px; position: relative; display: grid; gap: var(--space-2); container-type: inline-size; }
.journey__chart .t-label { color: var(--ink-muted); }
/* Everything ahead of the car is dimmed: a hard-edged mask at the current mile. */
.journey__line { position: relative; height: var(--track); margin-bottom: var(--space-4); --ahead: calc(var(--mile) / 120 * 100%); mask-image: linear-gradient(to right, #000 var(--ahead), #0005 var(--ahead)); }
.journey__line::before { content: ""; position: absolute; inset: calc(50% - 1px) 0 auto; height: 2px; background: var(--border); }
.journey__line span { position: absolute; top: 0; bottom: 0; left: calc(var(--from) / 120 * 100%); width: calc((var(--to) - var(--from)) / 120 * 100%); }
.journey__line--yours span { background: var(--ink-muted); }
.journey__line--quest span { background: var(--ink); }
.journey__stops { position: relative; height: var(--space-8); border-top: 1px solid var(--border); color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.journey__stops li { position: absolute; top: var(--space-2); left: calc(var(--at) / 120 * 100%); transform: translateX(-50%); white-space: nowrap; }
.journey__stops li:first-child { transform: none; }
.journey__stops li:last-child { transform: translateX(-100%); }
/* The readout names the stops, so a narrow chart drops the labels that would collide: Reading first, then the middle ones. */
@container (max-width: 519px) { .journey__stops li:nth-child(4) { display: none; } }
@container (max-width: 399px) { .journey__stops li:not(:first-child, :last-child) { display: none; } }
.journey__cursor { position: absolute; top: 0; bottom: var(--space-8); left: calc(var(--mile) / 120 * 100%); width: 2px; margin-left: -1px; background: var(--ink); }
.journey__train { position: absolute; bottom: 0; width: 16px; height: 16px; max-width: none; box-sizing: content-box; left: 50%; translate: -50% 0; padding: 0 3px; background: var(--night); color: var(--ink); } /* rides the route line with the cursor */

.moments { display: grid; gap: var(--space-8); }
@media (min-width: 800px) { .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.moment { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-6); border-top: 1px solid var(--border); }
.moment p { max-width: 30em; color: var(--ink-muted); }

/* Signature moment: the Night panel grows from a card to the full width as it scrolls in. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    #journey { animation: panel-grow linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
}
@keyframes panel-grow { from { clip-path: inset(0 max(var(--space-4), 5vw) round var(--radius-lg)); } to { clip-path: inset(0 0 round 0); } }

/* Photo band. Placeholder until the photograph arrives: a dashed frame says so. */
.photo { display: grid; place-content: center; justify-items: center; gap: var(--space-4); min-height: clamp(320px, 50vw, 680px); padding: var(--space-8) var(--space-6); text-align: center; }
.photo[data-placeholder] { outline: 1px dashed var(--border-control); outline-offset: calc(-1 * var(--space-4)); }
.photo figcaption { max-width: 40ch; color: var(--ink-muted); }

/* Reviews: a full-width row of cards that drifts left to right, like the ticker. It stops on hover, on focus and with its own pause button, and stands still (and scrolls by hand) with reduced motion. */
.reviews { overflow-x: clip; }
.reviews__head { display: grid; justify-items: center; gap: var(--space-6); text-align: center; }
.reviews__faces { display: flex; }
.reviews__faces li { width: 44px; height: 44px; margin-left: calc(-1 * var(--space-3)); border: 2px solid var(--surface); border-radius: 50%; background: var(--mint-bright); }
.reviews__faces li:first-child { margin-left: 0; }
.reviews__faces li:nth-child(even) { background: var(--night); }
.reviews__faces li:nth-child(3) { background: var(--white); }
.reviews__row { margin-top: var(--space-14); }
.reviews__row:focus-visible { outline-offset: -2px; }
/* shortcut: two copies loop seamlessly on screens up to about 2080px wide; add a third copy (and move -33.333%) if wider screens matter. */
.reviews__track { display: flex; width: max-content; }
.reviews__list { display: flex; gap: var(--space-4); padding-right: var(--space-4); }
/* A flex row centres the button the same in every browser (Safari lays out a grid <button> differently). */
.reviews__controls { display: flex; justify-content: center; margin-top: var(--space-6); }
.reviews__toggle { height: 44px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--border-control); }
.reviews__toggle:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .reviews__track { animation: drift-right 60s linear infinite; }
  .reviews.is-paused .reviews__track, .reviews__row:is(:hover, :focus-visible) .reviews__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews__row { overflow-x: auto; padding: 0 var(--space-6) var(--space-4); scrollbar-width: thin; scrollbar-color: var(--pine) transparent; }
  .reviews__list[aria-hidden] { display: none; }
  .reviews__controls { display: none; }
}
@keyframes drift-right { from { transform: translateX(-50%); } }
.review { flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); width: min(78vw, 400px); min-height: 260px; padding: var(--space-6); border-radius: var(--radius-lg); }
.review--bright { background: var(--mint-bright); }
.review--white { background: var(--white); }
.review__quote { font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
.review__by { display: grid; font-weight: 600; }
.review__by span { color: var(--ink-muted); font-weight: 400; }

/* Plans: Mint cards on Night */
.plans { display: grid; gap: var(--space-6); }
/* Subgrid lines up headlines, features and prices across the two cards. */
@media (min-width: 720px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); }
  .plans .qm-plan { grid-row: span 4; grid-template-rows: subgrid; }
}
.plans .qm-plan { max-width: none; align-content: start; }

/* FAQ: heading and a way to get in touch beside white question rows */
.faq-grid { display: grid; gap: var(--space-8); grid-template-areas: "title" "faq" "aside"; }
.faq-grid__title { grid-area: title; }
@media (min-width: 960px) { .faq-grid__title { font-size: clamp(38px, 5vw, 64px); } }
.faq-grid__aside { grid-area: aside; display: grid; gap: var(--space-6); justify-items: start; align-content: start; }
.faq-grid__aside p { max-width: 24em; color: var(--ink-muted); }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "title faq" "aside faq"; column-gap: var(--space-14); }
}
.faq { grid-area: faq; display: grid; gap: var(--space-2); align-content: start; }
.faq details { padding-inline: var(--space-6); border-radius: var(--radius-md); background: var(--surface-raised); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-block: var(--space-6); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.faq details p { padding-bottom: var(--space-6); color: var(--ink-muted); font-size: 18px; line-height: 28px; }

/* Closing sign-up: the bright band again, with the form on Mint */
.closing { background: var(--mint-bright); }
.closing__grid { display: grid; gap: var(--space-8); }
@media (min-width: 960px) { .closing__grid { grid-template-columns: minmax(0, 1fr) 520px; column-gap: var(--space-14); align-items: center; } }

/* Scroll reveals: single blocks rise in; plans and questions come in one after another. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.plans, .faq),
  .js :is(.plans, .faq)[data-reveal] > * { transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js [data-reveal]:not(.plans, .faq):not(.is-in),
  .js :is(.plans, .faq)[data-reveal]:not(.is-in) > * { opacity: 0; transform: translateY(16px); }
  .js [data-reveal] > :nth-child(2) { --i: 1; }
  .js [data-reveal] > :nth-child(3) { --i: 2; }
  .js [data-reveal] > :nth-child(4) { --i: 3; }
  .js [data-reveal] > :nth-child(5) { --i: 4; }
  .js [data-reveal] > :nth-child(6) { --i: 5; }
  .js [data-reveal] > :nth-child(7) { --i: 6; }
  .js .moment:nth-child(2) { --i: 1; }
  .js .moment:nth-child(3) { --i: 2; }
}

/* Footer: a closing line, the links in columns, then the logo set large */
.site-footer__inner { display: grid; gap: var(--space-14); padding-block: var(--space-14) var(--space-8); }
.site-footer__top { display: grid; gap: var(--space-8); }
@media (min-width: 800px) { .site-footer__top { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-14); } }
.site-footer__line { max-width: 12em; font: 400 clamp(26px, 3.4vw, 40px)/0.92 var(--font-display); letter-spacing: -0.07em; text-wrap: balance; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: var(--space-8) var(--space-14); }
@media (min-width: 560px) { .site-footer__cols { grid-template-columns: repeat(3, auto); } }
.site-footer__cols h2 { margin-bottom: var(--space-2); color: var(--ink-muted); }
.site-footer__cols a, .site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__networks { color: var(--ink-muted); }
.site-footer__logo { display: block; }
.site-footer__logo img { width: 100%; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--ink-muted); }
.site-footer__bottom a { color: var(--ink); }

/* Privacy, terms and contact: one reading column. */
.page { display: grid; gap: var(--space-4); align-content: start; }
.page > :not(h1) { max-width: 36em; } /* about 75 characters a line */
.page h2 { margin-top: var(--space-6); }
.page ul { display: grid; gap: var(--space-2); padding-left: 1.25em; list-style: disc; }
.page__updated { color: var(--ink-muted); }
.page__fig { font-family: var(--font-mono); }
.contact { margin-top: var(--space-4); background: var(--mint-bright); }
.contact .join__form { gap: var(--space-4); }
.contact__field { display: grid; gap: var(--space-2); }
.contact__message { height: auto; min-height: 160px; padding-block: var(--space-3); resize: vertical; }
.contact .qm-btn { justify-self: start; height: 48px; }
