/* Heyvie landing page
   Colours and type follow the Heyvie Brand Report v1.1 (tokens v0.2).
   Colour carries meaning: green = verified, orange = money held. The full-colour bands keep
   that rule too: the orange band is about payment protection, the green band about verification.
   Orange is never used for buttons or decoration. */

:root {
  /* Primitives */
  --navy-950: #10172A;
  --navy-900: #18213A;
  --navy-850: #1A2440;
  --navy-700: #2A3556;
  --cream-50: #FCF8F2;
  --cream-100: #F4EEE3;
  --cream-200: #E8E1D4;
  --white: #FFFFFF;
  --orange-500: #E2553A;  /* Escrow Orange: logo dot, money held (graphics) */
  --orange-700: #B5341B;  /* money-held text on light, and the payment band */
  --orange-300: #EC775F;  /* money-held text on dark */
  --green-500: #3E8E6A;   /* Verified Green: graphics only */
  --green-700: #2C6B4F;   /* verified text on light, and the safety band */
  --green-300: #55AE86;   /* verified text on dark */
  --green-50: #ECF3F0;
  --slate-600: #5B6070;
  --slate-300: #A9AEBC;

  /* Semantic: light */
  --bg: var(--cream-50);
  --bg-band: var(--cream-100);
  --surface: var(--white);
  --border: var(--cream-200);
  --input-border: #8C8577;
  --text: var(--navy-900);
  --text-2: var(--slate-600);
  --verified: var(--green-500);
  --verified-text: var(--green-700);
  --verified-tint: var(--green-50);
  --held: var(--orange-500);
  --held-text: var(--orange-700);
  --held-tint: #FBE9E4;
  --warn-text: #7A4E00;
  --warn-tint: #FBF0D9;
  --error-text: #A1162B;
  --error-tint: #FDECEE;
  --btn-bg: var(--navy-900);
  --btn-bg-hover: #2A3556;
  --btn-text: var(--cream-50);
  --focus: var(--navy-900);
  --logo-dot: var(--orange-500);
  --shadow: 0 1px 2px rgba(24, 33, 58, .06), 0 16px 40px -16px rgba(24, 33, 58, .22);
  --shadow-lg: 0 2px 6px rgba(24, 33, 58, .08), 0 40px 80px -32px rgba(24, 33, 58, .45);

  /* Type and layout */
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --gutter: 16px;
  --max: 1160px;
  --header-h: 68px;
  --section-pad: clamp(64px, 9vw, 120px);
  --slant: clamp(28px, 5vw, 72px);
  color-scheme: light;
}

/* Semantic: dark (system preference, unless the visitor chose light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--navy-950);
    --bg-band: var(--navy-900);
    --surface: var(--navy-850);
    --border: var(--navy-700);
    --input-border: #6E7A9C;
    --text: var(--cream-100);
    --text-2: var(--slate-300);
    --verified-text: var(--green-300);
    --verified-tint: rgba(85, 174, 134, .15);
    --held-text: var(--orange-300);
    --held-tint: rgba(226, 85, 58, .16);
    --warn-text: #F2C46B;
    --warn-tint: rgba(242, 196, 107, .12);
    --error-text: #FF9B9B;
    --error-tint: rgba(255, 155, 155, .08);
    --btn-bg: var(--cream-100);
    --btn-bg-hover: var(--white);
    --btn-text: var(--navy-900);
    --focus: var(--cream-100);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 40px 80px -32px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* Semantic: dark (chosen with the toggle) */
