/* Palettes (html[data-pal]) and type presets (html[data-type]) for the Stripe-style prototype.
   --m0..--m6 feed the WebGL gradient (base, then six colour fields); --g1..--g4 are its CSS fallback. */

:root{
  --ink:#0f2219; --ink-2:#334139; --mute:#66736b; --hair:#e4e8e3;
  --btn:var(--ink); --btn-txt:#fff; --em:var(--moss); --em-style:normal;
  --nav-on-hero:var(--ink); --hero-btn:var(--ink); --hero-btn-txt:#fff;
  --hero-ghost:rgba(255,255,255,.55); --hero-ghost-txt:var(--ink);
  --dark-txt:#e8efe9; --dark-txt2:#cdd9d1; --dark-lead:#b8c6bd;
}

/* A. Moss sunrise: the first version */
html[data-pal="A"]{
  --m0:#dbede0; --m1:#3d7054; --m2:#78b88c; --m3:#fae09e; --m4:#f5a885; --m5:#9ec9e6; --m6:#b8e0c2;
  --g1:#b9dcc0; --g2:#6fa37f; --g3:#f3d9a4; --g4:#e6a07a;
  --moss:#41694F; --moss-deep:#2f5240; --moss-subtle:#e3ece5; --soft:#f6f8f5;
  --dark:#0d1b14; --dark-2:#14261c; --dark-em:#9fd0ac; --glow:111,163,127; --bubble:#2a4a38;
  --hero-ink:#10251a; --hero-sub:#1f3529; --hero-fine:#2d4537; --shc:16,40,28;
}

/* B. Deep forest: darker, richer greens with gold and teal */
html[data-pal="B"]{
  --m0:#c9dfd1; --m1:#173d2b; --m2:#2f7a57; --m3:#e5c35a; --m4:#2b6f6b; --m5:#86c2ad; --m6:#a6d2b5;
  --g1:#a6d2b5; --g2:#2f7a57; --g3:#e5c35a; --g4:#2b6f6b;
  --ink:#0a1c13; --moss:#2c6a4a; --moss-deep:#1d4a33; --moss-subtle:#dcebe1; --soft:#f2f6f3;
  --dark:#08160f; --dark-2:#0f2219; --dark-em:#86e0a6; --glow:60,170,110; --bubble:#1f4a35;
  --hero-ink:#07170f; --hero-sub:#173326; --hero-fine:#1f3d2e; --shc:10,32,20;
}

/* C. Sage and paper: muted, the app's own paper colour */
html[data-pal="C"]{
  --m0:#efeee6; --m1:#7f9a84; --m2:#a9c0a9; --m3:#ebdcbc; --m4:#d8b49b; --m5:#c5d3cf; --m6:#dfe5d8;
  --g1:#dfe5d8; --g2:#a9c0a9; --g3:#ebdcbc; --g4:#d8b49b;
  --ink:#1d2620; --ink-2:#3d4740; --mute:#6c7269; --hair:#e6e4dc;
  --moss:#4f6f58; --moss-deep:#3b5643; --moss-subtle:#e7ece5; --soft:#F0EFE9;
  --dark:#1d2520; --dark-2:#263029; --dark-em:#b9d3bf; --glow:150,180,155; --bubble:#3a4c40;
  --hero-ink:#1e2a22; --hero-sub:#3a463e; --hero-fine:#4d594f; --shc:40,48,40;
}

/* D. Evergreen and lilac: cooler, closest to Stripe's own wash */
html[data-pal="D"]{
  --m0:#e3ecef; --m1:#2c5b48; --m2:#61a68a; --m3:#b9aaee; --m4:#7f9ff2; --m5:#f2b8d2; --m6:#c3e4d6;
  --g1:#c3e4d6; --g2:#61a68a; --g3:#b9aaee; --g4:#7f9ff2;
  --ink:#111a24; --ink-2:#2f3b46; --mute:#64707c; --hair:#e3e8ee;
  --moss:#3a6e57; --moss-deep:#2a5242; --moss-subtle:#e2ede8; --soft:#f5f7fa;
  --dark:#111827; --dark-2:#1a2335; --dark-em:#b8aaf5; --glow:140,120,240; --bubble:#2e3a5a;
  --hero-ink:#0f1d26; --hero-sub:#26343e; --hero-fine:#34434d; --shc:20,30,50;
}

