/* foray.games. Colours are the app's Tangerine tokens (app/src/theme/tokens.ts)
   as custom properties; the type scale and spacing are the canvas's
   (design/Foray Web.dc.html, 1440px) made fluid. One scheme only: the site is
   brand, not a settings screen. Thai rules follow CLAUDE.md, "Thai". */

:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --surface-sunk: #fff6ea;
  --surface-tint: #f6e7d5;
  --track: #f1e3d2;
  --border: #efe2d2;
  --border-strong: #e0cfbb;
  --border-soft: #f4e9db;

  --ink: #1d1a16;
  --ink-body: #57504a;
  --ink-muted: #7a6f61;
  --ink-faint: #9b8f7f;

  --accent: #c2562f;
  --accent-bright: #e2622a;
  --accent-deep: #9c4324;
  --accent-tint: #ffe6d6;
  --on-accent: #fffaf2;

  --signal: #0f7d73;

  --dark: #1d1a16;
  --dark-2: #35302a;
  --dark-border: #4a433b;
  --on-dark: #fffaf2;
  --on-dark-muted: #b3a898;
  --on-dark-link: #e4dbcd;

  --stripe-a: #f1e3d2;
  --stripe-b: #f8eddd;

  --sans: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
  --section: clamp(48px, 6vw, 80px);
  --radius-card: 20px;
  --radius-band: 24px;
  --shadow: 0 18px 48px rgba(29, 26, 22, 0.1);

  --title-weight: 800;
  --title-track: -0.03em;
  --body-lh: 1.6;
  --title-lh: 1.08;
}

/* Plus Jakarta Sans has no Thai glyphs; Plex Sans Thai steps in for the whole
   page, with Thai leading and no tracking. Plex Sans Thai has no 800. */
html[lang='th'] {
  --sans: 'IBM Plex Sans Thai', 'Plus Jakarta Sans', system-ui, sans-serif;
  --title-weight: 700;
  --title-track: 0;
  --body-lh: 1.7;
  --title-lh: 1.35;
}
/* Plex Mono has no Thai either. Labels that carry Thai text (eyebrows,
   section labels, footer heads, "ขั้นตอนที่ 01") drop to the Thai sans with
   no tracking; the step-number squares are digits only and stay mono. The
   wordmark is brand and stays Latin. */
html[lang='th'] .eyebrow,
html[lang='th'] .label-mono,
html[lang='th'] .foot-head,
html[lang='th'] .mono-step {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  font-size: 12px;
}
html[lang='th'] .eyebrow.mono-step {
  font-size: 13px;
}
html[lang='th'] .wordmark {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
/* Grid and flex children default to min-width:auto, which lets a nowrap line
   push the page wider than the phone. Nothing on the site needs that. */
.hero > *,
.step-row > *,
.split > *,
.two-col > *,
.why > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.band-accent > *,
.band-sunk > *,
.band-dashed > *,
.handoff > *,
.page-head-row > * {
  min-width: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-deep);
}
p {
  margin: 0;
  color: var(--ink-body);
  text-wrap: pretty;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-track);
  line-height: var(--title-lh);
  text-wrap: pretty;
}
strong {
  color: var(--ink);
  font-weight: 700;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
}
.ic {
  flex: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--on-dark);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.section-tight {
  padding-bottom: var(--section);
}
.muted {
  color: var(--ink-muted);
}
.small {
  font-size: 13px;
}
.hint {
  font-size: 14px;
  margin-top: 14px;
}
.empty {
  padding: 22px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  background: var(--surface-sunk);
  font-size: 15px;
}

