/* Swishey: marketing site
   Mobile-first. Fluid type with clamp(). Yellow is the accent, not the wallpaper.
   Shared by index, privacy, admin, unsubscribe and 404.
   ------------------------------------------------------------------------ */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-display-600.woff") format("woff"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/pixelify-sans-var.woff2") format("woff2"); }
@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/press-start-2p.woff2") format("woff2"); }

:root {
  --white: #ffffff;
  --paper: #fafaf8;
  --cream: #fff9ea;
  --ink: #242424;
  --ink-2: #4a4a48;
  --ink-3: #66665f;          /* 5.6:1 on white */
  --line: #ece9e1;
  --line-2: #dcd8cc;
  --yellow: #ffc800;          /* from the logo */
  --yellow-2: #ffd84d;
  --amber: #ffb000;
  --yellow-soft: #fff6d1;
  --yellow-ink: #6b5200;      /* yellow-family text with 7:1 on --yellow-soft */
  --navy: #1b1640;
  --navy-2: #221c4f;
  --good: #1f7a45;
  --bad: #b42318;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --pix: "Pixelify Sans", var(--font);
  --px: "Press Start 2P", ui-monospace, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1200px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --nav-h: 64px;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.45rem + 2vw, 3.25rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.4vw, 5.25rem);

  --shadow-sm: 0 1px 2px rgba(20, 20, 18, 0.06);
  --shadow-md: 0 1px 2px rgba(20, 20, 18, 0.05), 0 8px 24px -8px rgba(20, 20, 18, 0.12);
  --shadow-lg: 0 2px 6px rgba(20, 20, 18, 0.05), 0 30px 60px -24px rgba(60, 44, 0, 0.28);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 3rem + 7vw, 9rem); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.muted { color: var(--ink-3); font-size: var(--step--1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); box-shadow: 0 0 0 1px rgba(36, 36, 36, 0.14) inset; }

.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 0.98;
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);
}
.display em { font-style: italic; }

.section-head { max-width: 48rem; }
.section-head .display { margin-top: 1rem; }
.section-head h2:not(.display) { font-size: var(--step-3); margin-top: 1rem; }
.section-head p { margin-top: 1.25rem; font-size: var(--step-1); color: var(--ink-3); line-height: 1.55; max-width: 38rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--h); padding: 0 1.375rem;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 220ms var(--ease-out), box-shadow 220ms var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.975); transition-duration: 80ms; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary {
  background: var(--ink); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 20px -8px rgba(36, 36, 36, 0.55);
}
.btn--primary:hover { background: #111; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 4px rgba(255, 200, 0, 0.35), 0 12px 26px -10px rgba(36, 36, 36, 0.6); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { border-color: #bdb9ad; background: var(--paper); }
.btn--glass {
  background: rgba(255, 255, 255, 0.55); color: var(--ink); border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(80, 60, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.8); }
.btn--glass-dark { background: rgba(255, 255, 255, 0.08); color: var(--white); border-color: rgba(255, 255, 255, 0.2); }
.btn--glass-dark:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px -10px rgba(255, 176, 0, 0.8); }
.btn--yellow:hover { background: #ffd21f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 4px rgba(255, 200, 0, 0.25), 0 12px 28px -10px rgba(255, 176, 0, 0.9); }
.btn--ghost-light { color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn--ghost-light:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
.btn--sm { --h: 40px; padding: 0 1rem; font-size: 0.875rem; }
.btn--lg { --h: 54px; padding: 0 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn--yellow:focus-visible, .btn--ghost-light:focus-visible, .btn--glass-dark:focus-visible { outline-color: var(--yellow); }
/* a highlight that sweeps across on hover */
.btn--shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 45%, transparent 60%);
  transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .btn--shine:hover::after { transition: transform 700ms var(--ease-out); transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transform: none; } }

/* sound toggle */
.sound-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill);
  border: 1px solid rgba(36, 36, 36, 0.12); background: rgba(255, 255, 255, 0.5); color: var(--ink-2); cursor: pointer;
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 180ms var(--ease-out);
}
.sound-toggle:hover { background: rgba(255, 255, 255, 0.9); color: var(--ink); }
.sound-toggle:active { transform: scale(0.94); }
.sound-toggle svg { width: 18px; height: 18px; }
.sound-toggle__on { display: none; }
.sound-toggle.is-on { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.sound-toggle.is-on .sound-toggle__on { display: block; }
.sound-toggle.is-on .sound-toggle__off { display: none; }

/* ---------- Nav --------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease), background-color 250ms var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav--overlay { position: fixed; left: 0; right: 0; background: transparent; padding-top: env(safe-area-inset-top); }
.nav--overlay.is-menu { background: var(--white); border-bottom-color: var(--line); }
.nav--overlay.is-scrolled:not(.is-menu) {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border-bottom-color: rgba(36, 36, 36, 0.08);
  box-shadow: 0 8px 30px -18px rgba(60, 44, 0, 0.35);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__logo { display: inline-flex; align-items: center; border-radius: 8px; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: none; }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__cta { display: none; }

.nav__toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.nav__toggle-lines { position: relative; width: 20px; height: 14px; }
.nav__toggle-lines span {
  position: absolute; left: 0; width: 100%; height: 1.75px; border-radius: 2px; background: var(--ink);
  transition: transform 260ms var(--ease-out), opacity 160ms var(--ease), top 260ms var(--ease-out);
}
.nav__toggle-lines span:nth-child(1) { top: 0; }
.nav__toggle-lines span:nth-child(2) { top: 6px; }
.nav__toggle-lines span:nth-child(3) { top: 12px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 auto 0; z-index: 49;
  background: var(--white);
  border-bottom: 1px solid var(--line); box-shadow: 0 40px 60px -20px rgba(60, 44, 0, 0.35);
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 240ms var(--ease), transform 320ms var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0.5rem 0 0; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu li { opacity: 0; transform: translateY(-4px); transition: opacity 300ms var(--ease), transform 400ms var(--ease-out); }
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu.is-open li:nth-child(2) { transition-delay: 40ms; }
.mobile-menu.is-open li:nth-child(3) { transition-delay: 80ms; }
.mobile-menu.is-open li:nth-child(4) { transition-delay: 120ms; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  font-size: 1.0625rem; font-weight: 500; text-decoration: none;
}
.mobile-menu a:not(.btn)::after { content: "→"; color: var(--ink-3); }
.mobile-menu__cta { display: grid; gap: 0.625rem; padding: 1rem 0 calc(1.5rem + env(safe-area-inset-bottom)); }
.mobile-menu__cta .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .mobile-menu, .mobile-menu li { transition: none; transform: none; } }

@media (min-width: 900px) {
  .nav__toggle, .mobile-menu { display: none !important; }
  .nav__links { display: flex; align-items: center; gap: 0.125rem; list-style: none; margin: 0; padding: 0; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .nav__inner { position: relative; }
  .nav__links a {
    position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 0.875rem; border-radius: var(--radius-pill);
    font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color 180ms, background-color 180ms;
  }
  .nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.55); }
  .nav__links a.is-active { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
  .nav__cta { display: inline-flex; }
}

/* ---------- First-visit loader (only while fonts load; see site.js) ----- */
.loader { display: none; }
.intro .loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, #fff7d6 0%, #fffdf6 70%);
  opacity: 0;
  animation: loader-in 220ms ease 120ms forwards, loader-out 420ms ease 1.6s forwards; /* CSS-only fallback exit */
}
.intro.ready .loader { animation: loader-out 420ms var(--ease) forwards; }
.loader__mark { position: relative; display: grid; place-items: center; width: 120px; height: 120px; }
.loader__mark img { width: 56px; filter: drop-shadow(0 6px 22px rgba(255, 176, 0, 0.55)); animation: loader-glow 1.2s ease-in-out infinite alternate; }
.loader__ball {
  position: absolute; right: 18px; bottom: 16px; width: 10px; height: 10px; background: #f07b22;
  box-shadow: 0 0 0 2px var(--ink), inset -2px -2px 0 #c4561a;
  animation: loader-bounce 520ms cubic-bezier(0.5, 0, 0.5, 1) infinite alternate;
}
@keyframes loader-in { to { opacity: 1; } }
@keyframes loader-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes loader-bounce { from { transform: translateY(0) scaleY(0.8); } to { transform: translateY(-38px); } }
@keyframes loader-glow { to { filter: drop-shadow(0 6px 30px rgba(255, 176, 0, 0.85)); } }