:root[data-theme="dark"] {
  --bg: var(--navy-950);
  --bg-band: var(--navy-900);
  --surface: var(--navy-850);
  --border: var(--navy-700);
  --input-border: #6E7A9C;
  --text: var(--cream-100);
  --text-2: var(--slate-300);
  --verified-text: var(--green-300);
  --verified-tint: rgba(85, 174, 134, .15);
  --held-text: var(--orange-300);
  --held-tint: rgba(226, 85, 58, .16);
  --warn-text: #F2C46B;
  --warn-tint: rgba(242, 196, 107, .12);
  --error-text: #FF9B9B;
  --error-tint: rgba(255, 155, 155, .08);
  --btn-bg: var(--cream-100);
  --btn-bg-hover: var(--white);
  --btn-text: var(--navy-900);
  --focus: var(--cream-100);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 40px 80px -32px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

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

/* Colour bands. Navy flips every token so all components inside adapt.
   Orange and green only set the band's own text, buttons and focus ring; cards inside keep page tokens. */
.tone-navy {
  --text: var(--cream-100);
  --text-2: var(--slate-300);
  --border: var(--navy-700);
  --surface: var(--navy-850);
  --bg-band: #222C49;
  --input-border: #6E7A9C;
  --verified-text: var(--green-300);
  --verified-tint: rgba(85, 174, 134, .16);
  --held-text: var(--orange-300);
  --held-tint: rgba(226, 85, 58, .18);
  --btn-bg: var(--cream-100);
  --btn-bg-hover: var(--white);
  --btn-text: var(--navy-900);
  --focus: var(--cream-100);
  background: var(--navy-900);
  color: var(--text);
}
.tone-orange, .tone-green {
  --band-text: var(--cream-50);
  --btn-bg: var(--cream-100);
  --btn-bg-hover: var(--white);
  --btn-text: var(--navy-900);
  --focus: var(--cream-100);
  color: var(--band-text);
}
.tone-orange { --band-text-2: #FBE3DC; background: var(--orange-700); }
.tone-green { --band-text-2: #DCEBE3; background: var(--green-700); }
.tone-orange .eyebrow, .tone-orange .section-lead,
.tone-green .eyebrow, .tone-green .section-lead { color: var(--band-text-2); }

/* Diagonal band edges, like the reference: each slanted band tucks under the one above */
.slant {
  position: relative;
  margin-top: calc(var(--slant) * -1);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.section.slant { padding-top: calc(var(--section-pad) + var(--slant)); } /* beats .section's padding-block */
.slant-flip { clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
/* Hold the page back until Vietnamese text is in place (main.js, or a 1.5s fallback). */
html[data-lang="vi"]:not(.i18n-ready) body { visibility: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  /* Bands run edge to edge (viewport-fit=cover); content stays clear of notches */
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.i {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  /* Cream, so it shows on the navy header in both themes */
  --btn-bg: var(--cream-100);
  --btn-text: var(--navy-900);
  --focus: var(--cream-100);
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header: navy while it sits over the hero, page-coloured after that */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.tone-navy { background: color-mix(in srgb, var(--navy-900) 94%, transparent); }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.logo { display: block; width: 113px; height: 26px; color: var(--text); }
.endorse {
  padding-left: 12px;
  border-left: 1px solid var(--border);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-2);
}
.site-nav { display: none; gap: 2px; }
.site-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--bg-band); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); }
.lang-short { display: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.icon-btn .i { width: 20px; height: 20px; }
.theme-toggle .i-sun,
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: inline-block; }
.header-actions .header-cta { display: none; }

@media (max-width: 479px) {
  .tabs [role="tab"] { font-size: .95rem; }
  .tabs [role="tab"] .i { display: none; }
  .endorse { display: none; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .logo { width: 104px; height: 24px; }
}
@media (min-width: 768px) { .header-actions .header-cta { display: inline-flex; } }
@media (min-width: 1100px) { .site-nav { display: flex; } }
/* The endorsement line is the first thing to go when the header row gets tight (Vietnamese runs longer) */
@media (max-width: 639px), (min-width: 1100px) and (max-width: 1279px) { .endorse { display: none; } }
.site-nav a, .lang-switch button, .header-cta { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn .i { width: 20px; height: 20px; transition: transform .18s ease; }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-secondary { border-color: currentColor; background: transparent; color: var(--text); }
.btn-secondary:hover { background: var(--bg-band); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Shared type */
.section { padding-block: var(--section-pad); }
.band { background: var(--bg-band); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.section-lead { margin-top: 16px; max-width: 40em; font-size: 1.15rem; color: var(--text-2); }
.fine { margin-top: 16px; font-size: .92rem; color: var(--text-2); }
.fine-center { text-align: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-band);
  color: var(--text);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.chip .i { width: 14px; height: 14px; stroke-width: 2.4; }
.chip-verified { background: var(--verified-tint); color: var(--verified-text); }
.chip-amber { background: var(--warn-tint); color: var(--warn-text); }
.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-band);
  color: var(--text);
}
.icon-tile .i { width: 24px; height: 24px; }
.icon-tile.is-verified { background: var(--verified-tint); color: var(--verified-text); }
.step-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-band);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
}
.step-n.is-held { background: var(--held); color: var(--white); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden; /* Safari < 16 fallback: the decorations reach past the edges */
  overflow: clip;
  padding-block: clamp(28px, 5vw, 64px) calc(clamp(56px, 7vw, 96px) + var(--slant));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-2);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--verified);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 142, 106, .55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(62, 142, 106, 0); }
}
.display {
  margin-top: 22px;
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.display-line { display: block; text-wrap: balance; }
.t-verified { color: var(--verified-text); }
.t-held { color: var(--held-text); }
.lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--text-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero decoration: halftone dots and two arcs in brand colours (never orange) */
.deco-dots {
  position: absolute;
  border-radius: 50%;
  background-image: radial-gradient(rgba(244, 238, 227, .16) 1.3px, transparent 1.6px);
  background-size: 14px 14px;
  pointer-events: none;
}
.deco-dots-a { width: 420px; height: 420px; right: -120px; top: 40px; }
.deco-dots-b { width: 220px; height: 220px; left: -80px; bottom: 60px; }
.deco-arc {
  position: absolute;
  width: 6em;
  height: 6em;
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  pointer-events: none;
}
.deco-arc-a { left: -2.6em; top: 2.5em; stroke: var(--green-500); }
.deco-arc-b { right: -2.4em; bottom: 4em; stroke: rgba(244, 238, 227, .55); }

/* ---------- Phone mock-ups ----------
   Sized in em so one font-size scales the whole phone. The screen is always the light app UI. */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  font-size: clamp(12px, 3.2vw, 15px);
}
/* Scales with the window's width and height, so the whole phone fits above the fold on laptops */
.phone-stage-hero { font-size: clamp(12.5px, min(3.6vw, 1.85vh), 16px); padding: 1em 3em; }
.phone {
  position: relative;
  z-index: 1; /* own stacking layer, so the camera notch never sits above the floating cards */
  flex: none;
  width: 19em;
  height: 40em;
  padding: .62em;
  border-radius: 3em;
  background: linear-gradient(150deg, #39456A 0%, #0B1020 22%, #0B1020 78%, #2A3556 100%);
  box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .14), var(--shadow-lg);
}
/* Side buttons */
.phone::before, .phone::after {
  content: "";
  position: absolute;
  width: .22em;
  border-radius: .2em;
  background: #2A3556;
}
.phone::before { left: -.18em; top: 8.5em; height: 3.2em; box-shadow: 0 4.2em 0 #2A3556; }
.phone::after { right: -.18em; top: 11em; height: 5em; }
.phone-hero { transform: rotate(-3deg); }

.phone-screen {
  --text: #18213A;
  --text-2: #5B6070;
  --surface: #FFFFFF;
  --bg-band: #F4EEE3;
  --border: #E8E1D4;
  --verified-text: #2C6B4F;
  --verified-tint: #ECF3F0;
  --held: #E2553A;
  --held-text: #B5341B;
  --held-tint: #FBE9E4;
  --warn-text: #7A4E00;
  --warn-tint: #FBF0D9;
  --btn-bg: #18213A;
  --btn-text: #FCF8F2;
  --logo-dot: #E2553A;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 2.4em;
  background: var(--surface);
  color: var(--text);
  line-height: 1.4;
}
.phone-island {
  position: absolute;
  top: .55em;
  left: 50%;
  z-index: 3;
  width: 5.6em;
  height: 1.6em;
  border-radius: 1em;
  background: #0B1020;
  transform: translateX(-50%);
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 2.75em;
  padding: 0 1.6em 0 1.9em;
  font-size: .8em;
  font-weight: 700;
}
.ps-icons { width: 4.4em; height: .8em; color: var(--text); }
.phone-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: .3em 1.1em .7em;
  border-bottom: 1px solid var(--border);
}
.phone-logo { display: block; width: 4.8em; height: 1.12em; color: var(--text); }
.tag {
  padding: .3em .7em;
  border-radius: 999px;
  background: var(--bg-band);
  font-size: .62em;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.phone-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  container-type: size;
}
.phone-panel {
  display: flex;
  flex-direction: column;
  gap: .75em;
  height: 30em;   /* fallback where container units aren't supported */
  height: 100cqh; /* exactly one screen, so the feed can move in whole screens */
  padding: 1em 1.1em 1.1em;
  overflow: hidden;
}
.phone-panel-center { align-items: center; justify-content: center; text-align: center; }

