/* ==========================================================================
   Sendfox — House Design DNA v2 "Cinematic"  (THEME_V2)
   --------------------------------------------------------------------------
   Ported from the approved round-2 preview
   (site-redesigns/sendfox/v2/index.html, PARITY.md V19).

   PRESENTATION ONLY. This file is linked from the root layout **only** when
   flags.THEME_V2 is on, and every rule is scoped under `html.theme-v2`, so
   with the flag off it is never fetched and never applies.

   Fonts are the three the app already loads via next/font (Orbitron /
   Space Grotesk / JetBrains Mono) — exactly the trio the design calls for —
   so this theme adds no font requests.

   ground #07070B · surface #0D0D14 · card #13131C · ink #F8FAFC
   accent #FF0055 · accent-light #FF6B9A · teal #14B8A6 (chips only)
   ========================================================================== */

.theme-v2 {
  /* --- v2 palette, mapped onto the app's existing token names so every
         existing component (.page/.card/.btn/.badge/inputs/tables) inherits --- */
  --ground: #07070b;
  --surface: #0d0d14;
  --card: #13131c;
  --ink: #f8fafc;
  --ink-deep: #0b0b12; /* label on the accent pill: white on #FF0055 is 3.90:1 and fails V17 */
  --accent: #ff0055;
  --accent-light: #ff6b9a;
  --teal: #14b8a6;
  --glow: rgba(255, 0, 85, 0.3);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-light) 90%);
  --max: 1280px;

  /* legacy token names, re-pointed */
  --bg-primary: #07070b;
  --bg-secondary: #0d0d14;
  --bg-card: #13131c;
  --bg-card-hover: #191922;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent-main: #ff0055;
  --accent-glow: rgba(255, 0, 85, 0.3);
  --accent-secondary: #14b8a6;
  --accent-purple: #ff6b9a;
  --text-primary: #f8fafc;
  --text-secondary: rgba(248, 250, 252, 0.64);
  --text-muted: rgba(248, 250, 252, 0.5);
  --success: #14b8a6;
  --danger: #ff0055;
  --radius: 20px;
  --radius-sm: 999px;

  --display: var(--font-display);
  --text: var(--font-body);
  --mono: var(--font-mono);

  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ground);
}

/* ---------- base ---------- */
.theme-v2 body {
  background: var(--ground); /* the v2 ground is flat — no CRT scanlines */
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
/* retire the v1 cyberpunk grid + page-wide drifting blooms; the v2 atmosphere
   is hero-scoped (.hero__glow / .hero__grid) so body copy never sits on it */
.theme-v2 body::before,
.theme-v2 body::after { display: none; content: none; }

.theme-v2 h1,
.theme-v2 h2,
.theme-v2 h3,
.theme-v2 h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.theme-v2 h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; }
.theme-v2 h2 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.12; margin: 44px 0 14px; }
.theme-v2 h3 { font-size: 21px; margin: 32px 0 10px; }
.theme-v2 h4 { font-size: 17px; margin: 24px 0 8px; }
.theme-v2 p { margin: 0 0 16px; color: var(--text-secondary); }
.theme-v2 a { color: var(--accent-light); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
.theme-v2 a:hover { color: var(--accent); opacity: 1; text-decoration: underline; }
.theme-v2 hr { border-top: 1px solid var(--line); margin: 32px 0; }
.theme-v2 code,
.theme-v2 kbd,
.theme-v2 samp {
  font-family: var(--mono); font-size: .85em;
  background: rgba(255, 0, 85, .10); border: 1px solid rgba(255, 0, 85, .28);
  border-radius: 999px; padding: 2px 10px; color: var(--accent-light);
}
.theme-v2 .muted { color: var(--text-muted); }
.theme-v2 .small { font-size: 13.5px; }
.theme-v2 .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme-v2 .container { width: min(var(--max), 100% - 64px); margin-inline: auto; }
.theme-v2 .measure { max-width: 62ch; }
.theme-v2 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- shared layout: every app route uses .page ---------- */
.theme-v2 .page { max-width: 820px; padding: 56px 32px 96px; }
.theme-v2 .page--wide { max-width: var(--max); }
.theme-v2 .page--narrow { max-width: 480px; }

/* ---------- eyebrow ---------- */
.theme-v2 .eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 24px;
}
.theme-v2 .eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); flex: none; border-radius: 2px; }
.theme-v2 .eyebrow--center { justify-content: center; }