/* E. Mint and citrus: brighter and fresher */
html[data-pal="E"]{
  --m0:#e7f6ec; --m1:#2f8a5b; --m2:#7fd6a0; --m3:#f4e66e; --m4:#ff9f73; --m5:#9de2db; --m6:#c8efd4;
  --g1:#c8efd4; --g2:#7fd6a0; --g3:#f4e66e; --g4:#ff9f73;
  --ink:#0c2017; --moss:#2e7d55; --moss-deep:#22603f; --moss-subtle:#dff2e6; --soft:#f4faf6;
  --dark:#0b2018; --dark-2:#123026; --dark-em:#8ff0b4; --glow:80,210,140; --bubble:#1e5a40;
  --hero-ink:#0b2016; --hero-sub:#1d3a2c; --hero-fine:#2a4a3a; --shc:14,40,26;
}

/* F. Olive and terracotta: warm and earthy */
html[data-pal="F"]{
  --m0:#efe7da; --m1:#4e5c30; --m2:#8d9d5c; --m3:#e9c784; --m4:#c9653d; --m5:#dba18a; --m6:#d9dcc0;
  --g1:#d9dcc0; --g2:#8d9d5c; --g3:#e9c784; --g4:#c9653d;
  --ink:#221f17; --ink-2:#44403a; --mute:#77716a; --hair:#e9e4da;
  --moss:#5a6b3b; --moss-deep:#43512a; --moss-subtle:#ebeadb; --soft:#f8f5ef;
  --dark:#1e1b14; --dark-2:#2a261c; --dark-em:#e2c98c; --glow:200,140,80; --bubble:#4a4228;
  --hero-ink:#231d12; --hero-sub:#3f3828; --hero-fine:#544b38; --shc:40,30,15;
}

/* G. Midnight aurora: a dark hero with green light moving through it */
html[data-pal="G"]{
  --m0:#0b1912; --m1:#0e2e20; --m2:#2f7a57; --m3:#6fd39b; --m4:#1f5d6e; --m5:#a3e8c8; --m6:#143a2c;
  --g1:#0b1912; --g2:#1d4a37; --g3:#2f7a57; --g4:#1f5d6e;
  --moss:#41694F; --moss-deep:#2f5240; --moss-subtle:#e3ece5; --soft:#f6f8f5;
  --dark:#0b1912; --dark-2:#13261c; --dark-em:#8fe3b0; --glow:80,200,140; --bubble:#24503a;
  --hero-ink:#f1f7f3; --hero-sub:#c3d4c9; --hero-fine:#93ab9c; --shc:10,30,20;
  --nav-on-hero:#e8f1eb; --hero-btn:#fff; --hero-btn-txt:#0f2219;
  --hero-ghost:rgba(255,255,255,.12); --hero-ghost-txt:#fff;
}

/* H. Moss only: one hue, light to deep */
html[data-pal="H"]{
  --m0:#e3efe6; --m1:#2f5d45; --m2:#5f9071; --m3:#a9d1b4; --m4:#3f7356; --m5:#dcefe2; --m6:#c2e0ca;
  --g1:#c2e0ca; --g2:#5f9071; --g3:#a9d1b4; --g4:#3f7356;
  --moss:#41694F; --moss-deep:#2f5240; --moss-subtle:#e3ece5; --soft:#f4f8f5;
  --dark:#10261a; --dark-2:#183323; --dark-em:#a9d9b8; --glow:120,180,140; --bubble:#2a4a38;
  --hero-ink:#0e2418; --hero-sub:#1f3a2b; --hero-fine:#2d4a3a; --shc:16,40,28;
}

/* ---- type ------------------------------------------------------------------------------------ */