/* App UI pieces */
.app-greet { display: grid; gap: .1em; }
.app-greet span { font-size: .85em; color: var(--text-2); }
.app-greet strong { font-size: 1.3em; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.app-search, .app-small, .app-receipt, .app-meta {
  display: flex;
  align-items: center;
  gap: .5em;
}
.app-search {
  padding: .75em .9em;
  border-radius: 1em;
  background: var(--bg-band);
  font-size: .85em;
  color: var(--text-2);
}
.app-search .i, .app-meta .i, .app-small .i, .app-receipt .i { width: 1.15em; height: 1.15em; }
.app-label {
  font-size: .64em;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
}
.app-needs { display: grid; gap: .3em; padding: .8em .9em; border: 1px solid var(--border); border-radius: 1em; }
.app-needs-row { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.app-needs-row strong { font-size: .88em; line-height: 1.3; }
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.app-tile {
  display: grid;
  gap: .45em;
  padding: .8em;
  border-radius: 1em;
  background: var(--bg-band);
  font-size: .82em;
  font-weight: 700;
  line-height: 1.25;
}
.app-tile .i { width: 1.5em; height: 1.5em; }
.app-job { display: grid; gap: .25em; padding: .85em .9em; border-radius: 1em; background: var(--bg-band); }
.app-title { font-size: 1em; font-weight: 800; line-height: 1.3; }
.app-title-lg { font-size: 1.3em; letter-spacing: -.01em; }
.app-meta { font-size: .8em; color: var(--text-2); }
.app-offers-head { display: flex; align-items: center; justify-content: space-between; gap: .5em; font-size: .9em; font-weight: 800; }
.app-offers-head .chip, .phone .chip { font-size: .7em; }
.offers { display: grid; gap: .5em; }
.offer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .7em;
  padding: .6em .7em;
  border: 1px solid var(--border);
  border-radius: .9em;
}
.offer.is-chosen { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.avatar {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--bg-band);
  font-size: .9em;
  font-weight: 800;
}
.offer-body { display: grid; gap: .25em; min-width: 0; }
.offer-name { font-size: .9em; font-weight: 800; line-height: 1.2; }
.offer-chips { display: flex; flex-wrap: wrap; gap: .25em; }
.offer-price { font-size: .98em; font-weight: 800; }
.app-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9em;
  margin-top: auto;
  padding: .5em 1em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: .88em;
  font-weight: 700;
  text-align: center;
}
.app-btn + .app-btn { margin-top: 0; }
.app-btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.app-held { display: grid; justify-items: start; gap: .2em; padding: 1em; border-radius: 1.1em; background: var(--held-tint); }
.app-held-row { grid-template-columns: auto 1fr; align-items: center; column-gap: .75em; }
.app-held-icon {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: .75em;
  background: var(--held);
  color: var(--white);
}
.app-held-icon .i { width: 1.2em; height: 1.2em; }
.app-held-title { display: block; font-size: .9em; font-weight: 800; color: var(--held-text); }
.app-held-amount { display: block; font-size: 2em; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.app-held-row .app-held-amount { font-size: 1.35em; }
.app-held-by { display: block; font-size: .74em; color: var(--text-2); }
.app-note { font-size: .84em; color: var(--text-2); }
.app-quote { font-size: .84em; font-style: italic; color: var(--text-2); }
.app-small { font-size: .72em; color: var(--text-2); }
.app-receipt { font-size: .82em; font-weight: 600; }
.app-timeline { display: grid; gap: .1em; }
.app-timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .45em 0;
  font-size: .86em;
  font-weight: 600;
  color: var(--text-2);
}
.app-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: .78em;
  top: 2.05em;
  width: 2px;
  height: 1.1em;
  background: var(--border);
}
.tl-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.6em;
  height: 1.6em;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
}
.tl-dot .i { width: 1em; height: 1em; stroke-width: 2.6; }
.app-timeline .is-done { color: var(--text); }
.app-timeline .is-done .tl-dot { border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-text); }
.app-timeline .is-now { color: var(--held-text); font-weight: 800; }
.app-timeline .is-now .tl-dot { border-color: var(--held); background: var(--held-tint); }
.app-success {
  display: grid;
  place-items: center;
  width: 4em;
  height: 4em;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
}
.app-success .i { width: 2em; height: 2em; stroke-width: 2.4; }
.phone-panel-center .app-btn { width: 100%; margin-top: .6em; }
.app-field { display: grid; gap: .15em; padding: .6em .8em; border: 1px solid var(--border); border-radius: .9em; }
.app-field-k { font-size: .66em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.app-field-v { font-size: .9em; font-weight: 700; line-height: 1.3; }
.app-field-hint { display: flex; align-items: center; gap: .4em; font-size: .7em; color: var(--verified-text); }
.app-field-hint .i { width: 1.2em; height: 1.2em; }
.app-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.app-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; }
.app-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: .8em;
  background: linear-gradient(140deg, #E8E1D4, #F4EEE3);
  color: #8C8577;
}
.app-photos-6 .app-photo { aspect-ratio: 1.3; }
.app-rows { border: 1px solid var(--border); border-radius: .9em; overflow: hidden; }
.app-rows > div { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .55em .8em; font-size: .8em; }
.app-rows > div + div { border-top: 1px solid var(--border); }
.app-rows dt { color: var(--text-2); }
.app-rows dd { font-weight: 700; text-align: right; }