/* ---- type scale ------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-muted {
  color: var(--ink-muted);
}
.eyebrow-bright {
  color: var(--accent-bright);
}
.mono-step {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.label-mono {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 22px;
}
.h-hero {
  font-size: clamp(33px, 4.4vw, 62px);
  line-height: 1.12;
  letter-spacing: calc(var(--title-track) - 0.005em);
  display: flex;
  flex-direction: column;
}
html[lang='th'] .h-hero {
  line-height: 1.3;
}
.h-hero-sm {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: calc(var(--title-track) - 0.005em);
}
.h-page {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: calc(var(--title-track) - 0.005em);
}
.h-section {
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.08;
}
.h-band {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.1;
  color: #fff;
  max-width: 560px;
}
.h-band-dark {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
}
.h-handoff {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
  max-width: 560px;
}
.h-step-lg {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
}
.h-step {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}
.h-card {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.h-card-lg {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.h-city {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.h-sub {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.h-sub-sm {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.h-value {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
html[lang='th'] .h-hero-sm,
html[lang='th'] .h-page,
html[lang='th'] .h-section,
html[lang='th'] .h-band,
html[lang='th'] .h-band-dark,
html[lang='th'] .h-handoff,
html[lang='th'] .h-step-lg,
html[lang='th'] .h-step,
html[lang='th'] .h-card,
html[lang='th'] .h-card-lg,
html[lang='th'] .h-city,
html[lang='th'] .h-sub,
html[lang='th'] .h-value {
  line-height: var(--title-lh);
  letter-spacing: 0;
}
.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: var(--body-lh);
  color: var(--ink-body);
  max-width: 560px;
}
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 44px;
}
.sec-head .lead {
  max-width: 620px;
}
.sec-head.on-dark {
  max-width: 620px;
  gap: 14px;
  margin-bottom: 40px;
}
.sec-head.on-dark .h-section {
  color: var(--on-dark);
}

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 99px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn-md {
  padding: 16px 26px;
  font-size: 16px;
}
.btn-lg {
  padding: 17px 30px;
  font-size: 16px;
}
.btn-sm {
  padding: 12px 20px;
  font-size: 14px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}
.btn-secondary {
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.btn-dark:hover {
  background: var(--dark-2);
  color: var(--on-dark);
}
.btn-light {
  background: var(--bg);
  color: var(--accent);
}
.btn-light:hover {
  background: #fff;
  color: var(--accent-deep);
}
.btn-bright {
  background: var(--accent-bright);
  color: var(--ink);
}
.btn-bright:hover {
  background: #f07338;
  color: var(--ink);
}
.btn-ghost-light {
  border: 1.5px solid var(--dark-border);
  color: var(--on-dark);
}
.btn-ghost-light:hover {
  border-color: var(--on-dark);
  color: var(--on-dark);
}
.btn-outline-accent {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---- nav ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.brand:hover {
  color: var(--ink);
}
.tile {
  --tile: 32px;
  width: var(--tile);
  height: var(--tile);
  border-radius: calc(var(--tile) * 0.31);
  background: var(--accent-bright);
  color: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.wordmark {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark-accent {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-right: auto;
  margin-left: 12px;
}
.nav-links a,
.nav-right > span > a {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-body);
  line-height: 1;
}
.nav-links a:hover,
.nav-right > span > a:hover {
  color: var(--ink);
}
/* The page you are on: accent ink plus a terracotta rule under the label.
   Colour alone was too quiet to find at a glance, and colour alone is also
   not an indicator for anyone who cannot separate these two hues. */
.nav-links a,
.nav-right > span > a {
  position: relative;
  padding: 26px 0;
}
.nav-links a[aria-current='page'],
.nav-right > span > a[aria-current='page'] {
  color: var(--accent);
  font-weight: 700;
}
.nav-links a[aria-current='page']::after,
.nav-right > span > a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
/* On Download the call to action is the nav item, so it deepens instead. */
.nav-right > .btn[aria-current='page'] {
  background: var(--accent-deep);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-mobile-only {
  display: none;
}
.lang-switch a {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-muted);
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  line-height: 1;
}
.lang-switch a:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg:last-child {
  display: none;
}
.nav-toggle[aria-expanded='true'] svg:first-child {
  display: none;
}
.nav-toggle[aria-expanded='true'] svg:last-child {
  display: block;
}

