/* =========================================================
   Matchly — matchlyapp.net
   Styles follow the Matchly brand system: Midnight / Daylight /
   Scorecard / Signal. Font: Plus Jakarta Sans.
   ========================================================= */

:root {
  /* Brand */
  --navy: #1B2542;
  --navy-2: #44506E;
  --ink-soft: #6B7590;
  --mid-bg: #0E1430;
  --mid-bg-2: #141B3D;
  --mid-text-2: #C7CFE6;
  --blue: #3F7DE0;
  --sky: #2FB3E6;
  --indigo: #6A55B8;
  --violet: #8B5CF6;
  --signal-yellow: #FFD84D;
  --signal-ink: #3F4FB8;

  --grad-day: linear-gradient(100deg, #2FB3E6 0%, #3F7DE0 52%, #6A55B8 100%);
  --grad-mid: linear-gradient(100deg, #5FD3FF 0%, #7AA8FF 50%, #B49CFF 100%);
  --grad-pill: linear-gradient(135deg, #4FA8F7 0%, #3B7FE8 100%);
  --grad-signal: linear-gradient(160deg, #2FB3E6 0%, #3F7DE0 50%, #6A55B8 100%);

  /* Daylight pastels */
  --p-sky: #BFE9FF;
  --p-lilac: #E4DAFF;
  --p-peach: #FFE3C4;
  --p-mint: #C9F2DA;
  --p-butter: #FFE9A8;
  --day-bg: #FAFBFF;

  /* Rating scale (from the app) */
  --r1: #EF5D69;
  --r2: #FB923C;
  --r3: #FACC15;
  --r4: #7AD65C;
  --r5: #3E9B55;
  --r5-soft: #D3F3D8;

  /* Surfaces */
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #FFFFFF;
  --line: rgba(27, 37, 66, 0.08);
  --line-strong: rgba(27, 37, 66, 0.14);
  --shadow-sm: 0 1px 2px rgba(27, 37, 66, 0.06), 0 4px 12px rgba(27, 37, 66, 0.05);
  --shadow-md: 0 2px 6px rgba(27, 37, 66, 0.06), 0 18px 40px -12px rgba(27, 37, 66, 0.18);
  --shadow-lg: 0 30px 80px -20px rgba(27, 37, 66, 0.28);

  /* Type */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  /* Layout */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius: 24px;
  --radius-lg: 32px;
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 520ms;

  /* Z */
  --z-header: 50;
  --z-menu: 60;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--day-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid #5FD3FF; outline-offset: 3px; border-radius: 8px; }
.theme-daylight :focus-visible, .scorecard :focus-visible, .faq :focus-visible { outline-color: var(--blue); }
::selection { background: rgba(63, 125, 224, 0.22); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-md);
  transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(860px + var(--gutter) * 2); }

/* ---------- Type ---------- */
.h2 {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}
.h2-xl { font-size: clamp(42px, 7vw, 92px); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--navy-2); max-width: 46ch; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow-light { color: #7AA8FF; }
.accent { background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: 0.06em; }
.accent-daylight { background-image: var(--grad-day); }
.accent-midnight { background-image: var(--grad-mid); }
.accent-signal { color: var(--signal-yellow); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 20px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  --pad-x: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 var(--pad-x);
  border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2), color var(--dur-2), opacity var(--dur-2);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-pill { background: var(--grad-pill); color: #fff; box-shadow: 0 8px 24px -8px rgba(59, 127, 232, 0.65), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-pill:hover { box-shadow: 0 12px 30px -8px rgba(59, 127, 232, 0.8), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-sm { min-height: 40px; --pad-x: 18px; font-size: 14px; }
.btn-lg { min-height: 56px; --pad-x: 28px; font-size: 17px; }
.btn-store {
  min-height: 60px; --pad-x: 26px; gap: 12px;
  background: #fff; color: var(--mid-bg);
  box-shadow: 0 14px 40px -12px rgba(95, 211, 255, 0.55), inset 0 -2px 0 rgba(14, 20, 48, 0.08);
}
.btn-store:hover { box-shadow: 0 18px 50px -12px rgba(122, 168, 255, 0.75), inset 0 -2px 0 rgba(14, 20, 48, 0.08); }
.btn-store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.btn-store small { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.65; }
.btn-ghost { color: #fff; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-white { background: #fff; color: var(--signal-ink); min-height: 60px; --pad-x: 30px; font-size: 17px; box-shadow: 0 20px 50px -16px rgba(14, 20, 48, 0.55); }
.btn-white:hover { box-shadow: 0 24px 60px -16px rgba(14, 20, 48, 0.7); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.wordmark img { width: 34px; height: auto; }
.wordmark span {
  font-weight: 300; font-size: 18px; letter-spacing: 0.42em; color: #8A93A8; margin-left: 3px;
  margin-right: -0.42em; transform: translateY(1px);
  transition: color var(--dur-3) var(--ease-out);
}
.wordmark-light span { color: var(--mid-text-2); }
.site-header .wordmark { transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), visibility 0s; }
.site-header.logo-hidden .wordmark { opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none; transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2); }
body.menu-open .site-header.logo-hidden .wordmark { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center;
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), color var(--dur-3);
  color: #fff;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(14, 20, 48, 0.6);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: opacity var(--dur-3) var(--ease-out), background-color var(--dur-3);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.on-light { color: var(--navy); }
.site-header.on-light::before { background: rgba(250, 251, 255, 0.72); border-bottom-color: var(--line); }
.site-header.on-light .wordmark span { color: #8A93A8; }
.site-header:not(.on-light) .wordmark span { color: var(--mid-text-2); }
.site-header.is-hidden { transform: translateY(-110%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; gap: 6px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; opacity: 0.82;
  transition: opacity var(--dur-2), background-color var(--dur-2);
}
.nav a:hover { opacity: 1; background: rgba(127, 140, 180, 0.12); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  position: relative;
}
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-3) var(--ease-out), top var(--dur-3) var(--ease-out); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 24px + env(safe-area-inset-top)) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: rgba(14, 20, 48, 0.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #fff;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  padding: 14px 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(16px); opacity: 0;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-3) var(--ease-out);
}
.mobile-menu.is-open nav a { transform: none; opacity: 1; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 40ms; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 80ms; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 120ms; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 160ms; }
body.menu-open .site-header { z-index: calc(var(--z-menu) + 1); color: #fff; }
body.menu-open .site-header::before { opacity: 0; }
body.menu-open .site-header .wordmark span { color: var(--mid-text-2); }
body.menu-open .header-actions .btn { opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 380px) {
  .header-actions .btn-sm { display: none; }
}

/* ---------- Shared backgrounds ---------- */
.theme-midnight { background: var(--mid-bg); color: #fff; }
.theme-daylight { position: relative; background: var(--day-bg); }
.hero-bg, .cta-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; will-change: transform; }
.glow-a { width: 70vmax; height: 70vmax; left: -22vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(63, 125, 224, 0.55), rgba(63, 125, 224, 0) 70%); }
.glow-b { width: 64vmax; height: 64vmax; right: -24vmax; top: -6vmax; background: radial-gradient(closest-side, rgba(139, 92, 246, 0.45), rgba(139, 92, 246, 0) 70%); }
.glow-c { width: 60vmax; height: 40vmax; left: 50%; bottom: -24vmax; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(95, 211, 255, 0.28), rgba(95, 211, 255, 0) 70%); }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.grain {
  position: absolute; inset: -50%; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; opacity: 0.75; }
.blob.sky { background: radial-gradient(closest-side, var(--p-sky), transparent 72%); left: -18vmax; top: -12vmax; }
.blob.lilac { background: radial-gradient(closest-side, var(--p-lilac), transparent 72%); right: -20vmax; top: 10%; }
.blob.peach { background: radial-gradient(closest-side, var(--p-peach), transparent 72%); right: -16vmax; top: -10vmax; }
.blob.mint { background: radial-gradient(closest-side, var(--p-mint), transparent 72%); left: -20vmax; bottom: -16vmax; }
.blob.butter { background: radial-gradient(closest-side, var(--p-butter), transparent 72%); right: -18vmax; bottom: -10vmax; opacity: 0.6; }
.blob.b2 { top: auto; bottom: -14vmax; }
.theme-daylight > .container { position: relative; z-index: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(40px, 9vh, 96px));
  text-align: center;
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-logo { display: flex; align-items: center; margin-bottom: 26px; }
.hero-logo img { width: clamp(46px, 5vw, 64px); height: auto; }
.hero-logo > span:not(.visually-hidden) {
  font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: 0.42em; color: var(--mid-text-2);
  margin-left: 6px; margin-right: -0.42em; transform: translateY(0.18em);
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--mid-text-2);
  background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #5FD3FF; box-shadow: 0 0 0 4px rgba(95, 211, 255, 0.18); animation: pulse 2.4s var(--ease-in-out) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(95,211,255,0.18); } 50% { box-shadow: 0 0 0 8px rgba(95,211,255,0); } }
.hero-title {
  margin-top: 26px;
  font-size: clamp(48px, 10.5vw, 132px);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 800;
}
/* Extra bottom room so descenders (the "g" in organized) aren't clipped by the reveal mask or the gradient fill */
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.hero-title .line-inner { display: inline-block; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.hero-sub { margin-top: 26px; max-width: 34ch; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; color: var(--mid-text-2); text-wrap: balance; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero-byline { display: flex; align-items: center; gap: 12px; margin-top: 30px; max-width: 46ch; font-size: 14px; line-height: 1.45; color: var(--mid-text-2); text-align: left; }
.hero-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); flex: none; }
.hero-byline strong { color: #fff; font-weight: 700; }

.hero-phones {
  --w: clamp(250px, 25vw, 360px);
  position: relative; z-index: 1;
  height: calc(var(--w) * 1.22);
  margin-top: clamp(48px, 7vh, 80px);
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(20px, 3vw, 44px);
}
.hero-phone { flex: none; width: var(--w); will-change: transform; }
.hero-phone img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45)); }
.hero-phone--left, .hero-phone--right { width: calc(var(--w) * 0.86); margin-top: calc(var(--w) * 0.2); }
.hero-phone--left img, .hero-phone--right img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4)) brightness(0.92); }
/* Desktop / landscape: copy left, phones right — visible on the first screen and always cut by the hero's bottom edge */
@media (min-width: 900px) and (orientation: landscape) {
  .hero { text-align: left; padding-top: 0; display: flex; }
  .hero-inner {
    --top: calc(var(--header-h) + clamp(16px, 4vh, 48px));
    flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); column-gap: clamp(24px, 4vw, 72px);
  }
  .hero-copy { align-items: flex-start; justify-content: center; padding: var(--top) 0 clamp(40px, 7vh, 88px); }
  .hero-logo { margin-bottom: clamp(14px, 2.6vh, 28px); }
  .hero-title { margin-top: clamp(14px, 2.4vh, 24px); font-size: clamp(50px, 5.2vw, 84px); }
  .hero-sub { margin-top: clamp(14px, 2.4vh, 26px); max-width: 31ch; text-wrap: pretty; }
  .hero-ctas { justify-content: flex-start; margin-top: clamp(20px, 3.4vh, 36px); }
  .hero-byline { margin-top: clamp(16px, 2.8vh, 30px); }
  /* The phone column sets a minimum hero height so ~18% of the phone always runs off the bottom */
  /* one large phone on smaller laptops; --w lives on .hero-phones (it overrides the mobile value) */
  .hero-phones {
    --w: clamp(240px, min(calc(44vw - 90px), calc((100svh - 60px) / 1.62)), 340px);
    position: relative; margin: 0; display: block; align-self: stretch; height: auto;
    min-height: calc(var(--top) + var(--w) * 2.05 * 0.82);
  }
  /* Starts under the header, but never higher than "18% below the hero's bottom edge" so it can't float */
  .hero-phone { position: absolute; margin: 0; top: max(var(--top), calc(100% - var(--w) * 2.05 * 0.82)); }
  .hero-phone--left, .hero-phone--right { display: none; }
  .hero-phone--center { width: var(--w); left: calc(50% - var(--w) / 2); } /* no transform: GSAP animates it */
}
/* Wide screens: two phones side by side (never overlapping) */
@media (min-width: 1240px) and (orientation: landscape) {
  .hero-phones { --w: clamp(250px, min(calc((min(100vw, 1280px) * 0.47 - 40px) / 1.9), calc((100svh - 60px) / 1.62)), 330px); }
  .hero-phone--center { left: 0; }
  .hero-phone--right { display: block; width: calc(var(--w) * 0.86); left: calc(var(--w) + clamp(18px, 2vw, 32px)); top: max(calc(var(--top) + var(--w) * 0.3), calc(100% - var(--w) * 0.86 * 2.05 * 0.72)); }
}
@media (max-width: 720px) {
  .hero { padding-top: calc(var(--header-h) + 8px); }
  .hero-logo { margin-bottom: 16px; }
  .hero-title { margin-top: 18px; }
  .hero-sub { margin-top: 16px; font-size: 17px; }
  .hero-ctas { margin-top: 24px; gap: 10px; flex-wrap: nowrap; }
  .hero-ctas .btn-store { min-height: 54px; --pad-x: 18px; }
  .hero-ctas .btn-ghost { min-height: 54px; --pad-x: 16px; font-size: 15px; }
  .hero-byline { margin-top: 20px; }
  .hero-phones { --w: min(72vw, 330px); height: calc(var(--w) * 1.08); margin-top: 32px; }
  .hero-phone--left, .hero-phone--right { display: none; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative; overflow: hidden;
  padding: 22px 0; background: #fff;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; list-style: none; flex: none; }
.marquee-list li {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em; color: var(--navy-2); white-space: nowrap;
}
.marquee-list li::after { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--grad-day); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   PROBLEM
   ========================================================= */
.problem { padding: clamp(96px, 16vw, 200px) 0 clamp(80px, 12vw, 160px); overflow: hidden; }
.scrub-text {
  font-size: clamp(28px, 4.2vw, 54px); line-height: 1.18; font-weight: 700; letter-spacing: -0.025em;
  color: var(--navy);
}
.scrub-text .w { transition: none; }
.js-anim .scrub-text .w { color: #C5CBDB; }
.problem-turn { margin-top: clamp(32px, 4vw, 48px); font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.015em; color: var(--navy-2); }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how { padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.steps { position: relative; z-index: 1; }
.steps-progress { display: none; }
.step { display: grid; gap: 32px; margin-bottom: 72px; }
.step:last-child { margin-bottom: 0; }
.step-kicker {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.step h3 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.step p { margin-top: 18px; font-size: clamp(17px, 1.4vw, 19px); color: var(--navy-2); max-width: 42ch; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ticks li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--navy);
  background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.ticks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat, var(--grad-day);
}

/* Phone stage: phone runs off the bottom of a soft card (brand rule) */
.phone-stage {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 5 / 5.2;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(191, 233, 255, 0.9), transparent 70%),
    radial-gradient(60% 50% at 80% 30%, rgba(228, 218, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #EEF4FF, #F5F0FF);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8), var(--shadow-md);
}
.phone-stage .vphone { position: absolute; left: 50%; top: 9%; width: min(66%, 340px); transform: translateX(-50%); }

/* Video phone component */
.vphone { position: relative; }
.vphone img, .vphone video { width: 100%; height: auto; }
.vphone video {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 400ms var(--ease-out);
}
.vphone.is-playing video { opacity: 1; }
.vphone img, .vphone video { filter: drop-shadow(0 30px 40px rgba(27, 37, 66, 0.22)); }

@media (min-width: 960px) {
  .steps { height: 100vh; height: 100svh; }
  .steps-pin {
    height: 100%;
    display: grid; grid-template-columns: 1fr 1.05fr; grid-template-rows: 1fr; align-items: center;
    column-gap: clamp(40px, 6vw, 96px);
    position: relative;
  }
  .steps-progress {
    display: flex; align-items: center; gap: 18px;
    position: absolute; left: var(--gutter); top: calc(var(--header-h) + 3vh);
    font-size: 14px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums;
  }
  .steps-count b { color: var(--navy); }
  .steps-bars { display: flex; gap: 6px; }
  .steps-bars i { width: 36px; height: 4px; border-radius: 4px; background: rgba(27,37,66,0.1); overflow: hidden; position: relative; }
  .steps-bars i::after { content: ""; position: absolute; inset: 0; background: var(--grad-day); transform: scaleX(var(--p, 0)); transform-origin: left; }
  .step { display: contents; }
  .step-text, .step-media { grid-row: 1; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), visibility 0s linear 700ms; }
  .step-text { grid-column: 1; opacity: 0; transform: translateY(28px); visibility: hidden; }
  .step-media { grid-column: 2; opacity: 0; transform: translateY(40px) scale(0.98); visibility: hidden; }
  .step.is-active .step-text, .step.is-active .step-media { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .step.is-active .step-text { transition-delay: 120ms; }
  .step.is-past .step-text { transform: translateY(-28px); }
  .step.is-past .step-media { transform: translateY(-40px) scale(0.98); }
  .phone-stage { aspect-ratio: auto; height: min(74svh, 720px); }
  .phone-stage .vphone { width: min(58%, 340px); top: 8%; }
  /* Without JS pinning, fall back to a stacked layout */
  html:not(.js-anim) .steps { height: auto; }
  html:not(.js-anim) .steps-pin { display: block; }
  html:not(.js-anim) .step { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 64px; margin-bottom: 96px; }
  html:not(.js-anim) .step-text, html:not(.js-anim) .step-media { opacity: 1; transform: none; visibility: visible; grid-row: auto; grid-column: auto; }
  html:not(.js-anim) .steps-progress { display: none; }
}

/* =========================================================
   SCORECARD DEMO
   ========================================================= */
.scorecard { position: relative; overflow: hidden; background: #fff; padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 140px); }
.scale-bar { position: absolute; top: 0; left: 0; right: 0; height: 10px; display: flex; }
.scale-bar i { flex: 1; }
.scale-bar i:nth-child(1) { background: var(--r1); }
.scale-bar i:nth-child(2) { background: var(--r2); }
.scale-bar i:nth-child(3) { background: var(--r3); }
.scale-bar i:nth-child(4) { background: var(--r4); }
.scale-bar i:nth-child(5) { background: var(--r5); }
.tile {
  position: absolute; display: grid; place-items: center;
  width: clamp(72px, 9vw, 120px); aspect-ratio: 1; border-radius: 26%;
  font-size: clamp(40px, 5vw, 66px); font-weight: 800; color: #fff;
  box-shadow: 0 24px 50px -18px rgba(27, 37, 66, 0.4);
}
.tile-3 { left: clamp(-24px, 3vw, 64px); top: clamp(70px, 9vw, 120px); background: var(--r3); color: var(--navy); transform: rotate(-12deg); }
.tile-5 { right: clamp(-24px, 3vw, 64px); top: clamp(120px, 12vw, 170px); background: var(--r5); transform: rotate(10deg); }
@media (max-width: 720px) { .tile { opacity: 0.35; } .tile-3 { left: -26px; top: 40px; } .tile-5 { right: -26px; top: 70px; } }

.demo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; max-width: 1060px; margin: 0 auto; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.demo-card {
  background: var(--card-solid); border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
  padding: clamp(20px, 3vw, 32px);
}
.demo-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: #F1F3F9; overflow-x: auto; scrollbar-width: none; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  flex: 1 0 auto; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; font-size: 14px; font-weight: 700; color: var(--navy-2); white-space: nowrap;
  transition: background-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2);
}
.demo-tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.demo-program { margin: 22px 0 6px; }
.demo-program h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.demo-program p { font-size: 14px; color: var(--ink-soft); }
.demo-q { padding: 16px 0; border-top: 1px solid var(--line); }
.demo-q:first-of-type { border-top: 0; }
.demo-q legend { padding: 0; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.demo-q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label {
  --c: #ccc; --fg: var(--navy);
  display: grid; place-items: center; height: 44px; border-radius: 12px; cursor: pointer;
  font-weight: 800; font-size: 15px; color: var(--fg);
  background: color-mix(in srgb, var(--c) 18%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, white);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2), box-shadow var(--dur-2), color var(--dur-2);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
}
.rate label:hover { transform: translateY(-2px); }
.rate label[data-v="1"] { --c: var(--r1); }
.rate label[data-v="2"] { --c: var(--r2); }
.rate label[data-v="3"] { --c: var(--r3); }
.rate label[data-v="4"] { --c: var(--r4); }
.rate label[data-v="5"] { --c: var(--r5); }
.rate input:checked + label { background: var(--c); color: #fff; box-shadow: 0 8px 18px -8px var(--c); transform: scale(1.04); }
.rate input[value="3"]:checked + label { color: var(--navy); }
.rate input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.demo-note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

.demo-rank { position: sticky; top: calc(var(--header-h) + 24px); }
.demo-rank-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.demo-rank-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.chip-soft { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; color: var(--blue); background: #EAF2FF; }
.demo-list { list-style: none; display: grid; gap: 10px; }
.demo-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px; background: #F7F8FC; box-shadow: inset 0 0 0 1px var(--line);
  will-change: transform;
}
.demo-row.is-current { background: #fff; box-shadow: inset 0 0 0 2px #CFE0FF, var(--shadow-sm); }
.demo-rank-num { font-size: 28px; font-weight: 800; color: var(--blue); text-align: center; font-variant-numeric: tabular-nums; }
.demo-row-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.demo-row-meta { font-size: 12px; color: var(--ink-soft); }
.demo-bar { height: 6px; border-radius: 6px; background: #E6E9F2; margin-top: 8px; overflow: hidden; }
.demo-bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad-day); transform-origin: left; transition: transform 600ms var(--ease-out); }
.demo-score { text-align: right; font-variant-numeric: tabular-nums; }
.demo-score b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--r5); }
.demo-score span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* =========================================================
   FEATURES (bento)
   ========================================================= */
.features { padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; z-index: 1; }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9), var(--shadow-md);
  padding: clamp(24px, 2.6vw, 34px);
  transform-style: preserve-3d;
  transition: box-shadow var(--dur-3) var(--ease-out);
}
.card:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9), var(--shadow-lg); }
.card h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.card p { margin-top: 10px; font-size: 16px; color: var(--navy-2); line-height: 1.55; }
.card-kicker { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
/* Phone cards: the phone sits in a window pinned to the card bottom, so its cut edge is the card edge */
.card-phone { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; margin-top: auto; padding-top: 24px; flex: none; }
.card-phone .vphone { width: min(72%, 300px); }
.card-compare, .card-widget, .card-small-phone { padding-bottom: 0; display: flex; flex-direction: column; }
.card-compare { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end;
  background: linear-gradient(140deg, rgba(255,255,255,0.92), rgba(234, 242, 255, 0.86)); }
.card-compare .card-copy { align-self: center; padding-bottom: clamp(24px, 2.6vw, 34px); }
.card-compare .card-phone { height: 470px; padding-top: 0; }
.card-compare .card-phone .vphone { width: min(92%, 290px); }
.card-widget { grid-column: span 2; background: linear-gradient(170deg, rgba(255,255,255,0.92), rgba(255, 233, 168, 0.5)); }
.card-widget .card-phone { height: 380px; }
.card-widget .card-phone .vphone { width: min(84%, 260px); }
.card-small-phone { grid-column: span 2; }
.card-small-phone .card-phone { height: 300px; }
.card-small-phone .card-phone .vphone { width: min(76%, 240px); }
.card-small-phone:nth-of-type(3) { background: linear-gradient(170deg, rgba(255,255,255,0.92), rgba(255, 227, 196, 0.6)); }
.card-small-phone:nth-of-type(4) { background: linear-gradient(170deg, rgba(255,255,255,0.92), rgba(228, 218, 255, 0.7)); }
.card-small-phone:nth-of-type(5) { background: linear-gradient(170deg, rgba(255,255,255,0.92), rgba(255, 210, 214, 0.55)); }

.card-icon { grid-column: span 2; }
.card-icon .icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 22px;
  background: linear-gradient(145deg, #EAF6FF, #EFEAFF); box-shadow: inset 0 0 0 1px rgba(63,125,224,0.12);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: var(--indigo); background: #F0EBFF; }
@media (max-width: 1080px) {
  .card-compare { grid-column: span 6; }
  .card-widget { grid-column: span 3; }
  .card-small-phone { grid-column: span 3; }
  .card-small-phone:nth-of-type(5) { grid-column: span 6; }
  .card-icon { grid-column: span 3; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .card-compare, .card-widget, .card-small-phone, .card-small-phone:nth-of-type(5), .card-icon { grid-column: auto; }
  .card-compare { grid-template-columns: 1fr; gap: 0; }
  .card-compare .card-copy { padding-bottom: 0; }
  .card-compare .card-phone { height: 400px; padding-top: 24px; }
  .card-widget .card-phone, .card-small-phone .card-phone { height: 320px; }
  .card-compare .card-phone .vphone, .card-small-phone .card-phone .vphone, .card-widget .card-phone .vphone { width: min(64%, 250px); }
}

/* =========================================================
   FOUNDER
   ========================================================= */
.founder { padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; }
.founder-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
@media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-photo { position: relative; max-width: 480px; justify-self: center; width: 100%; }
.founder-photo::before {
  content: ""; position: absolute; inset: 8% -8% -6% 8%; border-radius: 40px; z-index: -1;
  background: linear-gradient(150deg, var(--p-sky), var(--p-lilac) 55%, var(--p-peach));
  transform: rotate(4deg);
}
.founder-photo-frame { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: #E7E3DF; }
.founder-photo-frame img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 0%; will-change: transform; }
.name-tag {
  position: absolute; left: clamp(-12px, -2vw, 0px); bottom: 28px;
  display: flex; flex-direction: column; padding: 14px 18px; border-radius: 18px;
  background: rgba(255,255,255,0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.name-tag strong { font-size: 16px; font-weight: 800; }
.name-tag span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.founder-quote { margin-top: 28px; padding-left: 22px; border-left: 3px solid; border-image: var(--grad-day) 1; }
.founder-quote p { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; font-weight: 500; color: var(--navy); letter-spacing: -0.005em; }
.tip-card {
  margin-top: 32px; padding: 22px 24px; border-radius: 22px;
  background: rgba(255,255,255,0.75); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9), var(--shadow-sm);
}
.tip-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo); margin-bottom: 8px; }
.tip-card p { color: var(--navy-2); }
.tip-card em { font-style: normal; font-weight: 700; color: var(--navy); }

/* =========================================================
   NUMBERS (Midnight)
   ========================================================= */
.numbers { position: relative; overflow: hidden; isolation: isolate; padding: clamp(96px, 12vw, 160px) 0; }
.numbers .container { position: relative; z-index: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr; } }
.stat {
  padding: clamp(26px, 3vw, 38px); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.stat-num {
  font-size: clamp(54px, 6.6vw, 88px); font-weight: 800; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-mid); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--mid-text-2); }