/* The scrolling hero screen: four whole screens on an 18-second loop */
.phone-hero .phone-feed { animation: phone-scroll 18s cubic-bezier(.65, 0, .35, 1) infinite; will-change: transform; }
@keyframes phone-scroll {
  0%, 11% { transform: translateY(0); }
  16%, 36% { transform: translateY(-25%); }
  41%, 61% { transform: translateY(-50%); }
  66%, 86% { transform: translateY(-75%); }
  93%, 100% { transform: translateY(0); }
}
/* A thin scroll indicator that shows while the screen moves */
.phone-hero .phone-viewport::after {
  content: "";
  position: absolute;
  top: .3em;
  right: .3em;
  width: .25em;
  height: 24%;
  border-radius: 1em;
  background: rgba(24, 33, 58, .45);
  opacity: 0;
  animation: phone-thumb 18s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes phone-thumb {
  0%, 11% { transform: translateY(0); opacity: 0; }
  12.5% { opacity: 1; }
  16% { transform: translateY(100%); opacity: 1; }
  19%, 36% { transform: translateY(100%); opacity: 0; }
  37.5% { opacity: 1; }
  41% { transform: translateY(200%); opacity: 1; }
  44%, 61% { transform: translateY(200%); opacity: 0; }
  62.5% { opacity: 1; }
  66% { transform: translateY(300%); opacity: 1; }
  69%, 86% { transform: translateY(300%); opacity: 0; }
  87.5% { opacity: 1; }
  93% { transform: translateY(0); opacity: 1; }
  96%, 100% { transform: translateY(0); opacity: 0; }
}
/* A tap on "Accept" just before the screen moves on to payment */
.tap {
  position: absolute;
  left: 72%;
  top: 50%;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: rgba(252, 248, 242, .35);
  box-shadow: 0 0 0 2px rgba(252, 248, 242, .8);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.5);
  pointer-events: none;
}
.phone-hero .tap-accept { animation: tap-accept 18s ease-out infinite; }
@keyframes tap-accept {
  0%, 30% { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  32% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  35%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}
/* "Held for Minh" pulses while the money is held */
.phone-hero .is-now .tl-dot { animation: held-pulse 1.8s ease-out infinite; }
@keyframes held-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 85, 58, .45); }
  70%, 100% { box-shadow: 0 0 0 .55em rgba(226, 85, 58, 0); }
}

