/* ============================================================
   Cformly — "The Front Desk Instrument" · website stylesheet
   Contract: docs/design-system.md
   ------------------------------------------------------------
   One signature: the MRZ machine-readable strip — the visual DNA
   of every passport. A monospace "instrument voice" carries the
   data (deadlines, labels, numbers, the MRZ). Fraunces for
   editorial display, Inter for body. Warm ivory paper, passport
   navy authority, sky-blue brand, marigold as the single accent.
   Light + dark, 8pt grid, reduced-motion safe, AA contrast.
   ============================================================ */

/* Palette bridge (roadmap 168): the brand palette's single home is
   @cformly/ui (packages/ui/src/index.ts); tokens.css is generated from
   it and must load first. Never hand-copy a token hex here — the
   token-drift test (tests/drift/css-token-drift.test.ts) fails the build.
   The few raw hexes left below are enumerated web-only refinements or
   deliberate deviations, each registered with a reason in that test. */
@import url("tokens.css");

/* Self-hosted Fraunces (SIL OFL 1.1, assets/fonts/OFL.txt) — the brand
   display face named by docs/design-system.md. Served from this origin:
   no font CDN, no third-party request. Variable weight axis, Latin. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- color (light) ---- */
  --paper: var(--cf-paper); /* warm ivory — a real register page, never clinical */
  --paper-2: #efe9dc; /* recessed paper (web-only shade) */
  --surface: var(--cf-surface);
  --surface-2: var(--cf-surface-muted);
  --hairline: var(--cf-hairline); /* warm hairline */
  --hairline-strong: #c9bca0; /* web-only shade */
  --ink: var(--cf-ink); /* deep ink, near-black navy */
  --ink-2: var(--cf-ink-muted); /* muted ink */
  --ink-3: #6e6a55; /* faint meta ink — darkened for WCAG AA on paper */

  /* brand — sky-blue from the app icon (the logo), refined for AA on paper */
  --brand: var(--cf-primary);
  --brand-deep: var(--cf-primary-deep);
  --brand-tint: var(--cf-primary-tint);
  --brand-ink: #0a3d72; /* web-only pressed-link ink */

  /* structure — passport navy (the official, trustworthy band) */
  --navy: var(--cf-passport);
  --navy-deep: var(--cf-passport-deep);
  --navy-tint: var(--cf-passport-tint);

  /* accent — marigold, the single warm note (deadline / urgency / auspicious) */
  --marigold: var(--cf-marigold);
  --marigold-deep: var(--cf-marigold-deep); /* >=4.5:1 on paper + marigold-tint */
  --marigold-tint: var(--cf-marigold-tint);

  /* semantic — danger/warning/success-tint carry web-AA-calibrated values
     that deliberately deviate from the app tokens (registered in the drift
     test); they stay literal until the palette itself is re-tuned. */
  --success: var(--cf-success);
  --success-tint: #e2f0e7;
  --danger: #bb3535; /* 4.7:1 on danger-tint + paper (WCAG audit 2026-08-28) */
  --danger-tint: #f7e5e5;
  --warning: #a04e08;
  --warning-tint: #f6ebd6;

  --on-brand: var(--cf-on-primary);
  --on-navy: var(--cf-paper);
  --on-navy-2: rgba(244, 239, 228, 0.72);
  --on-navy-3: rgba(244, 239, 228, 0.6); /* 5.7:1 on navy (WCAG audit) */

  /* ---- type ---- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:
    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- shape + depth ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;
  /* Semantic roles — mirror the app's "Refined Register" system so every
     shape picks ONE radius by function. Buttons/chips, cards/hero, sheets. */
  --r-input: 12px;
  --r-control: 14px;
  --r-card: 18px;
  --r-sheet: 24px;

  /* a single, quiet soft shadow family */
  --shadow-xs: 0 1px 2px rgba(14, 26, 34, 0.05);
  --shadow-sm:
    0 1px 3px rgba(14, 26, 34, 0.06), 0 1px 2px rgba(14, 26, 34, 0.04);
  --shadow-md:
    0 4px 14px rgba(14, 26, 34, 0.07), 0 1px 3px rgba(14, 26, 34, 0.05);
  --shadow-lg:
    0 2px 6px rgba(14, 26, 34, 0.06), 0 22px 50px rgba(14, 26, 34, 0.13);
  /* Brand-tinted lift for the primary CTA — depth with a sky-blue glow,
     consistent with the mobile app's elevated primary button. */
  --shadow-brand: 0 6px 16px rgba(14, 95, 176, 0.22), 0 1px 2px rgba(14, 26, 34, 0.06);
  --shadow-brand-hover: 0 10px 24px rgba(9, 74, 138, 0.28), 0 1px 3px rgba(14, 26, 34, 0.08);

  /* Motion — strong custom curves (emil-design-eng): the built-in easings
     lack punch; expo-family ease-out gives the instant-start settle that
     reads as "intentional". */
  --ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-expo: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: var(--cf-paper);
    --paper-2: #131c24; /* web-only shade */
    --surface: var(--cf-surface);
    --surface-2: var(--cf-surface-muted);
    --hairline: var(--cf-hairline);
    --hairline-strong: #39474f; /* web-only shade */
    --ink: var(--cf-ink);
    --ink-2: var(--cf-ink-muted);
    --ink-3: #8b97a0; /* web-only shade */

    --brand: var(--cf-primary);
    --brand-deep: var(--cf-primary-deep);
    --brand-tint: var(--cf-primary-tint);
    --brand-ink: #bfe0f7; /* web-only shade */

    --navy: var(--cf-passport);
    --navy-deep: var(--cf-passport-deep);
    --navy-tint: var(--cf-passport-tint);

    --marigold: var(--cf-marigold);
    --marigold-deep: var(--cf-marigold-deep);
    --marigold-tint: var(--cf-marigold-tint);

    /* Dark-mode danger/warning family: web-calibrated values that deviate
       from colorsDark (registered in the drift test). */
    --success: #46c07e;
    --success-tint: #18302a;
    --danger: var(--cf-danger);
    --danger-tint: #341d1d;
    --warning: #e0a65e;
    --warning-tint: #2c2415;

    --on-navy: #eef3f5; /* web-only shade */
    --on-navy-2: rgba(238, 243, 245, 0.74);
    --on-navy-3: rgba(238, 243, 245, 0.6); /* 4.7:1 on dark navy (WCAG audit) */

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.5), 0 26px 56px rgba(0, 0, 0, 0.55);
    --shadow-brand: 0 6px 18px rgba(90, 166, 236, 0.28), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-brand-hover: 0 10px 26px rgba(62, 142, 220, 0.34), 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}

/* ============================================================
   base
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* Anchor jumps must land below the 68px sticky navy nav, not under it —
     scroll-padding shifts every in-page target at once. */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* a faint paper warmth — barely there, never a texture overlay */
  background-image: radial-gradient(
    120% 80% at 50% -10%,
    rgba(230, 154, 46, 0.05),
    transparent 60%
  );
}

