/* ============================================================
   pravaani.ai design tokens: the ONE place raw colours and type sizes live.
   site.css and every page use these through var(); the landing checker
   (landing/fx/scripts/check-design.mjs) fails on a raw colour, an off-scale
   size or a weight that is not a --weight-* token anywhere else.

   Concept (landing/docs/redesign-2026-10.md): "Vani, flowing". A deep neel
   (indigo) night band carries the voice river; paper sections around it.
   Brand constants: neel, marigold, and the three product accents in the
   apps' hue families (Agents peacock teal, Studio sindoor, Speech indigo).

   Type: Anek (display, Latin + nine Indic scripts), Instrument Sans (text),
   Noto Sans per script (Indic text), Noto Nastaliq (Urdu), Instrument Serif
   Italic (Editorial accent), Martian Mono (utility).

   Contrast: every text/UI pair is computed in all ten palette x mode
   combinations by landing/fx/test/theme.test.mjs (AA: 4.5 text, 3 UI).
   ============================================================ */

:root {
  /* ---------- Surfaces (paper) ---------- */
  --paper:            #FBF7EF;
  --paper-muted:      #F3ECDF;  /* alternate band */
  --paper-sunken:     #EAE1D1;  /* wells, tracks */
  --hero-top:         #FFFDF8;
  --panel:            #FFFFFF;  /* cards */
  --band-saffron:     #FBEFD6;  /* marigold band */
  --band-lilac:       #EFEEFB;  /* indigo band */
  --band-mist:        #E3F3EF;  /* peacock band */

  /* ---------- Night (hero river, "Inside a call", CTA, footer) ---------- */
  --night:            #14163D;  /* neel */
  --night-2:          #0D0F2C;  /* the band's deeper end */
  --night-raised:     #20235A;
  --night-line:       #383C86;
  --on-night:         #FFFFFF;
  --on-night-muted:   #CDCFF0;
  --on-night-subtle:  #A9ACDD;
  --night-edge:       transparent;

  /* ---------- Ink ---------- */
  --ink:              #16172E;
  --ink-muted:        #545670;
  --ink-inverse:      #FFFFFF;
  --ink-strong:       #0B0C1F;  /* hover fill of the ink button */

  /* ---------- Lines ---------- */
  --line:             #E0D6C4;
  --line-strong:      #857F70;
  --line-faint:       #ECE5D7;

  /* ---------- Product accents: solid (inverse text), strong (hover), tint (fill),
     ink (text on tint), glow (text/line on night) ---------- */
  --agents:           #0A7469;
  --agents-strong:    #075A52;
  --agents-tint:      #D6EEE8;
  --agents-ink:       #06564E;
  --agents-glow:      #5FDECB;

  --studio:           #B8361E;
  --studio-strong:    #922713;
  --studio-tint:      #FADFD6;
  --studio-ink:       #87230F;
  --studio-glow:      #FF9E85;

  --speech:           #4A45C4;
  --speech-strong:    #3631A3;
  --speech-tint:      #E5E4FA;
  --speech-ink:       #322E96;
  --speech-glow:      #B5B2FF;

  --marigold:         #F2B33D;  /* fills and glows only; ink on marigold */
  --marigold-tint:    #FCEFD0;
  --marigold-ink:     #7C5200;
  --marigold-glow:    #FFC95C;

  --success:          #1C7548;
  --success-tint:     #DFF1E6;
  /* Form errors (book-demo.html, waitlist.html). */
  --danger:           #A3261A;
  --danger-tint:      #FBE4DF;

  /* Comparison charts (speech.html "How Pravaani compares"): marks only, never text.
     3:1 or more against every paper, panel, band and track surface in both modes. */
  --cmp-pravaani:     var(--speech);
  --cmp-sarvam:       #A35F00;
  --cmp-gnani:        #4C6176;
  --cmp-other:        #77736A;

  --indigo:           var(--speech);  /* read by landing/fx tokens.ts */
  --focus:            var(--speech);
  --focus-on-night:   #FFC95C;

  /* ---------- River (hero particles and still poster) ---------- */
  --river-a:          var(--marigold-glow);
  --river-b:          var(--agents-glow);
  --river-c:          var(--studio-glow);
  --river-d:          var(--speech-glow);

  /* ---------- Accent words in headings ---------- */
  --accent-ink:       var(--studio);
  --accent-ink-night: var(--marigold-glow);

  /* ---------- Gradients (backgrounds only) ---------- */
  --grad-night:
    radial-gradient(70% 90% at 85% 10%, rgb(74 69 196 / .45), transparent 70%),
    radial-gradient(60% 80% at 10% 100%, rgb(10 116 105 / .35), transparent 70%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  --grad-thread:  linear-gradient(90deg, var(--agents), var(--speech) 50%, var(--studio));
  --grad-glow:    linear-gradient(90deg, var(--agents-glow), var(--marigold-glow) 45%, var(--studio-glow) 75%, var(--speech-glow));
  --grad-paper:   linear-gradient(180deg, var(--hero-top) 0%, var(--paper) 100%);

  --shadow-soft:   0 1px 2px rgb(22 23 46 / .06), 0 1px 1px rgb(22 23 46 / .04);
  --shadow-raised: 0 18px 40px -18px rgb(22 23 46 / .28), 0 2px 6px rgb(22 23 46 / .06);
  --shadow-night:  0 24px 60px -24px rgb(0 0 0 / .65);
  --header-bg:     rgb(251 247 239 / .82);
  --scrim-night:   rgb(255 255 255 / .07);
  --line-on-night: rgb(255 255 255 / .16);
  --glass-night:   rgb(13 15 44 / .55);

  /* ---------- Type ---------- */
  --font-scripts: 'Noto Sans Devanagari', 'Noto Sans Telugu', 'Noto Sans Tamil',
                  'Noto Sans Kannada', 'Noto Sans Malayalam', 'Noto Sans Bengali',
                  'Noto Sans Gujarati', 'Noto Sans Gurmukhi', 'Noto Sans Oriya',
                  'Noto Sans Ol Chiki', 'Noto Sans Meetei Mayek', 'Noto Naskh Arabic';
  --font-anek:    'Anek Latin', 'Anek Devanagari', 'Anek Bangla', 'Anek Gurmukhi', 'Anek Gujarati',
                  'Anek Odia', 'Anek Tamil', 'Anek Telugu', 'Anek Kannada', 'Anek Malayalam';
  --font-sans:    'Instrument Sans', 'Noto Sans', var(--font-scripts), ui-sans-serif, system-ui,
                  -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font-anek), var(--font-scripts), ui-sans-serif, system-ui, sans-serif;
  --font-editorial: var(--font-display);  /* older name, kept for the islands */
  --font-accent:  'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-nastaliq: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif;
  --font-mono:    'Martian Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-code:    var(--font-mono);

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-display:  600;  /* Latin display; Indic display faces are 600 */

  --text-micro:   0.75rem;                                     /* 12: the floor, nothing is smaller (mono labels) */
  --text-caption: 0.75rem;                                     /* 12 */
  --text-sm:      0.875rem;                                    /* 14 */
  --text-base:    1rem;                                        /* 16 */
  --text-lg:      1.125rem;                                    /* 18 */
  --text-xl:      1.25rem;                                     /* 20 */
  --text-2xl:     1.5rem;                                      /* 24 */
  --text-3xl:     clamp(1.625rem, 1.4rem  + 0.9vw, 2rem);      /* 26 -> 32 */
  --text-4xl:     clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);   /* 30 -> 44 */
  --text-5xl:     clamp(2.25rem,  1.45rem + 3vw,   3.75rem);   /* 36 -> 60 */
  --text-6xl:     clamp(2.625rem, 1.5rem  + 4.4vw, 5rem);      /* 42 -> 80 */
  --text-7xl:     clamp(3rem,     1.4rem  + 6.4vw, 7rem);      /* 48 -> 112 */
  --text-glyph:   clamp(9rem,     3rem    + 18vw,  22rem);     /* the hero letterform, decorative */
  --text-anchor: min(80cqh, 60cqw);  /* the hero letter inside its own slot (a size container) */

  --leading-caption: 1rem;
  /* Supporting copy (card text, notes, chart takeaways): 14 on tablets and up, 16 on phones,
     where body text is never under 16px (ui-ux-pro-max readable-font-size). */
  --text-prose:      var(--text-sm);
  --leading-prose:   var(--leading-sm);
  --leading-sm:      1.25rem;
  --leading-base:    1.6;
  --leading-lg:      1.65;
  --leading-xl:      1.5;
  --leading-2xl:     1.3;
  --leading-3xl:     1.15;
  --leading-4xl:     1.05;
  --leading-5xl:     1;
  --leading-6xl:     0.96;
  --leading-script:  1.75;  /* shaped scripts, body steps */
  --leading-script-display: 1.35;  /* Indic display: matras and stacks never clip */
  --leading-nastaliq: 2.05;

  --tracking-display: -0.025em;
  --tracking-tight:   -0.012em;
  --tracking-eyebrow: 0.14em;
  --eyebrow-case: uppercase;
  --eyebrow-font: var(--font-mono);
  --eyebrow-size: var(--text-micro);

  /* Style knobs (Editorial default) */
  --display-width: 112%;
  --display-width-narrow: 92%;
  --accent-family: var(--font-accent);
  --accent-style: italic;
  --accent-weight: 400;
  --grid-lines: 0;

  /* ---------- Space, shape, motion ---------- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius-chip: 999px;
  --radius-control: 14px;
  --radius-card: 22px;
  --radius-panel: 28px;
  --radius-pill: 999px;
  --w-page: 1320px;
  --gutter: 20px;
  --section-y: clamp(40px, 7vh, 112px);
  --header-h: 68px;
  --fit-y: clamp(16px, 4svh, 56px);

  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;
  --dur-scene: 900ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }
@media (min-width: 1800px) { :root { --w-page: 1440px; } }
@media (max-width: 599px) { :root { --text-prose: var(--text-base); --leading-prose: var(--leading-base); } }

/* ============================================================
   Theme: Mode (light/dark) x Palette x Style, the same chooser and keys as
   Pravaani Agents and Studio (pv.mode / pv.theme / pv.style). theme-boot.js
   sets data-mode, data-theme and data-style on <html> before first paint.

   - :root above is light "ivory" + "editorial": the default.
   - A palette sets the paper AND tints the night band, so the choice is felt
     in the hero: ivory = neel, white = graphite, lilac = violet,
     blush = plum, mint = deep peacock.
   - Dark re-maps every role. The night band stays deeper than the page.
   ============================================================ */

