/* =====================================================================================
   Going Rate v2 · draft one · THEME LAYER  (tokens + presets ONLY, no selectors on elements)
   Direction C "Clareza" + more color (2026-10-08 direction: Clareza, warmer, with a second color). Every choice Maria's taste questionnaire can change
   lives in this file; site.css reads these tokens and never a raw color.

   HOW IT SWITCHES
   - Each axis has one preset per option, keyed on <html data-AXIS="option">.
   - The DEFAULT option of an axis is the block whose selector starts with ":root, ".
     To change a default after Maria answers: move ":root, " to the chosen block (one edit per axis).
   - Live preview: assets/i18n.js copies URL params onto <html>, e.g.
       creators/index.html?lang=pt&palette=c&bg=cream&buttons=pill&color=lots&hl=marker&icons=fill&motion=playful
   - AA: every palette x background pair is checked by tools/qa.mjs (tokens mode).

   MARIA'S ANSWERS (WhatsApp 2026-10-09): 1C 2D 3B 4B 5B 6D 7B-on-the-negation 8C 9A, so the defaults are
   palette d · color blocks · bg cream · buttons pill · hl color (on "não / shouldn't / No") · icons circle · motion subtle (10-17: Maria asked for subtle movement; approved).
   Palette e = brown + beige (her note: "the colors I feel represent me best"), previewable with ?palette=e.
   DECIDED 2026-10-10 (the founders): palette d, "the green one". Palette e stays a preview preset only.
   ===================================================================================== */

/* ---------- neutrals + type + layout (shared by every preset) ---------- */
:root {
  --ink: #0E1116;
  --ink-2: #475161;
  --ink-3: #5E6675;
  --surface: #FFFFFF;
  --surface-soft: #F6F7F9;
  --ink-wash: rgba(14, 17, 22, .045);
  --line: rgba(14, 17, 22, .11);
  --line-2: rgba(14, 17, 22, .18);
  --field-line: #7C8596;
  --on-brand: #FFFFFF;
  --on-accent: #0E1116;
  --whatsapp: #128C3E;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
  --sh-2: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 34px -10px rgba(16, 24, 40, .18);
  --sh-btn: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .14);
  --sh-up: 0 -10px 28px -14px rgba(16, 24, 40, .28);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* derived roles (resolve against whatever palette is active) */
  --ic-cool-fg: var(--brand);
  --ic-warm-fg: var(--accent-ink);
  --check: var(--brand);
  --mark-dot: var(--accent);             /* the wordmark dot; palette e (pale sand accent) swaps in its cinnamon */
}

/* =====================================================================================
   1 · PALETTE  (questionnaire: which pair of colors?)
   brand = buttons, links, focus, chosen chips · accent = the warm second color
   --brand-ink   hover / darker brand, also brand-colored text on --brand-tint
   --brand-tint  very light brand tint (cool bands, chosen chips, bg=tint pages)
   --accent-soft very light accent tint (warm cards and bands)
   --accent-ink  accent-family TEXT color, AA (>= 4.5:1) on accent-soft and on every page bg
   --accent-mark the marker highlight behind one headline word (data-hl=marker)
   --hl-ink      the colored headline word (data-hl=color); large text, >= 3:1 on every bg
   --*-wash      translucent tints for icon circles (visible on any light background)
   Accent FILLS always carry ink text (--on-accent), never white.
   ===================================================================================== */