::selection {
  background: var(--marigold);
  color: var(--navy-deep);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
/* navy surfaces need a lighter ring than --brand (WCAG 2.4.11, 3:1) */
.nav a:focus-visible,
.brand:focus-visible,
.footer a:focus-visible,
.lang-toggle:focus-visible {
  outline-color: var(--marigold);
}

/* Hidden above the viewport rather than at left:-9999px — an off-left box
   widens the scrollable area on RTL (Urdu) pages. */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  z-index: 100;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-md) 0;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
}
.skip-link:focus-visible {
  transform: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
p {
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   type roles — the "instrument" voice runs through everything
   ============================================================ */

/* eyebrow: a mono label, like a passport field header */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--marigold);
}
@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--brand);
  }
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}
.section-head .eyebrow {
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.9vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-lede {
  color: var(--ink-2);
  font-size: 1.125rem;
  max-width: 60ch;
}

h1.display {
  font-size: clamp(2.75rem, 6.4vw, 4.9rem);
  line-height: 1.01;
  letter-spacing: -0.027em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand-ink);
  padding: 0 0.06em;
  background: linear-gradient(transparent 64%, var(--marigold-tint) 64%, var(--marigold-tint) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
  animation: swash 1s var(--ease-out-expo) 0.7s both;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@keyframes swash {
  from {
    background-size: 0% 100%;
  }
}
@media (prefers-color-scheme: dark) {
  h1.display em {
    color: var(--brand);
  }
}

/* ============================================================
   buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.16s var(--ease-out-expo),
    box-shadow 0.2s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn:hover {
  text-decoration: none;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out-expo);
}
.btn-primary:hover::after {
  transform: translateX(120%);
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-primary:hover {
  background: var(--brand-deep);
  color: var(--on-brand);
  box-shadow: var(--shadow-brand-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
}
.btn-ghost:hover {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

/* ============================================================
   nav — a slim passport-navy instrument band
   ============================================================ */

/* The nav floats: a midnight-glass pill held 12px below the top edge. */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: 12px;
  color: var(--on-navy);
  pointer-events: none;
}
.nav-inner.container {
  pointer-events: auto;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  padding: 0 10px 0 20px;
  border-radius: var(--r-pill);
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav-inner.container {
    background: color-mix(in srgb, var(--navy-deep) 88%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
  }
}
.nav.is-scrolled .nav-inner.container {
  box-shadow: 0 16px 50px -12px rgba(0, 0, 0, 0.55);
}
/* reading progress: a marigold→sky hairline under the nav (art.js) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--marigold), var(--brand));
  pointer-events: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--on-navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--on-navy);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex: none;
  box-shadow: var(--shadow-xs);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  position: relative;
  color: var(--on-navy-2);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s ease;
}
/* a marigold underline that draws in from the left on hover */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--marigold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a:hover {
  color: var(--on-navy);
  text-decoration: none;
}

.nav-cta {
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--r-control);
  font-size: 0.9375rem;
  background: var(--marigold);
  color: var(--navy-deep);
  border: none;
}
.nav-cta:hover {
  background: #f2ac43;
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}

/* Mobile menu toggle (roadmap 98) — hidden on desktop, shown ≤880px where
   the inline nav links disappear. Without it, Setup/Privacy/FAQ were
   unreachable on phones. */
.nav-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  background: transparent;
  border: none;
  border-radius: var(--r-control);
  cursor: pointer;
}
.nav-menu-toggle:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 2px;
}
.nav-menu-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--on-navy);
  border-radius: 1px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav.menu-open .nav-menu-toggle .nav-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.menu-open .nav-menu-toggle .nav-menu-bar:nth-child(2) {
  opacity: 0;
}
.nav.menu-open .nav-menu-toggle .nav-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  /* No-JS: keep links visible (they wrap). JS adds html.js and hides them
     behind the toggle so the dropdown can take over (BH-WEB-17). */
  .nav-inner {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
  }
  .nav-inner.container {
    border-radius: 26px;
    padding: 0 8px 0 16px;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
  }
  html.js .nav-links {
    display: none;
  }
  html.js .nav-menu-toggle {
    display: flex;
  }
  html.js .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding: 4px 22px 12px;
    border-radius: 22px;
    background: var(--navy-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
  }
  html.js .nav.menu-open .nav-links a {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 1rem;
  }
  /* Long translated CTAs must wrap instead of overflowing the phone
     (BH-WEB-15). */
  .btn {
    white-space: normal;
    line-height: 1.25;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
  }
}
/* On small screens the nav CTA overflows beside the brand + toggle; the hero
   already carries the primary CTA, so hide the nav one (≤560px). */
@media (max-width: 560px) {
  .nav-cta {
    display: none;
  }
}

/* ============================================================
   night — the midnight-passport surfaces (hero, privacy, CTA)
   Always dark in both color schemes: the tokens are re-pointed locally
   so every component inside reads light-on-dark without special cases.
   ============================================================ */

.hero,
.privacy,
.cta-band,
.mrz-band {
  --night: var(--cf-passport-deep);
  --ink: var(--on-navy);
  --ink-2: var(--on-navy-2);
  --ink-3: var(--on-navy-3);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(255, 255, 255, 0.2);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  /* light derivations of the brand hues, legible on midnight in both schemes */
  --sky-lite: color-mix(in srgb, var(--cf-primary) 55%, white);
  --gold-lite: color-mix(in srgb, var(--cf-marigold) 70%, white);
  color: var(--ink);
  background-color: var(--night);
  background-color: color-mix(in srgb, var(--cf-passport-deep) 72%, black);
  color-scheme: dark;
}

/* Pages that open on the night hero: the band behind a (possibly wrapped)
   nav is night too, so no paper shows above the hero at any nav height. */
body:has(main > .hero:first-child) {
  background: linear-gradient(color-mix(in srgb, var(--cf-passport-deep) 72%, black) 0 360px, var(--paper) 360px);
}
/* Letter-spacing breaks Arabic-script joining: tracked labels go untracked
   on RTL pages. */
[dir="rtl"] .eyebrow,
[dir="rtl"] .demo-status,
[dir="rtl"] .why-num,
[dir="rtl"] .step-meta,
[dir="rtl"] .lang-col h3 {
  letter-spacing: 0;
  font-family: var(--font-ui);
}

/* film grain over every night surface — keeps the gradients from banding */
.hero::after,
.privacy::after,
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* aurora: slow, heavily blurred light in the brand hues */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
.aurora-1 {
  width: 46vw;
  height: 40vw;
  left: -10vw;
  top: -14vw;
  background: var(--cf-marigold);
  opacity: 0.28;
}
.aurora-2 {
  width: 52vw;
  height: 44vw;
  right: -14vw;
  top: -6vw;
  background: var(--cf-primary);
  opacity: 0.42;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}
.aurora-3 {
  width: 40vw;
  height: 30vw;
  left: 30vw;
  top: 38%;
  background: color-mix(in srgb, var(--cf-primary) 60%, var(--cf-success));
  opacity: 0.22;
  animation-duration: 34s;
}
@keyframes auroraDrift {
  to {
    transform: translate3d(6vw, 4vw, 0) scale(1.15);
  }
}

/* ============================================================
   hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* slide under the floating nav so the night reaches the top edge */
  margin-top: -76px;
  padding: calc(76px + clamp(40px, 6vw, 80px)) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