/* Chooser swatches: each palette's page colour and its night band, for the current mode. */
:root {
  --sw-ivory: #FBF7EF; --sw-ivory-dot: #14163D;
  --sw-white: #FCFCFB; --sw-white-dot: #15171D;
  --sw-lilac: #F7F6FE; --sw-lilac-dot: #1C1748;
  --sw-blush: #FCF6F4; --sw-blush-dot: #2A1430;
  --sw-mint:  #F3F9F7; --sw-mint-dot:  #0A2B2E;
}
:root[data-mode="dark"] {
  --sw-ivory: #1B1C2A; --sw-ivory-dot: #F2B33D;
  --sw-white: #1C1D21; --sw-white-dot: #B5B2FF;
  --sw-lilac: #1D1C36; --sw-lilac-dot: #B5B2FF;
  --sw-blush: #241823; --sw-blush-dot: #FF9E85;
  --sw-mint:  #132527; --sw-mint-dot:  #5FDECB;
}

/* ---------- Light palettes ---------- */
:root[data-theme="white"] {
  --paper: #FCFCFB; --paper-muted: #F2F2F0; --paper-sunken: #E6E6E2; --hero-top: #FFFFFF;
  --line: #DEDED9; --line-faint: #EBEBE7; --line-strong: #7E7E78;
  --band-saffron: #FAF1DE; --band-lilac: #F0F0F7; --band-mist: #E8F2EF;
  --night: #15171D; --night-2: #0B0C10; --night-raised: #22252E; --night-line: #3A3E4A;
  --on-night-muted: #CFD2DA; --on-night-subtle: #A9ADB8;
  --header-bg: rgb(252 252 251 / .82);
  --glass-night: rgb(11 12 16 / .55);
}
:root[data-theme="lilac"] {
  --paper: #F7F6FE; --paper-muted: #EEECFA; --paper-sunken: #E2E0F3; --hero-top: #FCFBFF;
  --line: #DDDAF0; --line-faint: #E9E7F7; --line-strong: #7F7C98;
  --band-saffron: #F7EFE3; --band-lilac: #E9E7FB; --band-mist: #E4F0F1;
  --night: #1C1748; --night-2: #110D33; --night-raised: #2A2463; --night-line: #443C8F;
  --on-night-muted: #D3CFF3; --on-night-subtle: #AFA9E2;
  --header-bg: rgb(247 246 254 / .82);
  --glass-night: rgb(17 13 51 / .55);
}
:root[data-theme="blush"] {
  --paper: #FCF6F4; --paper-muted: #F6EBE7; --paper-sunken: #EDDDD7; --hero-top: #FFFBFA;
  --line: #E9D9D3; --line-faint: #F2E7E3; --line-strong: #8A7A75;
  --band-saffron: #FBEEDC; --band-lilac: #F3ECF4; --band-mist: #E7F1EC;
  --night: #2A1430; --night-2: #1A0B1F; --night-raised: #3B1F43; --night-line: #5A3463;
  --on-night-muted: #EBD3E6; --on-night-subtle: #C9A9C3;
  --header-bg: rgb(252 246 244 / .82);
  --glass-night: rgb(26 11 31 / .55);
}
:root[data-theme="mint"] {
  --paper: #F3F9F7; --paper-muted: #E8F2EF; --paper-sunken: #D9E8E3; --hero-top: #FAFDFC;
  --line: #D3E3DE; --line-faint: #E3EEEA; --line-strong: #74857F;
  --band-saffron: #F5F0E0; --band-lilac: #ECEDF8; --band-mist: #DDF1EB;
  --night: #0A2B2E; --night-2: #051B1D; --night-raised: #133D41; --night-line: #22585D;
  --on-night-muted: #C7E6E2; --on-night-subtle: #9CC9C3;
  --header-bg: rgb(243 249 247 / .82);
  --glass-night: rgb(5 27 29 / .55);
}