/* ---------- buttons (site-wide: .btn AND bare <button>) ---------- */
.theme-v2 .btn,
.theme-v2 button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: var(--text); font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.theme-v2 .btn--primary,
.theme-v2 button { background: var(--accent); color: var(--ink-deep); box-shadow: 0 4px 20px var(--glow); }
.theme-v2 .btn--primary:hover,
.theme-v2 button:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(255, 0, 85, .40); text-decoration: none; }
.theme-v2 .btn--ghost,
.theme-v2 button.btn--ghost {
  background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--ink); box-shadow: none;
}
.theme-v2 .btn--ghost:hover,
.theme-v2 button.btn--ghost:hover { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .28); }
.theme-v2 button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.theme-v2 .btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- cards ---------- */
.theme-v2 .card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.theme-v2 a.card:hover,
.theme-v2 .card--link:hover,
.theme-v2 .grid-3 .card:hover {
  border-color: rgba(255, 0, 85, .40); background: var(--card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35); transform: translateY(-2px); text-decoration: none;
}
.theme-v2 .grid { gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.theme-v2 .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.theme-v2 .grid-3 .card { padding: 32px; }
.theme-v2 .grid-3 .card p { color: var(--text-secondary); margin-top: 12px; font-size: 16px; }
.theme-v2 .icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 0, 85, .12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}

/* ---------- forms + tables (dashboard, onboarding, login, settings) ---------- */
.theme-v2 label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.theme-v2 input,
.theme-v2 textarea,
.theme-v2 select {
  font-family: var(--text); font-size: 16px; color: var(--ink);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 16px;
}
.theme-v2 input:focus,
.theme-v2 textarea:focus,
.theme-v2 select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 0, 85, .22); }
.theme-v2 input[type="checkbox"],
.theme-v2 input[type="radio"] { width: auto; accent-color: var(--accent); }
.theme-v2 table { width: 100%; border-collapse: collapse; font-size: 15px; }
.theme-v2 th {
  text-align: left; font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary);
  padding: 12px 14px; border-bottom: 1px solid var(--line-2);
}
.theme-v2 td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--text-secondary); }
.theme-v2 tbody tr:hover td { background: rgba(255, 255, 255, .02); }