/* a receding grid floor the passport floats above */
.hero-floor {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -2px;
  height: 58%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(640px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  animation: floorRun 5s linear infinite;
}
@keyframes floorRun {
  to {
    background-position: 0 64px, 0 0;
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-copy {
  max-width: 980px;
  margin: 0 auto;
}
.hero-eyebrow {
  margin-bottom: 26px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--glass);
  color: var(--ink-2);
  letter-spacing: 0.14em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* the eyebrow's rule becomes a live marigold dot */
.hero-eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cf-marigold);
  box-shadow: 0 0 0 0 var(--cf-marigold);
  animation: livePulse 2.4s ease-out infinite;
}
@keyframes livePulse {
  70% {
    box-shadow: 0 0 0 9px rgba(230, 154, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 154, 46, 0);
  }
}
.hero h1.display {
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 460;
  color: var(--ink);
  margin: 0 auto 26px;
  max-width: 13ch;
}
.hero h1.display em {
  font-style: italic;
  font-weight: 380;
  letter-spacing: -0.03em;
  padding: 0 0.04em 0.06em;
  color: var(--gold-lite);
  background: linear-gradient(100deg, var(--cf-marigold) 0%, var(--gold-lite) 45%, var(--cf-marigold) 70%, color-mix(in srgb, var(--cf-marigold) 60%, var(--cf-danger)) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 8s ease-in-out infinite alternate;
}
@keyframes sheen {
  to {
    background-position: 100% 0;
  }
}
.hero-lede {
  max-width: 40em;
  margin: 0 auto 34px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero .btn {
  min-height: 54px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: 1.0625rem;
}
.hero .btn-secondary,
.cta-band .btn-secondary {
  background: var(--glass);
  color: var(--ink);
  border-color: var(--hairline-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero .btn-secondary:hover,
.cta-band .btn-secondary:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ink);
}
/* the one warm light on the page: a marigold CTA with a soft halo */
.btn-glow,
.cta-band .btn-primary {
  background: linear-gradient(180deg, var(--gold-lite), var(--cf-marigold));
  color: var(--cf-passport-deep);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 10px 30px -6px rgba(230, 154, 46, 0.55),
    0 0 60px -10px rgba(230, 154, 46, 0.5);
}
.btn-glow:hover,
.cta-band .btn-primary:hover {
  background: linear-gradient(180deg, var(--gold-lite), var(--gold-lite));
  color: var(--cf-passport-deep);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 14px 36px -6px rgba(230, 154, 46, 0.7),
    0 0 80px -8px rgba(230, 154, 46, 0.6);
}

/* ---- hero load orchestration: rise out of a soft blur ---- */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
.hero-anim {
  animation: heroRise 1s var(--ease-out-expo) both;
}
.hero-anim-1 {
  animation-delay: 0ms;
}
.hero-anim-2 {
  animation-delay: 120ms;
}
.hero-anim-3 {
  animation-delay: 260ms;
}
.hero-anim-4 {
  animation-delay: 380ms;
}
.hero-anim-5 {
  animation-delay: 560ms;
  animation-duration: 1.4s;
}

/* Without JS the reveal state is never hidden (progressive enhancement). */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo),
    filter 0.9s var(--ease-out-expo);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ============================================================
   THE SIGNATURE — a holographic passport data page (art.js)
   A specimen passport tilts toward the pointer and catches the light;
   a laser scans it, the MRZ decodes, and the reviewed fields lift off
   the page as glass chips. Card typography is in cqw so the whole page
   scales like an image.
   ============================================================ */

.hero-visual {
  position: relative;
  margin: clamp(24px, 3vw, 40px) auto 0;
  max-width: 1040px;
}
/* Without art.js there is no stage; keep only the meta row. */
html:not(.art) .pp-stage {
  display: none;
}
.pp-stage {
  position: relative;
  height: clamp(330px, 44vw, 480px);
  display: grid;
  place-items: center;
  perspective: 1500px;
}
/* a pool of light under the passport */
.pp-stage::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 166, 236, 0.35), transparent);
  filter: blur(20px);
}
.pp-sway {
  transform-style: preserve-3d;
  animation: ppSway 11s ease-in-out infinite;
}
.is-pointer .pp-sway {
  animation-play-state: paused;
}
@keyframes ppSway {
  0%, 100% {
    transform: rotateX(8deg) rotateY(-10deg) translateY(0);
  }
  50% {
    transform: rotateX(4deg) rotateY(9deg) translateY(-10px);
  }
}
.pp-scene {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: min(560px, 78vw);
  aspect-ratio: 125 / 88;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease-out-expo);
}
.pp-card {
  position: absolute;
  inset: 0;
  container-type: inline-size;
  border-radius: 4.2cqw;
  overflow: hidden;
  color: var(--cf-passport-deep);
  text-align: left;
  background:
    linear-gradient(125deg,
      color-mix(in srgb, var(--on-navy) 86%, var(--cf-marigold)) 0%,
      var(--on-navy) 42%,
      color-mix(in srgb, var(--on-navy) 84%, var(--cf-primary)) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 50px 90px -30px rgba(0, 0, 0, 0.75),
    0 30px 60px -40px rgba(90, 166, 236, 0.6);
}
.pp-engrave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pp-engrave path {
  fill: none;
  stroke-width: 0.6;
}
.pe-a {
  stroke: var(--cf-primary);
  opacity: 0.22;
}
.pe-b {
  stroke: var(--cf-marigold);
  opacity: 0.22;
}
.pe-w {
  stroke: var(--cf-primary);
  opacity: 0.16;
}
.pp-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 3.6cqw 4.4cqw 2.6cqw;
  font-family: var(--font-mono);
  font-size: 1.85cqw;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.8;
}
.pp-head i {
  width: 1px;
  height: 2.2cqw;
  background: currentColor;
  opacity: 0.35;
}
.pp-emblem {
  margin-left: auto;
  width: 6.4cqw;
  height: 6.4cqw;
  fill: none;
  stroke: var(--cf-marigold);
  stroke-width: 1.2;
}
.pp-body {
  position: relative;
  display: grid;
  grid-template-columns: 21cqw 1fr;
  gap: 4cqw;
  padding: 0 4.4cqw;
}
.pp-photo {
  aspect-ratio: 90 / 112;
  border-radius: 1.6cqw;
  overflow: hidden;
  background: linear-gradient(170deg,
    color-mix(in srgb, var(--cf-primary) 22%, var(--on-navy)),
    color-mix(in srgb, var(--cf-primary) 42%, var(--on-navy)));
  box-shadow: 0 0 0 1px rgba(11, 23, 38, 0.12) inset;
}
.pp-photo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pp-face {
  fill: var(--cf-passport-deep);
  opacity: 0.42;
}
/* the ghost image, as printed at the page edge on real passports */
.pp-ghost {
  position: absolute;
  right: 5cqw;
  top: 28cqw;
  width: 9cqw;
  opacity: 0.16;
}
.pp-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1cqw 3cqw;
  margin: 0;
}
.pp-f {
  min-width: 0;
  border-radius: 0.9cqw;
  padding: 0.4cqw 0.8cqw;
  margin: -0.4cqw -0.8cqw;
}
.pp-w2 {
  grid-column: span 2;
}
.pp-w4 {
  grid-column: span 4;
}
.pp-f dt {
  font-family: var(--font-mono);
  font-size: 1.55cqw;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.3cqw;
}
.pp-f dd {
  margin: 0;
  font-size: 2.75cqw;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pp-mrz {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.6cqw 4.4cqw 3.4cqw;
  display: grid;
  gap: 0.6cqw;
  font-family: var(--font-mono);
  font-size: 2.72cqw;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: pre;
  border-top: 1px dashed rgba(11, 23, 38, 0.18);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.45), transparent);
}
/* holographic foil: a drifting rainbow band + a glare that follows the pointer */
.pp-holo,
.pp-glare,
.pp-beam,
.pp-seal {
  position: absolute;
  pointer-events: none;
}
.pp-holo {
  inset: 0;
  background: linear-gradient(112deg,
    transparent 22%,
    rgba(255, 120, 190, 0.55) 32%,
    rgba(255, 214, 110, 0.55) 40%,
    rgba(120, 250, 200, 0.55) 48%,
    rgba(110, 180, 255, 0.55) 56%,
    rgba(190, 130, 255, 0.55) 64%,
    transparent 74%);
  background-size: 300% 300%;
  background-position: var(--gx, 20%) var(--gy, 30%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
  animation: holoDrift 9s ease-in-out infinite alternate;
}
.is-pointer .pp-holo {
  animation: none;
}
@keyframes holoDrift {
  from {
    background-position: 0% 30%;
  }
  to {
    background-position: 100% 70%;
  }
}
.pp-glare {
  inset: 0;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 18%), rgba(255, 255, 255, 0.7), transparent 42%);
  mix-blend-mode: soft-light;
}
/* the laser line, with a warm wake behind it */
.pp-beam {
  left: -4%;
  right: -4%;
  top: 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--cf-marigold) 18%, white 50%, var(--cf-marigold) 82%, transparent);
  box-shadow:
    0 0 14px 3px rgba(230, 154, 46, 0.7),
    0 0 50px 10px rgba(230, 154, 46, 0.3);
}
.pp-beam::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 22cqw;
  background: linear-gradient(to top, rgba(230, 154, 46, 0.22), transparent);
}
.is-scan:not(.is-lift) .pp-beam {
  animation: beamScan 2.5s cubic-bezier(0.55, 0, 0.35, 1) both;
}
@keyframes beamScan {
  0% {
    top: 0%;
    opacity: 0;
  }
  8%, 90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
/* each field flashes as the beam crosses it, then stays marked as read */
.pp-f[data-read="1"] { --t: 520ms; }
.pp-f[data-read="2"] { --t: 780ms; }
.pp-f[data-read="3"] { --t: 960ms; }
.pp-f[data-read="4"] { --t: 1300ms; }
.pp-f[data-read="5"] { --t: 1300ms; }
.is-scan .pp-f[data-read] {
  animation: fieldHit 0.9s ease-out both;
  animation-delay: var(--t);
}
/* once the fields have lifted off, the page settles back */
.is-lift .pp-f[data-read] {
  animation: fieldRest 0.8s ease both;
}
@keyframes fieldRest {
  from {
    background: rgba(230, 154, 46, 0.1);
    box-shadow: 0 0 0 1px rgba(230, 154, 46, 0.45);
  }
  to {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(230, 154, 46, 0);
  }
}
@keyframes fieldHit {
  0% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(230, 154, 46, 0);
  }
  25% {
    background: rgba(230, 154, 46, 0.32);
    box-shadow: 0 0 0 1px rgba(230, 154, 46, 0.9);
  }
  100% {
    background: rgba(230, 154, 46, 0.1);
    box-shadow: 0 0 0 1px rgba(230, 154, 46, 0.45);
  }
}
.is-scan:not(.is-lift) .pp-mrz {
  color: var(--cf-marigold-deep);
  color: color-mix(in srgb, var(--cf-marigold) 45%, var(--cf-passport-deep));
}
/* the filed seal */
/* lands like a stamp across the photo's corner */
.pp-seal {
  left: 17.5cqw;
  top: 31cqw;
  width: 12cqw;
  height: 12cqw;
  opacity: 0;
  transform: scale(1.8) rotate(-30deg);
  transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pp-seal svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--cf-success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pp-seal circle:first-child {
  fill: rgba(30, 122, 78, 0.1);
}
.pp-seal-ring {
  stroke-width: 1.2;
  stroke-dasharray: 2 3.2;
}
.is-filed .pp-seal {
  opacity: 0.92;
  transform: rotate(-12deg);
}

/* ---- the lifted fields: glass chips floating at depth ---- */
.pp-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  text-align: left;
  white-space: nowrap;
  color: var(--on-navy);
  background: rgba(14, 26, 40, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 48px -16px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  opacity: 0;
  transform: translate3d(var(--fx), var(--fy), 0) scale(0.6);
  transition:
    opacity 0.5s ease,
    transform 1s cubic-bezier(0.22, 1.25, 0.36, 1);
}
.pp-chip-1 { left: -24%; top: 12%; --fx: 60%; --fy: 40%; --z: 90px; }
.pp-chip-2 { right: -26%; top: 2%; --fx: -60%; --fy: 60%; --z: 60px; }
.pp-chip-3 { left: -20%; bottom: 20%; --fx: 70%; --fy: -30%; --z: 70px; }
.pp-chip-4 { right: -22%; bottom: 10%; --fx: -70%; --fy: -40%; --z: 110px; }
.is-lift .pp-chip {
  opacity: 1;
  transform: translate3d(0, 0, var(--z)) scale(1);
}
.is-lift .pp-chip-2 { transition-delay: 0.12s; }
.is-lift .pp-chip-3 { transition-delay: 0.24s; }
.is-lift .pp-chip-4 { transition-delay: 0.36s; }
.pp-chip-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cf-success);
  background: color-mix(in srgb, var(--cf-success) 85%, white);
  box-shadow: 0 0 20px -2px rgba(67, 192, 126, 0.7);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.pp-chip-mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: white;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pp-tick {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 0.4s ease 0.5s;
}
.is-lift .pp-tick {
  stroke-dashoffset: 0;
}
.pp-chip-text {
  display: grid;
  gap: 2px;
}
.pp-chip-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-2);
}
.pp-chip-value {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}
/* confidence meter */
.pp-meter {
  width: 42px;
  height: 4px;
  margin-left: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.pp-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--cf-success) 80%, white);
  transition: width 0.9s var(--ease-out-expo) 0.6s, background-color 0.4s ease;
}
.is-lift .pp-meter i {
  width: 96%;
}
/* the flagged field: amber until the host confirms it */
.pp-chip-flag .pp-chip-mark {
  background: var(--cf-marigold);
  box-shadow: 0 0 22px -2px rgba(230, 154, 46, 0.8);
}
.pp-chip-flag .pp-tick {
  opacity: 0;
}
.pp-bang {
  stroke: var(--cf-passport-deep);
  transition: opacity 0.3s ease;
}
.is-lift .pp-chip-flag .pp-meter i {
  width: 58%;
  background: var(--cf-marigold);
}
.is-check .pp-chip-flag {
  animation: confirmPulse 0.8s ease-out;
}
.is-check .pp-chip-flag .pp-chip-mark {
  background: color-mix(in srgb, var(--cf-success) 85%, white);
  box-shadow: 0 0 20px -2px rgba(67, 192, 126, 0.7);
}
.is-check .pp-chip-flag .pp-tick {
  opacity: 1;
  transition: stroke-dashoffset 0.4s ease 0.1s, opacity 0.2s ease;
}
.is-check .pp-bang {
  opacity: 0;
}
.is-check .pp-chip-flag .pp-meter i {
  width: 97%;
  background: color-mix(in srgb, var(--cf-success) 80%, white);
}
@keyframes confirmPulse {
  40% {
    box-shadow: 0 0 0 6px rgba(67, 192, 126, 0.25), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  }
}
.pp-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -18%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  filter: blur(10px);
  transform: translateZ(-60px);
}

