/* Product tokens from src/app.css:1-29 (those this page uses). */
:root {
  --bg: oklch(98.5% 0.003 250);
  --surface: oklch(100% 0 0);
  --surface-soft: oklch(96.5% 0.004 250);
  --surface-strong: oklch(18% 0.012 250);
  --fg: oklch(18% 0.012 250);
  --muted: oklch(50% 0.012 250);
  --border: oklch(90% 0.006 250);
  --accent: oklch(48% 0.08 238);
  --accent-soft: oklch(95% 0.018 238);
  --success: oklch(47% 0.08 155);
  --radius: 10px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
}

/* Site tokens. Brand moments borrow the first-run welcome palette (FirstRunWelcome.svelte:363-377). */
:root {
  --font-money: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --deep-blue: #071f4a;
  --teal: #18a9a4;
  --mint: #edf4f1;
  --on-dark: #ffffff;
  --on-dark-muted: rgb(255 255 255 / 0.66);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --engrave-on-dark: color-mix(in srgb, var(--mint) 18%, transparent);
  --engrave-teal: color-mix(in srgb, var(--teal) 34%, transparent);
  --engrave-on-light: color-mix(in srgb, var(--deep-blue) 10%, transparent);
  --engrave-rule: color-mix(in srgb, var(--mint) 30%, transparent);

  --container: 1232px;
  --gutter: clamp(16px, 4vw, 64px);
  --section-pad: clamp(64px, 9vw, 132px);
  --panel-inset: clamp(8px, 1.1vw, 16px);
  --panel-radius: clamp(24px, 2.8vw, 40px);
  --nav-height: 60px;
  --page-zoom: 1;
}

/* The page reads best at 80% of its drawn size. Phones keep full size so body text stays legible. */
@media (min-width: 761px) {
  :root {
    --page-zoom: 0.8;
  }
}

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