/* ---- hero -------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(40px, 5.3vw, 76px);
  padding-bottom: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-tall {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(48px, 5.5vw, 80px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.hero-copy .btn-row {
  margin-top: 6px;
}
.hero-line {
  display: block;
}
.rotator {
  /* Plus Jakarta Sans's content area is 1.26em; a 1.12em line box clipped
     descenders and showed the previous item's tails. The window is 1.4em
     and hands the extra back as negative margin, so the rhythm holds. */
  --rot-stride: 1.12em;
  --rot-box: 1.4em;
  display: block;
  height: var(--rot-box);
  margin: calc((var(--rot-stride) - var(--rot-box)) / 2) 0;
  overflow: hidden;
  color: var(--accent);
}
html[lang='th'] .rotator {
  --rot-stride: 1.3em;
}
.rotator-track {
  display: block;
  transition: transform 0.6s cubic-bezier(0.62, 0, 0.2, 1);
  will-change: transform;
}
.rotator-item {
  display: block;
  height: var(--rot-box);
  line-height: var(--rot-box);
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -0.035em;
}
.hero-photo {
  position: relative;
  height: clamp(320px, 40vw, 580px);
  border-radius: var(--radius-band);
  overflow: hidden;
  background: var(--surface-tint);
}
.hero-dark .hero-copy .lead {
  color: var(--on-dark-muted);
}
.hero-dark h1 {
  color: var(--on-dark);
}
.hero-photo-dark {
  height: clamp(300px, 30vw, 440px);
  border-radius: 20px;
  background: var(--dark-2);
}
.hero-photo-dark .ph {
  --stripe-a: #35302a;
  --stripe-b: #3c362f;
}

/* ---- photos and placeholders ---------------------------------------------- */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px);
}