/* ---- the meta row: narration chip + the 24-hour clock ---- */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 4vw, 48px);
}
.demo-status,
.deadline-rail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 20px 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.demo-status {
  padding-left: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: border-color 0.4s ease, color 0.4s ease;
}
.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky-lite);
  box-shadow: 0 0 12px var(--sky-lite);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
[data-demo-phase="scan"] .demo-dot {
  background: var(--cf-marigold);
  box-shadow: 0 0 12px var(--cf-marigold);
  animation: demoPulse 0.9s ease-in-out infinite;
}
[data-demo-phase="fill"] {
  border-color: rgba(67, 192, 126, 0.5);
  color: var(--ink);
}
[data-demo-phase="fill"] .demo-dot {
  background: color-mix(in srgb, var(--cf-success) 80%, white);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cf-success) 80%, white);
}
@keyframes demoPulse {
  50% {
    opacity: 0.3;
  }
}
.deadline-clock {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-lite);
}
.deadline-clock .colon {
  color: var(--cf-marigold);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.deadline-note {
  max-width: 17em;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-2);
  text-align: left;
}
.dial-host {
  flex: none;
  width: 36px;
  height: 36px;
}
.deadline-dial {
  width: 100%;
  height: 100%;
  display: block;
}
.hero .dl-track {
  fill: transparent;
  stroke: var(--hairline-strong);
}
.hero .dl-tick,
.hero .dl-tick-major {
  stroke: var(--ink-2);
}

