/* ==========================================================================
   Shufflow — design preview
   Brand tokens first; everything else reads from them.
   ========================================================================== */
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --purple: #7E3AD5;
  --fox-violet: #AB68FB;
  --lilac: #D3B5FD;
  --blue: #3D7BFA;
  --orange: #FF8A2A;
  --ink: #1E0953;
  --cream: #FFF6EE;

  /* Derived */
  --paper: #FFFDFB;
  --lilac-wash: #EFE4FF;
  --lilac-soft: #E6D6FE;
  --ink-2: #4A3A73;          /* secondary text, 8.4:1 on cream */
  --ink-3: #5E5084;          /* tertiary text, 6.3:1 on cream */
  --line: rgba(30, 9, 83, .14);
  --line-strong: rgba(30, 9, 83, .28);
  --purple-hover: #6A2DBA;
  --error: #B42318;
  --success: #106B45;
  --focus: var(--blue);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(30, 9, 83, .06), 0 4px 14px rgba(30, 9, 83, .06);
  --shadow: 0 2px 6px rgba(30, 9, 83, .06), 0 18px 48px -12px rgba(30, 9, 83, .22);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 850; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 800; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 800; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 6px 18px -6px rgba(126, 58, 213, .65); }
.btn-primary:hover { background: var(--purple-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.975rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 10px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 14px; border-radius: 999px; font-weight: 750; text-decoration: none; color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--lilac-wash); color: var(--ink); }
.nav a[aria-current="page"] { color: #fff; background: var(--ink); }
.nav a[aria-current="page"]:hover { background: var(--ink); color: #fff; }
.menu-toggle { display: none; }

/* ---------- Eyebrows & section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--purple);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--orange); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -20%;
  width: min(900px, 90vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(211, 181, 253, .75), rgba(211, 181, 253, 0));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-grid .hero-visual { width: 100%; max-width: 660px; justify-self: end; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); font-weight: 750; font-size: .9375rem; color: var(--ink-2);
  margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.status-pill .dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 42, .2); }
.status-pill .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); letter-spacing: -0.03em; }
.scribble { position: relative; color: var(--purple); }
.scribble::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: -0.08em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C55 4 140 2 197 9' fill='none' stroke='%23FF8A2A' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.lede { margin-top: 22px; font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-weight: 750; color: var(--ink-2); font-size: .9688rem; }
.hero-points span { color: var(--purple); font-weight: 900; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Demo player ---------- */
.demo { position: relative; margin: 0; }
.demo-fox {
  position: absolute; z-index: 2; width: 86px; height: auto; left: -34px; top: -62px;
  filter: drop-shadow(0 8px 14px rgba(30, 9, 83, .18));
  transform: rotate(-8deg);
}
.demo-frame {
  position: relative; z-index: 1; background: var(--paper); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.demo-bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #F3ECFB; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--lilac); }
.dots i:nth-child(2) { background: #F9C38F; }
.dots i:nth-child(3) { background: #A9C3FD; }
.demo-url { font-size: .8125rem; font-weight: 750; color: var(--ink-3); background: var(--paper); padding: 2px 12px; border-radius: 999px; }
.demo-stage { position: relative; aspect-ratio: 16 / 10; background: #F5F7FC; }
.demo-video { width: 100%; height: 100%; object-fit: cover; }
.demo-toggle {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(30, 9, 83, .86); color: #fff; font-weight: 800; font-size: .9375rem;
  box-shadow: 0 6px 16px rgba(30, 9, 83, .25); transition: background-color .15s, transform .15s;
}
.demo-toggle:hover { background: var(--ink); }
.demo-toggle .i { fill: currentColor; stroke-width: 2.6; }
.demo-toggle .i-pause { fill: none; }
.demo-toggle[aria-pressed="true"] .i-play, .demo-toggle[aria-pressed="false"] .i-pause { display: none; }
.demo.is-idle .demo-toggle { left: 50%; bottom: 50%; transform: translate(-50%, 50%); min-height: 56px; padding: 0 24px 0 18px; font-size: 1.0625rem; background: var(--purple); }
.demo.is-idle .demo-toggle:hover { background: var(--purple-hover); }

.media-tag {
  position: absolute; z-index: 3; right: 12px; top: 12px; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 850; letter-spacing: .04em;
  background: rgba(255, 255, 255, .92); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.media-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 6px; vertical-align: 1px; }
.media-tag.concept::before { background: var(--orange); }

.demo-caption {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; min-height: 52px;
  padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
}
.media-tag-bar { position: static; margin-left: auto; box-shadow: none; }
.cap-step { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--purple); color: #fff; font-weight: 900; }
.chapters { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.chapters button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 5px; white-space: nowrap;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-weight: 750; font-size: .9375rem; color: var(--ink-2); transition: background-color .15s, color .15s, border-color .15s;
}
.chapters button span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lilac-wash); color: var(--purple); font-size: .8125rem; font-weight: 900; }
.chapters button:hover { border-color: var(--purple); color: var(--ink); }
.chapters button[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chapters button[aria-current="step"] span { background: var(--orange); color: var(--ink); }
@media (min-width: 641px) {
  .chapters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .chapters button { width: 100%; flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; padding: 8px 4px; border-radius: 16px; font-size: .875rem; }
}

.demo-fallback { position: absolute; inset: 0; padding: 14px; overflow: auto; background: #F5F7FC; }
.fallback-note { font-weight: 750; font-size: .9375rem; color: var(--ink-2); margin-bottom: 10px; }
.storyboard { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
.storyboard li { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); font-size: .875rem; line-height: 1.35; }
.storyboard img { aspect-ratio: 900 / 560; object-fit: cover; width: 100%; }
.storyboard span { display: block; padding: 8px 10px; }
.demo.is-fallback .demo-video, .demo.is-fallback .demo-toggle, .demo.is-fallback .chapters, .demo.is-fallback .demo-caption { display: none; }
.demo.is-fallback .demo-stage { aspect-ratio: auto; min-height: 0; }
.demo.is-fallback .demo-fallback { position: static; }

/* ---------- Hero fox ---------- */
.hero-visual { display: grid; gap: 0; min-width: 0; }
.stage {
  position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 100%; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 18% at 50% 88%, rgba(171, 104, 251, .38), transparent 70%),
    radial-gradient(70% 60% at 50% 42%, #3B1A8A 0%, #26105F 48%, var(--ink) 78%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(30, 9, 83, .2);
}
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #F5F7FC; opacity: 0; transition: opacity .7s ease; }
.stage.is-demo::after { opacity: 1; }
.fox-stage { position: absolute; inset: 0; transition: opacity .6s ease, transform .7s ease; }
.stage.is-demo .fox-stage { opacity: 0; transform: scale(.94); pointer-events: none; }
.demo-layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .7s ease .15s; }
.stage.is-demo .demo-layer { opacity: 1; pointer-events: auto; }
.demo-layer { display: flex; flex-direction: column; }
/* The caption bar keeps its full height; the video takes the rest of the stage (letterboxed in the app's own background colour). */
.demo-layer .demo-video { width: 100%; height: auto; flex: 1 1 0; min-height: 0; object-fit: contain; background: #F5F7FC; }
.demo-layer .media-tag { right: 14px; top: 14px; }
.demo-hud {
  flex: none; display: grid; align-content: center; gap: 8px; padding: 10px clamp(14px, 3.5%, 24px) 14px;
  background: var(--ink);
}
.demo-cap { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff; font-weight: 800; font-size: clamp(.9375rem, 1.6vw, 1.125rem); line-height: 1.3; }
.demo-cap .cap-step { background: var(--orange); color: var(--ink); width: 28px; height: 28px; border-radius: 9px; font-size: .875rem; }
.demo-controls { display: flex; align-items: center; gap: 12px; }
.demo-layer .demo-toggle {
  position: static; transform: none; display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; flex: none;
  border-radius: 50%; background: #fff; color: var(--ink); box-shadow: none;
}
.demo-layer .demo-toggle:hover { background: var(--lilac); }
.demo-layer .demo-toggle .i { width: 18px; height: 18px; }
.demo-progress { display: flex; flex: 1; gap: 4px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.demo-progress li { flex: 1; min-width: 0; }
.demo-progress button { display: block; width: 100%; height: 24px; padding: 10px 0; border: 0; background: transparent; cursor: pointer; }
.demo-progress button::before { content: ""; display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.demo-progress i { display: block; height: 4px; margin-top: -4px; border-radius: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.demo-progress button:hover::before { background: rgba(255, 255, 255, .55); }
.demo-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; flex: none;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: transparent; color: #fff; font-weight: 800; font-size: .875rem; cursor: pointer;
}
.demo-back:hover { background: #fff; color: var(--ink); }
.demo-back .i { width: 16px; height: 16px; }
.demo-layer :focus-visible { outline-color: var(--orange); }
.stage .demo-fallback { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 10; padding: 12px; overflow: auto; background: #F5F7FC; }
.stage .storyboard { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stage .storyboard span { padding: 6px 8px; font-weight: 750; }
.stage.is-fallback .demo-toggle, .stage.is-fallback .demo-progress { visibility: hidden; }
.fox-watch {
  position: absolute; z-index: 2; right: clamp(14px, 4%, 22px); bottom: clamp(14px, 4%, 22px); display: none;
  align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 0; background: #fff; color: var(--ink); font-weight: 850; font-size: .9375rem;
}
.fox-watch .i { width: 16px; height: 16px; fill: currentColor; }
.fox-stage.is-still .fox-watch { display: inline-flex; }
.fox-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; z-index: 1; }
.fox-static { position: absolute; left: 50%; top: 53%; height: 74%; width: auto; transform: translate(-50%, -50%); z-index: 0; filter: drop-shadow(0 0 24px rgba(171, 104, 251, .5)); }
.fox-stage.is-live .fox-static { display: none; }
.fox-title {
  position: absolute; z-index: 2; left: clamp(18px, 4%, 28px); top: clamp(16px, 4%, 26px); margin: 0;
  color: #fff; font-weight: 900; font-size: clamp(1.375rem, 2.6vw, 2rem); letter-spacing: -0.02em; pointer-events: none;
}
.fox-hint {
  position: absolute; z-index: 2; left: clamp(14px, 4%, 24px); bottom: clamp(14px, 4%, 22px); margin: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #F1E8FF; font-weight: 750; font-size: .875rem;
  border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none; transition: opacity .6s ease;
}
.fox-hint.is-hidden { opacity: 0; }
.fox-shuffle {
  position: absolute; z-index: 2; right: clamp(14px, 4%, 22px); bottom: clamp(14px, 4%, 22px);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 0; background: #fff; color: var(--ink); font-weight: 850; font-size: .9375rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: background-color .15s, transform .15s;
}
.fox-shuffle:hover { background: var(--lilac); }
.fox-shuffle:active { transform: scale(.97); }
.fox-shuffle .i { width: 18px; height: 18px; }
.fox-stage :focus-visible { outline-color: var(--orange); }
.fox-stage.is-still .fox-watch { right: auto; left: clamp(14px, 4%, 22px); }
.fox-stage.is-still .fox-hint { display: none; }
.hero-visual .review-note { margin-top: 14px; }

/* ---------- Product demo section ---------- */
.demo-section { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.demo-section .demo { max-width: 980px; margin-inline: auto; }

/* ---------- Story line (retired) ---------- */
.story { padding: clamp(40px, 6vw, 72px) 0; background: var(--ink); color: #fff; }
.story .eyebrow { color: var(--lilac); }
.story h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 22em; }
.story-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 32px 0 0; padding: 0; counter-reset: s; }
.story-line li { position: relative; }
.story-line li:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -14px; width: 14px; height: 2px; background: var(--fox-violet);
}
.story-line a {
  display: grid; gap: 4px; height: 100%; padding: 18px 18px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(211, 181, 253, .28); text-decoration: none;
  transition: background-color .18s, border-color .18s, transform .18s;
}
.story-line a:hover { background: rgba(255, 255, 255, .11); border-color: var(--lilac); transform: translateY(-2px); }
.story-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--fox-violet); color: var(--ink); font-weight: 900; margin-bottom: 8px; }
.story-line li:nth-child(4) .story-n { background: var(--orange); }
.story-t { font-size: 1.1875rem; font-weight: 850; line-height: 1.25; }
.story-s { color: #D9CCF5; font-size: .9688rem; }

/* ---------- Features ---------- */
.features { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.features-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(8px, 2vw, 16px); }
.features-head { margin-bottom: clamp(8px, 2vw, 24px); }
.features-head p:not(.eyebrow) { max-width: 34em; margin-inline: auto; }
.feature-kicker span { min-width: 30px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
}
.feature + .feature { border-top: 1px dashed var(--line-strong); }
.feature-flip .feature-copy { order: 2; }
.feature-kicker { display: flex; align-items: center; gap: 10px; font-weight: 850; color: var(--purple); margin-bottom: 14px; }
.feature-kicker span { display: grid; place-items: center; min-width: 40px; height: 30px; padding: 0 8px; border-radius: 9px; background: var(--lilac-wash); font-variant-numeric: tabular-nums; }
.feature h3 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.feature-example {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 16px; padding: 8px 16px 8px 8px;
  border-radius: 16px; background: var(--paper); border: 1px dashed var(--line-strong); font-weight: 800; line-height: 1.3;
}
.ex-label { padding: 4px 10px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ex-arrow { color: var(--purple); font-weight: 900; }
.feature-copy > p:not(.feature-kicker) { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }
.flow-list { display: grid; gap: 10px; margin: 26px 0 0; }
.flow-list div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.flow-list dt { font-size: .8125rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.flow-list div:nth-child(2) dt { color: #2A5FCC; }
.flow-list div:nth-child(3) dt { color: #B4520A; }
.flow-list dd { margin: 0; font-weight: 650; }

.feature-visual {
  position: relative; border-radius: var(--radius-lg); min-height: 520px; padding: 40px 28px;
  display: flex; align-items: center; justify-content: center;
  isolation: isolate;
}
.visual-lilac { background: var(--lilac-soft); }
.visual-cream { background: #FCE9D8; }
.feature-visual::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .55) 0 14%, transparent 15%),
              radial-gradient(circle at 88% 86%, rgba(255, 255, 255, .4) 0 10%, transparent 11%);
}
.phone {
  position: relative; width: min(280px, 62%); padding: 10px; border-radius: 34px;
  background: var(--ink); box-shadow: var(--shadow);
  transform: translateX(-18%);
}
.feature-flip .phone { transform: translateX(18%); }
.phone video { width: 100%; border-radius: 25px; background: #fff; aspect-ratio: 480 / 578; object-fit: cover; }
.loop-toggle {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--cream); background: var(--ink); color: #fff; cursor: pointer; box-shadow: var(--shadow-sm);
}
.loop-toggle .i { width: 18px; height: 18px; fill: currentColor; }
.loop-toggle .i-pause { fill: none; stroke-width: 3; }
.loop-toggle[aria-pressed="true"] .i-play, .loop-toggle[aria-pressed="false"] .i-pause { display: none; }
.loop-toggle:hover { background: var(--purple); }

.phone-tabs { position: absolute; z-index: 2; top: -20px; left: 50%; transform: translateX(-50%); display: flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.phone-tabs button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; font-size: .875rem; cursor: pointer; color: var(--ink-2); }
.phone-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.shot {
  position: absolute; margin: 0; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.shot img { width: 100%; }
.shot-steps { width: min(220px, 40%); right: 4%; top: 13%; transform: rotate(2.5deg); }
.shot-shuffle { width: min(300px, 58%); left: 4%; bottom: 10%; transform: rotate(-2deg); }
.shot-history { width: min(180px, 34%); right: 5%; top: 8%; transform: rotate(2deg); }
.shot-history img { max-height: 225px; object-fit: cover; object-position: top; }
#feature-focus .feature-visual .media-tag { right: auto; left: 16px; }
.shot-cube { width: min(156px, 30%); right: 8%; bottom: 6%; transform: rotate(-2deg); }
.shot-cube figcaption { padding: 8px 12px 10px; font-size: .8125rem; font-weight: 750; line-height: 1.3; border-top: 1px solid var(--line); }
.feature-visual .media-tag { right: 16px; top: 16px; }
.feature-flip .feature-visual .media-tag { right: auto; left: 16px; }

/* ---------- Team teaser (Home) ---------- */
.team-teaser { padding: 0 0 clamp(48px, 6vw, 72px); }
.teaser-row {
  display: flex; align-items: center; gap: 24px; padding: 22px 28px; border-radius: var(--radius-lg);
  background: var(--lilac-wash); border: 1px solid var(--line);
}
.teaser-faces { display: flex; list-style: none; margin: 0; padding: 0; flex: none; }
.teaser-faces li + li { margin-left: -14px; }
.teaser-faces img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--lilac-wash); }
.teaser-row > div { flex: 1; }
.teaser-row h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.teaser-row p { color: var(--ink-2); margin-top: 4px; }

/* ---------- Team page ---------- */
.team-hero { position: relative; padding: clamp(32px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); overflow: hidden; }
.team-hero::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -30%;
  width: min(760px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(211, 181, 253, .7), rgba(211, 181, 253, 0));
}
.team-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.team-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.team-hero .lede { margin-top: 0; max-width: 38em; }
.team-hero .lede + .lede { margin-top: 14px; }
.team-hero-art img { border-radius: var(--radius-lg); box-shadow: var(--shadow); max-width: 380px; width: 100%; margin-left: auto; }
.crumbs ol { display: flex; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; font-weight: 750; font-size: .9375rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--purple); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }

.members { padding: 0 0 clamp(48px, 7vw, 88px); }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.member {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.member-photo {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(145deg, var(--lilac-soft), #F3EAFF 70%);
}
.member-photo::after {
  content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255, 255, 255, .45);
}
.member-photo span {
  position: relative; z-index: 1; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--paper); color: var(--purple); font-size: 1.75rem; font-weight: 900; letter-spacing: .02em;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .5), var(--shadow-sm);
}
.member-photo picture { display: contents; }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member-photo:has(img)::after { display: none; }
.member-body { padding: 22px 24px 26px; display: grid; gap: 6px; }
.member h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
.member-title { font-weight: 850; color: var(--purple); }
.member-bg { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line-strong); color: var(--ink-2); font-weight: 600; line-height: 1.45; }
.bg-label { display: block; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }

.now-label { font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); margin-bottom: 8px; }
.now-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; padding: 18px 24px; border-radius: 18px; background: var(--lilac-wash); }
.now-strip .now-label { margin: 0; }
.now-strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; font-weight: 700; }
.now-strip li { display: flex; gap: 10px; align-items: flex-start; }
.now-strip { display: grid; gap: 8px; }
.now-text { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 700; line-height: 1.5; color: var(--ink); max-width: 46em; }
.member-bg p { margin: 0; }
.bg-field { font-weight: 800; color: var(--ink); }
.bg-where { margin-top: 2px; }
.member-link {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 12px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); font-weight: 800; font-size: .9375rem; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.member-link .i { width: 16px; height: 16px; }
.member-link-logo { width: 18px; height: 18px; border-radius: 3px; }
.member-body { flex: 1; display: flex; flex-direction: column; }
.member-body .member-link { margin-top: auto; align-self: flex-start; }
.member-bg { margin-bottom: 14px; }
.member-link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.analytics-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.analytics-choice [data-analytics-state] { font-weight: 700; color: var(--ink-2); }
/* ---------- 404 ---------- */
.notfound { padding-block: clamp(48px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 72px); align-items: center; }
.notfound h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; }
.notfound .lede { max-width: 32em; }
.notfound img { width: clamp(140px, 22vw, 260px); height: auto; filter: drop-shadow(0 18px 30px rgba(30, 9, 83, .18)); transform: rotate(6deg); }
.notfound .eyebrow { margin-bottom: 18px; }
@media (max-width: 640px) { .notfound { grid-template-columns: 1fr; } .notfound img { order: -1; width: 120px; } }
.tick { width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 6px; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%231E0953' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.team-cta { padding: 0 0 clamp(64px, 8vw, 96px); }
.cta-card {
  display: flex; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: var(--ink); color: #fff;
}
.cta-card img { width: 72px; height: auto; flex: none; }
.cta-card > div:not(.cta-actions) { flex: 1; }
.cta-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-card p { color: #D9CCF5; margin-top: 6px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-on-dark { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-on-dark:hover { background: #fff; color: var(--ink); }
.cta-card :focus-visible { outline-color: var(--lilac); }

/* ---------- Contact ---------- */
.connect { padding: clamp(64px, 9vw, 112px) 0 clamp(64px, 8vw, 96px); background: linear-gradient(180deg, var(--cream) 0%, #F8EEFF 100%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }
.contact-copy .contact-email { margin-top: 24px; font-weight: 700; font-size: 1rem; }
.contact-email a { color: var(--purple); font-weight: 850; text-underline-offset: 3px; }
.contact-card {
  border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 10px;
}
.contact-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 22px; background: var(--lilac-wash); }
.contact-tabs [role="tab"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 6px 12px;
  border: 0; border-radius: 16px; background: transparent; cursor: pointer;
  font-weight: 850; font-size: 1rem; color: var(--ink-2); transition: background-color .15s, color .15s, box-shadow .15s;
}
.contact-tabs [role="tab"] .i { width: 18px; height: 18px; }
.contact-tabs [role="tab"] { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .contact-tabs [role="tab"][aria-selected="false"]:hover { color: var(--ink); background: rgba(255, 255, 255, .5); } }
.contact-tabs [role="tab"][aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 2px var(--purple); }
.contact-tabs [role="tab"][aria-selected="true"] .i { color: var(--purple); }
.contact-panel { padding: 22px clamp(14px, 2.4vw, 26px) 20px; }
.contact-panel:focus-visible { outline-offset: -3px; }
.card-form { display: grid; gap: 20px; }
.field-check { gap: 6px; }
.check-row { display: flex; align-items: flex-start; gap: 12px; }
.check-row input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--purple); cursor: pointer; }
.check-row label { font-weight: 650; font-size: 1rem; line-height: 1.45; cursor: pointer; }
.check-row a { color: var(--purple); font-weight: 800; text-underline-offset: 3px; }
.check-row input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.field-hint { color: var(--ink-3); font-size: .9375rem; font-weight: 650; line-height: 1.4; margin-top: -2px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 800; font-size: 1rem; padding: 0; }
.field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 2px solid var(--line-strong); background: #fff; font-size: 1.0625rem; font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
#demo-about { min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #6E6392; font-weight: 500; }
.field input:hover, .field textarea:hover { border-color: rgba(30, 9, 83, .45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(126, 58, 213, .2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .18); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-weight: 750; font-size: .9375rem; line-height: 1.35; }
.field-error::before { content: "!"; display: grid; place-items: center; width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--error); color: #fff; font-size: .75rem; font-weight: 900; }
.field-error[hidden] { display: none; }

.form-status:empty { display: none; }
.form-status {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: #E7F6EE; color: var(--success); font-weight: 750; line-height: 1.4; border: 1px solid rgba(16, 107, 69, .25);
}
.form-status::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.card-form.flash .form-status { animation: flash .5s ease; }
.form-status.is-error { background: #FDECEA; color: var(--error); border-color: rgba(180, 35, 24, .25); }
.form-status.is-error::before { background: var(--error) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v6M12 17h.01' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: .8; }
@keyframes flash { from { transform: scale(.98); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 64px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.footer-brand { display: grid; gap: 18px; justify-items: start; }
.brand-footer img { height: 44px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -10px; }
.footer-nav a { padding: 10px; border-radius: 999px; text-decoration: none; font-weight: 750; color: #E4DAF7; }
.footer-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.footer-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.footer-info { display: grid; gap: 14px; }
.footer-privacy { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; }
.footer-privacy a { color: #fff; font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-privacy a:hover { color: var(--lilac); }
.footer-social-title { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 850; letter-spacing: -0.01em; }
.social { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; font-weight: 850;
  transition: background-color .15s;
}
.social a:hover { background: rgba(255, 255, 255, .16); }
.social-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); }
.social-dot img { width: 24px; height: 24px; border-radius: 5px; }
.social-dot .i { width: 18px; height: 18px; stroke-width: 2.6; }
.footer-meta { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: #C8BBE6; font-size: .9375rem; }
.site-footer :focus-visible { outline-color: var(--lilac); }

/* ---------- Review notes (for Joey, not visitors) ---------- */
.review-note {
  position: relative; margin-top: 18px; padding: 12px 14px 12px 40px; border-radius: 12px;
  background: #FFF3C4; color: #4A3500; border: 1px dashed #C99A00; font-size: .875rem; line-height: 1.5; font-weight: 600;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", var(--font);
}
.review-note::before { content: "备注"; position: absolute; left: 10px; top: 12px; font-size: .6875rem; font-weight: 900; writing-mode: vertical-rl; letter-spacing: .1em; color: #8A6500; }
.feature .review-note, .connect .review-note { grid-column: 1 / -1; }
.connect .review-note { max-width: 1040px; margin: 24px auto 0; }
body.hide-notes .review-note { display: none; }
.notes-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: #FFF3C4; color: #4A3500; border: 1px dashed #C99A00; font-weight: 800; font-size: .8125rem; cursor: pointer; box-shadow: var(--shadow-sm);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", var(--font);
}
body.clean .notes-toggle { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-grid .hero-visual { max-width: none; justify-self: stretch; }
  /* Fill the width, but never taller than the screen below the header */
  .stage { width: min(100%, calc((100svh - var(--header-h) - 48px) * 4 / 3)); margin-inline: auto; }
  .story-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-line li:nth-child(2)::after { display: none; }
  .feature, .feature-flip { grid-template-columns: 1fr; }
  .feature-flip .feature-copy { order: 0; }
  .feature-copy { max-width: 680px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; max-width: 640px; }
  .member-grid { gap: 14px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { height: 42px; }
  .header-row { gap: 10px; }
  .header-cta { margin-left: auto; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
    border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer;
  }
  .menu-toggle svg { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
  .menu-toggle path { transition: transform .2s, opacity .2s; transform-origin: center; }
  .menu-toggle[aria-expanded="true"] .m-top { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .m-mid { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .m-bot { transform: translateY(-5px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 2px;
    padding: 10px var(--gutter) 18px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(30, 9, 83, .3);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.125rem; border-radius: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .nowrap { white-space: normal; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions { margin-top: 24px; }
  .hero-points { display: none; }
  .lede { margin-top: 16px; }


  .demo-frame { border-radius: 16px; }
  .demo-bar { height: 30px; }
  .demo-url { display: none; }
  .demo-toggle { left: 8px; bottom: 8px; min-height: 40px; padding: 0 12px 0 10px; font-size: .875rem; }
  .media-tag { right: 8px; top: 8px; font-size: .6875rem; padding: 3px 8px; }
  .demo-caption { font-size: 1rem; }
  .chapters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .chapters::-webkit-scrollbar { display: none; }
  .chapters li { flex: none; scroll-snap-align: start; }
  .storyboard { grid-template-columns: 1fr; }
  .story-line { grid-template-columns: 1fr; gap: 10px; }
  .story-line li::after { display: none; }
  .story-line a { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .story-n { grid-row: span 2; margin: 0; }
  .feature-visual { min-height: 0; padding: 36px 16px 56px; flex-direction: column; border-radius: 24px; }
  .phone, .feature-flip .phone { transform: none; width: min(250px, 72%); }
  .shot { position: relative; inset: auto; transform: none; width: 86%; margin-top: 38px; }
  .feature-visual .media-tag, .feature-flip .feature-visual .media-tag { position: static; order: -1; align-self: flex-start; margin-bottom: 34px; }
  .shot-cube { display: none; }
  .shot-steps, .shot-shuffle, .shot-history, .shot-cube { width: 86%; right: auto; left: auto; top: auto; bottom: auto; transform: none; }
  .shot-history img { max-height: 340px; object-fit: cover; object-position: top; }
  .shot-shuffle img { max-height: 380px; object-fit: cover; object-position: top; }
  .loop-toggle { bottom: -20px; }
  .flow-list div { grid-template-columns: 1fr; gap: 2px; }
  .teaser-row { flex-wrap: wrap; padding: 20px; gap: 14px 16px; }
  .teaser-faces img { width: 48px; height: 48px; }
  .teaser-row > div { flex: 1 1 200px; }
  .teaser-row .btn { flex: 1 1 100%; }
  .team-hero-grid { grid-template-columns: 1fr; }
  .team-hero-art { display: none; }
  .member-grid { grid-template-columns: 1fr; }
  .member { flex-direction: row; align-items: stretch; }
  .member-photo { aspect-ratio: auto; width: 104px; flex: none; }
  .member-photo span { width: 64px; height: 64px; font-size: 1.25rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, .5); }
  .member-photo::after { display: none; }
  .member-body { padding: 16px 16px 18px; gap: 2px; }
  .member h3 { font-size: 1.25rem; }
  .member-bg { margin-top: 8px; padding-top: 8px; font-size: .9688rem; }
  .now-strip { padding: 16px; }
  .legal-toc ol { columns: 1; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .cta-card img { width: 52px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .contact-card { padding: 6px; border-radius: 24px; }
  .contact-tabs { border-radius: 18px; padding: 4px; gap: 4px; }
  .contact-tabs [role="tab"] { font-size: .9375rem; min-height: 50px; padding: 6px 8px; gap: 6px; border-radius: 14px; }
  .contact-tabs [role="tab"] .i { display: none; }
  .contact-panel { padding: 18px 12px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 1 / 1; width: 100%; }
  .fox-hint { top: 58px; bottom: auto; }
  .demo-back { padding: 0; width: 40px; justify-content: center; }
  .demo-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fox-hint { font-size: .8125rem; padding: 6px 12px; left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .story-line a:hover { transform: none; }
  .status-pill .dot::after { display: none; }
}

/* ---------- Privacy Policy ---------- */
.legal { max-width: 760px; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3.25rem); letter-spacing: -0.03em; }
.legal-meta { margin-top: 10px; color: var(--ink-3); font-weight: 700; font-size: .9375rem; }
.legal-lede { margin-top: 18px; font-size: 1.1875rem; color: var(--ink-2); }
.legal section { margin-top: 36px; padding-top: 28px; border-top: 1px dashed var(--line-strong); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-toc { margin-top: 28px; padding: 20px 24px; border-radius: 18px; background: var(--lilac-wash); }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--purple); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.legal-toc li { break-inside: avoid; padding: 3px 0; }
.legal-toc a { color: var(--ink); font-weight: 750; text-decoration: none; }
.legal-toc a:hover { color: var(--purple); text-decoration: underline; }
.legal h2 { font-size: 1.375rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 10px; }
.legal ul { margin: 0; padding-left: 1.25em; display: grid; gap: 4px; }
.legal li::marker { color: var(--purple); }
.legal a { color: var(--purple); font-weight: 750; text-underline-offset: 3px; }
.email-plain { font-weight: 800; color: var(--ink); user-select: all; }
.footer-meta a[aria-current="page"] { color: #fff; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
