/* gora marketing site — "Golden-hour editorial". Light theme only.
   Every colour, radius, space and shadow comes from the tokens below. */

/* Self-hosted fonts (no request to Google). Built from github.com/google/fonts
   variable TTFs, cut to the weights this file uses and the Latin range.
   Licence: SIL OFL 1.1, see assets/fonts/*-OFL.txt. */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-latin-opsz-wght-600-700.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-latin-wght-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --terracotta: #C9442E;
  --coral: #F06A4F;          /* illustration only, never text */
  --lagoon: #0F5257;
  --gold: #F2B33D;
  --gold-edge: #B87D0B;

  /* Surfaces */
  --sand: #FBF7F2;
  --white: #FFFFFF;
  --dune: #F3ECE3;
  --border: #EDE4D8;

  /* Text */
  --ink: #1E2326;
  --slate: #5E6A70;

  /* Semantic */
  --palm: #2E7D5B;
  --monsoon: #9A5B00;
  --monsoon-tint: #FFF1D6;
  --crimson: #B42318;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radii */
  --r-input: 12px;
  --r-card: 20px;
  --r-sheet: 28px;
  --r-pill: 999px;

  /* Spacing */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --section: 64px;

  /* Elevation */
  --shadow-card: 0 6px 20px rgba(30, 35, 38, 0.08);
  --shadow-cta: 0 6px 16px rgba(201, 68, 46, 0.28);

  --focus: 0 0 0 3px var(--sand), 0 0 0 5px var(--lagoon);
  --max: 1200px;
  --nav-h: 72px;

  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --section: 96px; }
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s4)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--lagoon); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-input); }

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 100;
  padding: var(--s3) var(--s4);
  background: var(--white);
  color: var(--lagoon);
  font-weight: 600;
  border-radius: var(--r-input);
}
.skip-link:focus-visible { top: var(--s3); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s4);
}
@media (min-width: 768px) { .container { padding: 0 var(--s6); } }

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 20px; height: 20px; }

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

.display, .h1, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.display { font-size: 32px; line-height: 38px; letter-spacing: -0.5px; }
.h1 { font-size: 26px; line-height: 32px; letter-spacing: -0.4px; font-weight: 600; }
.h2 { font-size: 20px; line-height: 26px; letter-spacing: -0.2px; font-weight: 600; }
.title { font-size: 17px; line-height: 22px; font-weight: 700; margin: 0; }
.body { font-size: 15px; line-height: 22px; margin: 0; }
.label { font-size: 13px; line-height: 18px; font-weight: 600; margin: 0; }
.caption { font-size: 12px; line-height: 16px; color: var(--slate); margin: 0; }
.lede { font-size: 17px; line-height: 26px; color: var(--slate); margin: 0; }

.hero .display { font-size: 40px; line-height: 44px; letter-spacing: -0.5px; }
@media (min-width: 768px) {
  .hero .display { font-size: 56px; line-height: 60px; }
  .h1 { font-size: 36px; line-height: 42px; letter-spacing: -0.5px; }
}
@media (min-width: 1280px) {
  .hero .display { font-size: 68px; line-height: 72px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin: 0 0 var(--s3);
}

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 52px;
  padding: 0 var(--s5);
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.2s ease;
}
.btn:focus-visible { border-radius: var(--r-pill); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { color: var(--white); transform: translateY(-1px); }
.btn--primary:focus-visible { box-shadow: var(--shadow-cta), var(--focus); }

.btn--outline {
  background: transparent;
  color: var(--lagoon);
  border-color: var(--lagoon);
}
.btn--outline:hover { background: var(--dune); color: var(--lagoon); }

.btn--sm { min-height: 44px; padding: 0 var(--s4); font-size: 14px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--dune);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.chip--selected { background: var(--lagoon); color: var(--white); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: var(--s1) 10px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: var(--nav-h);
}
.nav__links {
  display: none;
  gap: var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s3);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--r-pill);
}
.nav__links a:hover { background: var(--dune); color: var(--ink); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* Nav CTA steps aside while another Terracotta CTA is on screen
   (one Terracotta CTA per viewport). JS toggles the class. */
.nav__cta { transition: opacity 0.2s ease, visibility 0.2s ease; }
.nav__cta.is-hidden { opacity: 0; visibility: hidden; }

/* ---------- Logo lockup ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;          /* clear space handled by padding below */
  padding: 0;
  text-decoration: none;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo img { width: 44px; height: 44px; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--ink);
}