html[data-palette="a"] {                 /* A · cobalt blue + coral (draft one's first default) */
  --brand: #2445D6;
  --brand-ink: #1A34A8;
  --brand-tint: #EEF2FE;
  --brand-wash: rgba(36, 69, 214, .10);
  --brand-line: rgba(36, 69, 214, .24);
  --accent: #FF6B57;
  --accent-soft: #FFF0ED;
  --accent-ink: #B02E1A;
  --accent-mark: #FFCFC7;
  --accent-wash: rgba(255, 107, 87, .16);
  --accent-line: rgba(255, 107, 87, .55);
  --hl-ink: #E0412B;
}
html[data-palette="b"] {                 /* B · cobalt blue + sunflower */
  --brand: #2445D6;
  --brand-ink: #1A34A8;
  --brand-tint: #EEF2FE;
  --brand-wash: rgba(36, 69, 214, .10);
  --brand-line: rgba(36, 69, 214, .24);
  --accent: #FFC233;
  --accent-soft: #FFF6DC;
  --accent-ink: #7E5300;
  --accent-mark: #FFE08A;
  --accent-wash: rgba(255, 194, 51, .30);
  --accent-line: rgba(214, 150, 0, .55);
  --hl-ink: #2445D6;                     /* yellow can't carry text: the word goes brand blue */
}
html[data-palette="c"] {                 /* C · emerald + pink */
  --brand: #0E7C61;
  --brand-ink: #0A5F4A;
  --brand-tint: #E8F5F0;
  --brand-wash: rgba(14, 124, 97, .11);
  --brand-line: rgba(14, 124, 97, .26);
  --accent: #FF7AA8;
  --accent-soft: #FFEEF4;
  --accent-ink: #AD1F55;
  --accent-mark: #FFD0E1;
  --accent-wash: rgba(255, 122, 168, .18);
  --accent-line: rgba(232, 84, 138, .5);
  --hl-ink: #CC2D66;
}
:root, html[data-palette="d"] {          /* D · petrol + peach (DEFAULT: Maria's pick, Q2 = D, 2026-10-09) */
  --brand: #0F6E7A;
  --brand-ink: #0B5660;
  --brand-tint: #E7F3F4;
  --brand-wash: rgba(15, 110, 122, .11);
  --brand-line: rgba(15, 110, 122, .26);
  --accent: #FF9A66;
  --accent-soft: #FFF1E7;
  --accent-ink: #9E4212;
  --accent-mark: #FFD5BD;
  --accent-wash: rgba(255, 154, 102, .22);
  --accent-line: rgba(232, 120, 64, .55);
  --hl-ink: #C2541C;
}
html[data-palette="e"] {                 /* E · cocoa + sand (brown + beige: Maria's note, 2026-10-09). Warm neutrals too. */
  --brand: #6B4430;
  --brand-ink: #553424;
  --brand-tint: #F3E8DF;
  --brand-wash: rgba(107, 68, 48, .10);
  --brand-line: rgba(107, 68, 48, .24);
  --accent: #DDB892;
  --accent-soft: #F8EDE0;
  --accent-ink: #7A4520;
  --accent-mark: #EED3B2;
  --accent-wash: rgba(221, 184, 146, .34);
  --accent-line: rgba(168, 112, 62, .5);
  --hl-ink: #A8582A;
  --mark-dot: #A8582A;
  --ink: #1F1712;
  --ink-2: #4E423A;
  --ink-3: #65574D;
  --surface-soft: #F8F4F0;
  --ink-wash: rgba(31, 23, 18, .045);
  --line: rgba(31, 23, 18, .11);
  --line-2: rgba(31, 23, 18, .18);
  --field-line: #8C7A6D;
  --on-accent: #1F1712;
  --sh-1: 0 1px 2px rgba(48, 30, 20, .06), 0 1px 3px rgba(48, 30, 20, .06);
  --sh-2: 0 1px 2px rgba(48, 30, 20, .04), 0 14px 34px -10px rgba(48, 30, 20, .18);
  --sh-btn: 0 1px 2px rgba(48, 30, 20, .14), inset 0 1px 0 rgba(255, 255, 255, .14);
  --sh-up: 0 -10px 28px -14px rgba(48, 30, 20, .28);
}

/* =====================================================================================
   2 · PAGE BACKGROUND  (questionnaire: white, cream, light gray, or a light color?)
   --fill-cool / --fill-warm = the two light tints every band and card uses, chosen so they
   stay visible on this background (on cream the warm tint becomes a wash; on tint pages the
   cool band becomes a deeper brand wash so white cards keep their edge).
   ===================================================================================== */