/* ---------- Dark (ivory's dark is the base) ---------- */
:root[data-mode="dark"] {
  color-scheme: dark;
  --paper:            #1B1C2A;
  --paper-muted:      #24253A;
  --paper-sunken:     #2D2F45;
  --hero-top:         #1E1F2E;
  --panel:            #222335;
  --band-saffron:     #211D18;
  --band-lilac:       #1B1A33;
  --band-mist:        #12221F;

  --night:            #07080F;
  --night-2:          #030409;
  --night-raised:     #121428;
  --night-line:       #2C2F57;
  --night-edge:       #2A2C42;
  --on-night-muted:   #C9CBEA;
  --on-night-subtle:  #A1A4D0;

  --ink:              #F6F2E9;
  --ink-muted:        #B3B5C9;
  --ink-inverse:      #13141F;
  --ink-strong:       #E2DDD2;

  --line:             #363950;
  --line-strong:      #7C7F98;
  --line-faint:       #292B3F;

  --agents:           #3CC2B0;
  --agents-strong:    #6DD8C8;
  --agents-tint:      #11302D;
  --agents-ink:       #84E6D6;
  --agents-glow:      #7FE6D5;

  --studio:           #F27C60;
  --studio-strong:    #F79C85;
  --studio-tint:      #3A1C16;
  --studio-ink:       #FFAD98;
  --studio-glow:      #FFAD98;

  --speech:           #A9A6FF;
  --speech-strong:    #C4C2FF;
  --speech-tint:      #23214C;
  --speech-ink:       #CCCAFF;
  --speech-glow:      #C4C2FF;

  --marigold-tint:    #352A12;
  --marigold-ink:     #F7C766;

  --success:          #7CD7A6;
  --success-tint:     #133324;
  --danger:           #FF9C8C;
  --danger-tint:      #3A1814;

  --cmp-sarvam:       #E5A23A;
  --cmp-gnani:        #9CB0C7;
  --cmp-other:        #8E8A99;

  --focus:            #F7C766;

  --grad-night:
    radial-gradient(70% 90% at 85% 10%, rgb(74 69 196 / .30), transparent 70%),
    radial-gradient(60% 80% at 10% 100%, rgb(10 116 105 / .24), transparent 70%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);

  --shadow-soft:   0 1px 2px rgb(0 0 0 / .4);
  --shadow-raised: 0 18px 40px -18px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .03);
  --shadow-night:  0 24px 60px -24px rgb(0 0 0 / .85);
  --header-bg:     rgb(27 28 42 / .8);
}
:root[data-mode="dark"][data-theme="white"] {
  --paper: #1C1D21; --panel: #232428; --hero-top: #1F2024; --paper-muted: #27282D; --paper-sunken: #313238;
  --line: #393B42; --line-faint: #2B2C31; --line-strong: #7E8089;
  --band-saffron: #1F1C17; --band-lilac: #1B1B24; --band-mist: #141F1D;
  --night: #08090B; --night-2: #030304; --night-raised: #16171B; --night-line: #2D3038; --night-edge: #2B2D33;
  --on-night-muted: #CFD2DA; --on-night-subtle: #A5A9B4;
  --header-bg: rgb(28 29 33 / .8);
}
:root[data-mode="dark"][data-theme="lilac"] {
  --paper: #1D1C36; --panel: #24233F; --hero-top: #201F3A; --paper-muted: #272646; --paper-sunken: #312F52;
  --line: #3C3A60; --line-faint: #2D2B4D; --line-strong: #827FA6;
  --band-saffron: #221C20; --band-lilac: #1E1B40; --band-mist: #142226;
  --night: #08071A; --night-2: #03030C; --night-raised: #151335; --night-line: #33306A; --night-edge: #2F2C55;
  --on-night-muted: #D3CFF3; --on-night-subtle: #A9A4DA;
  --header-bg: rgb(29 28 54 / .8);
}
:root[data-mode="dark"][data-theme="blush"] {
  --paper: #241823; --panel: #2C1F2B; --hero-top: #281B27; --paper-muted: #30222F; --paper-sunken: #3B2C3A;
  --line: #463645; --line-faint: #352733; --line-strong: #93808D;
  --band-saffron: #261C17; --band-lilac: #221A2A; --band-mist: #16201C;
  --night: #0C060B; --night-2: #050204; --night-raised: #1E111C; --night-line: #44293C; --night-edge: #3A2834;
  --on-night-muted: #EBD3E6; --on-night-subtle: #C2A3BC;
  --header-bg: rgb(36 24 35 / .8);
}
:root[data-mode="dark"][data-theme="mint"] {
  --paper: #132527; --panel: #192D2F; --hero-top: #162A2C; --paper-muted: #1C3234; --paper-sunken: #253D40;
  --line: #2F4A4C; --line-faint: #213638; --line-strong: #78918F;
  --band-saffron: #1C1D15; --band-lilac: #161A26; --band-mist: #0F2624;
  --night: #040C0D; --night-2: #010505; --night-raised: #0E1E1F; --night-line: #23403F; --night-edge: #24393A;
  --on-night-muted: #C7E6E2; --on-night-subtle: #98C3BD;
  --header-bg: rgb(19 37 39 / .8);
}

/* ---------- Styles (display width, accent, corners, label voice; never a size) ---------- */
:root[data-style="technical"] {
  --display-width: 84%;
  --display-width-narrow: 76%;
  --accent-family: var(--font-display);
  --accent-style: normal;
  --accent-weight: 700;
  --radius-control: 6px; --radius-card: 8px; --radius-panel: 10px; --radius-chip: 4px;
  --tracking-eyebrow: 0.12em;
  --grid-lines: 1;
}
:root[data-style="soft"] {
  --display-width: 100%;
  --display-width-narrow: 94%;
  --weight-display: 500;
  --accent-family: var(--font-display);
  --accent-style: normal;
  --accent-weight: 700;
  --radius-control: 20px; --radius-card: 30px; --radius-panel: 38px;
  --eyebrow-case: none; --tracking-eyebrow: 0.01em;
  --eyebrow-font: var(--font-sans);
  --eyebrow-size: var(--text-sm);
}