/* ---------- Photos ---------- */

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--dune);
}
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section__head { max-width: 640px; margin-bottom: var(--s6); }
.section__head .lede { margin-top: var(--s3); }

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

.hero { padding: var(--s6) 0 calc(var(--section) + 48px); }
.hero__grid { display: grid; gap: var(--s6); align-items: center; }
.hero__copy .lede { margin-top: var(--s4); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__actions .btn { flex: 0 0 auto; } }
.hero__platform { margin-top: var(--s3); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s5);
}

.hero__visual {
  position: relative;
  overflow: visible;
  border-radius: var(--r-sheet);
  aspect-ratio: 4 / 5;
  min-height: 460px;
  box-shadow: var(--shadow-card);
}
.hero__visual > img { border-radius: var(--r-sheet); object-position: 50% 50%; }

@media (min-width: 900px) {
  .hero { padding-top: var(--section); }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero__visual { aspect-ratio: 5 / 6; }
}

/* ---------- Device frame (real app screenshots) ---------- */

.device {
  margin: 0;
  padding: 8px;
  background: var(--ink);
  border-radius: 44px;
  box-shadow: 0 20px 40px rgba(30, 35, 38, 0.22);
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}
.device--hero {
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: -64px;
  width: min(250px, 54%);
}
@media (min-width: 900px) {
  .device--hero { right: auto; left: -48px; bottom: -48px; width: 260px; }
}

/* ---------- Feature cards ---------- */

.features {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, 1fr); gap: var(--s5); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(6, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.feature { display: flex; flex-direction: column; }
.feature .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.feature__body { padding: var(--s5); display: grid; gap: var(--s2); }
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--dune);
  color: var(--lagoon);
  margin-bottom: var(--s1);
}
.feature__body .body { color: var(--slate); }

@media (min-width: 1100px) {
  .feature { grid-column: span 2; }
  .feature--wide { grid-column: span 3; }
  .feature--wide .photo { aspect-ratio: 16 / 8; }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.step {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: var(--s5);
  display: grid;
  gap: var(--s3);
  align-content: start;
}
.step__label {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--lagoon);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}
.step .body { color: var(--slate); }
.step__chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s1); }

/* ---------- Rating strip ---------- */