html {
  zoom: var(--page-zoom);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* Type */

.display {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.display span {
  white-space: nowrap;
}

:lang(en) .display {
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

:lang(en) .display span {
  white-space: normal;
}

:lang(en) .display br {
  display: none;
}

:lang(en) .hero .display {
  max-width: 14em;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.9vw, 56px);
  font-weight: 560;
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:lang(en) .headline {
  line-height: 1.1;
  letter-spacing: -0.028em;
}

:lang(zh) .headline > span {
  display: inline-block;
}

.headline .tone {
  color: var(--muted);
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 0.9rem + 0.45vw, 22px);
  line-height: 1.6;
  text-wrap: pretty;
}

.lead-on-dark {
  color: var(--on-dark-muted);
}

/* Buttons and chips (src/app.css:646-716) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, translate 160ms ease;
}

.btn-lg {
  min-height: 52px;
  padding: 0 22px;
  font-size: 16px;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
}

.btn-ink {
  background: var(--fg);
  color: #fff;
}

.btn-ink:hover {
  background: color-mix(in oklch, var(--fg) 86%, white);
}

.btn-mint {
  background: var(--mint);
  color: var(--deep-blue);
}

.btn-mint:hover {
  background: #fff;
}

.btn-mint .icon {
  transition: translate 200ms var(--ease-out);
}

.btn-mint:hover .icon {
  translate: 3px 0;
}

.btn-glass {
  border-color: rgb(255 255 255 / 0.24);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  border-color: rgb(255 255 255 / 0.42);
  background: rgb(255 255 255 / 0.14);
}

.btn-glass .icon {
  width: 16px;
  height: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-good {
  border-color: color-mix(in oklch, var(--success) 22%, var(--border));
  background: color-mix(in oklch, var(--success) 10%, white);
  color: var(--success);
}

/* Nav */

.site-header {
  position: fixed;
  top: var(--space-3);
  left: 0;
  right: 0;
  z-index: 50;
  transition: translate 300ms ease-out;
}

.site-header.is-hidden {
  translate: 0 calc(-100% - var(--space-6));
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: min(100% - 2 * var(--space-3), var(--container) + 32px);
  min-height: var(--nav-height);
  margin-inline: auto;
  padding: 0 var(--space-2) 0 var(--space-5);
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.78);
  box-shadow: 0 12px 28px rgb(15 23 42 / 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: var(--space-1);
  margin-inline: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--fg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.nav-links + .nav-actions {
  margin-left: 0;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid color-mix(in oklch, var(--border) 58%, transparent);
  border-radius: 12px;
  background: color-mix(in oklch, var(--surface) 42%, transparent);
}

.lang-switch button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  border-color: var(--border);
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

.label-short {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  /* Zoom scales viewport units too, so undo it to keep the hero a full screen tall. */
  min-height: max(680px, 100svh / var(--page-zoom));
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 var(--panel-radius) var(--panel-radius);
  background:
    radial-gradient(60% 70% at 78% 30%, rgb(24 169 164 / 0.34), transparent 70%),
    linear-gradient(118deg, var(--deep-blue) 0%, #0a2a5c 34%, #0d4672 62%, #12808f 86%, var(--teal) 106%);
  color: var(--on-dark);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(70% 80% at 12% 52%, rgb(7 31 74 / 0.55), transparent 72%);
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Security-print textures: inline defs written by scripts/site-banknote-patterns.mjs, inked through `color`. */
.engrave {
  position: absolute;
  pointer-events: none;
  color: var(--engrave-on-dark);
}

.engrave-rosette {
  right: calc(28vw - 460px);
  top: 50%;
  width: 920px;
  height: 920px;
  margin-top: -490px;
  translate: calc(var(--px, 0) * 6px) calc(var(--py, 0) * 4px);
  transition: translate 900ms var(--ease-out);
}

.engrave-waves {
  inset: -4% -2%;
  width: 104%;
  height: 108%;
  translate: calc(var(--px, 0) * -3px) calc(var(--py, 0) * -2px);
  transition: translate 900ms var(--ease-out);
}

/* Pattern content inherits from the pattern element, so each tile carries its own ink. */
.waves-teal {
  color: var(--engrave-teal);
}

.waves-ink {
  color: var(--engrave-on-light);
}

.microline {
  color: var(--engrave-rule);
}

.engrave-rule {
  left: var(--gutter);
  bottom: clamp(20px, 2.4vw, 32px);
  z-index: 2;
  width: calc(100% - 2 * var(--gutter));
  height: 14px;
}

.engrave-light {
  inset: 0 0 auto;
  z-index: -1;
  width: 100%;
  height: 720px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}


.engrave-cta {
  right: -340px;
  top: 50%;
  width: 640px;
  height: 640px;
  margin-top: -320px;
  translate: none;
}

.sun {
  position: absolute;
  right: -4vw;
  bottom: -9%;
  width: clamp(560px, 59vw, 920px);
  aspect-ratio: 701 / 700;
  translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -10px);
  transition: translate 700ms var(--ease-out);
}

.sun-ink {
  position: absolute;
  inset: 0;
  filter: url(#ink-hero);
}

.pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0s linear 260ms;
}

/* The incoming pose fades in on top while the outgoing one holds, so the figure never thins out mid-swap. */
.pose.is-on {
  z-index: 1;
  opacity: 1;
  transition: opacity 260ms ease;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 132px 96px;
}

.hero-copy {
  max-width: 940px;
}

.hero .display {
  margin-bottom: var(--space-6);
  background: radial-gradient(circle 380px at var(--mx, 12%) var(--my, 24%), #c4f5ee 0, #5fd4c9 34%, #c9efe9 68%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 34em;
  margin-bottom: var(--space-8);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-8);
  color: rgb(255 255 255 / 0.72);
  font-size: 14px;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.facts .icon {
  width: 16px;
  height: 16px;
  color: #8fe0d8;
}

/* Sections and panels */

.section {
  padding-block: var(--section-pad);
}

.panel {
  position: relative;
  margin-inline: var(--panel-inset);
  padding-block: var(--section-pad);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--panel-radius);
}

.panel + .panel {
  margin-top: var(--panel-inset);
}

.panel-soft {
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.panel-ink {
  background: var(--surface-strong);
  color: var(--on-dark);
}

.panel-ink .headline .tone,
.panel-night .headline .tone {
  color: var(--on-dark-muted);
}

.panel-mint {
  background: var(--mint);
}

.panel-mint .headline .tone {
  color: color-mix(in oklch, var(--deep-blue) 55%, var(--mint));
}

.panel-night {
  margin-bottom: var(--panel-inset);
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0a2c5e 60%, #0d4672 100%);
  color: var(--on-dark);
}

.section-head {
  display: grid;
  gap: var(--space-6);
  max-width: 820px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head.split {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  align-items: end;
  gap: var(--space-6) clamp(32px, 5vw, 80px);
  max-width: none;
}

.head-aside {
  display: grid;
  justify-items: start;
  gap: var(--space-5);
}

/* Sources */

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.source-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 96px;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.source-card strong {
  display: block;
  font-size: 16px;
  font-weight: 680;
  line-height: 1.3;
}

.source-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.source-logo {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 5;
  min-height: clamp(460px, 42vw, 580px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.tile-collect,
.tile-check {
  grid-column: span 7;
}

/* The first row sits on a shared baseline and the second hangs from a shared top, so the shorter tiles stagger. */
.tile-collect {
  align-self: end;
  min-height: clamp(400px, 36vw, 500px);
}

.tile-demo {
  align-self: start;
}

.tile:has(.tile-link:hover),
.tile:has(.tile-link:focus-visible) {
  border-color: color-mix(in oklch, var(--accent) 42%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 9%, transparent);
}

.tile-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-8);
  text-decoration: none;
}

.tile-link:focus-visible {
  outline: none;
}

.tile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-4);
}

.tile-no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 5px color-mix(in oklch, var(--accent) 16%, transparent);
  color: #fff;
  font-family: var(--font-money);
  font-size: 13px;
  font-weight: 760;
}

.tile-no-play .icon {
  width: 14px;
  height: 14px;
  translate: 1px 0;
}

.tile-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tile-text small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.tile-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.tile-arrow .icon {
  width: 18px;
  height: 18px;
}

.tile-link:hover .tile-arrow,
.tile-link:focus-visible .tile-arrow {
  border-color: var(--fg);
  background: var(--fg);
  color: #fff;
}

.tile-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  min-height: 280px;
  margin: var(--space-8) calc(-1 * var(--space-8)) calc(-1 * var(--space-8));
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 50% 100%, color-mix(in oklch, var(--accent-soft) 90%, transparent), transparent 75%),
    linear-gradient(180deg, transparent, color-mix(in oklch, var(--accent-soft) 45%, transparent));
}

.frag {
  transition: translate 240ms var(--ease-out);
}

.tile-link:hover .frag,
.tile-link:focus-visible .frag {
  translate: 0 -8px;
}

/* Screenshots of the app, cropped by their stage */
.shot {
  display: block;
  max-width: none;
  border-radius: 14px;
  background: var(--surface);
  outline: 1px solid var(--border);
  outline-offset: -0.5px;
  box-shadow: 0 18px 40px rgb(15 23 42 / 0.12);
}

/* 01: credentials list with the onboarding toast laid over it */
.tile-setup .tile-stage {
  min-height: 360px;
}

.shot-stack {
  position: absolute;
  left: 40px;
  top: 36px;
  width: min(620px, 130%);
}

.shot-stack > .shot:first-child {
  width: 100%;
}

.shot-toast {
  position: absolute;
  left: -2.6%;
  top: 53.7%;
  width: 69.4%;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgb(15 23 42 / 0.16);
}

/* 02: sync data table */
.tile-collect .tile-stage {
  align-items: center;
  padding: 0 var(--space-8) var(--space-6);
}

.tile-collect .shot {
  width: 100%;
  max-width: 646px;
}

/* 03: liabilities table */
.tile-check .shot {
  position: absolute;
  left: 40px;
  top: 48px;
  width: min(912px, 180%);
}

/* Demo: the intro card shows the poster and opens the video modal */
.tile-demo {
  min-height: clamp(400px, 34vw, 440px);
  scroll-margin-top: 96px;
}

.tile-demo .tile-head {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.demo-frame {
  margin-top: auto;
  padding-top: var(--space-8);
}

.demo-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.video-modal {
  --modal-ink: #0e1217;
  --modal-muted: #9aa3ad;
  --modal-faint: #7d8690;
  --modal-line: rgb(255 255 255 / 0.1);
  width: min(1040px, 100% - 32px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: var(--space-6);
  overflow: auto;
  border: 1px solid var(--modal-line);
  border-radius: 24px;
  background: var(--modal-ink);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.4);
  color: #fff;
}

.video-modal[open] {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}

.video-modal::backdrop {
  background: rgb(10 14 19 / 0.7);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.video-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-modal-titles {
  flex: 1;
  min-width: 0;
}

.video-modal-titles h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.video-modal-titles p {
  margin-top: 2px;
  overflow: hidden;
  color: var(--modal-muted);
  font-size: 14px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-modal-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  color: #e6e9ec;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.video-modal-close:hover {
  background: rgb(255 255 255 / 0.16);
}

.video-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.video-modal-foot p {
  color: var(--modal-faint);
  font-size: 13px;
}

.btn-paper {
  min-height: 40px;
  background: #fff;
  color: var(--modal-ink);
  font-size: 14px;
}

.btn-paper:hover {
  background: var(--mint);
}

.btn-paper .icon {
  width: 16px;
  height: 16px;
}

/* Player: native video under custom controls, styled to the modal */
.player {
  --played: 0%;
  --buffered: 0%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
}

.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.player-controls {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: var(--space-3);
  padding: 48px 20px 16px;
  background: linear-gradient(180deg, rgb(10 14 19 / 0), rgb(10 14 19 / 0.85));
  color: #fff;
  transition: opacity 200ms ease;
}

.player.is-playing:not(:hover, :focus-within) .player-controls {
  opacity: 0;
}

.player-progress {
  display: block;
}

.player-progress input {
  display: block;
  width: 100%;
  height: 14px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.player-progress input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, #7fe0cf var(--played), transparent var(--played)),
    linear-gradient(90deg, rgb(255 255 255 / 0.35) var(--buffered), rgb(255 255 255 / 0.25) var(--buffered));
}

.player-progress input::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, #7fe0cf var(--played), transparent var(--played)),
    linear-gradient(90deg, rgb(255 255 255 / 0.35) var(--buffered), rgb(255 255 255 / 0.25) var(--buffered));
}

.player-progress input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.player-progress input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.player-btn,
.player-speed {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.player-btn .icon {
  width: 22px;
  height: 22px;
}

.player-time {
  margin-right: auto;
  font-variant-numeric: tabular-nums;
  color: #e6e9ec;
  font-size: 14px;
  font-weight: 500;
}

.player-speed {
  padding: 4px 8px;
  border-radius: 6px;
  outline: 1px solid rgb(255 255 255 / 0.35);
  outline-offset: -0.5px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.player:not(.is-playing) .player-when-playing,
.player.is-playing .player-when-stopped,
.player:not(.is-muted) .player-when-muted,
.player.is-muted .player-when-sound {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Overview: the full screen, with three page cards lapping its lower edge */

.overview-shot {
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  outline: 1px solid rgb(255 255 255 / 0.14);
  outline-offset: -0.5px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.4);
}

.overview-shot img {
  width: 100%;
}

.page-cards {
  position: relative;
  display: grid;
  grid-template-columns: 340fr 420fr 360fr;
  align-items: end;
  gap: 20px;
  margin-top: calc(-1 * clamp(40px, 9vw, 110px));
  padding: 0 56px 0 16px;
}

.page-card {
  padding: 12px 12px 20px;
  border-radius: 18px;
  background: #161b21;
  outline: 1px solid rgb(255 255 255 / 0.14);
  outline-offset: -0.5px;
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.5);
}

.page-card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  object-position: left top;
}

.page-card-assets img {
  aspect-ratio: 316 / 200;
}

.page-card-spending img {
  aspect-ratio: 396 / 250;
}

.page-card-liabilities img {
  aspect-ratio: 336 / 180;
}

.page-card strong {
  display: block;
  margin: var(--space-4) var(--space-2) 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.page-card small {
  display: block;
  margin: 6px var(--space-2) 0;
  color: var(--on-dark-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Privacy */

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 540fr) minmax(0, 636fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 56px);
}

.privacy-copy .headline {
  margin-bottom: var(--space-6);
}

.proof-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-10);
}

.proof-list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 18px;
  font-weight: 600;
}