/* Floating cards around the hero phone */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .55em .9em .55em .55em;
  border-radius: 1em;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  font-size: .86em;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-icon {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: .7em;
}
.float-icon .i { width: 1.2em; height: 1.2em; }
.float-icon.is-verified { background: #ECF3F0; color: #2C6B4F; }
.float-icon.is-held { background: var(--orange-500); color: var(--white); }
/* Placed over the phone's edges where the screen has least to read */
.float-id { left: -.6em; top: 3%; }
.float-licence { right: -1.6em; top: 60%; animation-delay: -2s; }
.float-held { left: -.4em; bottom: 9%; animation-delay: -4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-.6em); }
}

/* Pause / play for the hero animation (WCAG 2.2.2) */
.motion-toggle {
  position: absolute;
  right: 1.2em;
  bottom: .2em;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.motion-toggle .i { width: 18px; height: 18px; stroke-width: 2.2; }
.motion-toggle .i-play,
.motion-toggle[data-state="paused"] .i-pause { display: none; }
.motion-toggle[data-state="paused"] .i-play { display: inline-block; }
.hero.is-paused .phone-feed,
.hero.is-paused .phone-viewport::after,
.hero.is-paused .tap,
.hero.is-paused .tl-dot,
.hero.is-paused .float-card,
.hero.is-paused .status-dot { animation-play-state: paused; }

/* The hero phone rises in once on load */
.js .phone-stage-hero { animation: rise-in .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* Promise strip */
.promises { border-bottom: 1px solid var(--border); }
.promise-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 16px; }
.promise-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
}
.promise-list .i { width: 28px; height: 28px; color: var(--verified-text); }
.promise-list li:nth-child(3) .i { color: var(--held-text); }
.promise-list li:nth-child(4) .i { color: var(--text-2); }