/* ---- bands and cards --------------------------------------------------- */
.band-white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.band-dark {
  background: var(--dark);
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(48px, 5vw, 72px);
}
.band-dark p {
  color: var(--on-dark-muted);
}
.hero-dark {
  padding-top: 0;
  padding-bottom: 0;
}
.band-accent {
  background: var(--accent);
  border-radius: var(--radius-band);
  padding: clamp(32px, 4vw, 60px) clamp(24px, 3.6vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.band-accent > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.band-accent p {
  color: var(--accent-tint);
  font-size: 17px;
  line-height: 1.55;
  max-width: 480px;
}
.band-accent .btn-row {
  flex: none;
}
.band-sunk {
  background: var(--surface-sunk);
  border: 1px solid var(--track);
  border-radius: var(--radius-band);
  padding: clamp(28px, 3.3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.band-sunk > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.band-sunk p {
  font-size: 16px;
  line-height: 1.55;
  max-width: 520px;
}
.band-sunk .btn {
  flex: none;
}
.band-dashed {
  margin-top: 36px;
  background: var(--surface-sunk);
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.band-dashed p {
  font-size: 15px;
  line-height: 1.55;
  max-width: 620px;
}
.band-dashed .btn {
  flex: none;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.band-white .card,
.two-col .card,
.tiles .card,
.grid-cities .card,
.grid-rows .row-city {
  background: var(--surface);
}
.card-photo {
  height: 200px;
  background: var(--surface-tint);
}
.card-photo-map {
  height: 220px;
  background: var(--track);
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card-body p {
  font-size: 14px;
  line-height: var(--body-lh);
}
.ic-accent {
  color: var(--accent);
  display: inline-flex;
}
.card-row {
  flex-direction: row;
  gap: 18px;
  padding: 28px;
}
.card-row > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.card-row p {
  font-size: 14px;
}
.ic-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--surface-sunk);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.card-dark {
  background: var(--dark) !important;
  border-color: var(--dark);
  padding: 24px;
  gap: 12px;
}
.card-dark h3 {
  color: var(--on-dark);
}
.card-dark p {
  color: var(--on-dark-muted);
  font-size: 14px;
}
.card-dark .btn {
  align-self: stretch;
  border-radius: 10px;
}
.card-sunk {
  background: var(--surface-sunk) !important;
  border-color: var(--track);
  padding: 28px;
  gap: 10px;
}
.card-sunk p,
.card-pad p {
  font-size: 14px;
}
.card-pad {
  padding: 28px;
  gap: 14px;
}
.card .btn-outline-accent {
  align-self: stretch;
  border-radius: 11px;
}

.grid-2,
.grid-3,
.grid-4,
.grid-6 {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.grid-6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.grid-rows {
  gap: 12px;
}
.grid-cities {
  margin-bottom: 44px;
}

/* ---- steps ------------------------------------------------------------- */
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step p {
  font-size: 14px;
}
.stepnum {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
}
.stepnum-last {
  background: var(--accent-bright);
  color: var(--ink);
}
.steps-long {
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(48px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4.4vw, 64px);
}
.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.step-row-flip .step-copy {
  order: 2;
}
.step-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-copy p {
  font-size: 16px;
  line-height: 1.65;
}
html[lang='th'] .step-copy p {
  line-height: var(--body-lh);
}
.step-photo {
  height: clamp(240px, 26vw, 380px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-tint);
}

/* App screenshots are portrait and these panels are landscape, so they stand
   on the bottom edge at full height instead of being cropped to fit. The
   padding is what stops them touching the top, and border-box makes the
   images' 100% resolve to the space left over. */
.step-shots {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 30px);
  padding: clamp(20px, 2.6vw, 34px) 20px 0;
  box-sizing: border-box;
}
.shot {
  height: 100%;
  width: auto;
  max-width: 44%;
  object-fit: contain;
  object-position: top;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 12px 34px rgba(29, 26, 22, 0.18);
}
.ph.shot {
  width: 45%;
  max-width: 200px;
}
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.chip {
  padding: 8px 13px;
  background: var(--surface-sunk);
  border: 1px solid var(--track);
  border-radius: 99px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.chip-row-sm .chip {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.inset {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.inset p {
  font-size: 14px;
  line-height: 1.5;
}
.inset-col {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  max-width: 460px;
}
.check {
  color: var(--signal);
  display: inline-flex;
  flex: none;
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 8px;
}
.checkrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}
.checkrow .check {
  margin-top: 2px;
}

/* ---- safety, handoff, split ------------------------------------------- */
.safety-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.safety-item h3 {
  color: var(--on-dark);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
.safety-item p {
  font-size: 14px;
}
.handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(48px, 5vw, 72px);
}
.handoff .btn-row {
  flex: none;
}
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.split-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.split-copy p {
  font-size: 16px;
  line-height: 1.65;
}
.split-photo {
  height: clamp(280px, 32vw, 460px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-tint);
}
.framed {
  border: 1px solid var(--border);
}

/* ---- quotes ------------------------------------------------------------ */
.quotes {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-band);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote-mark {
  color: var(--accent-bright);
}
.quote blockquote {
  margin: 0;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.3;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--surface-tint);
  flex: none;
}

/* ---- page heads ---------------------------------------------------------- */
.page-head {
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.page-head-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}
.page-head-wide .page-head-copy {
  max-width: 900px;
  padding-bottom: 8px;
}
.page-head-rule {
  border-bottom: 1px solid var(--border);
}
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.page-head-row .btn,
.page-head-row .btn-row {
  flex: none;
}
.page-head-center {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding-top: clamp(44px, 4.7vw, 68px);
  padding-bottom: clamp(36px, 3.6vw, 52px);
}
.page-head-center .page-head-copy {
  align-items: center;
  margin: 0 auto;
  gap: 16px;
}
.page-head-center .lead {
  max-width: 520px;
}
.city-hero + .page-head {
  padding-top: 36px;
  padding-bottom: 44px;
}
.city-hero + .page-head .page-head-copy {
  gap: 14px;
}
.section-flush {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---- cities -------------------------------------------------------------- */
.card-city {
  transition: transform 0.15s;
}
.card-city:hover {
  transform: translateY(-2px);
  color: inherit;
}
.card-city .card-photo {
  height: 180px;
}
.card-city .card-body {
  padding: 22px;
  gap: 8px;
}
.city-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-muted);
  background: var(--surface-sunk);
  border: 1px solid var(--track);
  white-space: nowrap;
}
.pill-signal {
  color: var(--signal);
  background: #e6efeb;
  border-color: #e6efeb;
}
.pill-accent {
  color: var(--accent);
}
.row-city {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.row-city-name {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}
.row-city .muted {
  font-size: 13px;
}
.city-hero {
  height: clamp(200px, 24vw, 340px);
  background: var(--surface-tint);
}
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}
.crumbs a {
  color: var(--ink-muted);
}
.crumbs strong {
  font-weight: 600;
}
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 44px;
  align-items: start;
}
.two-col-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.store-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
}
.store-thumb {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-tint);
  flex: none;
}
.store-name {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.verified {
  width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--signal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- blog ---------------------------------------------------------------- */
.card-feature-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: var(--radius-band);
  margin-bottom: 44px;
  background: var(--surface);
}
.card-feature-post .card-photo {
  height: 400px;
}
.card-feature-post .card-body {
  padding: 44px 40px;
  justify-content: center;
  gap: 16px;
}
.card-feature-post p {
  font-size: 16px;
  line-height: 1.65;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.post {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
}
.post:hover {
  color: inherit;
}
.post-photo {
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-tint);
  margin-bottom: 6px;
}
.post-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.post p {
  font-size: 14px;
}

/* ---- about --------------------------------------------------------------- */
.about-photo {
  height: clamp(240px, 29vw, 420px);
  border-radius: var(--radius-band);
  overflow: hidden;
  background: var(--surface-tint);
}
.why {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4.4vw, 64px);
}
.why-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-copy p {
  font-size: 16px;
  line-height: 1.75;
}
.why-lead {
  font-size: 19px !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
}
.values {
  gap: 40px;
}
.value {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.value p {
  font-size: 15px;
  line-height: 1.65;
}
.member {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
  line-height: 1.3;
}
.member .muted {
  font-size: 13px;
}
.member-photo {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-tint);
}

/* ---- download ------------------------------------------------------------ */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--on-dark);
}
.badge:hover {
  background: var(--dark-2);
  color: var(--on-dark);
}
.badge > span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.badge-small {
  font-size: 11px;
  color: var(--on-dark-muted);
}
.badge-big {
  font-size: 17px;
  font-weight: 700;
}
.qr-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.qr {
  width: 104px;
  height: 104px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.qr-inner {
  width: 76px;
  height: 76px;
  background: repeating-conic-gradient(var(--ink) 0% 25%, #fff 0% 50%) 0 / 13px 13px;
}
.phones {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.phone {
  width: clamp(150px, 17vw, 250px);
  /* The screenshots are 1080 x 2400, so the frame is too: anything else
     crops the top of the app or leaves a strip of background. */
  aspect-ratio: 1080 / 2400;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-tint);
  border: 1px solid var(--border);
}
.phone .shot {
  height: 100%;
  width: 100%;
  max-width: none;
  /* The frame is the screenshots' own aspect, so cover only absorbs the
     sub-pixel rounding that contain would show as a strip of background. */
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.phone-offset {
  margin-top: 44px;
}

/* ---- support ------------------------------------------------------------- */
.tiles {
  gap: 16px;
  padding-top: clamp(36px, 3.9vw, 56px);
}
.faq-tile {
  padding: 24px;
  gap: 8px;
  border-radius: 18px;
  color: inherit;
  transition: border-color 0.15s;
}
.faq-tile:hover {
  border-color: var(--border-strong);
  color: inherit;
}
.faq-tile .h-card {
  font-size: 17px;
}
.faq-group {
  scroll-margin-top: 90px;
}
.faq-list {
  border-radius: 18px;
}
.faq {
  border-bottom: 1px solid var(--border-soft);
}
.faq:last-child {
  border-bottom: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  color: var(--ink-muted);
  transition: transform 0.2s;
}
.faq[open] summary {
  font-weight: 700;
  font-size: 17px;
  padding-bottom: 10px;
}
.faq[open] summary svg {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq p {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.65;
}

/* ---- footer -------------------------------------------------------------- */
.footer {
  background: var(--dark);
  padding: 52px 0 34px;
  color: var(--on-dark-muted);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-2);
}
.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.brand-light {
  color: var(--on-dark);
}
.brand-light:hover {
  color: var(--on-dark);
}
.brand-light .tile {
  color: var(--ink);
}
.brand-light .wordmark {
  font-size: 16px;
}
.foot-blurb {
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 250px;
}
.foot-badges {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.foot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--dark-border);
  font-weight: 600;
  font-size: 12px;
  color: var(--on-dark);
}
.foot-badge:hover,
.foot-getapp:hover {
  color: var(--on-dark);
  border-color: var(--on-dark-muted);
}
.foot-getapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--dark-border);
  font-weight: 600;
  font-size: 12px;
  color: var(--on-dark);
  margin-top: 4px;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.foot-head {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1;
}
.foot-col a {
  font-size: 13px;
  line-height: 1.2;
  color: var(--on-dark-link);
}
.foot-col a:hover {
  color: var(--on-dark);
}
.foot-soon {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  font-size: 12px;
  color: var(--ink-muted);
}
.foot-legal {
  display: flex;
  align-items: center;
  gap: 22px;
}
.foot-legal a {
  color: var(--ink-muted);
  font-size: 12px;
}
.foot-legal a:hover {
  color: var(--on-dark);
}
.foot-legal .lang-switch a {
  border-color: var(--dark-border);
}

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .foot-grid .foot-col:nth-child(4),
  .foot-grid .foot-col:nth-child(5) {
    grid-column: span 1;
  }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-soft);
  }
  /* Stacked links: the underline would read as a divider, so the active
     item takes a bar down its leading edge instead. */
  .nav-links a {
    padding: 14px 0 14px 14px;
  }
  .nav-links a[aria-current='page']::after {
    left: 0;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 3px;
    height: auto;
  }
  .nav-mobile-only {
    display: flex;
    flex-direction: column;
  }
  .nav-mobile-only .lang-switch {
    padding-top: 14px;
  }
  .nav-mobile-only .lang-switch a {
    display: inline-block;
    border: 1px solid var(--border-strong);
    padding: 8px 12px;
    font-size: 13px;
  }
  .nav-desktop-only {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-right {
    gap: 10px;
  }
  .hero,
  .step-row,
  .split,
  .two-col,
  .why,
  .quotes,
  .card-feature-post {
    grid-template-columns: 1fr;
  }
  .step-row-flip .step-copy {
    order: 0;
  }
  /* Two screenshots side by side on a phone are unreadable, so the panel
     grows and they run off the bottom together. */
  .step-shots {
    height: 300px;
    gap: 14px;
  }
  .shot {
    max-width: 47%;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .band-accent,
  .band-sunk,
  .band-dashed,
  .handoff,
  .page-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .phones {
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-row {
    flex-direction: column;
  }
  .nav-right .btn {
    display: none;
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .foot-legal {
    flex-wrap: wrap;
    gap: 14px;
  }
  .btn-row .btn {
    width: 100%;
  }
  .card-feature-post .card-photo {
    height: 240px;
  }
  .card-feature-post .card-body {
    padding: 28px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rotator-track {
    transition: none;
  }
  .card-city:hover {
    transform: none;
  }
}