.rating {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: var(--s5);
  display: grid;
  gap: var(--s5);
}
@media (min-width: 768px) {
  .rating { grid-template-columns: repeat(3, 1fr); padding: var(--s6); }
  .rating__item + .rating__item { border-left: 1px solid var(--border); padding-left: var(--s5); }
}
.rating__item { display: grid; gap: var(--s2); }
.rating__score {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}
.rating__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.5px;
}
.stars { display: inline-flex; gap: 2px; }
.star {
  width: 22px;
  height: 22px;
  fill: var(--gold);
  stroke: var(--gold-edge);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.star--empty { fill: var(--white); }

/* ---------- Safety ---------- */

.safety {
  display: grid;
  gap: var(--s5);
  align-items: center;
}
@media (min-width: 900px) { .safety { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.safety__lede { margin-top: var(--s3); }
.safety__screen { width: min(260px, 70%); justify-self: center; }
.list-check { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.list-check li { display: flex; gap: var(--s3); align-items: flex-start; }
.list-check .icon { color: var(--lagoon); }
.list-check--tight { margin-top: var(--s2); gap: var(--s2); }

/* ---------- Translate spotlight and smaller feature cards ---------- */

.spotlight {
  display: grid;
  gap: var(--s5);
  padding: var(--s5);
  background: var(--white);
  border: 1.5px solid var(--lagoon);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-card);
}
.spotlight__head .lede { margin-top: var(--s3); }
.spotlight__list { margin-top: 0; align-content: center; }
@media (min-width: 900px) {
  .spotlight { grid-template-columns: 1fr 1fr; gap: 56px; padding: var(--s6); }
}

.minis { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .minis { grid-template-columns: repeat(2, 1fr); gap: var(--s5); } }
@media (min-width: 1100px) { .minis { grid-template-columns: repeat(3, 1fr); } }
.mini { padding: var(--s5); display: grid; gap: var(--s2); align-content: start; }
.mini > .body { color: var(--slate); }

.also { margin-top: var(--s6); }
.also__list { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip--link { min-height: 44px; color: var(--lagoon); }
.chip--link:hover { background: var(--border); color: var(--ink); }

/* ---------- Pro ---------- */

.pro {
  display: grid;
  gap: var(--s6);
  align-items: center;
}
@media (min-width: 900px) { .pro { grid-template-columns: 1fr 1fr; gap: 56px; } }
.plan {
  background: var(--white);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-card);
  padding: var(--s5);
  border: 1.5px solid var(--border);
}
@media (min-width: 768px) { .plan { padding: var(--s6); } }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin: var(--s4) 0 var(--s1);
}
.plan__price .display { font-size: 36px; line-height: 42px; }
.plan ul { list-style: none; margin: var(--s5) 0; padding: 0; display: grid; gap: var(--s3); }
.plan li { display: flex; gap: var(--s3); align-items: flex-start; }
.plan li .icon { color: var(--palm); }
.plan .btn { width: 100%; margin-top: auto; }
.plan { display: flex; flex-direction: column; }
.plan--best { border-color: var(--terracotta); }
.plans { display: grid; gap: var(--s4); align-items: stretch; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(2, 1fr); gap: var(--s5); max-width: 880px; margin: 0 auto; } }
@media (min-width: 1024px) { .plans .plan { padding: var(--s5); } }
.plan__lead { margin-top: var(--s5); }
.plan .plan__lead + ul { margin-top: var(--s3); }

/* Gora Pro billing switch: native radios (arrow keys work), styled as a segmented control.
   The checked radio shows only the matching [data-billing] price, caption and button text. */
.billing { display: flex; gap: var(--s1); margin-top: var(--s4); padding: var(--s1); border-radius: var(--r-pill); background: var(--dune); }
.billing label {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s3);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}
.billing .badge { white-space: nowrap; }
.billing__input[value="yearly"]:checked ~ .billing label[for="billing-yearly"],
.billing__input[value="monthly"]:checked ~ .billing label[for="billing-monthly"] { background: var(--lagoon); color: var(--white); }
.billing__input[value="yearly"]:focus-visible ~ .billing label[for="billing-yearly"],
.billing__input[value="monthly"]:focus-visible ~ .billing label[for="billing-monthly"] { box-shadow: var(--focus); }
.billing__input[value="yearly"]:checked ~ * [data-billing="monthly"],
.billing__input[value="monthly"]:checked ~ * [data-billing="yearly"] { display: none; }
.plans__note { margin: var(--s5) auto 0; max-width: 880px; }

.faq { max-width: 720px; display: grid; gap: var(--s3); }
.faq .h1 { margin-bottom: var(--s2); }
.faq__item { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.faq__item summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: var(--s3) var(--s5);
  cursor: pointer;
}
.faq__item summary { list-style: none; gap: var(--s3); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; margin-left: auto; color: var(--lagoon); font-size: 22px; font-weight: 600; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:focus-visible { border-radius: var(--r-card); }
.faq__item .body { padding: 0 var(--s5) var(--s5); color: var(--slate); }
.plan .caption { margin-top: var(--s3); text-align: center; }

/* ---------- Final CTA band ---------- */

.cta-band {
  background: var(--white);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.2fr 1fr; } }
.cta-band__copy { padding: var(--s6) var(--s5); display: grid; gap: var(--s4); align-content: center; }
@media (min-width: 768px) { .cta-band__copy { padding: 56px; } }
.cta-band .photo { border-radius: 0; min-height: 260px; }
.store-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ---------- Footer ---------- */

.footer {
  background: var(--dune);
  margin-top: var(--section);
  padding: 56px 0 var(--s6);
}
.footer__grid { display: grid; gap: var(--s6); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__brand .body { color: var(--slate); margin-top: var(--s3); max-width: 300px; }
.footer h2 { margin: 0 0 var(--s2); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.footer li a:hover { color: var(--lagoon); text-decoration: underline; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}


/* ---------- Section variants ---------- */

.section--flush-top { padding-top: 0; }
.section--tint { background: var(--dune); }
.section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
}
.section__head--row > div { max-width: 640px; }

.page-head { padding: 56px 0 var(--s6); }
.page-head .lede { margin-top: var(--s3); max-width: 560px; }
@media (min-width: 768px) {
  .page-head { padding: 80px 0 48px; }
  .page-head .display { font-size: 52px; line-height: 56px; }
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s2);
  font-weight: 700;
  font-size: 15px;
  color: var(--lagoon);
}

/* ---------- Full-bleed photo band ---------- */