/* Problem */
.grid-2 { display: grid; gap: 20px; }
.card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
}
.x-list { display: grid; gap: 14px; margin-top: 20px; }
.x-list li { display: flex; align-items: flex-start; gap: 12px; }
.x-list .i {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  padding: 4px;
  border-radius: 50%;
  background: var(--bg-band);
  color: var(--text-2);
  stroke-width: 2.6;
}
.bridge { max-width: 38em; margin-top: 32px; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; line-height: 1.5; }

/* Phone + text sections */
.split { display: grid; gap: 48px; align-items: center; }
.split-copy .section-head { margin-bottom: 28px; }
.steps-list { display: grid; gap: 20px; }
.steps-list li { display: flex; align-items: flex-start; gap: 16px; }
.steps-list strong { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.steps-list strong + span { display: block; margin-top: 4px; color: var(--text-2); }
.tick-list { display: grid; gap: 14px; }
.tick-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; line-height: 1.5; }
.tick-list .i { width: 24px; height: 24px; margin-top: 1px; color: var(--band-text-2, currentColor); }

/* Flow strip in the payment band */
.flow {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(16px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.flow-track { display: grid; gap: 22px; }
.flow-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 4px;
}
.flow-icon {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-band);
  color: var(--text);
}
.flow-icon .i { width: 24px; height: 24px; }
.flow-k { font-weight: 800; line-height: 1.35; }
.flow-v { font-size: .92rem; line-height: 1.45; color: var(--text-2); }
.flow-node.is-held .flow-icon { background: var(--held); color: var(--white); }
.flow-node.is-held .flow-k { color: var(--held-text); }
.flow-node.is-done .flow-icon { background: var(--btn-bg); color: var(--btn-text); }
.tone-orange .flow-node.is-done .flow-icon { background: var(--text); color: var(--surface); } /* band buttons are cream; this tile keeps page contrast */
.flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
}
.flow figcaption { margin-top: 18px; font-size: .88rem; color: var(--text-2); }

/* Safety */
.grid-4 { display: grid; gap: 16px; }
.check-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
}
.check-who {
  margin-top: 18px;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--verified-text);
}
.check-card:last-child .check-who { color: var(--text-2); }
.check-card h3 { margin-top: 6px; }
.check-card h3 + p { margin-top: 8px; font-size: 1rem; color: var(--text-2); }
.assurances { display: grid; gap: 12px; margin-top: 24px; }
.assurances li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.5;
}
.assurances .i { margin-top: 1px; }