/* ---- the machine-readable zone band ---- */
.mrz-band {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
/* the zone fades into the night at both edges */
.mrz-band::before,
.mrz-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  z-index: 1;
  background: linear-gradient(90deg, var(--night), transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--cf-passport-deep) 72%, black), transparent);
}
.mrz-band::before {
  left: 0;
}
.mrz-band::after {
  right: 0;
  transform: scaleX(-1);
}
.mrz-ticker {
  display: flex;
  width: max-content;
  animation: mrzScroll 90s linear infinite;
}
.mrz-ticker-run {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  white-space: nowrap;
  color: var(--ink-3);
  padding-right: 3rem;
}
@keyframes mrzScroll {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 760px) {
  .pp-scene {
    width: 74vw;
  }
  .pp-chip {
    gap: 8px;
    padding: 6px 10px 6px 6px;
    border-radius: 12px;
  }
  .pp-chip-mark {
    width: 22px;
    height: 22px;
  }
  .pp-chip-value {
    font-size: 0.75rem;
  }
  .pp-chip-label {
    font-size: 0.5rem;
  }
  .pp-meter {
    display: none;
  }
  .pp-chip-1 { left: -12%; top: -10%; }
  .pp-chip-2 { right: -12%; top: 26%; }
  .pp-chip-3 { left: -14%; bottom: 8%; }
  .pp-chip-4 { right: -10%; bottom: -12%; }
  .deadline-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim,
  .aurora,
  .hero-floor,
  .hero h1.display em,
  .hero-eyebrow::before,
  .pp-sway,
  .pp-holo,
  .mrz-ticker,
  .deadline-clock .colon {
    animation: none !important;
  }
  .hero-anim {
    opacity: 1;
    transform: none;
    filter: none;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .pp-sway {
    transform: rotateX(6deg) rotateY(-6deg);
  }
}

/* ============================================================
   small illustrations (art.js): dial, glyphs, vignettes, vault, ribbon
   ============================================================ */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ---- the 24-hour dial beside the countdown ---- */
.dl-track {
  fill: var(--surface);
  stroke: var(--hairline);
  stroke-width: 5;
}
.dl-arc {
  fill: none;
  stroke: var(--marigold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1440;
  stroke-dashoffset: 2;
  animation: dialFill 1.8s var(--ease-out-expo) 0.5s both;
}
.dl-tick {
  stroke: var(--ink-3);
  stroke-width: 1;
  opacity: 0.6;
}
.dl-tick-major {
  stroke: var(--ink);
  stroke-width: 1.6;
  opacity: 0.8;
}
.dl-hand {
  transform-origin: 40px 40px;
  animation: spin 60s steps(60) infinite;
}
.dl-hand line {
  stroke: var(--marigold-deep);
  stroke-width: 2;
  stroke-linecap: round;
}
.dl-hub {
  fill: var(--marigold-deep);
}
@keyframes dialFill {
  from {
    stroke-dashoffset: 1440;
  }
}

.gl-card {
  fill: var(--surface);
  stroke: var(--hairline-strong);
}
.gl-mrz {
  font-family: var(--font-mono);
  font-size: 10.4px;
  font-weight: 600;
  fill: var(--ink-2);
}
.gl-beam {
  fill: var(--marigold);
  filter: drop-shadow(0 0 4px var(--marigold));
  animation: glScan 3.2s var(--ease-in-out-expo) infinite alternate;
}
.gl-token {
  opacity: 0;
  animation: glToken 6.4s var(--ease-out-expo) infinite;
  animation-delay: var(--d);
}
.gl-token-bg {
  fill: var(--brand-tint);
  stroke: var(--brand);
  stroke-opacity: 0.35;
}
.gl-token-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: var(--brand-ink);
}
.gl-row,
.gl-input {
  fill: var(--paper);
  stroke: var(--hairline);
}
.gl-row-flag {
  animation: glRowFlag 4.8s ease infinite;
}
.gl-bar {
  fill: var(--hairline-strong);
}
.gl-ink {
  fill: var(--ink-2);
  opacity: 0.55;
}
.gl-ok,
.gl-flag {
  fill: var(--success);
  transform-box: fill-box;
  transform-origin: center;
  animation: glPop 4.8s var(--ease-out-expo) infinite;
  animation-delay: var(--d);
}
.gl-flag {
  animation:
    glPop 4.8s var(--ease-out-expo) infinite var(--d),
    glFlag 4.8s ease infinite;
}
.gl-winbar {
  fill: var(--surface-2);
}
.gl-dot {
  fill: var(--hairline-strong);
}
.gl-grow {
  fill: var(--brand);
  transform-box: fill-box;
  transform-origin: left center;
  animation: glGrow 4.8s var(--ease-out-expo) infinite;
  animation-delay: var(--d);
}
.gl-photo {
  fill: var(--brand-tint);
  stroke: var(--hairline);
  animation: glFade 4.8s ease infinite;
}
.gl-face {
  fill: var(--brand);
  fill-opacity: 0.35;
  animation: glFade 4.8s ease infinite;
}
.gl-save {
  fill: var(--brand);
  transform-box: fill-box;
  transform-origin: center;
  animation: glSave 4.8s ease infinite;
}
.gl-dialbg {
  fill: var(--surface);
  stroke: var(--hairline);
}
.gl-tick {
  stroke: var(--ink-3);
  stroke-width: 1;
  opacity: 0.6;
}
.gl-tick-major {
  stroke: var(--ink);
  stroke-width: 1.6;
}
.gl-arc {
  fill: none;
  stroke: var(--marigold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  animation: glDrain 12s linear infinite;
}
.gl-24 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  fill: var(--marigold-deep);
}
.gl-hand {
  transform-origin: 160px 75px;
  animation: spin 12s linear infinite;
}
.gl-hand line {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}
.gl-hub {
  fill: var(--marigold-deep);
}
@keyframes glScan {
  to {
    transform: translateX(286px);
  }
}
@keyframes glToken {
  0%, 6% {
    opacity: 0;
    transform: translateY(10px);
  }
  14%, 82% {
    opacity: 1;
    transform: none;
  }
  94%, 100% {
    opacity: 0;
  }
}
@keyframes glPop {
  0%, 12% {
    transform: scale(0);
  }
  24%, 100% {
    transform: scale(1);
  }
}
@keyframes glFlag {
  0%, 55% {
    fill: var(--marigold);
  }
  65%, 100% {
    fill: var(--success);
  }
}
@keyframes glRowFlag {
  0%, 55% {
    stroke: var(--marigold);
  }
  65%, 100% {
    stroke: var(--success);
  }
}
@keyframes glGrow {
  0%, 8% {
    transform: scaleX(0);
  }
  36%, 100% {
    transform: scaleX(1);
  }
}
@keyframes glFade {
  0%, 40% {
    opacity: 0;
  }
  52%, 100% {
    opacity: 1;
  }
}
@keyframes glSave {
  0%, 76%, 86%, 100% {
    transform: scale(1);
  }
  81% {
    transform: scale(0.88);
  }
}
@keyframes glDrain {
  to {
    stroke-dashoffset: -100;
  }
}

/* ---- how-it-works vignettes ---- */
.st-doc,
.st-win {
  fill: var(--surface);
  stroke: var(--hairline-strong);
}
.st-doc-head {
  fill: var(--navy);
}
.st-win-bar {
  fill: var(--surface-2);
}
.st-photo {
  fill: var(--brand-tint);
  stroke: var(--hairline);
}
.st-line {
  fill: var(--hairline-strong);
}
.st-mrz {
  fill: var(--ink-3);
  opacity: 0.55;
}
.st-corner {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.st-beam {
  fill: var(--marigold);
  animation: stBeam 1.8s var(--ease-in-out-expo) infinite alternate;
}
.st-card,
.st-input {
  fill: var(--surface);
  stroke: var(--hairline);
}
.st-card-flag {
  stroke: var(--marigold);
  animation: stFlagCard 5.2s ease infinite;
}
.st-row {
  animation: stRow 5.2s var(--ease-out-expo) infinite;
  animation-delay: var(--d);
}
.st-ok {
  fill: var(--success);
}
.st-flag {
  animation: stFlag 5.2s ease infinite;
}
.st-grow {
  fill: var(--brand);
  transform-box: fill-box;
  transform-origin: left center;
  animation: glGrow 5.2s var(--ease-out-expo) infinite;
  animation-delay: var(--d);
}
.st-photo-in {
  animation: stPhoto 5.2s ease infinite;
}
.st-captcha {
  fill: var(--marigold-tint);
}
.st-squiggle {
  fill: none;
  stroke: var(--marigold-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.st-save {
  fill: var(--brand);
  transform-box: fill-box;
  transform-origin: center;
  animation: stSave 5.2s ease infinite;
}
.st-cursor {
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 1;
  animation: stCursor 5.2s var(--ease-in-out-expo) infinite;
}
@keyframes stBeam {
  to {
    transform: translateY(96px);
  }
}
@keyframes stRow {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  10%, 100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes stFlag {
  0%, 60% {
    fill: var(--marigold);
  }
  70%, 100% {
    fill: var(--success);
  }
}
@keyframes stFlagCard {
  0%, 60% {
    stroke: var(--marigold);
  }
  70%, 100% {
    stroke: var(--success);
  }
}
@keyframes stPhoto {
  0%, 35% {
    opacity: 0;
  }
  45%, 100% {
    opacity: 1;
  }
}
@keyframes stCursor {
  0%, 30% {
    transform: translate(120px, 138px);
  }
  55% {
    transform: translate(72px, 104px);
  }
  75%, 100% {
    transform: translate(166px, 104px);
  }
}
@keyframes stSave {
  0%, 76%, 84%, 100% {
    transform: scale(1);
  }
  80% {
    transform: scale(0.9);
  }
}

/* ---- privacy vault ---- */
.privacy-vault {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.pv-field {
  fill: rgba(255, 255, 255, 0.025);
}
.pv-wall {
  fill: none;
  stroke: var(--marigold);
  stroke-width: 1.5;
  opacity: 0.7;
}
.pv-wall-dash {
  fill: none;
  stroke: var(--on-navy-3);
  stroke-width: 1.2;
  stroke-dasharray: 2 9;
  transform-origin: 180px 170px;
  animation: spin 60s linear infinite;
}
.pv-phone {
  fill: var(--navy-deep);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
}
.pv-screen {
  fill: var(--navy);
}
.pv-lock {
  fill: none;
  stroke: var(--marigold);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.pv-keyhole {
  fill: var(--marigold);
  stroke: none;
}
.pv-orbit {
  transform: translate(180px, 170px) rotate(var(--a));
  animation: orbit 18s linear infinite;
  animation-delay: var(--d);
}
.pv-rec {
  fill: var(--marigold);
  opacity: 0.9;
}
.pv-cloud {
  fill: none;
  stroke: var(--on-navy-3);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.pv-x {
  stroke: var(--danger);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.pv-bounce {
  animation: bounceBack 4.2s var(--ease-in-out-expo) infinite;
}
.pv-rec-bounce {
  animation: bounceHit 4.2s ease infinite;
}
.pv-route {
  fill: none;
  stroke: var(--marigold);
  stroke-width: 1.6;
  stroke-dasharray: 3 5;
  opacity: 0.8;
}
.pv-packet {
  fill: var(--marigold);
}
.pv-gov {
  fill: var(--on-navy-2);
  stroke: var(--on-navy-2);
  stroke-width: 1.4;
  stroke-linecap: round;
}
@keyframes orbit {
  from {
    transform: translate(180px, 170px) rotate(0deg);
  }
  to {
    transform: translate(180px, 170px) rotate(360deg);
  }
}
@keyframes bounceBack {
  0%, 10% {
    transform: translate(180px, 170px);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  46% {
    transform: translate(254px, 95px);
  }
  78% {
    transform: translate(214px, 136px);
    opacity: 1;
  }
  92%, 100% {
    transform: translate(200px, 150px);
    opacity: 0;
  }
}
@keyframes bounceHit {
  0%, 42% {
    fill: var(--marigold);
  }
  48%, 60% {
    fill: var(--danger);
  }
  72%, 100% {
    fill: var(--marigold);
  }
}


/* ---- only animate what is on screen; freeze everything for reduced motion ---- */
.art-ready:not(.in-view) *,
.art-ready:not(.in-view) {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  .art-ready *,
  .art-ready {
    animation: none !important;
  }
  .pv-packet,
  .pv-bounce {
    display: none;
  }
}

/* ============================================================
   sections
   ============================================================ */

.section {
  padding: clamp(72px, 11vw, 120px) 0;
}
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--hairline);
}
/* pricing: a compact, no-surprises purchase surface */
.pricing-hero {
  padding: clamp(72px, 11vw, 120px) 0 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}
.pricing-hero h1 {
  max-width: 700px;
  margin: 18px 0;
}
.pricing-config-note {
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.pricing-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pricing-card-featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}
.pricing-credits {
  font-family: var(--font-mono);
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
}
.buy-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}
.pricing-auth-section {
  background: var(--navy);
  color: var(--on-navy);
}
.pricing-auth-section .eyebrow {
  color: var(--on-navy-2);
}
.pricing-auth-section h2 {
  color: var(--on-navy);
}
.pricing-auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: clamp(40px, 8vw, 100px);
}
.pricing-auth-grid h2,
.pricing-enterprise h2,
.pricing-policy h2 {
  margin: 14px 0 16px;
  font-size: clamp(2rem, 3.9vw, 3rem);
  line-height: 1.08;
}
.pricing-auth-grid .section-lede {
  color: var(--on-navy-2);
}
.buy-auth-form {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(244, 239, 228, 0.2);
  border-radius: var(--r-card);
  background: rgba(244, 239, 228, 0.06);
}
.buy-auth-form label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--on-navy-2);
}
.buy-auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(244, 239, 228, 0.26);
  border-radius: var(--r-input);
  background: rgba(244, 239, 228, 0.06);
  color: var(--on-navy);
  font: inherit;
  margin-bottom: 8px;
}
.buy-auth-form input::placeholder {
  color: var(--on-navy-3);
}
.buy-auth-form .btn {
  justify-self: start;
}
.buy-status {
  min-height: 1.65em;
  margin-top: 6px;
  color: var(--on-navy);
  font-size: 0.9375rem;
}
.pricing-enterprise {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}
.pricing-enterprise-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.pricing-enterprise p:not(.eyebrow),
.pricing-policy p {
  max-width: 68ch;
  color: var(--ink-2);
}
.pricing-policy {
  padding-top: 72px;
}
.pricing-policy h2 {
  font-size: 1.5rem;
}

/* ============================================================
   homepage sections (light) — editorial type, bento cards
   ============================================================ */

.section-head h2 {
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  font-weight: 460;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
#portal .section-head,
#how .section-head,
.lang-section .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#portal .section-lede,
#how .section-lede,
.lang-section .section-lede {
  margin: 0 auto;
}
#portal .eyebrow,
#how .eyebrow,
.lang-section .eyebrow {
  justify-content: center;
}

/* spotlight border: a hairline of brand light follows the pointer around
   each card's edge (art.js sets --mx/--my) */
[data-spotlight] {
  position: relative;
}
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    var(--brand),
    transparent 42%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  transition: opacity 0.4s ease;
}
[data-spotlight]:hover::before {
  opacity: 1;
}

/* ---- why-not-the-portal: a bento of four reasons ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.why-item {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 28px 30px 32px;
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.5s var(--ease-out-expo),
    box-shadow 0.5s var(--ease-out-expo);
}
.why-item:nth-child(1),
.why-item:nth-child(4) {
  grid-column: span 4;
}
@media (hover: hover) and (pointer: fine) {
  .why-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}
.why-glyph-host {
  display: grid;
  place-items: center;
  height: 200px;
  padding: 12px;
  margin-bottom: 26px;
  border-radius: 18px;
  background-color: var(--paper);
  background-image: radial-gradient(var(--hairline) 1px, transparent 1.3px);
  background-size: 14px 14px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.why-glyph {
  width: 100%;
  max-width: 420px;
  height: 176px;
  display: block;
}
.why-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.why-ghost {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--marigold-deep);
}
.why-item h3 {
  font-size: 1.5rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.why-item p {
  color: var(--ink-2);
  font-size: 0.9688rem;
  max-width: 52ch;
}
@media (max-width: 880px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-item,
  .why-item:nth-child(1),
  .why-item:nth-child(4) {
    grid-column: auto;
  }
}

/* ---- how it works: three moves, numbered like an engraved plate ---- */
#how.section-alt {
  background: var(--paper-2);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: move;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 18px 18px 30px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.5s var(--ease-out-expo),
    box-shadow 0.5s var(--ease-out-expo);
}
@media (hover: hover) and (pointer: fine) {
  .step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}
.step-art-host {
  height: 190px;
  margin-bottom: 24px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background-color: var(--paper);
  background-image: radial-gradient(var(--hairline) 1px, transparent 1.3px);
  background-size: 14px 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.step-art {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}
.step-meta,
.step h3,
.step p {
  padding: 0 12px;
}
.step-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.step-meta .step-idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--marigold-deep);
}
.step-meta .step-dash {
  width: 24px;
  height: 1px;
  background: var(--hairline-strong);
}
.step h3 {
  font-size: 1.5rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step p {
  color: var(--ink-2);
  font-size: 0.9688rem;
}
@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   privacy — the night returns: the on-device promise
   ============================================================ */

.privacy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image:
    radial-gradient(60% 50% at 78% 30%, rgba(230, 154, 46, 0.16), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(90, 166, 236, 0.14), transparent 70%);
}
.privacy > .container {
  position: relative;
  z-index: 1;
}
.privacy .eyebrow {
  color: var(--gold-lite);
}
.privacy .eyebrow::before {
  background: var(--gold-lite);
}
.privacy-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: 72px;
}
.privacy-top .section-head {
  margin-bottom: 0;
}
html:not(.art) .privacy-top {
  grid-template-columns: 1fr;
}
.vault-host {
  width: 100%;
  max-width: 460px;
  justify-self: center;
  filter: drop-shadow(0 0 60px rgba(230, 154, 46, 0.18));
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.privacy-item {
  display: flex;
  gap: 20px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.privacy-item:hover {
  background: var(--glass-strong);
  border-color: var(--hairline-strong);
}
.privacy-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(230, 154, 46, 0.1);
  border: 1px solid rgba(230, 154, 46, 0.3);
  color: var(--gold-lite);
  display: grid;
  place-items: center;
}
.privacy-item h3 {
  font-size: 1.1875rem;
  font-weight: 520;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.privacy-item p {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
@media (max-width: 880px) {
  .privacy-top {
    grid-template-columns: 1fr;
  }
  .vault-host {
    max-width: 320px;
  }
}
@media (max-width: 800px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   languages — twelve scripts, drifting at display size
   ============================================================ */

.ribbon {
  display: grid;
  gap: 6px;
  margin: 0 calc(var(--gutter) * -1) 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: mrzScroll 70s linear infinite;
}
.ribbon-track-rev {
  animation-direction: reverse;
  animation-duration: 90s;
}
.ribbon:hover .ribbon-track {
  animation-play-state: paused;
}
.ribbon-run {
  display: flex;
  align-items: center;
}
.ribbon-run span {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding-right: 0.9em;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 420;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.ribbon-run span::after {
  content: "";
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: var(--marigold);
}
.ribbon-track-rev .ribbon-run span {
  color: var(--ink-3);
  opacity: 0.55;
}
.lang-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.lang-col:first-child {
  border-right: 1px solid var(--hairline);
  padding-right: clamp(28px, 4vw, 44px);
}
.lang-col h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.lang-samples {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lang-samples span {
  font-size: 1.0625rem;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.lang-note {
  margin-top: 28px;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
@media (max-width: 800px) {
  .lang-card {
    grid-template-columns: 1fr;
  }
  .lang-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding-right: 0;
    padding-bottom: 28px;
  }
}

/* ============================================================
   FAQ — the question column stays put while answers scroll
   ============================================================ */

.faq-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.faq-layout .section-head {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
}
.faq-list {
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item:first-child {
  border-top: 1px solid var(--hairline);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 480;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-height: 48px;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--brand);
}
/* a plus that turns into a cross */
.faq-item summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 0.4s var(--ease-out-expo), background-color 0.3s ease;
}
.faq-item[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--marigold-tint);
}
.faq-item .faq-body {
  padding: 0 4px 28px;
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 62ch;
  line-height: 1.7;
}
.faq-item[open] .faq-body {
  animation: faqOpen 0.4s var(--ease-out-expo) both;
}
@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.faq-item .faq-body a {
  text-decoration: underline;
}
@media (max-width: 880px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-layout .section-head {
    position: static;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-body {
    animation: none;
  }
  .ribbon-track {
    animation: none;
  }
}

/* ============================================================
   CTA — the night closes the page, lit from within
   ============================================================ */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: clamp(96px, 13vw, 168px) 0;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.cta-bg .aurora-1 {
  left: 10vw;
  top: auto;
  bottom: -20vw;
}
.cta-bg .aurora-2 {
  right: 0;
  top: -18vw;
}
.cta-band > .container {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 440;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin: 0 auto 22px;
}
.cta-band .section-lede {
  color: var(--ink-2);
  margin: 0 auto 44px;
  max-width: 40em;
}
.cta-band .waitlist-form {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 28px;
  border: 1px solid var(--hairline-strong);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.cta-band .btn {
  border-radius: var(--r-pill);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
}
.store-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}
.store-pill .soon {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  border: 1px solid var(--marigold);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}
/* pills live on the navy band — re-ink them for the dark ground */
.cta-band .store-pill {
  background: rgba(244, 239, 228, 0.05);
  border-color: rgba(244, 239, 228, 0.26);
  color: var(--on-navy-2);
}
.cta-band .store-pill .soon {
  color: var(--marigold);
  border-color: rgba(230, 154, 46, 0.55);
}
.cta-band .store-pill[data-store-badge]:not(a) {
  cursor: default;
}
a.store-pill:hover {
  border-color: var(--marigold);
}

/* waitlist form (roadmap 92) — capture on the navy band, zero tracking.
   Inputs are re-inked for the dark ground like the store pills. */
.waitlist-form {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}
.waitlist-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.waitlist-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.waitlist-field span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-2);
}
.waitlist-field input,
.waitlist-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--r-input);
  border: 1px solid rgba(244, 239, 228, 0.26);
  background: rgba(244, 239, 228, 0.06);
  color: var(--on-navy);
  font-family: var(--font-ui);
  font-size: 1rem;
}
.waitlist-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--on-navy-2) 50%),
    linear-gradient(135deg, var(--on-navy-2) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.waitlist-field input::placeholder {
  color: var(--on-navy-3);
}
.waitlist-field input:focus-visible,
.waitlist-field select:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 1px;
  border-color: var(--marigold);
}
.waitlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}
.waitlist-note,
.waitlist-done {
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--on-navy-2);
  margin: 22px auto 0;
  max-width: 46em;
}
.waitlist-note a {
  color: var(--on-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.waitlist-done {
  color: var(--on-navy);
  border: 1px solid rgba(30, 122, 78, 0.55);
  background: rgba(30, 122, 78, 0.18);
  border-radius: var(--r-md);
  padding: 12px 18px;
}

/* disclaimer — a quiet, official note */
.disclaimer {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--marigold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 24px;
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============================================================
   footer
   ============================================================ */

.footer {
  background: var(--navy-deep);
  color: var(--on-navy);
  padding: clamp(56px, 7vw, 80px) 0 36px;
  margin-top: clamp(72px, 10vw, 120px);
}
.footer-grid {
  display: grid;
  /* 5 columns: brand, Product, Free tools, Legal, Contact (roadmaps 99/100/196) */
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer .brand {
  margin-bottom: 16px;
}
.footer-blurb {
  font-size: 0.9063rem;
  color: var(--on-navy-2);
  max-width: 30em;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  color: var(--on-navy-2);
  font-size: 0.9063rem;
}
.footer-col a:hover {
  color: var(--on-navy);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--on-navy-3);
}
.footer-lang {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   language toggle (EN / हिन्दी)
   ============================================================ */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--on-navy);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.lang-toggle[hidden] {
  display: none;
}
[hidden] {
  display: none !important;
}
.lang-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--marigold);
}

/* ============================================================
   legal pages
   ============================================================ */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px var(--gutter) 96px;
}
.legal-main .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 48px;
}
.legal-main .back:hover {
  color: var(--brand-deep);
}
.legal-main .back svg {
  transition: transform 0.2s ease;
}
.legal-main .back:hover svg {
  transform: translateX(-3px);
}
.legal-main .updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.legal-main h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}
.legal-main .lede {
  color: var(--ink-2);
  font-size: 1.125rem;
  margin-bottom: 56px;
}
.legal-main h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-top: 48px;
  margin-bottom: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.legal-main h3 {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-main p {
  margin-bottom: 14px;
  color: var(--ink);
}
.legal-main ul {
  margin: 0 0 18px 4px;
  list-style: none;
}
.legal-main li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  color: var(--ink);
}
.legal-main li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--marigold);
}
.legal-main a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-main strong {
  font-weight: 600;
}