.bleed {
  position: relative;
  min-height: clamp(420px, 56vw, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dune);
}
.bleed__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bleed__inner { position: relative; padding-bottom: var(--s6); padding-top: 160px; }
@media (min-width: 768px) { .bleed__inner { padding-bottom: 56px; } }
.bleed__card {
  max-width: 460px;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: var(--s5);
  display: grid;
  gap: var(--s3);
}
@media (min-width: 768px) { .bleed__card { padding: var(--s6); } }
.bleed__card .eyebrow { margin: 0; }
.bleed__card .body { color: var(--slate); }
.bleed--cta { align-items: center; }
.bleed--cta .bleed__inner { padding-top: 56px; padding-bottom: 56px; }
main:has(> .bleed:last-child) + .footer { margin-top: 0; }

/* ---------- Highlights ---------- */

.highlights { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .highlights { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.highlight { display: flex; flex-direction: column; }
.highlight__screen {
  height: 300px;
  overflow: hidden;
  background: var(--dune);
  display: flex;
  justify-content: center;
  padding-top: var(--s6);
}
.highlight__screen .device { width: 220px; height: fit-content; }
.highlight__body { padding: var(--s5); display: grid; gap: var(--s2); }
.highlight__body .body { color: var(--slate); }

/* ---------- Screens gallery ---------- */

.screens {
  display: flex;
  gap: var(--s5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--s2) max(var(--s4), calc((100vw - var(--max)) / 2 + var(--s6))) var(--s5);
  scroll-padding: 0 max(var(--s4), calc((100vw - var(--max)) / 2 + var(--s6)));
}
.screens:focus-visible { border-radius: 0; }
.screen {
  flex: 0 0 220px;
  margin: 0;
  scroll-snap-align: start;
  display: grid;
  gap: var(--s3);
  justify-items: center;
}
.screen .device { width: 100%; }
@media (min-width: 1280px) { .screen { flex-basis: 240px; } }

/* ---------- Next band ---------- */

.next-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5);
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .next-band { padding: var(--s6); } }

/* ---------- Legal (long-form text) ---------- */

.legal { max-width: 720px; }
.legal > * + * { margin-top: var(--s4); }
.legal .h2 { margin-top: var(--s6); }
.legal .h2:first-child { margin-top: 0; }
.legal .title { margin-top: var(--s5); }
.legal p, .legal li { margin: 0; }
.legal ul { padding-left: var(--s5); }
.legal li + li { margin-top: var(--s2); }
.legal .caption { margin-top: var(--s6); }

.legal__table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  background: var(--white);
}
.legal table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.legal th, .legal td { padding: var(--s3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal th { font-weight: 600; background: var(--dune); }
.legal tbody tr:last-child td { border-bottom: 0; }
.plans .plan .caption { text-align: left; margin-top: 0; }
.plans .plan__price { margin-top: var(--s3); }
.chip--tag { min-height: 24px; padding: 0 10px; font-size: 12px; width: fit-content; background: var(--gold); color: var(--ink); vertical-align: middle; }

/* ---------- Feature story (features.html) ---------- */

.chip--free { min-height: 24px; padding: 0 10px; font-size: 12px; width: fit-content; background: var(--lagoon); color: var(--white); vertical-align: middle; }

.story-hero { padding: 56px 0 var(--section); }
.story-hero__grid { display: grid; gap: var(--s6); align-items: end; }
.story-hero__copy .lede { margin-top: var(--s4); max-width: 560px; }
@media (min-width: 768px) {
  .story-hero { padding-top: 80px; }
  .story-hero .display { font-size: 52px; line-height: 56px; }
}
@media (min-width: 1024px) {
  .story-hero__grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .story-hero .display { font-size: 64px; line-height: 68px; }
}

.crew-facts { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s3); max-width: 520px; }
.crew-facts li { display: flex; gap: var(--s3); align-items: flex-start; }
.crew-facts .icon { color: var(--lagoon); }

.chapter-nav {
  background: var(--white);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-card);
  padding: var(--s5);
}
.chapter-nav .label { color: var(--slate); }
.chapter-nav__list { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; }
.chapter-nav__list li + li { border-top: 1px solid var(--border); }
.chapter-nav__list a {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 56px;
  padding: var(--s2) var(--s2);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r-input);
}
.chapter-nav__list a:hover { background: var(--dune); color: var(--ink); }
.chapter-nav__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 26px;
  color: var(--lagoon);
  min-width: 28px;
}
.chapter-nav__kicker { display: block; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.chapter-nav__title { display: block; font-size: 15px; line-height: 20px; font-weight: 700; }

/* A chapter opens with a full-width photo band and its story card. */
.chapter__band {
  position: relative;
  min-height: clamp(380px, 46vw, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dune);
}
.chapter__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter__band > .container { position: relative; padding-top: 140px; padding-bottom: var(--s6); }
@media (min-width: 768px) { .chapter__band > .container { padding-bottom: 56px; } }
.chapter__card {
  max-width: 560px;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: var(--s5);
  display: grid;
  gap: var(--s3);
}
@media (min-width: 768px) { .chapter__card { padding: var(--s6); } }
.chapter__card .eyebrow { margin: 0; }
.chapter__num {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: 0 var(--s2);
  border-radius: var(--r-pill);
  background: var(--lagoon);
  color: var(--white);
  letter-spacing: 0;
  font-size: 12px;
}

.chapter__body { padding-top: var(--section); padding-bottom: var(--s6); }
.chapter__scenes { display: grid; gap: 56px; }
.chapter__stage { display: none; }

/* A scene: the copy and its screenshot. Stacked on phones. */
.scene { display: grid; gap: var(--s5); justify-items: center; }
.scene__text { width: 100%; max-width: 560px; }
.scene__text .h2 { margin-bottom: var(--s2); }
.scene__flag { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); font-size: 13px; font-weight: 700; color: var(--slate); }
.scene__shot { width: min(240px, 66%); }
.scene--hero .h2 { font-size: 26px; line-height: 32px; }