/* For providers */
.benefits { display: grid; gap: 18px; margin-top: 28px; }
.benefits li { display: flex; align-items: flex-start; gap: 16px; }
.benefits strong { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.benefits strong + span { display: block; margin-top: 2px; color: var(--text-2); }

/* Services */
.service-grid { display: grid; gap: 14px; }
.service {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--bg-band);
  color: var(--text);
}
.service-icon .i { width: 22px; height: 22px; }
.service h3 { font-size: 1.1rem; }
.service p { font-size: .95rem; line-height: 1.5; color: var(--text-2); }
.service .chip { align-self: flex-start; margin-top: 8px; }

/* Costs (the reference's pricing cards) */
.cost-grid { display: grid; gap: 16px; max-width: 1000px; margin-inline: auto; }
.cost-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-align: center;
}
.cost-card.is-featured { border: 2px solid var(--text); box-shadow: var(--shadow); }
.cost-name { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.cost-price { font-size: 2.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.cost-price-sm { font-size: 1.7rem; line-height: 1.25; }
.cost-desc { color: var(--text-2); }
.cost-card .btn { margin-top: auto; }
.cost-card .cost-desc { margin-bottom: 12px; }

/* Community */
.community-grid { display: grid; gap: 40px; align-items: center; }
.stat { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--bg-band); }
.stat-n { font-size: clamp(3rem, 8vw, 4.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.stat-l { margin-top: 10px; font-weight: 600; color: var(--text-2); }
.maker { margin-top: 20px; font-size: .98rem; color: var(--text-2); }
.maker a { font-weight: 700; color: var(--text); }

/* Register: on phones the form comes straight after the heading; the provider steps follow it */
.register-grid { display: grid; gap: 32px; grid-template-areas: "head" "card" "steps"; }
.register-head { grid-area: head; }
.register-card { grid-area: card; }
.register-steps { grid-area: steps; }
.next-title { font-size: 1.05rem; }
.next-steps { display: grid; gap: 12px; margin-top: 16px; }
.next-steps li { display: flex; align-items: flex-start; gap: 14px; }
.next-steps .step-n {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: .95rem;
}
.register-card {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg-band);
}
.tabs [role="tab"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-2);
  cursor: pointer;
}
.tabs [role="tab"] .i { width: 18px; height: 18px; }
.tabs [aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(24, 33, 58, .14); }
.tab-panel { margin-top: 24px; }

.lead-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: .98rem; font-weight: 700; }
.field legend { margin-bottom: 8px; padding: 0; }
.optional { font-weight: 500; color: var(--text-2); }
.field input[type="text"], .field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 1rem;
}
.field input[type="text"]::placeholder { color: var(--text-2); opacity: 1; }
.field input[type="text"]:focus, .field select:focus { border-color: var(--text); }
.field input[aria-invalid="true"], .field.is-invalid .choice { border-color: var(--error-text); }
.field-row { display: grid; gap: 20px; }
.hint { font-size: .9rem; color: var(--text-2); }
.field-error { font-size: .92rem; font-weight: 700; color: var(--error-text); }
.field-error::before { content: "! "; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  background: var(--surface);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--btn-bg); }
.choice:has(input:checked) { border-color: var(--text); background: var(--bg-band); }
.choice-consent {
  align-items: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.55;
}
.choice-consent:has(input:checked) { background: transparent; }
.choice-consent input { margin-top: 2px; }
.choice-consent a { font-weight: 700; }
.error-summary {
  padding: 16px 18px;
  border: 2px solid var(--error-text);
  border-radius: 14px;
  background: var(--error-tint);
}
.error-summary-title { font-weight: 800; }
.error-summary ul { display: grid; gap: 4px; margin-top: 8px; }
.error-summary a { font-weight: 700; color: var(--error-text); }
.form-status:empty { display: none; }
.form-status { font-weight: 700; }
.form-success { padding: 14px 16px; border-radius: 14px; background: var(--verified-tint); color: var(--verified-text); }
.preview-note { margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--warn-text); }

/* FAQ */
.faq-wrap { max-width: 880px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq summary .i { color: var(--text-2); transition: transform .2s ease; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); }

/* Footer */
.site-footer { padding-block: 56px 112px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 28px; }
/* Footer logo: the tick alone, with "heyvie" sliding out from behind it on hover or focus.
   The word sits in a fixed window just right of the tick and slides in from the window's
   left edge, so it looks as if it comes out from behind the tick. */