/* ---------- chips / badges / alerts ---------- */
.theme-v2 .badge,
.theme-v2 .chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 14px;
  color: var(--teal); background: rgba(20, 184, 166, .10); border: 1px solid rgba(20, 184, 166, .40);
}
.theme-v2 .badge--accent { color: var(--accent-light); background: rgba(255, 0, 85, .10); border-color: rgba(255, 0, 85, .30); }
.theme-v2 .badge--muted { color: var(--text-secondary); background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.theme-v2 .chip { color: var(--text-secondary); background: transparent; border-color: var(--line-2); }
.theme-v2 .chip--teal { color: var(--teal); border-color: rgba(20, 184, 166, .40); background: rgba(20, 184, 166, .10); }
.theme-v2 .alert { border-radius: 16px; padding: 14px 18px; border: 1px solid var(--line-2); }
.theme-v2 .alert--error { color: #ffb3c8; background: rgba(255, 0, 85, .08); border-color: rgba(255, 0, 85, .30); }
.theme-v2 .alert--success { color: #9af0e3; background: rgba(20, 184, 166, .08); border-color: rgba(20, 184, 166, .30); }
.theme-v2 .brand { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; }
.theme-v2 .brand-accent { color: var(--accent); }
.theme-v2 .price { font-family: var(--display); font-weight: 700; color: var(--ink); }
.theme-v2 .success-text { color: var(--teal); }
.theme-v2 .danger-text { color: var(--accent); }

/* the live build chip, restyled (L11) */
.theme-v2 .verchip {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  color: var(--accent-light); background: rgba(255, 0, 85, .10); border: 1px solid rgba(255, 0, 85, .28);
  border-radius: 999px; padding: 2px 10px; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.theme-v2 .verchip:hover { background: rgba(255, 0, 85, .18); border-color: rgba(255, 0, 85, .50); text-decoration: none; }

/* ==========================================================================
   SITE CHROME — announcement bar + sticky nav + footer (every route)
   ========================================================================== */
.theme-v2 .announce {
  height: 36px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, rgba(255, 0, 85, .16), rgba(255, 107, 154, .10), rgba(255, 0, 85, .16));
  border-bottom: 1px solid rgba(255, 0, 85, .22);
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--accent-light);
  position: relative; z-index: 60; text-align: center; padding: 0 12px;
}
.theme-v2 .announce b { font-weight: 700; color: var(--ink); }
.theme-v2 .nav {
  position: sticky; top: 0; z-index: 50; height: 72px;
  background: rgba(7, 7, 11, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.theme-v2 .nav__in { height: 72px; display: flex; align-items: center; gap: 32px; }
.theme-v2 .wordmark {
  font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.03em;
  text-decoration: none; color: var(--ink); flex: none;
}
.theme-v2 .wordmark:hover { color: var(--ink); text-decoration: none; }
.theme-v2 .wordmark i { font-style: normal; color: var(--accent); }
.theme-v2 .nav__links { display: flex; gap: 32px; margin-left: 8px; }
.theme-v2 .nav__links a {
  font-size: 15px; font-weight: 500; color: var(--text-secondary); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.theme-v2 .nav__links a:hover { color: var(--ink); border-bottom-color: var(--accent); text-decoration: none; }
.theme-v2 .nav__cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.theme-v2 .nav .btn { font-size: 15px; padding: 0 20px; height: 44px; }
.theme-v2 .menu { display: none; }

.theme-v2 .footer { background: var(--surface); border-top: 1px solid var(--line); padding: 80px 0 32px; margin-top: 96px; }
.theme-v2 .footer__top { display: grid; grid-template-columns: 2fr 1fr 1.15fr 1.15fr; gap: 48px; }
.theme-v2 .footer__blurb { color: var(--text-secondary); font-size: 15px; margin-top: 16px; max-width: 34ch; }
.theme-v2 .footer h5 {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 16px; font-weight: 500;
}
.theme-v2 .footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.theme-v2 .footer a { color: var(--text-secondary); text-decoration: none; font-size: 15px; }
.theme-v2 .footer a:hover { color: var(--accent-light); text-decoration: none; }
.theme-v2 .badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.theme-v2 .footer .chip { font-size: 10.5px; padding: 5px 10px; color: rgba(248, 250, 252, .82); }
.theme-v2 .footer a.chip:hover { color: var(--accent-light); border-color: rgba(255, 107, 154, .5); }
.theme-v2 .legal { margin-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--text-muted); letter-spacing: .04em; }

/* dashboard's own bar sits UNDER the site nav (no two stickies fighting) */
.theme-v2 .dashbar-v2 {
  border-bottom: 1px solid var(--line); background: rgba(13, 13, 20, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 72px; z-index: 40;
}
.theme-v2 .dashbar-v2 .btn--ghost { height: 40px; font-size: 14px; padding: 0 18px; }
/* the bar's inner row carries an inline max-width:1040 from the app; !important is
   the only way to line it up with the site container without touching that file */
.theme-v2 .dashbar-v2 > div { max-width: var(--max) !important; padding-left: 0 !important; padding-right: 0 !important; width: min(var(--max), 100% - 64px); }
@media (max-width: 767px) { .theme-v2 .dashbar-v2 > div { width: min(var(--max), 100% - 40px); } }

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */
.theme-v2 .section { padding: 128px 0; position: relative; }
.theme-v2 .section--surface { background: var(--surface); }
.theme-v2 .hairline-top { border-top: 1px solid var(--line); }
.theme-v2 .hairline-bottom { border-bottom: 1px solid var(--line); }
.theme-v2 .section h2 { font-size: 64px; line-height: 1.02; letter-spacing: -.02em; max-width: 16ch; margin: 0; }
.theme-v2 .section h2.center { margin-inline: auto; text-align: center; max-width: 18ch; }
.theme-v2 .section h2 .grad { display: block; }
.theme-v2 .section h3 { font-size: 25px; line-height: 1.15; margin: 0; }

/* ---------- hero ---------- */
.theme-v2 .hero {
  position: relative; min-height: min(92vh, calc(100vh - 108px));
  display: flex; align-items: center; padding: 32px 0; overflow: hidden; isolation: isolate;
}
.theme-v2 .hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.theme-v2 .hero__field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* no-JS / pre-hydration fallback: the hero's radial glows still paint */
.theme-v2 .hero__field {
  background:
    radial-gradient(58% 46% at 72% 16%, rgba(255, 0, 85, .20), transparent 62%),
    radial-gradient(46% 40% at 12% 82%, rgba(255, 107, 154, .12), transparent 64%),
    radial-gradient(70% 60% at 50% 0%, rgba(20, 184, 166, .07), transparent 70%);
}
.theme-v2 .hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 0, 85, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 85, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 35%, transparent 85%);
}
.theme-v2 .hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 11, .55) 0%, rgba(7, 7, 11, .25) 42%, rgba(7, 7, 11, .28) 84%, rgba(7, 7, 11, 1) 100%);
}
.theme-v2 .hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 11, .68) 0%, rgba(7, 7, 11, .68) 32%, rgba(7, 7, 11, .34) 44%, rgba(7, 7, 11, 0) 60%),
    linear-gradient(90deg, rgba(7, 7, 11, .88) 0%, rgba(7, 7, 11, .84) 50%, rgba(7, 7, 11, .80) 58%, rgba(7, 7, 11, .40) 74%, rgba(7, 7, 11, .08) 90%, rgba(7, 7, 11, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 94%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 94%);
}
.theme-v2 .hero__glow {
  position: absolute; inset: -12%; pointer-events: none;
  background:
    radial-gradient(46% 46% at 16% 18%, rgba(255, 0, 85, .15), transparent 60%),
    radial-gradient(50% 50% at 84% 14%, rgba(20, 184, 166, .10), transparent 62%),
    radial-gradient(48% 48% at 74% 86%, rgba(255, 107, 154, .09), transparent 60%);
  animation: v2-drift 30s cubic-bezier(.16, 1, .3, 1) infinite alternate;
}
@keyframes v2-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2.2%, -1.8%, 0) scale(1.07); }
  100% { transform: translate3d(-1.6%, 2%, 0) scale(1.03); }
}
.theme-v2 .hero__in { position: relative; z-index: 2; width: min(var(--max), 100% - 64px); margin-inline: auto; }
.theme-v2 .hero .eyebrow { margin-bottom: 16px; }
.theme-v2 .hero__h1 { font-size: 92px; line-height: .98; letter-spacing: -.03em; font-weight: 800; margin: 0 0 24px; max-width: 1280px; }
.theme-v2 .hero__h1 .l { display: block; }
.theme-v2 .hero__h1 .w { display: inline-block; }
.theme-v2 .hero__split { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.theme-v2 .hero__lede { font-size: 20px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 32px; }
.theme-v2 .hero__lede b { color: var(--ink); font-weight: 600; }
.theme-v2 .hero__chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.theme-v2 .hero__chips span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 8px 16px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--text-secondary);
}
.theme-v2 .hero__chips .ok { color: var(--teal); border-color: rgba(20, 184, 166, .45); background: rgba(20, 184, 166, .10); }
.theme-v2 .hero__chips .ok b { font-weight: 700; color: var(--teal); }