html[data-bg="white"]        { --page: #FFFFFF; --fill-cool: var(--brand-tint); --fill-warm: var(--accent-soft); }
:root, html[data-bg="cream"] { --page: #FFF9F1; --fill-cool: var(--brand-tint); --fill-warm: var(--accent-wash); }
html[data-bg="gray"]         { --page: #F5F6F8; --fill-cool: var(--brand-tint); --fill-warm: var(--accent-soft); }
html[data-bg="tint"]         { --page: var(--brand-tint); --fill-cool: var(--brand-wash); --fill-warm: var(--accent-soft); }

/* =====================================================================================
   3 · BUTTON SHAPE  (questionnaire: rounded, pill, or square?)
   Fields and chips follow the buttons; cards only tighten on "square" so the page stays coherent.
   ===================================================================================== */
html[data-buttons="soft"]        { --r-btn: 12px;  --r-field: 10px; --r-chip: 999px; --r-card: 16px; --r-card-lg: 20px; --r-panel: 28px; }
:root, html[data-buttons="pill"] { --r-btn: 999px; --r-field: 14px; --r-chip: 999px; --r-card: 16px; --r-card-lg: 22px; --r-panel: 30px; }
html[data-buttons="square"]      { --r-btn: 4px;   --r-field: 4px;  --r-chip: 4px;   --r-card: 6px;  --r-card-lg: 8px;  --r-panel: 10px; }

/* =====================================================================================
   4 · HOW MUCH COLOR  (questionnaire: color only on details, some colored blocks, or lots?)
   Sections carry a slot class (slot-1..slot-5) in the markup; this axis decides which slots tint.
   Light tints only. No preset may ever produce a dark section.
   ===================================================================================== */
html[data-color="accents"] {             /* color only on details: icons, dots, the headline word */
  --tone-1: transparent; --tone-2: transparent; --tone-3: transparent; --tone-4: transparent; --tone-5: transparent;
  --sec-line: var(--line);
  --card-warm: var(--surface); --card-warm-line: var(--line);
  --card-cool: var(--surface); --card-cool-line: var(--line);
  --panel: var(--ink-wash); --panel-line: var(--line);
  --callout: var(--surface); --callout-line: var(--line);
  --step-bg: var(--surface); --step-fg: var(--brand); --step-ring: var(--line-2);
}
:root, html[data-color="blocks"] {       /* some sections get light tints (draft-one default) */
  --tone-1: transparent; --tone-2: var(--fill-cool); --tone-3: transparent; --tone-4: transparent; --tone-5: transparent;
  --sec-line: transparent;
  --card-warm: var(--fill-warm); --card-warm-line: transparent;
  --card-cool: var(--fill-cool); --card-cool-line: transparent;
  --panel: var(--fill-warm); --panel-line: transparent;
  --callout: var(--surface); --callout-line: var(--accent-line);
  --step-bg: var(--accent); --step-fg: var(--on-accent); --step-ring: transparent;
}
html[data-color="lots"] {                /* alternating light tinted sections */
  --tone-1: var(--fill-cool); --tone-2: var(--fill-warm); --tone-3: var(--fill-cool); --tone-4: transparent; --tone-5: var(--fill-warm);
  --sec-line: transparent;
  --card-warm: var(--fill-warm); --card-warm-line: transparent;
  --card-cool: var(--fill-cool); --card-cool-line: transparent;
  --panel: var(--fill-cool); --panel-line: transparent;
  --callout: var(--surface); --callout-line: var(--accent-line);
  --step-bg: var(--accent); --step-fg: var(--on-accent); --step-ring: transparent;
}

/* =====================================================================================
   5 · HEADLINE ACCENT WORD  (questionnaire: no highlight, a colored word, or a marker?)
   The word comes from the deck (creators.h1Accent / brands.h1Accent), wrapped by i18n.js.
   ===================================================================================== */
html[data-hl="none"]          { --hl-fg: currentColor; --hl-bg: none; --hl-pad: 0em; }
:root, html[data-hl="color"]  { --hl-fg: var(--hl-ink); --hl-bg: none; --hl-pad: 0em; }
html[data-hl="marker"]        { --hl-fg: currentColor; --hl-bg: linear-gradient(transparent 46%, var(--accent-mark) 46%, var(--accent-mark) 88%, transparent 88%); --hl-pad: .08em; }

/* =====================================================================================
   6 · ICON STYLE  (questionnaire: outline, solid, or inside a soft circle?)
   Applies to the feature icons (rules, explainers, callouts, cards, doors). Phosphor, inline SVG.
   ===================================================================================== */
html[data-icons="line"]          { --ic-reg: block; --ic-fill: none;  --ic-box: 30px; --ic-glyph: 28px; --ic-radius: 0;   --ic-cool-bg: transparent;       --ic-warm-bg: transparent; }
html[data-icons="fill"]          { --ic-reg: none;  --ic-fill: block; --ic-box: 30px; --ic-glyph: 28px; --ic-radius: 0;   --ic-cool-bg: transparent;       --ic-warm-bg: transparent; }
:root, html[data-icons="circle"] { --ic-reg: block; --ic-fill: none;  --ic-box: 44px; --ic-glyph: 22px; --ic-radius: 50%; --ic-cool-bg: var(--brand-wash); --ic-warm-bg: var(--accent-wash); }

/* =====================================================================================
   7 · MOTION  (questionnaire: no movement, subtle, or playful?)
   Reveals start before the element enters the screen (i18n.js) and never exceed 0.4s.
   prefers-reduced-motion always wins (last block).
   ===================================================================================== */
html[data-motion="none"]           { --rv-o: 1; --rv-y: 0px;  --rv-s: 1;   --rv-dur: 0s;   --rv-step: 0ms;  --rv-ease: linear;    --lift-card: 0px;  --lift-btn: 0px;  --press: none;             --t-fast: 0s;   --scroll: auto; }
:root, html[data-motion="subtle"] { --rv-o: 0; --rv-y: 10px; --rv-s: 1;   --rv-dur: .32s; --rv-step: 40ms; --rv-ease: var(--ease); --lift-card: -2px; --lift-btn: 0px;  --press: translateY(1px); --t-fast: .15s; --scroll: smooth; }
html[data-motion="playful"]        { --rv-o: 0; --rv-y: 18px; --rv-s: .97; --rv-dur: .38s; --rv-step: 50ms; --rv-ease: cubic-bezier(.34, 1.32, .64, 1); --lift-card: -4px; --lift-btn: -2px; --press: scale(.97); --t-fast: .18s; --scroll: smooth; }
/* Maria's brand strip speed + the two new brand sections' tones (10-17) */
:root { --marquee-dur: 90s; --marquee-state: running; }
html[data-motion="none"] { --marquee-state: paused; }
:root, html[data-color="blocks"] { --tone-fmt: var(--fill-warm); --tone-intro: transparent; }
html[data-color="lots"]          { --tone-fmt: var(--fill-warm); --tone-intro: var(--fill-cool); }
html[data-color="accents"]       { --tone-fmt: transparent; --tone-intro: transparent; }
@media (prefers-reduced-motion: reduce) {
  html:root, html:root[data-motion] { --rv-o: 1; --rv-y: 0px; --rv-s: 1; --rv-dur: 0s; --rv-step: 0ms; --lift-card: 0px; --lift-btn: 0px; --press: none; --t-fast: 0s; --scroll: auto; }
}

/* Dex draft-one fixes (CEO desk 2026-10-09) */
/* WhatsApp share = the filled action on the success screen (white on #075E54 = 7.6:1) */
:root { --wa-fill: #075E54; --wa-fill-ink: #054C44; }
/* 4b · the HERO joins the color axis, so "more color" reaches the first phone screen (Dex sev 4).
   The email card stays white (the box Maria liked); cards inside a tinted hero switch to white + accent line. */
html[data-color="accents"]       { --tone-hero: transparent;      --hero-card: var(--card-warm); --hero-card-line: var(--card-warm-line); --eyebrow-bg: var(--fill-warm); }
:root, html[data-color="blocks"] { --tone-hero: var(--fill-warm); --hero-card: var(--surface);   --hero-card-line: var(--accent-line);    --eyebrow-bg: var(--surface); }
html[data-color="lots"]          { --tone-hero: var(--fill-warm); --hero-card: var(--surface);   --hero-card-line: var(--accent-line);    --eyebrow-bg: var(--surface); }
/* 5b · palette b: yellow can't carry text, so the "colored word" option renders as the yellow highlighter, never blue (Dex #2) */
html[data-palette="b"]:not([data-hl="none"]):not([data-hl="marker"]) { --hl-fg: currentColor; --hl-bg: linear-gradient(transparent 46%, var(--accent-mark) 46%, var(--accent-mark) 88%, transparent 88%); --hl-pad: .08em; }

/* Maria's UGC explainer (CEO desk 2026-10-09) */
/* The explainer band sits right under the hero: cool tint in "blocks" (the hero is warm), page color in "lots"
   (its neighbors there are the warm hero and the cool rules band) and in "accents". */
html[data-color="accents"]       { --tone-ex: transparent; }
:root, html[data-color="blocks"] { --tone-ex: var(--fill-cool); }
html[data-color="lots"]          { --tone-ex: transparent; }
