/* ByteKeel v4 design tokens (Foundation, 2026-11-22). Source: qa-evidence/site-prototypes-20261121/v3-merged/site.css.
   Every token is prefixed --v4- because the legacy stylesheet (app.css) already defines --ink, --line and --mono.
   Rules: one tinted neutral ramp, one violet accent (#7C3AED), Manrope (display) + Inter (text) at 400-600,
   a 4px spacing grid, one easing curve, no gradients except the homepage hero glow.
   Inter is self-hosted (OFL, assets/fonts/Inter-OFL.txt): no request to Google. Manrope comes from app.css
   (same "Manrope" family, latin file preloaded by inc/performance.php). */

@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/inter-latin-400-normal.woff2) format("woff2");unicode-range:u+0000-00ff,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/inter-latin-500-normal.woff2) format("woff2");unicode-range:u+0000-00ff,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/inter-latin-600-normal.woff2) format("woff2");unicode-range:u+0000-00ff,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}

/* Metric-matched fallbacks (local Arial / Helvetica resized to Inter's and Manrope's metrics), so the swap to the
   web font barely reflows text (CLS). Inter: size-adjust 107.4%, ascent 90.2%, descent 22.48%. Manrope: the same
   values as app.css's "Manrope Fallback". */
@font-face{font-family:"Inter Fallback";src:local("Arial"),local("Helvetica Neue"),local("Helvetica");ascent-override:90.2%;descent-override:22.48%;line-gap-override:0%;size-adjust:107.4%}
@font-face{font-family:"Manrope v4 Fallback";src:local("Arial"),local("Helvetica Neue"),local("Helvetica");ascent-override:103.31%;descent-override:29.07%;line-gap-override:0%;size-adjust:103.19%}

:root{
  /* colour: warm neutral ramp */
  --v4-ink:#1C1917;            /* primary text */
  --v4-ink-2:#57534E;          /* secondary text */
  --v4-ink-3:#6B6560;          /* muted text, icons (4.6:1 on white) */
  --v4-line:rgba(28,25,23,.08);
  --v4-line-strong:rgba(28,25,23,.14);
  --v4-page:#FFFFFF;
  --v4-band:#F7F6F4;           /* section band */
  --v4-raised:#F2F0ED;         /* media stage, quiet panel */
  --v4-night:#000000;          /* the one dark surface: full black (owner 2026-11-22) */
  --v4-night-3:#141414;        /* tiles on night (raised on black) */
  --v4-on-night:#F2F0ED;
  --v4-on-night-2:#B9B3AC;
  /* colour: the one accent */
  --v4-violet:#7C3AED;
  --v4-violet-hover:#6D28D9;
  --v4-violet-text:#6D28D9;    /* violet used as text on white (AA) */
  --v4-violet-tint:#F1ECFB;    /* selected / current background */
  --v4-lavender:#D6C8FF;       /* accent on night */
  /* deals only (owner 2026-11-22): the red of a running deal (/deals, the ticker's deal button, the offer dialog) */
  --v4-deal:#DC2626;           /* fill; white text on it 4.8:1 */
  --v4-deal-hover:#B91C1C;     /* hover fill (6.4:1) */
  --v4-deal-deep:#7F1D1D;      /* end of the deal gradients */
  --v4-deal-text:#B91C1C;      /* red as text on white (6.4:1) */
  --v4-deal-on-night:#FF8A8A;  /* red as text or icon on black / #141414 (8:1) */
  --v4-deal-glow:rgba(239,68,68,.45);
  --v4-green-text:#15803D;     /* "Free", "yes" */
  --v4-focus:#7C3AED;

  /* text roles */
  --v4-display:"Manrope","Manrope v4 Fallback",system-ui,-apple-system,"Segoe UI",sans-serif;
  --v4-text:"Inter","Inter Fallback",system-ui,-apple-system,"Segoe UI",sans-serif;
  --v4-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --v4-fs-body:17px;  --v4-lh-body:1.6;
  --v4-fs-small:15px; --v4-fs-xs:13px;
  --v4-fs-lead:19px;
  --v4-fs-h1:52px;    --v4-lh-h1:1.1;  /* page H1 (owner: display 1.1, never tighter than -.03em) */
  --v4-fs-h1-home:72px;
  --v4-fs-h2:44px;    --v4-lh-h2:1.18;
  --v4-fs-h3:32px;    --v4-lh-h3:1.24;
  --v4-fs-h4:19px;    --v4-lh-h4:1.3;

  /* spacing: 4px grid */
  --v4-1:4px; --v4-2:8px; --v4-3:12px; --v4-4:16px; --v4-5:20px; --v4-6:24px; --v4-8:32px; --v4-10:40px;
  --v4-12:48px; --v4-14:56px; --v4-16:64px; --v4-18:72px; --v4-22:88px; --v4-24:96px;
  --v4-wrap:1200px;
  --v4-gutter:24px;
  --v4-sec:96px;               /* homepage chapter rhythm */
  --v4-sec-in:88px;            /* inner-page section rhythm */
  --v4-head-h:76px;            /* header row height */

  /* radii */
  --v4-r-ctl:10px; --v4-r-shot:8px; --v4-r-card:16px; --v4-r-stage:20px; --v4-r-pill:999px;

  /* shadows */
  --v4-shot-shadow:0 0 0 1px rgba(28,25,23,.08),0 8px 24px rgba(28,25,23,.08);
  --v4-card-shadow:0 0 0 1px var(--v4-line),0 1px 2px rgba(28,25,23,.04);
  --v4-card-shadow-hover:0 0 0 1px var(--v4-line-strong),0 8px 24px rgba(28,25,23,.06);
  --v4-pop-shadow:0 0 0 1px var(--v4-line),0 28px 60px -24px rgba(28,25,23,.09),0 8px 20px -12px rgba(28,25,23,.12);

  /* motion: one curve */
  --v4-ease:cubic-bezier(.22,1,.36,1);
  --v4-t-fast:.18s; --v4-t:.25s; --v4-t-reveal:.4s;
}
@media (max-width:1080px){
  :root{--v4-fs-h1:46px;--v4-fs-h1-home:60px;--v4-fs-h2:38px}
}
@media (max-width:640px){
  :root{--v4-gutter:16px;--v4-sec:64px;--v4-sec-in:64px;--v4-head-h:64px;--v4-fs-body:16px;--v4-fs-lead:17px;
    --v4-fs-h1:34px;--v4-fs-h1-home:36px;--v4-fs-h2:31px;--v4-fs-h3:26px;--v4-r-card:16px}
}
@media (max-width:380px){
  :root{--v4-fs-h1:31px;--v4-fs-h1-home:31px;--v4-fs-h2:28px;--v4-fs-h3:24px}
}
@media (min-width:1680px){
  :root{--v4-wrap:1280px;--v4-fs-h1-home:80px}
}