/* ---------- provider line ---------- */
.theme-v2 .provline { margin: 48px 0 0; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--text-secondary); }
.theme-v2 .provline b { color: var(--ink); font-weight: 600; }

/* ---------- animated payment-flow band (restyle of the live .pf-bg) ---------- */
.theme-v2 .flow {
  position: relative; margin-top: 48px; height: 300px; overflow: hidden;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(46% 62% at 24% 50%, rgba(20, 184, 166, .10), transparent 68%),
    radial-gradient(46% 62% at 78% 50%, rgba(255, 0, 85, .12), transparent 68%),
    linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55);
  /* the v1 band's vignette mask + opacity are not wanted inside a framed card */
  -webkit-mask-image: none; mask-image: none; opacity: 1; width: 100%;
}
.theme-v2 .flow .flow__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.theme-v2 .fpay { animation: v2-fpay 5.5s linear infinite; }
.theme-v2 .fdel { animation: v2-fdel 5.5s linear infinite; }
.theme-v2 .fbeam-pay { opacity: .14; animation: v2-fbeam-pay 5.5s ease-in-out infinite; }
.theme-v2 .fbeam-del { opacity: .14; animation: v2-fbeam-del 5.5s ease-in-out infinite; }
.theme-v2 .fring-buyer,
.theme-v2 .fring-store { opacity: 0; transform-box: fill-box; transform-origin: center; }
.theme-v2 .fring-store { animation: v2-fring-store 5.5s ease-out infinite; }
.theme-v2 .fring-buyer { animation: v2-fring-buyer 5.5s ease-out infinite; }
@keyframes v2-fpay { 0%, 8% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; transform: translateX(30px); } 25% { opacity: 1; transform: translateX(600px); } 29%, 100% { opacity: 0; transform: translateX(600px); } }
@keyframes v2-fdel { 0%, 40% { opacity: 0; transform: translateX(0); } 44% { opacity: 1; transform: translateX(-30px); } 58% { opacity: 1; transform: translateX(-600px); } 62%, 100% { opacity: 0; transform: translateX(-600px); } }
@keyframes v2-fbeam-pay { 0%, 8% { opacity: .14; } 12% { opacity: .55; } 25% { opacity: .50; } 31%, 100% { opacity: .14; } }
@keyframes v2-fbeam-del { 0%, 40% { opacity: .14; } 44% { opacity: .50; } 58% { opacity: .45; } 64%, 100% { opacity: .14; } }
@keyframes v2-fring-store { 0%, 20% { opacity: 0; transform: scale(.8); } 26% { opacity: .55; transform: scale(.95); } 40%, 100% { opacity: 0; transform: scale(1.28); } }
@keyframes v2-fring-buyer { 0%, 58% { opacity: 0; transform: scale(.8); } 64% { opacity: .55; transform: scale(.95); } 80%, 100% { opacity: 0; transform: scale(1.28); } }