/* 1. Geist light: the first version */
html[data-type="1"]{
  --f-display:Geist,system-ui,sans-serif; --f-body:Geist,system-ui,sans-serif; --d-w:300; --b-w:300;
  --d1-size:clamp(44px,6.2vw,84px); --d1-lh:1.02; --d1-track:-.045em;
  --d2-size:clamp(34px,4vw,52px); --d2-lh:1.08; --d2-track:-.035em;
  --d3-size:26px; --d3-track:-.02em; --d3-w:400; --h3-size:20px;
  --lead-size:clamp(17px,1.5vw,20px); --body-size:16px; --small-size:15px; --fact-size:40px; --price-size:72px;
}
/* 2. Geist large: bigger and airier */
html[data-type="2"]{
  --f-display:Geist,system-ui,sans-serif; --f-body:Geist,system-ui,sans-serif; --d-w:300; --b-w:300;
  --d1-size:clamp(52px,7.6vw,108px); --d1-lh:.98; --d1-track:-.05em;
  --d2-size:clamp(38px,4.8vw,64px); --d2-lh:1.04; --d2-track:-.04em;
  --d3-size:30px; --d3-track:-.025em; --d3-w:400; --h3-size:22px;
  --lead-size:clamp(18px,1.7vw,22px); --body-size:17px; --small-size:16px; --fact-size:48px; --price-size:88px;
}
/* 3. Geist compact: smaller, regular weight, denser */
html[data-type="3"]{
  --f-display:Geist,system-ui,sans-serif; --f-body:Geist,system-ui,sans-serif; --d-w:400; --b-w:400;
  --d1-size:clamp(38px,4.8vw,64px); --d1-lh:1.05; --d1-track:-.035em;
  --d2-size:clamp(30px,3.2vw,42px); --d2-lh:1.12; --d2-track:-.03em;
  --d3-size:22px; --d3-track:-.015em; --d3-w:500; --h3-size:18px;
  --lead-size:17px; --body-size:15px; --small-size:14px; --fact-size:34px; --price-size:60px;
}
/* 4. Geist medium: heavier headlines, tight tracking */
html[data-type="4"]{
  --f-display:Geist,system-ui,sans-serif; --f-body:Geist,system-ui,sans-serif; --d-w:500; --b-w:400;
  --d1-size:clamp(44px,6vw,80px); --d1-lh:1; --d1-track:-.055em;
  --d2-size:clamp(32px,3.8vw,50px); --d2-lh:1.06; --d2-track:-.045em;
  --d3-size:26px; --d3-track:-.03em; --d3-w:500; --h3-size:20px;
  --lead-size:clamp(17px,1.5vw,20px); --body-size:16px; --small-size:15px; --fact-size:40px; --price-size:72px;
}
/* 5. Instrument Serif headlines (the app's heading face), Geist body, italic accents */
html[data-type="5"]{
  --f-display:'Instrument Serif',Georgia,serif; --f-body:Geist,system-ui,sans-serif; --d-w:400; --b-w:300;
  --d1-size:clamp(54px,7.4vw,104px); --d1-lh:.98; --d1-track:-.02em;
  --d2-size:clamp(40px,4.8vw,64px); --d2-lh:1.02; --d2-track:-.015em;
  --d3-size:30px; --d3-track:-.01em; --d3-w:400; --h3-size:25px;
  --lead-size:clamp(17px,1.5vw,20px); --body-size:16px; --small-size:15px; --fact-size:50px; --price-size:92px;
  --em-style:italic;
}
/* 6. Inter Tight headlines, Inter body */
html[data-type="6"]{
  --f-display:'Inter Tight',system-ui,sans-serif; --f-body:Inter,system-ui,sans-serif; --d-w:300; --b-w:400;
  --d1-size:clamp(44px,6.4vw,88px); --d1-lh:1; --d1-track:-.05em;
  --d2-size:clamp(34px,4vw,54px); --d2-lh:1.06; --d2-track:-.04em;
  --d3-size:26px; --d3-track:-.025em; --d3-w:500; --h3-size:20px;
  --lead-size:clamp(17px,1.4vw,19px); --body-size:15px; --small-size:14px; --fact-size:40px; --price-size:72px;
}

/* M. Moss and paper (round 3): the hero wash is moss greens and near-whites only, no lilac. The dark
   section keeps D's lilac accent, which Cameron liked. */
html[data-pal="M"]{
  --m0:#f2f6f2; --m1:#2f5e49; --m2:#6faa8c; --m3:#d9e8de; --m4:#a8cdb8; --m5:#fbfaf5; --m6:#c6e0d0;
  --g1:#e4eee7; --g2:#6faa8c; --g3:#d9e8de; --g4:#fbfaf5;
  --ink:#111a17; --ink-2:#2f3b35; --mute:#646f69; --hair:#e2e7e3;
  --moss:#3a6e57; --moss-deep:#2a5242; --moss-subtle:#e2ede8; --soft:#f4f6f3;
  --dark:#111827; --dark-2:#1a2335; --dark-em:#b8aaf5; --glow:140,120,240; --bubble:#2e3a5a;
  --hero-ink:#0f1d17; --hero-sub:#26342d; --hero-fine:#34433b; --shc:20,40,30;
}