/* ---------- Hero entrance ------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] { opacity: 0; animation: enter 900ms var(--ease-out) 2s both; } /* fallback if JS never says ready */
  .js.ready [data-enter] { animation: enter 900ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
  .js.ready.intro [data-enter] { animation-delay: calc(var(--d, 0) * 90ms + 260ms); }
  [data-enter="0"] { --d: 0; } [data-enter="1"] { --d: 1; } [data-enter="2"] { --d: 2; } [data-enter="3"] { --d: 3; }
  [data-enter="4"] { --d: 4.5; } [data-enter="5"] { --d: 5.5; } [data-enter="6"] { --d: 6.2; } [data-enter="7"] { --d: 6.5; }
  .js.ready .nav[data-enter] { animation-name: enter-nav; }
  .js.ready .showcase[data-enter] { animation: enter-showcase 1300ms var(--ease-out) both; animation-delay: calc(var(--d) * 90ms + 120ms); }
  .js.ready.intro .showcase[data-enter] { animation-delay: calc(var(--d) * 90ms + 320ms); }
  .js.ready .hero__line[data-enter] { animation-name: enter-line; animation-duration: 1100ms; }
}
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes enter-nav { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes enter-line { from { opacity: 0; transform: translateY(0.35em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes enter-showcase { from { opacity: 0; transform: translateY(60px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Hero -------------------------------------------------------- */
.hero { position: relative; isolation: isolate; text-align: center; padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(2.25rem, 1rem + 5vw, 5rem)); }
.hero__sky {
  position: absolute; left: 0; right: 0; top: 0; height: clamp(860px, 118vh, 1240px); z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 82% 52% at 50% 100%, #fff 52%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(180deg, #ffcd2a 0%, #ffd649 18%, #ffe17e 36%, #ffefbd 56%, #fff9e8 72%, #fff 86%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(10px); will-change: transform; }
.hero__glow--a { left: -18vw; top: -22vw; width: 62vw; height: 62vw; background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 62%); }
.hero__glow--b { right: -20vw; top: -26vw; width: 70vw; height: 70vw; background: radial-gradient(circle, rgba(255, 168, 0, 0.42) 0%, rgba(255, 168, 0, 0) 62%); }
.hero__glow--c { left: 20%; top: 30%; width: 60vw; height: 30vw; background: radial-gradient(ellipse, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 65%); }
@media (prefers-reduced-motion: no-preference) {
  .hero__glow--a { animation: drift-a 18s ease-in-out infinite alternate; }
  .hero__glow--b { animation: drift-b 22s ease-in-out infinite alternate; }
  .hero__glow--c { animation: drift-a 26s ease-in-out infinite alternate-reverse; }
  @keyframes drift-a { to { translate: 4vw 3vh; scale: 1.08; } }
  @keyframes drift-b { to { translate: -5vw 4vh; scale: 0.94; } }
}

.hero__inner { position: relative; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.3125rem 0.75rem 0.3125rem 0.3125rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  box-shadow: 0 1px 2px rgba(80, 60, 0, 0.08), 0 6px 18px -10px rgba(80, 60, 0, 0.3);
  transition: background-color 200ms, transform 220ms var(--ease-out);
}
.hero__pill:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-1px); }
.hero__pill svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.hero__pill:hover svg { transform: translateX(2px); }
.hero__pill-tag { background: var(--ink); color: var(--yellow); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: var(--radius-pill); }

.hero__title {
  margin: clamp(1.25rem, 0.8rem + 1.5vw, 1.75rem) auto 0;
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 0.9;
  font-size: clamp(3.5rem, 1.2rem + 10.5vw, 8.5rem);
  color: var(--ink);
}
.hero__line { display: block; }
.hero__line--em em { font-style: italic; letter-spacing: -0.03em; }
.hero__lede { margin: clamp(1.25rem, 1rem + 1vw, 1.75rem) auto 0; max-width: 33rem; font-size: var(--step-1); color: #4d4632; line-height: 1.55; text-wrap: pretty; }
.hero__ctas { margin-top: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.hero__note { margin-top: 1rem; font-size: var(--step--1); color: #6b6047; }
@media (max-width: 479px) {
  .hero__ctas { flex-direction: column; align-items: stretch; max-width: 22rem; margin-inline: auto; }
}

/* Live product preview */
.showcase { margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); padding-bottom: clamp(1rem, 3vw, 2rem); perspective: 1800px; }
.showcase__stage {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: clamp(18px, 2.4vw, 26px);
  padding: clamp(0.75rem, 3vw, 2.5rem) clamp(0.5rem, 3.5vw, 3.5rem) clamp(0.75rem, 3vw, 2.75rem);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset, 0 60px 120px -50px rgba(150, 90, 0, 0.55), 0 20px 50px -30px rgba(60, 40, 0, 0.35);
  transform-origin: 50% 0;
}
.showcase__wall {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    conic-gradient(from 180deg at 50% 118%, #ffa318 0deg, #ffd34a 18deg, #fff0bf 30deg, #ffc21c 44deg, #ff9b2f 58deg, #ffdf74 74deg, #ffc800 90deg, #fff4d2 104deg, #ffb000 120deg, #ffd84d 140deg, #ffe9a6 160deg, #ffbd14 180deg, #ffd84d 200deg, #ff9f2a 220deg, #fff1c6 240deg, #ffc800 260deg, #ffad1c 290deg, #ffe48a 320deg, #ffa318 360deg);
}
.showcase__pill {
  position: relative; z-index: 2; width: max-content; max-width: 100%; margin: 0 auto clamp(0.625rem, 1.5vw, 1rem);
  display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0.75rem 0.375rem 0.5rem;
  border-radius: var(--radius-pill); background: rgba(28, 26, 34, 0.86); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.75rem; font-weight: 600; text-align: left;
}
.showcase__pill img { width: 18px; }
.showcase__pips { display: flex; gap: 4px; }
.showcase__pips i { display: grid; place-items: center; min-width: 22px; height: 18px; padding: 0 3px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); font-style: normal; font-family: var(--px); font-size: 6.5px; color: rgba(255, 255, 255, 0.6); transition: background-color 300ms, color 300ms; }
.showcase__pips i.is-current { background: rgba(255, 200, 0, 0.18); color: var(--yellow); box-shadow: 0 0 0 1px rgba(255, 200, 0, 0.6); }
.showcase__pips i.is-done { background: var(--yellow); color: var(--ink); }
.showcase__live { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.75); font-weight: 500; }
.showcase__live span { width: 7px; height: 7px; border-radius: 50%; background: #5be38f; box-shadow: 0 0 0 3px rgba(91, 227, 143, 0.2); }
@media (prefers-reduced-motion: no-preference) { .showcase__live span { animation: live 1.8s ease-in-out infinite; } @keyframes live { 50% { box-shadow: 0 0 0 6px rgba(91, 227, 143, 0); } } }
@media (max-width: 520px) { .showcase__pill-name, .showcase__live { display: none; } }

.app {
  position: relative; max-width: 920px; margin: 0 auto; text-align: left;
  border-radius: clamp(10px, 1.4vw, 16px); overflow: hidden; background: var(--navy);
  box-shadow: 0 0 0 1px rgba(22, 18, 43, 0.55), 0 40px 70px -30px rgba(22, 18, 43, 0.7), 0 10px 24px -12px rgba(22, 18, 43, 0.4);
}
.app__bar { display: flex; align-items: center; gap: 0.75rem; height: 38px; padding: 0 0.875rem; background: #15112f; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.55); font-size: 0.75rem; }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3466; }
.app__dots i:first-child { background: #ff6b5b; } .app__dots i:nth-child(2) { background: var(--yellow); } .app__dots i:nth-child(3) { background: #5be38f; }
.app__url { margin: 0 auto; padding: 0.2rem 0.875rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); font-weight: 500; }
.app__score { font-family: var(--px); font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.app__score b { margin-left: 4px; color: var(--yellow); font-weight: 400; font-size: 10px; }
.app__body { display: grid; grid-template-columns: 1fr; }
.app__court { padding: clamp(0.5rem, 1.5vw, 1rem); display: grid; place-items: center; background: radial-gradient(ellipse 80% 60% at 50% 0%, #2a2266, rgba(42, 34, 102, 0) 70%); }
.court-frame { position: relative; width: 100%; aspect-ratio: 216 / 248; border-radius: 6px; overflow: hidden; background: #1d1846; box-shadow: 0 0 0 2px #16122b; container-type: size; }
.court-frame canvas { width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.court-frame__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.js .court-frame__poster { display: none; }
html:not(.js) .court-frame canvas { display: none; }
.court-frame__layer { position: absolute; inset: 0; pointer-events: none; }
.app__link { position: absolute; inset: 38px 0 0 0; z-index: 3; border-radius: inherit; }
.app__link:focus-visible { outline: 3px solid var(--yellow); outline-offset: -4px; }

.app__panel { position: relative; display: flex; flex-direction: column; gap: 0.625rem; padding: 1rem 1rem 1.125rem; background: var(--navy-2); border-top: 2px solid #16122b; color: #f6f3ff; font-family: var(--pix); min-height: 15.5rem; }
.app__meta { display: flex; justify-content: space-between; font-family: var(--px); font-size: 7px; letter-spacing: 0.08em; text-transform: uppercase; color: #bdb6e2; }
.app__eyebrow { font-family: var(--px); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.app__prompt { font-size: 1rem; font-weight: 600; line-height: 1.35; min-height: 2.7em; transition: opacity 300ms; }
.app__options { list-style: none; margin: 0.125rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.app__options li {
  position: relative; display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.625rem 0.5rem 0.5rem; border-radius: 6px;
  background: #2c2563; box-shadow: 0 0 0 2px #3a3378, 0 3px 0 #16122b; font-size: 0.875rem; line-height: 1.2;
  opacity: 0; transform: translateY(6px); transition: opacity 320ms var(--ease), transform 420ms var(--ease-out), background-color 200ms, box-shadow 200ms;
}
.app__options li.is-in { opacity: 1; transform: none; }
.app__options li.is-picked { background: #3d2f12; box-shadow: 0 0 0 2px var(--yellow), 0 3px 0 #16122b; }
.app__options li.is-dim { opacity: 0.35; }
.app__options kbd { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 4px; background: #16122b; color: #bdb6e2; font-family: var(--px); font-size: 7px; }
.app__options li.is-picked kbd { background: var(--yellow); color: var(--ink); }
.app__feedback {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 0.75rem; border-radius: 8px;
  background: #16122b; box-shadow: 0 0 0 2px var(--yellow), 0 18px 30px -12px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 360ms var(--ease), transform 520ms var(--spring); pointer-events: none;
}
.app__feedback.is-on { opacity: 1; transform: none; }
.app__grade { display: flex; align-items: center; gap: 0.5rem; font-family: var(--px); font-size: 8.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--yellow); }
.app__grade b { margin-left: auto; color: #fff; font-weight: 400; font-size: 10px; }
.app__grade-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-family: var(--font); font-size: 12px; }
.app__feedback p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.4; color: #e8e4fb; }
.hero-cursor {
  position: absolute; z-index: 4; width: 22px; height: 22px; left: 0; top: 0; pointer-events: none; opacity: 0;
  transition: transform 700ms var(--ease-out), opacity 300ms;
}
.hero-cursor svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.hero-cursor.is-on { opacity: 1; }
.hero-cursor.is-tap::after { content: ""; position: absolute; left: -8px; top: -8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--yellow); animation: tap 500ms var(--ease-out) forwards; }
@keyframes tap { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* court labels in the hero preview */
.hchip {
  position: absolute; transform: translate(-50%, -100%); white-space: nowrap;
  padding: 0 clamp(4px, 2cqw, 8px); line-height: clamp(16px, 6.4cqw, 26px); border-radius: 3px;
  font-family: var(--px); font-size: clamp(6px, 2.3cqw, 9px); background: #fff; color: var(--ink); box-shadow: 0 0 0 2px #16122b, 0 3px 0 #16122b;
  transition: background-color 200ms;
}
.hchip--spot { transform: translate(-50%, -50%); }
.hchip.is-picked { background: var(--yellow); }
.htag { position: absolute; transform: translate(-50%, 0); white-space: nowrap; font-family: var(--px); font-size: clamp(5px, 2cqw, 8px); line-height: 1; padding: 3px 4px 2px; border-radius: 3px; background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 1px #16122b; }
.hcallout {
  position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); white-space: nowrap;
  font-family: var(--px); font-size: clamp(12px, 7cqw, 28px); color: var(--yellow);
  text-shadow: 3px 3px 0 #16122b, -1px -1px 0 #16122b, 1px -1px 0 #16122b, -1px 1px 0 #16122b;
  animation: hcallout 1.4s var(--ease) both;
}
.hcallout.is-bad { color: #ff8b78; }
@keyframes hcallout { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } 24%, 76% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -64%); } }
@media (prefers-reduced-motion: reduce) { .hcallout { animation: none; } }

@media (max-width: 759px) {
  .app__bar { height: 32px; }
  .app__url { display: none; }
  .app__score { margin-left: auto; }
  .app__link { inset: 32px 0 0 0; }
  .app__panel { min-height: 13.5rem; padding: 0.875rem; }
  .app__options { grid-template-columns: 1fr; }
  .app__options li:nth-child(n+4) { display: none; }
}
@media (min-width: 760px) {
  .app__body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .app__panel { border-top: 0; border-left: 2px solid #16122b; padding: 1.5rem 1.375rem; gap: 0.875rem; }
  .app__prompt { font-size: 1.1875rem; }
  .app__options li { font-size: 0.9375rem; padding: 0.625rem 0.75rem 0.625rem 0.625rem; }
  .app__feedback { left: 1.375rem; right: 1.375rem; bottom: 1.375rem; padding: 0.875rem 1rem; }
}

/* ---------- Ticker ------------------------------------------------------- */
.ticker { position: relative; overflow: hidden; padding-block: 1.125rem; border-block: 1px solid var(--line); background: var(--white); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.ticker::after { right: 0; background: linear-gradient(-90deg, #fff, rgba(255, 255, 255, 0)); }
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__list li { display: inline-flex; align-items: center; gap: 1rem; padding-right: 2.25rem; white-space: nowrap; font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--ink-2); }
.ticker__list li::before { content: ""; width: 7px; height: 7px; background: var(--yellow); box-shadow: 0 0 0 1px rgba(36, 36, 36, 0.2); }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 48s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .ticker__list[aria-hidden="true"] { display: none; } .ticker__track { width: auto; flex-wrap: wrap; justify-content: center; } .ticker__list { flex-wrap: wrap; justify-content: center; } }

/* ---------- A: Swishey Five promo --------------------------------------- */
.five-promo { position: relative; overflow: hidden; }
.five-promo::before { content: ""; position: absolute; right: -20vw; top: 10%; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 0, 0.16), rgba(255, 200, 0, 0) 65%); pointer-events: none; }
.five-promo__grid { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.five-promo .display { margin-top: 1rem; }
.lede { margin-top: 1.25rem; font-size: var(--step-1); color: var(--ink-3); line-height: 1.55; }
.five-promo .lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); color: var(--ink-2); line-height: 1.25; }
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; max-width: 32rem; }
.facts li { display: grid; grid-template-columns: 5.25rem 1fr; align-items: baseline; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--ink-3); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--serif); font-weight: 400; font-size: 2.25rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.five-promo__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
@media (min-width: 960px) { .five-promo__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); } }

.scorecard {
  position: relative; margin: 0; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 22px; color: #f6f3ff; font-family: var(--pix);
  background: radial-gradient(ellipse 90% 60% at 50% 0%, #2c2470, var(--navy) 70%);
  box-shadow: 0 0 0 1px rgba(22, 18, 43, 0.8), 0 40px 80px -30px rgba(27, 22, 64, 0.6), 0 0 0 10px rgba(255, 200, 0, 0.12);
  transform: rotate(1.2deg);
  transition: transform 500ms var(--ease-out);
}
.scorecard:hover { transform: rotate(0deg) translateY(-4px); }
.scorecard__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--px); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.scorecard__dots { display: flex; gap: 5px; }
.scorecard__dots i { width: 7px; height: 7px; background: rgba(255, 255, 255, 0.2); }
.scorecard__score { margin-top: 1.25rem; display: flex; align-items: baseline; justify-content: center; gap: 0.375rem; font-family: var(--px); }
.scorecard__score span { font-size: clamp(3.25rem, 2rem + 6vw, 5rem); line-height: 1; color: var(--yellow); text-shadow: 0 5px 0 #16122b, 0 0 36px rgba(255, 200, 0, 0.35); }
.scorecard__score small { font-size: 0.875rem; color: #bdb6e2; }
.scorecard__rank { margin-top: 0.75rem; text-align: center; font-family: var(--px); font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; }
.scorecard__tiles { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; perspective: 600px; }
.scorecard__tiles li { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font-family: var(--font); font-weight: 700; font-size: 1.25rem; color: var(--ink); box-shadow: 0 0 0 2px #16122b, 0 4px 0 #16122b; }
.scorecard__tiles li[data-g="excellent"] { background: var(--yellow); }
.scorecard__tiles li[data-g="good"] { background: #63d99a; }
.scorecard__rows { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.scorecard__rows li { display: grid; grid-template-columns: 1fr auto; gap: 0.125rem 0.75rem; padding: 0.625rem 0.75rem; border-radius: 6px; background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.scorecard__rows span { font-family: var(--px); font-size: 7px; letter-spacing: 0.06em; text-transform: uppercase; color: #bdb6e2; }
.scorecard__rows b { grid-row: 2; font-weight: 500; font-size: 0.9375rem; }
.scorecard__rows em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-family: var(--px); font-size: 9px; color: var(--yellow); }
.scorecard__ladder { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.scorecard__ladder span { padding: 0.4rem 0.125rem; text-align: center; border-radius: 4px; background: rgba(255, 255, 255, 0.05); font-family: var(--px); font-size: 5.5px; line-height: 1.5; text-transform: uppercase; color: #bdb6e2; }
.scorecard__ladder .is-on { background: var(--yellow); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .js .scorecard[data-reveal] .scorecard__tiles li { transform: rotateX(90deg); }
  .js .scorecard.is-in .scorecard__tiles li { animation: tile-flip 640ms var(--ease-out) both; }
  .js .scorecard.is-in .scorecard__tiles li:nth-child(1) { animation-delay: 350ms; }
  .js .scorecard.is-in .scorecard__tiles li:nth-child(2) { animation-delay: 470ms; }
  .js .scorecard.is-in .scorecard__tiles li:nth-child(3) { animation-delay: 590ms; }
  .js .scorecard.is-in .scorecard__tiles li:nth-child(4) { animation-delay: 710ms; }
  .js .scorecard.is-in .scorecard__tiles li:nth-child(5) { animation-delay: 830ms; }
  @keyframes tile-flip { 0% { transform: rotateX(90deg); } 60% { transform: rotateX(-12deg); } 100% { transform: rotateX(0); } }
}

/* ---------- B: How it works --------------------------------------------- */
.how { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); border-top: 1px solid var(--line); }
.steps { list-style: none; margin: clamp(3rem, 5vw, 4.5rem) 0 0; padding: 0; display: grid; gap: 1rem; }
.step {
  position: relative; padding: 0.75rem 0.75rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 260ms var(--ease), box-shadow 320ms var(--ease), transform 420ms var(--ease-out);
}
.step:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.step__visual { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse 80% 80% at 50% 0%, #fff6d8, #fdf0d2 60%, #f8e5bd); }
.step__num { display: block; margin: 1.5rem 0.75rem 0; font-family: var(--px); font-size: 0.625rem; color: var(--ink-3); letter-spacing: 0.08em; }
.step h3 { margin: 0.75rem 0.75rem 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -0.01em; }
.step p { margin: 0.625rem 0.75rem 0; color: var(--ink-3); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* mini court diagrams */
.mini { width: 92%; height: auto; }
.mini__floor { fill: #f2b878; stroke: #16122b; stroke-width: 2; }
.mini__line { fill: none; stroke: #fff3df; stroke-width: 2; }
.mini__rim { fill: none; stroke: #ff6a1a; stroke-width: 2.5; }
.mini__d circle { fill: #2f6be0; stroke: #16122b; stroke-width: 2; }
.mini__o circle { fill: var(--yellow); stroke: #16122b; stroke-width: 2; }
.mini__scan { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; }
.mini__open rect, .mini__chip rect { fill: #fff; stroke: #16122b; stroke-width: 2; }
.mini__open text, .mini__chip text { font-family: var(--px); font-size: 7px; text-anchor: middle; fill: #16122b; }
.mini__open { opacity: 0; }
.mini__path { fill: none; stroke: #16122b; stroke-width: 2.5; stroke-dasharray: 4 5; stroke-linecap: round; }
.mini__ball { fill: #f07b22; stroke: #16122b; stroke-width: 2; }
.mini__tap { fill: none; stroke: var(--yellow); stroke-width: 3; opacity: 0; transform-origin: 196px 40px; }
.mini__chip { opacity: 0; transform-origin: 196px 22px; }
.mini-card { width: 82%; padding: 0.875rem; border-radius: 10px; background: var(--navy); color: #f6f3ff; font-family: var(--pix); box-shadow: 0 0 0 2px #16122b, 0 6px 0 #16122b; text-align: left; }
.mini-card__grade { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.5rem; border-radius: 6px; background: #16122b; box-shadow: 0 0 0 2px var(--yellow); font-family: var(--px); font-size: 7px; text-transform: uppercase; color: var(--yellow); }
.mini-card__grade span { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: var(--yellow); color: var(--ink); font-family: var(--font); font-size: 10px; }
.mini-card__grade b { font-weight: 400; }
.mini-card__grade em { margin-left: auto; color: #fff; font-style: normal; }
.mini-card p { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.35; }
.mini-card__bar { margin-top: 0.625rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; font-size: 0.6875rem; color: #bdb6e2; }
.mini-card__bar i { position: relative; height: 6px; background: #2c2563; border-radius: 1px; overflow: hidden; }
.mini-card__bar s { position: absolute; inset: 0 auto 0 0; width: 41%; background: var(--yellow); }
.mini-card__bar b { font-family: var(--px); font-weight: 400; font-size: 7px; color: #fff; }
.mini-card__chips { margin-top: 0.625rem; display: flex; gap: 0.375rem; }
.mini-card__chips span { flex: 1; text-align: center; padding: 0.375rem; border-radius: 4px; font-family: var(--px); font-size: 6px; text-transform: uppercase; box-shadow: 0 0 0 1.5px #3a3378; }
.mini-card__chips .is-on { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 1.5px #16122b; }
@media (prefers-reduced-motion: no-preference) {
  .step.is-in .mini__scan--1 { animation: scan 3.6s var(--ease) 0.2s infinite; }
  .step.is-in .mini__scan--2 { animation: scan 3.6s var(--ease) 0.8s infinite; }
  .step.is-in .mini__scan--3 { animation: scan 3.6s var(--ease) 1.4s infinite; }
  .step.is-in .mini__open { animation: open-tag 3.6s var(--ease) 1.4s infinite; }
  @keyframes scan { 0% { opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; } 10% { opacity: 1; } 30% { opacity: 0; transform: scale(1.5); transform-box: fill-box; transform-origin: center; } 100% { opacity: 0; } }
  @keyframes open-tag { 0%, 12% { opacity: 0; transform: translateY(4px); } 22%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
  .step.is-in .mini__path { animation: dash 3.2s linear infinite; }
  .step.is-in .mini__ball { animation: ball 3.2s var(--ease) infinite; }
  .step.is-in .mini__chip { animation: chip 3.2s var(--spring) infinite; }
  .step.is-in .mini__tap { animation: tapring 3.2s var(--ease-out) infinite; }
  @keyframes dash { to { stroke-dashoffset: -36; } }
  @keyframes ball { 0%, 30% { transform: translate(0, 0); } 58%, 82% { transform: translate(64px, -64px); } 92%, 100% { transform: translate(0, 0); opacity: 0; } }
  @keyframes chip { 0%, 6% { opacity: 0; transform: scale(0.5); } 14%, 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
  @keyframes tapring { 0%, 18% { opacity: 0; transform: scale(0.4); } 22% { opacity: 1; } 34%, 100% { opacity: 0; transform: scale(1.8); } }
  .step.is-in .mini-card__grade { animation: stamp-in 3.6s var(--spring) infinite; }
  .step.is-in .mini-card__bar s { animation: bar 3.6s var(--ease-out) infinite; }
  @keyframes stamp-in { 0%, 4% { opacity: 0; transform: scale(1.3); } 14%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes bar { 0%, 16% { transform: translateX(-100%); } 40%, 100% { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .mini__open, .mini__chip { opacity: 1; } }

/* ---------- C: Beyond --------------------------------------------------- */
.beyond { background: var(--white); }
.legend { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge { display: inline-flex; align-items: center; gap: 0.375rem; width: max-content; font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-pill); padding: 0.3rem 0.65rem; white-space: nowrap; }
.badge--live { background: #e8f5ec; color: var(--good); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(31, 122, 69, 0.15); }
.badge--beta { background: var(--yellow-soft); color: var(--yellow-ink); }
.badge--beta::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--yellow); box-shadow: 0 0 0 1px rgba(107, 82, 0, 0.4); }
.badge--soon { background: var(--white); color: var(--ink-2); border: 1px dashed #bdb9ad; }
.bento { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1rem; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line);
  transition: border-color 260ms var(--ease), box-shadow 320ms var(--ease), transform 420ms var(--ease-out);
}
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.tile h3 { margin-top: 0.5rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); letter-spacing: -0.01em; line-height: 1.05; }
.tile p { color: var(--ink-3); max-width: 34rem; }
.tile--hero { background: radial-gradient(ellipse 80% 70% at 100% 100%, #ffe7a3 0%, #fff6dc 45%, var(--paper) 75%); }
.tile__phone {
  align-self: center; width: min(240px, 70%); margin-top: 1rem; margin-bottom: calc(-1 * clamp(1.5rem, 3vw, 2rem) - 30%);
  border-radius: 28px; padding: 7px; background: #18181b; box-shadow: 0 30px 60px -20px rgba(20, 20, 18, 0.45);
  transition: transform 600ms var(--ease-out);
}
.tile__phone img { border-radius: 22px; aspect-ratio: 430 / 900; object-fit: cover; object-position: top; background: #1a1446; }
.tile--hero:hover .tile__phone { transform: translateY(-14px) rotate(-1.5deg); }
.tile__fx { margin-top: auto; height: 64px; position: relative; }
.tile__fx--defense i { position: absolute; top: 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #16122b; background: #2f6be0; }
.tile__fx--defense i:nth-child(1) { left: 10%; } .tile__fx--defense i:nth-child(2) { left: 42%; } .tile__fx--defense i:nth-child(3) { left: 74%; }
.tile__fx--defense::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, #16122b 0 6px, transparent 6px 12px); opacity: 0.25; }
@media (prefers-reduced-motion: no-preference) {
  .tile.is-in .tile__fx--defense i { animation: slide 2.6s var(--ease) infinite alternate; }
  .tile.is-in .tile__fx--defense i:nth-child(2) { animation-delay: 0.2s; }
  .tile.is-in .tile__fx--defense i:nth-child(3) { animation-delay: 0.4s; }
  @keyframes slide { to { transform: translateX(22px); } }
}
.tile__fx--pixels {
  background:
    conic-gradient(from 90deg at 2px 2px, transparent 25%, rgba(36, 36, 36, 0.08) 0) 0 0 / 12px 12px,
    linear-gradient(90deg, #ffc800 0 12px, transparent 12px 24px, #2f6be0 24px 36px, transparent 36px 48px, #f07b22 48px 60px, transparent 60px) 0 26px / 100% 12px no-repeat,
    linear-gradient(90deg, transparent 0 36px, #ffc800 36px 48px, transparent 48px 72px, #16122b 72px 84px) 0 38px / 100% 12px no-repeat;
  border-radius: 8px;
}
.tile--wide { background: linear-gradient(135deg, var(--paper) 0%, #fff8e1 100%); }
.tile__shot { width: min(200px, 60%); align-self: flex-end; margin-bottom: calc(-1 * clamp(1.5rem, 3vw, 2rem) - 40%); border-radius: 22px 22px 0 0; box-shadow: 0 0 0 7px #18181b, 0 30px 60px -20px rgba(20, 20, 18, 0.4); transition: transform 600ms var(--ease-out); }
.tile--wide:hover .tile__shot { transform: translateY(-10px); }
.tile--soon { background: var(--white); border-style: dashed; border-color: #cfcabd; }
.tile--soon h3 { color: var(--ink-2); }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--hero, .tile--wide, .tile--soon { grid-column: span 2; }
  .tile--wide { flex-direction: row; align-items: flex-start; gap: 2rem; }
  .tile--wide .tile__copy { flex: 1; }
  .tile--wide .tile__shot { width: 200px; margin-bottom: -40%; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(250px, auto); }
  .tile--hero { grid-column: 1 / 3; grid-row: 1 / 3; flex-direction: row; align-items: flex-start; gap: 2.5rem; }
  .tile--hero .tile__copy { flex: 1; padding-top: 0.5rem; }
  .tile--hero .tile__phone { width: 280px; margin: 0.5rem 0.5rem -40%; flex: none; align-self: flex-start; transform: rotate(2deg); }
  .tile--hero:hover .tile__phone { transform: translateY(-12px) rotate(0deg); }
  .tile--wide { grid-column: 2 / 4; }
  .tile--soon { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; }
  .tile--soon h3 { margin-top: 0; }
}

/* ---------- D: Waitlist ------------------------------------------------- */
.waitlist-section { background: linear-gradient(180deg, #fff 0%, #fff9ea 100%); }
.waitlist {
  position: relative; isolation: isolate; overflow: hidden; max-width: 980px; margin-inline: auto; text-align: center; color: #fff;
  padding: clamp(3rem, 2rem + 5vw, 6rem) clamp(1.25rem, 5vw, 5rem);
  border-radius: clamp(22px, 3vw, 34px); background: #1f1e1c;
  box-shadow: 0 50px 100px -40px rgba(60, 44, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.waitlist__glow { position: absolute; z-index: -1; left: 50%; top: -55%; width: 120%; aspect-ratio: 1.6; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(255, 200, 0, 0.5) 0%, rgba(255, 176, 0, 0.18) 35%, rgba(255, 176, 0, 0) 62%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .waitlist.is-in .waitlist__glow { animation: glow 6s ease-in-out infinite alternate; } @keyframes glow { to { opacity: 0.7; transform: translateX(-50%) scale(1.08); } } }
.waitlist__court { /* faint half-court lines */
  position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(circle at 50% 118%, transparent 0 31%, rgba(255, 255, 255, 0.09) 31% calc(31% + 1.5px), transparent calc(31% + 2.5px)),
    radial-gradient(circle at 50% 118%, transparent 0 58%, rgba(255, 255, 255, 0.07) 58% calc(58% + 1.5px), transparent calc(58% + 2.5px));
}
.waitlist__label {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--yellow); background: rgba(255, 200, 0, 0.1); border: 1px solid rgba(255, 200, 0, 0.35); padding: 0.375rem 0.75rem; border-radius: var(--radius-pill);
}
.waitlist .display { margin-top: 1.25rem; color: #fff; }
.waitlist .display em { color: var(--yellow); }
.waitlist__desc { margin: 1.25rem auto 0; max-width: 34rem; color: rgba(255, 255, 255, 0.72); font-size: var(--step-1); line-height: 1.55; }

.form { margin: 2.25rem auto 0; max-width: 540px; text-align: left; }
.form__row { display: grid; gap: 0.625rem; }
.input {
  width: 100%; min-height: 54px; padding: 0 1.125rem; font-size: 1rem;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-pill); color: var(--ink);
  transition: border-color 150ms, box-shadow 150ms; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #8d8d88; }
.input:hover { border-color: #bdb6ad; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 200, 0, 0.45); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15); }
.form .btn { width: 100%; --h: 54px; }
.btn__arrow { transition: transform 200ms var(--ease-out); }
.form .btn:hover .btn__arrow { transform: translateX(3px); }
.waitlist .input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.waitlist .input::placeholder { color: rgba(255, 255, 255, 0.45); }
.waitlist .input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 200, 0, 0.25); }
.waitlist .input[aria-invalid="true"] { border-color: #ff8b78; }
@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr auto; gap: 0.5rem; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); background: var(--white); transition: border-color 200ms, box-shadow 200ms; }
  .form__row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 200, 0, 0.45); }
  .form__row.is-invalid { border-color: var(--bad); }
  .form__row .input { border: 0; min-height: 46px; box-shadow: none !important; padding-left: 1rem; background: transparent; }
  .form .btn { width: auto; --h: 46px; padding: 0 1.375rem; }
  .waitlist .form__row { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
  .waitlist .form__row:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 200, 0, 0.22); }
  .waitlist .form__row.is-invalid { border-color: #ff8b78; }
}
.form.is-busy .btn { cursor: progress; }
.form.is-busy [data-submit] { background-image: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.shake { animation: shake 380ms var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .shake, .form.is-busy [data-submit] { animation: none; } }
.check { margin-top: 1rem; display: grid; grid-template-columns: 22px 1fr; gap: 0.625rem; align-items: start; font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.check a { text-underline-offset: 2px; }
.waitlist .check { color: rgba(255, 255, 255, 0.8); }
.waitlist .check input { accent-color: var(--yellow); }
.form__msg { min-height: 1.5rem; margin-top: 0.875rem; font-size: 0.875rem; font-weight: 500; }
.form__msg.is-error { color: var(--bad); }
.waitlist .form__msg.is-error { color: #ff9b8a; }
.form__privacy { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.55; }
.waitlist .form__privacy { color: rgba(255, 255, 255, 0.55); }
.form__privacy a { text-underline-offset: 2px; }
.waitlist :focus-visible { outline-color: var(--yellow); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }

.success { padding-top: 0.5rem; text-align: center; }
.success__icon { position: relative; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); box-shadow: 0 0 0 8px rgba(255, 200, 0, 0.15), 0 0 40px rgba(255, 200, 0, 0.45); }
.success__icon svg { width: 28px; height: 28px; }
.success h3 { margin-top: 1.25rem; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); color: inherit; }
.success h3:focus { outline: none; }
.success p { margin: 0.75rem auto 0; max-width: 28rem; color: var(--ink-3); }
.waitlist .success p { color: rgba(255, 255, 255, 0.72); }
.success .btn { margin-top: 1.5rem; width: auto; }
@media (prefers-reduced-motion: no-preference) {
  .success:not([hidden]) { animation: pop-in 520ms var(--ease-out); }
  .success:not([hidden]) .success__icon { animation: ring 900ms var(--spring); }
  .success__check { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 500ms var(--ease-out) 250ms forwards; }
  @keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
  @keyframes ring { 0% { transform: scale(0.4); box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.6); } 60% { transform: scale(1.06); } 100% { transform: none; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Final CTA (legacy, kept for other pages) -------------------- */
.final { background: var(--ink); color: var(--white); text-align: center; position: relative; overflow: hidden; }

/* ---------- Footer ------------------------------------------------------ */
.footer { padding-block: 3rem calc(2.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.footer__top { display: flex; flex-direction: column; gap: 2rem; }
.footer__brand img { height: 26px; width: auto; }
.footer__brand p { margin-top: 0.875rem; color: var(--ink-3); font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__nav a { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; transition: color 160ms; }
.footer__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__nav svg { width: 16px; height: 16px; }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.footer__bottom { align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.8125rem; color: var(--ink-3); }
@media (min-width: 900px) { .footer__top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }

/* ---------- Reveal on scroll ------------------------------------------- */
/* Uses the independent `translate` property, so hover lifts and tilts (transform) still work. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; translate: 0 28px;
    transition: opacity 800ms var(--ease) var(--rd, 0ms), translate 1000ms var(--ease-out) var(--rd, 0ms),
      transform 420ms var(--ease-out), box-shadow 320ms var(--ease), border-color 260ms var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
  .js .steps .step:nth-child(2) { --rd: 90ms; }
  .js .steps .step:nth-child(3) { --rd: 180ms; }
  .js .bento .tile:nth-child(2) { --rd: 80ms; }
  .js .bento .tile:nth-child(3) { --rd: 160ms; }
}

/* ---------- Spinner (admin, unsubscribe) -------------------------------- */
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* ---------- Simple pages (privacy, admin, unsubscribe, 404) ------------ */
.page { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.prose { max-width: 44rem; }
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 1.8rem + 3vw, 3.75rem); letter-spacing: -0.015em; }
.prose .meta { margin-top: 1rem; color: var(--ink-3); font-size: 0.9375rem; }
.prose h2 { font-size: var(--step-2); margin-top: 3rem; letter-spacing: -0.02em; }
.prose h3 { font-family: var(--font); font-size: 1.0625rem; margin-top: 1.75rem; letter-spacing: -0.01em; }
.prose p, .prose ul { margin-top: 1rem; color: var(--ink-2); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose a { text-underline-offset: 3px; }
.prose .callout { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-2); }
@media (max-width: 559px) {
  .prose table, .prose tbody, .prose tr, .prose td, .prose th { display: block; }
  .prose thead { display: none; }
  .prose tr { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .prose td { border: 0; padding: 0.125rem 0; }
  .prose td:first-child { font-weight: 600; color: var(--ink); }
}

.center-card { max-width: 32rem; margin-inline: auto; text-align: center; padding: clamp(2rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--white); }
.center-card h1 { font-size: var(--step-2); }
.center-card p { margin-top: 1rem; color: var(--ink-3); }
.center-card .btn { margin-top: 1.75rem; }
.center-card .form__msg { text-align: center; }

/* Admin */
.admin-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.admin-bar .input { min-height: 44px; width: auto; flex: 1 1 14rem; border-radius: 10px; }
.select { min-height: 44px; padding: 0 2rem 0 0.875rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); font: inherit; font-size: 0.9375rem; }
.table-wrap { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 640px; }
.table th, .table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.table th { background: var(--paper); font-weight: 600; font-size: 0.8125rem; color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.table .select { min-height: 36px; font-size: 0.875rem; }
.admin-meta { margin-top: 1rem; color: var(--ink-3); font-size: 0.875rem; }

.center-card--left { text-align: left; }
.center-card__mark { margin: 0 auto 1.25rem; }
.login-form { margin-top: 1.5rem; }
.field-label { font-weight: 600; font-size: 0.875rem; }
.input--square { margin-top: 0.5rem; border-radius: 10px; }
.admin-title { font-size: var(--step-3); }
.footer__bottom--solo { margin-top: 0; border-top: 0; padding-top: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.35em; }