.proof-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid color-mix(in oklch, var(--deep-blue) 14%, transparent);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.7);
  color: var(--deep-blue);
}

.privacy-proof {
  position: relative;
  aspect-ratio: 636 / 540;
}

.privacy-proof .shot {
  position: absolute;
  outline-color: #d3ddd8;
}

.privacy-settings {
  left: 24.5%;
  top: 0;
  width: 75.5%;
  box-shadow: 0 24px 60px rgb(15 42 31 / 0.1);
}

.privacy-credential {
  left: 0;
  top: 21.85%;
  width: 78.6%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgb(15 42 31 / 0.18);
}

/* In flow beside the sources heading, so the one plain light section carries its own engraving. */
.motif-shoal {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: url(#ink-light);
}

.sources-aside {
  max-width: 34em;
  margin-top: var(--space-6);
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}

.faq-list details {
  border-top: 1px solid var(--border);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .icon {
  transition: rotate 200ms var(--ease-out);
}

.faq-list details[open] summary .icon {
  rotate: 45deg;
}

.faq-list details p {
  max-width: 62ch;
  padding-bottom: var(--space-6);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

/* Closing CTA */

.cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-8) var(--space-10);
}

.cta .headline {
  max-width: 15em;
}

.cta-actions {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
}

.cta-actions small {
  color: var(--on-dark-muted);
  font-size: 13px;
}

/* Footer */

.site-footer {
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
}

.footer-brand p {
  margin-top: var(--space-3);
  color: var(--muted);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.footer-col h2 {
  margin-bottom: var(--space-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--fg);
  font-size: 15px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col small {
  color: var(--muted);
  font-size: 13px;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* Scroll reveal: hidden start state only once site.js has marked the document. */

.js-motion [data-reveal]:not(.is-in) .reveal {
  opacity: 0;
  translate: 0 24px;
  scale: 0.96;
}

.js-motion .reveal {
  transition:
    opacity 700ms var(--ease-out) var(--d, 0ms),
    translate 700ms var(--ease-out) var(--d, 0ms),
    scale 700ms var(--ease-out) var(--d, 0ms);
}

.js-motion .tile.reveal {
  transition:
    opacity 700ms var(--ease-out) var(--d, 0ms),
    translate 700ms var(--ease-out) var(--d, 0ms),
    scale 700ms var(--ease-out) var(--d, 0ms),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

/* Responsive */

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tile,
  .tile-collect,
  .tile-check {
    grid-column: 1 / -1;
  }

  .tile.tile-demo {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    display: block;
    min-height: 0;
  }

  .hero::after {
    background: linear-gradient(180deg, transparent 30%, rgb(7 31 74 / 0.35) 60%, transparent);
  }

  /* The figure becomes its own block above the copy; the mask fades it into the hero gradient instead of a flat navy overlay. */
  .hero-art {
    position: relative;
    height: clamp(380px, 84vw, 520px);
    margin-bottom: var(--space-6);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 58%, transparent 96%);
  }

  .sun {
    right: -16vw;
    top: 72px;
    bottom: auto;
    width: clamp(420px, 118vw, 660px);
  }

  .engrave-rosette {
    right: -30vw;
    top: 48%;
    width: 140vw;
    height: 140vw;
    margin-top: -70vw;
  }

  .engrave-cta {
    right: -40vw;
    top: auto;
    bottom: -30vw;
    width: 110vw;
    height: 110vw;
    margin-top: 0;
  }

  .hero .display {
    font-size: min(7.4vw, 56px);
  }

  .hero-inner {
    padding-block: 0 72px;
  }

  .section-head.split,
  .faq,
  .cta {
    grid-template-columns: 1fr;
  }

  .page-cards {
    margin-top: var(--space-4);
    padding: 0;
  }

  .privacy {
    grid-template-columns: 1fr;
  }

  .motif-shoal {
    order: -1;
    width: min(64%, 320px);
    margin-bottom: calc(-1 * var(--space-4));
  }
}

@media (max-width: 760px) {
  .nav-pill {
    gap: var(--space-3);
    padding-left: var(--space-4);
  }

  .brand span {
    display: none;
  }

  .label-full {
    display: none;
  }

  .label-short {
    display: inline;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .source-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .tile {
    min-height: 420px;
  }

  .tile.tile-collect {
    min-height: 0;
  }

  .tile-collect .tile-stage {
    min-height: 0;
  }

  .tile-link {
    padding: var(--space-6);
  }

  .video-modal {
    padding: var(--space-4);
  }

  .video-modal-foot p {
    display: none;
  }

  .video-modal-foot {
    justify-content: flex-end;
  }

  .player-controls {
    padding: 32px 12px 10px;
  }

  .player-row {
    gap: 12px;
  }

  .tile-stage {
    margin: var(--space-6) calc(-1 * var(--space-6)) calc(-1 * var(--space-6));
  }

  .tile-collect .tile-stage {
    padding-inline: var(--space-6);
  }

  .page-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .display {
    background: none;
    color: #fff;
  }
}