/* ---------- media frame + mocks ---------- */
.theme-v2 .frame {
  position: relative; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55); overflow: hidden; background: var(--card);
}
.theme-v2 .glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.theme-v2 .tag {
  flex: none; margin-left: auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: rgba(7, 7, 11, .72); border: 1px solid var(--line-2);
  padding: 5px 10px; border-radius: 999px;
}
.theme-v2 .framehead { display: flex; align-items: center; margin-bottom: 16px; }
.theme-v2 .mock { padding: 0; font-family: var(--text); }
.theme-v2 .mock__bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.theme-v2 .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); flex: none; }
.theme-v2 .dot:first-child { background: rgba(255, 0, 85, .55); }
.theme-v2 .mock__url {
  margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--text-secondary);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.theme-v2 .mock__body { padding: 16px 24px 24px; }
.theme-v2 .mock__seller { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.theme-v2 .avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--accent), #7a0a3c);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff;
}
.theme-v2 .mock__seller strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.theme-v2 .mock__seller em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--text-secondary); letter-spacing: .06em; }
.theme-v2 .row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02); margin-bottom: 8px;
}
.theme-v2 .thumb {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2a2036, #151221); border: 1px solid rgba(255, 255, 255, .10);
}
.theme-v2 .row:nth-of-type(2) .thumb { background: linear-gradient(135deg, #1d2a33, #121b22); }
.theme-v2 .row:nth-of-type(3) .thumb { background: linear-gradient(135deg, #33202b, #1e1218); }
.theme-v2 .row .meta { flex: 1; min-width: 0; }
.theme-v2 .row .meta b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-v2 .row .meta span { font-family: var(--mono); font-size: 10.5px; color: var(--text-secondary); letter-spacing: .05em; }
.theme-v2 .row .price { font-size: 16px; flex: none; }
.theme-v2 .buy {
  flex: none; font-family: var(--text); font-size: 12px; font-weight: 700; color: var(--ink-deep);
  background: var(--accent); border-radius: 999px; padding: 7px 14px; box-shadow: 0 4px 14px rgba(255, 0, 85, .35);
}
.theme-v2 .row--live { border-color: rgba(255, 0, 85, .45); background: rgba(255, 0, 85, .07); }
.theme-v2 .row--live .buy { animation: v2-buypulse 3.6s ease-in-out infinite; }
@keyframes v2-buypulse { 0%, 100% { box-shadow: 0 4px 14px rgba(255, 0, 85, .35); } 50% { box-shadow: 0 4px 22px rgba(255, 0, 85, .6); } }
.theme-v2 .toast {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  border: 1px solid rgba(20, 184, 166, .38); background: rgba(20, 184, 166, .10);
  border-radius: 16px; padding: 12px 16px;
}
.theme-v2 .toast .tick {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(20, 184, 166, .18); flex: none;
  display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 12px; font-weight: 700;
}
.theme-v2 .toast b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.theme-v2 .toast span { font-family: var(--mono); font-size: 11px; color: var(--text-secondary); display: block; letter-spacing: .04em; }
.theme-v2 .lib__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.theme-v2 .lib__head h4 { font-family: var(--display); font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.theme-v2 .dl {
  flex: none; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06);
  border-radius: 999px; padding: 7px 12px;
}
.theme-v2 .key {
  font-family: var(--mono); font-size: 11px; color: var(--accent-light); letter-spacing: .1em;
  background: rgba(255, 0, 85, .10); border: 1px solid rgba(255, 0, 85, .28); border-radius: 8px; padding: 3px 8px;
}
.theme-v2 .lib__foot {
  margin: 16px 0 0; font-family: var(--mono); font-size: 11px; color: var(--text-secondary);
  letter-spacing: .04em; display: flex; align-items: center; gap: 8px;
}
.theme-v2 .svgwrap { padding: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); }
.theme-v2 .svgwrap svg { display: block; width: 100%; height: auto; }
.theme-v2 .cap {
  margin: 16px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-secondary);
}

/* ---------- stat strip ---------- */
.theme-v2 .section--stats { padding: 80px 0; }
.theme-v2 .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.theme-v2 .stats > div { padding-left: 32px; border-left: 1px solid var(--line); position: relative; }
.theme-v2 .stats > div::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 32px; background: var(--accent); }
.theme-v2 .stats > div:first-child { padding-left: 0; border-left: 0; }
.theme-v2 .stats > div:first-child::before { display: none; }
.theme-v2 .stat__n {
  font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.theme-v2 .stat__n--build { font-size: 48px; line-height: 1.33; }
.theme-v2 .stat__l { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-top: 16px; color: var(--ink); }
.theme-v2 .stat__s { font-size: 13px; color: var(--text-secondary); margin-top: 8px; line-height: 1.45; }

/* ---------- split feature ---------- */
.theme-v2 .split { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.theme-v2 .split--flip { grid-template-columns: 5fr 7fr; }
.theme-v2 .split--flip .split__media { order: -1; }
.theme-v2 .split p.measure { color: var(--text-secondary); margin-top: 24px; }
.theme-v2 .steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; }
.theme-v2 .steps li { display: flex; gap: 16px; align-items: flex-start; }
.theme-v2 .steps .num {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent);
  border: 1px solid rgba(255, 0, 85, .32); background: rgba(255, 0, 85, .10); border-radius: 10px;
  padding: 7px 9px; flex: none; line-height: 1;
}
.theme-v2 .steps b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 3px; color: var(--ink); }
.theme-v2 .steps span span { color: var(--text-secondary); font-size: 16px; }
.theme-v2 .checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.theme-v2 .checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-secondary); }
.theme-v2 .checks svg { flex: none; margin-top: 3px; }