.points { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s4); }
.points li { display: flex; gap: var(--s3); align-items: flex-start; }
.points__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--dune);
  color: var(--lagoon);
}
.points .title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: 16px; }
.points .body { color: var(--slate); margin-top: 2px; }

@media (min-width: 768px) {
  .scene { grid-template-columns: 1fr 260px; gap: 48px; align-items: center; justify-items: stretch; }
  .scene:nth-child(even) .scene__text { order: 2; }
  .scene__shot { width: 100%; }
  .scene--hero .h2 { font-size: 32px; line-height: 38px; }
}

/* Wide screens with the script: one sticky phone per chapter swaps as scenes scroll in. */
@media (min-width: 1024px) {
  .story-js .chapter__body { display: grid; grid-template-columns: 1fr 320px; gap: 72px; align-items: start; }
  .story-js .chapter__scenes { gap: 0; }
  .story-js .scene { display: flex; align-items: center; min-height: 78vh; padding: var(--s6) 0 var(--s6) var(--s5); border-left: 3px solid var(--border); transition: border-color 0.3s ease; }
  .story-js .scene.is-active { border-left-color: var(--lagoon); }
  .story-js .scene__shot { display: none; }
  .story-js .chapter__stage:not([hidden]) {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 32px);
  }
  .stage__device {
    position: relative;
    width: min(320px, calc((100vh - var(--nav-h) - 64px) * 0.44));
    margin-left: auto;
    aspect-ratio: 660 / 1434;
    box-sizing: content-box;
  }
  .stage__device .stage__img {
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .stage__device .stage__img.is-active { opacity: 1; visibility: visible; }
}

.teaser { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .teaser { grid-template-columns: repeat(2, 1fr); gap: var(--s5); } }
.teaser .plan ul { margin-bottom: 0; }
.teaser .plan .caption { text-align: left; margin-top: var(--s2); }
.next-band__caption { margin-top: var(--s1); }

/* ---------- Home: the trip in five chapters ---------- */

.trip-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 640px) { .trip-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .trip-strip { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
@media (min-width: 1100px) { .trip-strip { grid-template-columns: repeat(5, 1fr); gap: var(--s4); } }
.trip-strip > li { display: flex; }
.trip-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.trip-card:hover { color: var(--ink); transform: translateY(-2px); }
.trip-card:focus-visible { border-radius: var(--r-card); box-shadow: var(--shadow-card), var(--focus); }
.trip-card__screen {
  display: flex;
  justify-content: center;
  height: 240px;
  overflow: hidden;
  padding-top: var(--s5);
  background: var(--dune);
}
.trip-card__screen .device { display: block; width: 180px; height: fit-content; }
.trip-card__body { display: grid; gap: var(--s2); padding: var(--s4) var(--s5) var(--s5); }
.trip-card__kicker { display: flex; align-items: center; gap: var(--s2); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lagoon); }
.trip-card .body { color: var(--slate); }