/* ============================================================
   setup guide page
   ============================================================ */

.setup-steps {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: none;
}
.setup-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 22px 18px;
  background: color-mix(in srgb, var(--paper) 92%, var(--surface));
}
.setup-card h2 {
  /* Step titles read as card headings, not document sections. */
  border-top: none;
  padding-top: 0;
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 1.0625rem;
}
.setup-art {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-radius: 12px;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.setup-card p {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-bottom: 0;
}
.setup-walk {
  margin: 0 0 8px 4px;
  padding: 0;
  list-style: none;
  counter-reset: walk;
}
.setup-walk li {
  counter-increment: walk;
  padding-left: 40px;
  position: relative;
  margin-bottom: 14px;
  color: var(--ink);
}
.setup-walk li::before {
  content: counter(walk, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
}
.setup-faq dt {
  font-weight: 600;
  font-family: var(--font-ui);
  margin-top: 18px;
}
.setup-faq dd {
  margin: 6px 0 0;
  color: var(--ink-2);
}
.setup-note {
  margin-top: 48px;
  padding: 16px 18px;
  border-left: 3px solid var(--marigold);
  background: color-mix(in srgb, var(--marigold) 8%, transparent);
  border-radius: 0 10px 10px 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ============================================================
   responsive (hero collapse)
   ============================================================ */

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-auth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-enterprise-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================================
   print (legal pages)
   ============================================================ */

@media print {
  .nav,
  .btn,
  .cta-band,
  .footer,
  .lang-toggle,
  .hero-visual,
  .mrz-band {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
    background-image: none;
  }
  .section,
  .legal-main {
    max-width: 100%;
    padding: 0;
  }
  a {
    color: #000000;
    text-decoration: underline;
  }
}