/* ---------- ticker ---------- */
.theme-v2 .ticker { padding: 24px 0; overflow: hidden; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.theme-v2 .ticker__track { display: flex; width: max-content; animation: v2-marq 30s linear infinite; }
.theme-v2 .ticker__set { display: flex; align-items: center; flex: none; }
.theme-v2 .ticker__set span {
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-secondary); padding: 0 24px; display: flex; align-items: center; gap: 24px; white-space: nowrap;
}
.theme-v2 .ticker__set span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .85; }
@keyframes v2-marq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- proof ---------- */
.theme-v2 .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.theme-v2 figure { margin: 0; }
.theme-v2 .shot { width: 100%; height: auto; display: block; aspect-ratio: 520 / 400; }
.theme-v2 figcaption {
  margin-top: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-secondary);
}
.theme-v2 .quote { margin-top: 48px; border-radius: 20px; padding: 1px; background: linear-gradient(120deg, rgba(255, 0, 85, .65), rgba(255, 107, 154, .18), rgba(20, 184, 166, .35)); }
.theme-v2 .quote__in { background: var(--card); border-radius: 19px; padding: 48px; text-align: center; }
.theme-v2 .quote__in p { font-size: 32px; line-height: 1.4; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; max-width: 22ch; margin: 0 auto; color: var(--ink); }
.theme-v2 .quote__src { display: block; margin-top: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }

/* ---------- closer ---------- */
.theme-v2 .closer { position: relative; overflow: hidden; text-align: center; }
.theme-v2 .closer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(56% 62% at 50% 8%, rgba(255, 0, 85, .20), transparent 64%);
}
.theme-v2 .closer .container { position: relative; z-index: 2; }
.theme-v2 .closer p.measure { margin: 24px auto 0; color: var(--text-secondary); font-size: 20px; }
.theme-v2 .closer .btn-row { justify-content: center; margin-top: 32px; }
.theme-v2 .reassure { margin: 24px 0 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--text-secondary); }
.theme-v2 .statuscard {
  margin: 48px auto 0; max-width: 760px; display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
}
.theme-v2 .statuscard div { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; color: var(--text-secondary); }
.theme-v2 .statuscard b { color: var(--ink); font-weight: 600; }
.theme-v2 .statuscard a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.theme-v2 .statuscard a:hover { border-bottom-color: var(--accent); color: inherit; }
.theme-v2 .statuscard .verchip { color: var(--accent-light); border-bottom: 0; }
.theme-v2 .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .16); flex: none; animation: v2-breathe 3.2s ease-in-out infinite;
}
@keyframes v2-breathe { 0%, 100% { box-shadow: 0 0 0 3px rgba(20, 184, 166, .10); } 50% { box-shadow: 0 0 0 7px rgba(20, 184, 166, .22); } }