.footer-logo {
  --logo-h: 44px;
  --word-w: calc(var(--logo-h) * 324.65 / 99.03);
  position: relative;
  display: inline-flex;
  vertical-align: top; /* no stray line-box space under the tick */
  border-radius: 10px;
  color: var(--text);
}
.footer-mark { display: block; width: calc(var(--logo-h) * 100 / 99.03); height: var(--logo-h); }
.footer-word-window {
  position: absolute;
  top: 0;
  left: 100%;
  width: var(--word-w);
  height: var(--logo-h);
  overflow: hidden;
  pointer-events: none; /* the empty space doesn't trigger the reveal; only the tick does */
}
.footer-word {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(-100%);
  /* Leaving: quicker and accelerating */
  transition: transform .3s cubic-bezier(.4, 0, 1, 1), opacity .2s ease .1s;
}
.footer-logo:hover .footer-word-window,
.footer-logo:focus-visible .footer-word-window,
.footer-logo.is-revealed .footer-word-window { pointer-events: auto; /* keeps the hover on the word, and makes it tappable once revealed */ }
.footer-logo:hover .footer-word,
.footer-logo:focus-visible .footer-word,
.footer-logo.is-revealed .footer-word {
  opacity: 1;
  transform: none;
  /* Arriving: slower with a soft landing */
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}
/* Focus ring around the whole lockup, not just the tick */
.footer-logo:focus-visible { outline: none; }
.footer-logo:focus-visible::after {
  content: "";
  position: absolute;
  inset: -6px calc(-6px - var(--word-w)) -6px -6px;
  border: 3px solid var(--focus);
  border-radius: 12px;
}
.footer-tag { margin-top: 14px; font-weight: 700; }
.footer-endorse { margin-top: 4px; font-size: .95rem; color: var(--text-2); }
.footer-meta { display: grid; gap: 6px; align-content: start; font-size: .95rem; color: var(--text-2); }
.footer-meta a { font-weight: 600; color: var(--text); }
.footer-disclaimer, .footer-copy { grid-column: 1 / -1; max-width: 70em; font-size: .85rem; color: var(--text-2); }

/* Sticky call to action (phones only) */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }

/* Scroll reveal: a small lift only, so content is never hidden if the observer doesn't run */
.js .reveal { transform: translateY(16px); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { transform: none; }

/* Wider screens */
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 56px; }
}
@media (min-width: 800px) {
  .grid-2, .footer-grid { grid-template-columns: 1fr 1fr; }
  .flow-track { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .flow-node:not(:last-child) { padding-right: 32px; }
  .flow-node:not(:last-child)::after { left: auto; right: 8px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }
  .cost-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .promise-list { grid-template-columns: repeat(4, 1fr); }
  .assurances { grid-template-columns: repeat(3, 1fr); }
  .community-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .split { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .split-flip { grid-template-columns: 1.1fr .9fr; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .register-grid {
    grid-template-columns: .85fr 1.15fr;
    grid-template-areas: "head card" "steps card";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 32px;
    align-items: start;
  }
}
@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}
/* Single-column hero: keep the stage about desktop-column wide so the cards still overlap the phone */
@media (max-width: 959px) {
  .phone-stage-hero { max-width: 30em; margin-inline: auto; }
}
/* Phones: the sticky Register bar must never hide whatever has keyboard focus (WCAG 2.4.11) */
@media (max-width: 767px) and (min-height: 421px) {
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) and (max-height: 420px) {
  .sticky-cta { display: none; } /* landscape phones and high zoom: too little height to spare */
}
/* Phones: keep the hero cards inside the screen edges */
@media (max-width: 559px) {
  .phone-stage-hero { padding: 1em 1.2em; }
  .float-id { left: -.2em; }
  .float-licence { right: -.4em; }
  .float-held { left: 0; }
  .deco-arc-a { left: -1.2em; }
  .deco-arc-b { right: -1em; }
  .phone-hero { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { transform: none; }
  /* Show one still screen (the offers) instead of the scrolling loop, and drop the pause button */
  .phone-hero .phone-feed { transform: translateY(-25%); }
  .motion-toggle { display: none; }
}
