/* Design tokens: dark redesign (docs/DARK_REDESIGN_BRIEF.md). Owner: Site role.
   New tokens first (--night ... --gold); the older names other CSS already uses are kept and re-pointed to dark values.
   Every text/background pair meets WCAG AA on --night / --night-2: --ink 17:1, --soft 9.5:1, --mint 10:1.
   --dim (#5d7772, 3.6:1) is for large or decorative text only.
   Breakpoints: tablet <= 1024px, phone <= 767px (menu/bar), the concept's one-column switch <= 760px. */
:root {
    color-scheme: dark;

    /* ---- Dark palette (the approved concept) ---- */
    --night: #050d0b;                  /* page background */
    --night-2: #0a1815;                /* raised surface: panels, menu, notice */
    --night-3: #030807;                /* footer bottom */
    --ink: #f2f8f7;                    /* main text */
    --soft: #a9c2bd;                   /* secondary text (9.5:1 on --night) */
    --dim: #5d7772;                    /* large / decorative text only */
    --line: rgba(255, 255, 255, .14);  /* hairlines */
    --mint: #00d8c1;                   /* accent, links, primary button fill */
    --teal: #00a795;                   /* glows */
    --red: #ff5a6a;
    --gold: #feba19;
    --on-mint: #04201c;                /* text on mint fill */
    --on-gold: #1a1400;                /* text on gold fill */
    --glow-mint: 0 0 40px rgba(0, 216, 193, .35);
    --shot-shadow: 0 0 70px rgba(0, 216, 193, .25), 0 30px 60px rgba(0, 0, 0, .6);
    /* living light */
    --light-1: #00d8c1;
    --light-2: #ff3b4e;
    --light-3: #feba19;
    --light-4: #1f6bff;
    /* light panel for third-party white forms (idealers.app iframes) */
    --panel-light: #f4f8f7;
    --panel-light-ink: #12201e;

    /* ---- Older names, re-pointed to the dark design ---- */
    --color-primary: var(--teal);
    --color-primary-light: var(--mint);
    --color-primary-dark: var(--mint);   /* was the dark teal used for text on white; on night the readable accent is mint */
    --color-red: var(--red);
    --color-dark: var(--night);
    --color-dark-2: var(--night-2);
    --color-dark-3: #11231f;
    --color-secondary: var(--soft);
    --color-text: var(--soft);
    --color-button-bg: var(--mint);      /* buttons: mint fill with --on-mint text */
    --color-on-light-accent: var(--mint);
    --color-footer-link: var(--ink);
    --color-focus: var(--mint);
    --color-ink: var(--ink);
    --color-ink-soft: var(--soft);
    --color-mint-bg: var(--night-2);
    --color-mint-line: var(--line);
    --color-menu-bg: var(--night-2);
    --color-menu-label: var(--mint);
    --color-body: var(--ink);
    --color-grey-bg: var(--night-2);
    --color-white: #fff;                 /* literal white (text on dark, screenshot frames) */
    --color-gold: var(--gold);
    --color-violet: #d019fe;
    --color-violet-dark: #8b10aa;
    --color-red-fill: #c8323f;

    /* ---- Typography: Poppins (display) and Rubik (body), one scale ---- */
    --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
    --font-body: "Rubik", "Segoe UI", system-ui, sans-serif;
    --text-h1: clamp(2.25rem, 4.2vw, 3.5rem);
    --text-h2: clamp(1.75rem, 3vw, 2.5rem);
    --text-h3: 1.5rem;
    --text-h4: 1.25rem;
    --text-body: 1rem;
    --text-small: 0.875rem;
    /* display sizes from the concept */
    --text-display: clamp(2.6rem, 9vw, 7rem);
    --text-statement: clamp(1.6rem, 4.3vw, 3.4rem);
    --text-lead: clamp(1.05rem, 1.6vw, 1.3rem);
    --text-eyebrow: clamp(.85rem, 1.4vw, 1.05rem);

    /* ---- Layout ---- */
    --container: 1160px;
    --gutter: 20px;
    --gut: max(20px, env(safe-area-inset-left, 0px));
    --header-h: 84px;
    --mobile-bar-h: 64px;
    /* pinned scene height: the full viewport. The concept capped it at 780px, which left a hard-edged empty band
       under every pinned scene on taller windows (a 1440x900 window showed 120px of it; a 1080p screen about 200px). */
    --stage-h: 100vh;
    --stage-h: 100svh;
    --section-y: clamp(80px, 11vw, 150px);

    /* ---- Radii and shadows ---- */
    --radius-card: 16px;
    --radius-box: 16px;
    --radius-pill: 999px;
    --shadow-card: var(--shot-shadow);
    --shadow-header: 0 10px 40px rgba(0, 0, 0, .45);
    --shadow-info: 0 0 40px rgba(0, 216, 193, .12);

    /* ---- Motion ---- */
    --ease: cubic-bezier(.25, .46, .45, .94);
    --reveal-duration: .9s;
}

@media (max-width: 767px) {
    :root { --header-h: 68px; }
}
