/*
 * Onepct 2026 redesign: design tokens.
 *
 * Source of truth: Paper file "Onepct Website" (page "Homepage · high fidelity")
 * and docs/redesign/BRIEF.md. Values are copied from get_jsx / get_computed_styles,
 * not from screenshots. Every page of the redesign loads this file first.
 * Never hardcode a hex value outside this file; add a token here instead.
 */

/* ── Fonts (self-hosted, SIL OFL 1.1, see /fonts/funnel/OFL.txt) ─────────── */
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/funnel/funnel-display-latin-wght-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: 'Funnel Display';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/funnel/funnel-display-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/funnel/funnel-sans-latin-wght-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: 'Funnel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/funnel/funnel-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ── Palette (BRIEF.md) ─────────────────────────────────────────────── */
  --ink:          #0E1B16;  /* text, dark sections */
  --paper:        #F6F8F4;  /* page ground */
  --paper-2:      #EDF1EA;  /* darker paper sections */
  --white:        #FFFFFF;  /* cards on paper */
  --emerald:      #16BE79;  /* buttons, accents */
  --deep-green:   #0A6A44;  /* labels, Growth tier */
  --amber:        #FFB224;  /* only "caught / fixed" moments, SAMPLE stamp */
  --muted:        #5B6A63;  /* secondary text on paper */

  /* Supporting values used in the Paper designs */
  --ink-2:        #16241D;  /* cards on ink */
  --ink-line:     #2A3A32;  /* hairlines on ink */
  --text-2:       #3A4840;  /* body copy on paper */
  --text-on-ink:  #B8C4BD;  /* body copy on ink */
  --nav-link:     #C9D3CD;  /* nav links on ink */
  --quote-on-ink: #DCE4DF;  /* large quotes on ink (About hero) */
  --muted-on-ink: #8FA097;  /* footer labels, small print on ink */
  --faint-on-ink: #7F8C85;  /* proof footnotes on ink */
  --placeholder:  #8A968F;
  --line:         #DDE3DE;  /* hairlines on paper */
  --line-soft:    #E5EAE6;  /* hairlines inside cards */
  --line-input:   #CFD8D2;  /* input borders, chips */
  --line-dashed:  #B9C6BE;  /* receipt */
  --mint:         #E2F7EC;  /* step chips, chart fill */
  --mint-2:       #CFE9DA;  /* icon secondary */
  --mint-on-green:#C6E8D5;  /* secondary text on deep green */
  --mint-on-growth:#E3F4EA; /* plan list on the deep-green mobile plan card */
  --mint-glow:    #9FE3BF;  /* Search terrain glow under the pointer (Toolcraft "mint") */
  --amber-soft:   #FFF1D6;  /* EXAMPLE chip ground */
  --amber-text:   #8F5E00;  /* EXAMPLE / SAMPLE text (5.6:1 on white, 5.0:1 on --amber-soft; was #B07400, 3.9:1) */
  --amber-wash:   #FFF6E3;  /* "caught today" alert ground (Console preview) */
  --mint-offer:   #E4F6EC;  /* Console waitlist offer box */
  --green-ink:    #0A3D28;  /* label on emerald */
  --error:        #B42318;  /* form errors */
  --text-article: #26342D;  /* long-read body copy (guide) */
  --text-tip:     #1E2C25;  /* text in a mint callout */
  --text-on-ink-2:#E6ECE8;  /* text in a dark callout */
  --mint-3:       #E3F5EC;  /* tip callout, current item in the mobile contents */
  --card-line:    rgb(14 27 22 / 0.08);
  /* Case study + blog templates (Paper p-C-1) */
  --chip-line-on-ink: #3A4A43;  /* outlined chips on ink */
  --text-3:       #3E4C45;  /* article list and box body copy */
  --crumb-sep:    #9AA8A1;  /* breadcrumb separator */
  --text-on-green:#D3EFE1;  /* body copy on deep green */
  --label-on-green:#9FE8C6; /* eyebrow labels on deep green */
  --glass:        rgb(246 248 244 / 0.08);
  --glass-line:   rgb(246 248 244 / 0.14);

  /* ── Type ───────────────────────────────────────────────────────────── */
  --font-display: 'Funnel Display', system-ui, sans-serif;
  --font-sans:    'Funnel Sans', system-ui, sans-serif;

  /* Display scale: desktop / mobile pairs from Paper, fluid between 390 and 1440 */
  --fs-hero:  clamp(52px, 32.69px + 4.952vw, 104px);  /* 104 / 52, lh 96 / 50 */
  --lh-hero:  0.925;
  --fs-h1:    clamp(38px, 25.4px + 3.24vw, 72px);   /* chapter titles 72 / 38 */
  --lh-h1:    0.975;
  --fs-h2:    clamp(32px, 24.6px + 1.9vw, 52px);    /* section titles 52 / 32 */
  --lh-h2:    1.05;
  --fs-h3:    clamp(22px, 19.8px + 0.57vw, 28px);   /* card titles */
  --fs-num-xl:clamp(56px, 29.3px + 6.86vw, 128px);  /* proof numbers */
  --fs-lead:  clamp(17px, 15.5px + 0.38vw, 21px);
  --fs-body-l:clamp(16px, 15.25px + 0.19vw, 18px);
  --fs-body:  16px;
  --fs-small: 14px;
  --fs-xs:    13px;
  --fs-label: 12px;                                  /* uppercase labels, tracking .1em */
  --tracking-tight: -0.03em;
  --tracking-label: 0.1em;

  /* ── Spacing (Paper uses an 8-ish rhythm with these recurring values) ─ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;
  --space-36: 144px;

  --gutter: clamp(16px, -7.77px + 6.095vw, 80px);          /* page side padding 16 / 80 */
  --section-y: clamp(72px, 45px + 6.9vw, 144px);    /* section padding 72 / 144 */
  --container: 1440px;

  /* ── Radii ──────────────────────────────────────────────────────────── */
  --radius-doc:  6px;    /* paper documents, receipts */
  --radius-input:14px;
  --radius-card: 24px;
  --radius-tile: 28px;
  --radius-pill: 999px;

  /* ── Shadows ────────────────────────────────────────────────────────── */
  --shadow-doc: 0 30px 60px rgb(14 27 22 / 0.14), 0 2px 6px rgb(14 27 22 / 0.06);
  --shadow-float: 0 8px 30px rgb(14 27 22 / 0.18);

  /* ── Motion (Onepct motion plan) ────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);     /* entrances */
  --ease-move:   cubic-bezier(0.77, 0, 0.175, 1);    /* moves on screen */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);     /* sticky bar, drawers */
  --dur-press:   160ms;
  --dur-hover:   180ms;
  --dur-fast:    120ms;
  --dur-nav:     250ms;
  --dur-faq:     220ms;
  --dur-reveal:  600ms;
  --stagger:     50ms;

  /* ── Layers ─────────────────────────────────────────────────────────── */
  --z-nav: 100;
  --z-sticky: 90;
  --z-menu: 200;
  --z-consent: 300;
}