sup a { color: #7AA8FF; font-weight: 700; text-decoration: none; padding: 0 2px; }
.numbers-kicker { margin-top: clamp(36px, 5vw, 56px); max-width: 60ch; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; color: #fff; font-weight: 600; }
.sources { margin-top: 40px; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: #8F99B8; }
.sources a { color: #A9C3FF; }

/* =========================================================
   MYTH vs FACT
   ========================================================= */
.myth { padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; }
.myth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .myth-grid { grid-template-columns: 1fr; } }
.myth .lead { margin-top: 24px; }
.rounds-card {
  position: relative; max-width: 520px; justify-self: center; width: 100%;
  padding: 28px clamp(22px, 3vw, 36px) 24px;
  background-color: #FFFDF6;
  background-image: repeating-linear-gradient(180deg, transparent 0 41px, rgba(63, 125, 224, 0.22) 41px 42px);
  background-position: 0 70px;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 40px 70px -24px rgba(27, 37, 66, 0.35);
  transform: rotate(-2deg);
}
.rounds-card::before { content: ""; position: absolute; left: 0; right: 0; top: 68px; height: 2px; background: rgba(239, 93, 105, 0.55); }
.rounds-head { font-size: 14px; font-weight: 700; letter-spacing: 0.03em; color: var(--blue); margin-bottom: 26px; }
.rounds-head b { font-weight: 800; }
.rounds-body { display: grid; gap: 10px; }
.stamp {
  justify-self: start; display: inline-block; padding: 4px 16px; border: 4px solid currentColor; border-radius: 10px;
  font-size: 32px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.1;
  transform: rotate(-6deg);
}
.stamp-myth { color: #D63B48; }
.stamp-fact { color: #2E8B4A; margin-top: 14px; transform: rotate(-3deg); }
.hand { font-family: var(--font-hand); font-size: clamp(26px, 3vw, 34px); line-height: 1.25; color: #23304F; font-weight: 500; }
.strike { background-image: linear-gradient(#D63B48, #D63B48); background-repeat: no-repeat; background-size: var(--strike, 100%) 3px; background-position: 0 58%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.js-anim .strike { --strike: 0%; }
.rounds-source { margin-top: 26px; font-size: 13px; color: var(--ink-soft); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: clamp(96px, 12vw, 150px) 0; background: linear-gradient(180deg, var(--day-bg), #F2F4FB); }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: box-shadow var(--dur-3) var(--ease-out);
}
.faq-item[open] { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px; min-height: 64px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; border-radius: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: #EEF3FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F7DE0' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/18px no-repeat;
  transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-2);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-a { padding: 0 24px 24px; color: var(--navy-2); }
.faq-a p { max-width: 62ch; }
.faq-a a { color: var(--blue); font-weight: 600; }

/* =========================================================
   CTA (Signal)
   ========================================================= */
.cta { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--grad-signal); padding-top: clamp(96px, 12vw, 150px); }
.cta-bg::before {
  content: ""; position: absolute; width: 80vmax; height: 80vmax; right: -30vmax; top: -40vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.22), transparent 70%);
}
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; }
.cta-copy { padding-bottom: clamp(80px, 10vw, 140px); }
.cta .lead { margin-top: 24px; color: #EAF1FF; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.qr { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; line-height: 1.35; color: #EAF1FF; }
.qr-code { width: 88px; height: 88px; padding: 8px; border-radius: 14px; background: #fff; }
.qr-code svg, .qr-code img { width: 100%; height: 100%; }
.cta-search { margin-top: 22px; font-size: 15px; color: #EAF1FF; }
.cta-phone { align-self: end; justify-self: center; width: min(340px, 100%); height: clamp(360px, 40vw, 520px); overflow: hidden; }
.cta-phone img { width: 100%; filter: drop-shadow(0 30px 50px rgba(14, 20, 48, 0.45)); will-change: transform; }
@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; }
  .cta-copy { padding-bottom: 0; text-align: left; }
  .cta-phone { width: min(64vw, 300px); height: min(80vw, 380px); margin-top: 24px; }
  .qr { display: none !important; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #0A0F26; color: var(--mid-text-2); padding: 72px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 14px; font-size: 15px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 480px) { .footer-nav { grid-template-columns: 1fr 1fr; } }
.footer-nav h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-nav a { display: block; padding: 6px 0; font-size: 15px; text-decoration: none; color: var(--mid-text-2); transition: color var(--dur-2); }
.footer-nav a:hover { color: #fff; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; color: #8F99B8; }
.footer-legal p:last-child { max-width: 64ch; }

/* =========================================================
   Initial states for JS-driven motion (only when motion is allowed)
   ========================================================= */
.js-anim [data-hero], .js-anim [data-reveal], .js-anim [data-reveal-stagger] > * { opacity: 0; }
.js-anim [data-hero="line"] { opacity: 1; transform: translateY(105%); }
.js-anim [data-hero="phone"] { transform: translateY(18%); }
.js-anim .stamp { opacity: 0; }

/* =========================================================
   Legal / Support pages
   ========================================================= */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 72px) 0 72px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.page-hero p { margin-top: 16px; color: var(--mid-text-2); font-size: 18px; }
.prose-wrap { position: relative; background: var(--day-bg); padding: 64px 0 120px; }
.prose { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.75; color: var(--navy-2); overflow-wrap: anywhere; }
.prose h2 { margin: 56px 0 16px; font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin: 32px 0 10px; font-size: 18px; font-weight: 800; color: var(--navy); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--blue); font-weight: 600; }
.prose strong { color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line-strong); padding: 10px 12px; vertical-align: top; }
.prose .anchor { display: block; position: relative; top: calc(-1 * var(--header-h) - 20px); visibility: hidden; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .support-grid { grid-template-columns: 1fr; } }
.support-card { padding: 32px; border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
.support-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.support-card p { margin-top: 10px; color: var(--navy-2); }
.support-card .btn { margin-top: 22px; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
.show-sm { display: none; }
@media (max-width: 400px) { .hide-sm { display: none; } .show-sm { display: inline; } }
/* Founder heading is a longer phrase: size it so each of its two lines stays on one line */
.founder-copy .h2 { font-size: clamp(32px, 3.7vw, 48px); }
@media (max-width: 900px) { .founder-copy .h2 { font-size: clamp(30px, 7.4vw, 48px); } }