/* ---------- reveal (progressive enhancement) ---------- */
.theme-v2.js .reveal:not(.in) { opacity: 0; transform: translateY(16px); }
.theme-v2 .reveal { transition: opacity .5s ease, transform .5s ease; }
.theme-v2.js .hero__h1 .w,
.theme-v2.js .hero__h1 .l.grad { animation: v2-rise .6s cubic-bezier(.22, .7, .3, 1) both; }
@keyframes v2-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1359px) {
  .theme-v2 .hero__h1 { font-size: 6.6vw; }
}
@media (max-width: 1023px) {
  .theme-v2 .hero__h1 { font-size: 6.9vw; }
  .theme-v2 .hero { min-height: 0; }
  .theme-v2 .hero__split,
  .theme-v2 .split,
  .theme-v2 .split--flip { grid-template-columns: 1fr; gap: 48px; }
  .theme-v2 .split--flip .split__media { order: 0; }
  .theme-v2 .stats { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .theme-v2 .grid-3 { grid-template-columns: 1fr; }
  .theme-v2 .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .theme-v2 .flow { height: 230px; }
  .theme-v2 .shots { grid-template-columns: 1fr; }
  .theme-v2 .section h2 { font-size: 44px; max-width: 20ch; }
}
@media (max-width: 900px) {
  .theme-v2 .section { padding: 80px 0; }
  .theme-v2 .footer { padding: 64px 0 24px; }
}
@media (max-width: 767px) {
  .theme-v2 .container,
  .theme-v2 .hero__in { width: min(var(--max), 100% - 40px); }
  .theme-v2 .page { padding: 40px 20px 72px; }
  .theme-v2 .hero { min-height: 640px; padding: 48px 0; }
  .theme-v2 .hero__h1 { font-size: 44px; letter-spacing: -.035em; margin-bottom: 24px; }
  .theme-v2 .hero__lede { font-size: 17px; }
  .theme-v2 .hero__scrim {
    background:
      linear-gradient(180deg, rgba(7, 7, 11, .72) 0%, rgba(7, 7, 11, .70) 46%, rgba(7, 7, 11, .40) 62%, rgba(7, 7, 11, 0) 78%),
      linear-gradient(90deg, rgba(7, 7, 11, .86) 0%, rgba(7, 7, 11, .84) 70%, rgba(7, 7, 11, .72) 100%);
  }
  .theme-v2 .section h2 { font-size: 34px; max-width: none; }
  .theme-v2 .section h2.center { max-width: none; }
  .theme-v2 .quote__in { padding: 32px 24px; }
  .theme-v2 .quote__in p { font-size: 20px; max-width: none; }
  .theme-v2 .stat__n { font-size: 48px; }
  .theme-v2 .stat__n--build { font-size: 34px; line-height: 1.41; }
  .theme-v2 .mock__url { font-size: 10.5px; }
  .theme-v2 .tag { font-size: 10px; padding: 4px 8px; letter-spacing: .1em; }
  .theme-v2 .nav__links { display: none; }
  .theme-v2 .nav__cta .btn--ghost { display: none; }
  .theme-v2 .nav__in { gap: 12px; }
  .theme-v2 .nav .btn { padding: 0 16px; font-size: 14px; }
  .theme-v2 .menu { display: block; position: relative; }
  .theme-v2 .menu > summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06);
    display: flex; align-items: center; justify-content: center;
  }
  .theme-v2 .menu > summary::-webkit-details-marker { display: none; }
  .theme-v2 .menu__panel {
    position: absolute; right: 0; top: 52px; width: 224px; background: rgba(13, 13, 20, .97);
    border: 1px solid var(--line-2); border-radius: 16px; padding: 12px; display: grid; gap: 8px;
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7); backdrop-filter: blur(14px);
  }
  .theme-v2 .menu__panel a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
  .theme-v2 .menu__panel a:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
  .theme-v2 .footer__top { grid-template-columns: 1fr 1fr; }
  .theme-v2 .statuscard { padding: 16px; gap: 12px 16px; }
  .theme-v2 .stats { gap: 32px 16px; }
  .theme-v2 .flow { height: 108px; }
  .theme-v2 .provline { font-size: 12px; }
  .theme-v2 .dashbar-v2 { position: static; }
}
@media (max-width: 420px) {
  .theme-v2 .announce { font-size: 11.5px; letter-spacing: .02em; }
  .theme-v2 .stat__n { font-size: 44px; }
  .theme-v2 .stat__n--build { font-size: 30px; line-height: 1.47; }
}

/* ---------- reduced motion (L16) ---------- */
@media (prefers-reduced-motion: reduce) {
  .theme-v2 { scroll-behavior: auto; }
  .theme-v2 *,
  .theme-v2 *::before,
  .theme-v2 *::after { animation: none !important; transition: none !important; }
  .theme-v2.js .reveal:not(.in) { opacity: 1 !important; transform: none !important; }
  /* park both flow tokens visible, exactly as the live CSS does */
  .theme-v2 .fpay,
  .theme-v2 .fdel { opacity: 1; }
}
