/* ==========================================================================
   Tandom · shared styles (landing + about + legal pages)

   Figma palette, adopted 2026-08-05. Source of truth: the :root block of
   tandom-com-br-landing-draft.html (canonical tokens live on branch
   design/figma-palette — main still carries the old indigo).

   THE ACCENT HAS TWO TONES:
   --primary #3d63d8 is the INTERACTIVE tone — buttons, links, anything a
     label sits on. White on it is 5.28:1.
   --accent-bright #5e8bfc is raw Figma periwinkle, DECORATIVE ONLY — bar
     segments, step rings, connectors, the footer glow. Never under text:
     3.19:1 on white, and dark ink on it (6.20:1) technically passes but was
     rejected on sight. A passing ratio is not a legible button.
   ========================================================================== */
:root{
  --background:#fff; --foreground:#0a0a0a;
  --card:#fff; --card-foreground:#0a0a0a;
  --primary:#3d63d8; --primary-foreground:#fff;
  --accent-bright:#5e8bfc; --accent-line:#a7bdf0;
  --secondary:#f5f3ee; --secondary-foreground:#0a0a0a;
  --muted:#efece4; --muted-foreground:#615f58;
  --accent:#eef3fe; --accent-foreground:#0a0a0a;
  --accent-hover:#5076d6;
  --cream:#f7f4ee; --tint:#faf9f6;
  --ink:#0f172a; --footer:#0a1120;
  /* Far stop of the dark-section gradient. DECORATIVE — deliberately darker
     than --primary: the deck's on-dark text tones were tuned for the old
     indigo and measure only 3.50 / 4.14 against #3d63d8. Against #2c4db8 they
     clear at 4.87 / 5.76, so the deck's tonal hierarchy survives instead of
     collapsing into white-on-blue. */
  --dark-end:#2c4db8;
  --on-dark-1:#dbe4f8;   /* body/secondary text on dark — 5.76 on --dark-end */
  --on-dark-2:#c3d2fa;   /* labels/meta on dark      — 4.87 on --dark-end */
  /* #dc2626 measures 4.12:1 on its own soft fill — fails the "semantic colors
     clear 4.5:1 against THEIR OWN soft fill" rule. #b42318 (DESIGN_SYSTEM.md
     §2) clears 5.61:1. */
  --destructive:#b42318; --destructive-soft:#fbe9e9;
  --border:rgba(0,0,0,.09); --input:rgba(0,0,0,.09); --line2:rgba(0,0,0,.16);
  --ring:#5076d6;
  --faint:#6b6760;
  --ok:#166534; --ok-soft:#e7f6ec;
  --warn:#c2410c; --warn-soft:#fdeee0;
  --gold1:#d9a944; --gold2:#ecd28a;
  --radius:10px; --radius-card:12px;
}
*{box-sizing:border-box;margin:0}
html{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;scroll-behavior:smooth}
body{background:var(--background);color:var(--foreground);font-feature-settings:"tnum";font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}
a{color:var(--foreground);text-decoration:none}
:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.wrap{max-width:1080px;margin:0 auto;padding:0 24px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;z-index:60;background:#fff;padding:10px 16px;border-radius:999px;border:1px solid var(--ring)}

/* ---------- primitives ---------- */
.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid transparent;background:var(--primary);color:var(--primary-foreground);font:inherit;font-weight:600;font-size:14px;padding:11px 22px;border-radius:999px;transition:background .15s,border-color .15s,transform .15s}
.btn:hover{background:var(--accent-hover)}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:var(--card);color:var(--foreground);border-color:var(--line2)}
.btn.ghost:hover{background:var(--accent);border-color:var(--ring)}
.btn.onDark{background:#fff;color:var(--ink)}
.btn.onDark:hover{background:#e8edfb}
.btn:disabled{opacity:.5}
.btn svg{width:16px;height:16px}
svg.i{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--primary);margin-bottom:12px}
.eyebrow::before{content:"";display:block;width:46px;height:3px;background:linear-gradient(90deg,var(--gold1),var(--gold2));border-radius:2px;margin-bottom:11px}
.center .eyebrow::before{margin-left:auto;margin-right:auto}
.dark .eyebrow{color:var(--on-dark-2)}

.chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 12px;font-size:11px;font-weight:600}
.chip.ok{background:var(--ok-soft);color:var(--ok)}
.chip.warn{background:var(--warn-soft);color:var(--warn)}
.chip.accent{background:var(--accent);color:var(--accent-foreground)}
.chip.inert{background:var(--muted);color:var(--muted-foreground)}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-card);padding:20px}

h2{font-size:clamp(24px,3.2vw,36px);font-weight:700;letter-spacing:-.02em;line-height:1.16;margin-bottom:12px}
p.lead{max-width:640px;color:var(--muted-foreground);font-size:16px;margin-bottom:38px;line-height:1.5}
.center{text-align:center}
.center p.lead{margin-left:auto;margin-right:auto}

section.block{padding:76px 0}
.bg-tint{background:var(--tint);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.bg-cream{background:var(--cream);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.dark{background:linear-gradient(135deg,var(--ink) 0%,var(--dark-end) 100%);color:#fff}
.dark h2{color:#fff}
.dark p.lead{color:var(--on-dark-1)}

/* ---------- header ---------- */
header.site{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;padding-top:14px;padding-bottom:14px;gap:20px}
.logo{display:flex;align-items:center;color:var(--foreground)}
.logo svg{height:20px;width:auto;display:block}
header.site nav{display:flex;gap:24px;font-size:13px;margin-left:auto}
header.site nav a{color:var(--muted-foreground)}
header.site nav a:hover{color:var(--foreground)}
header.site .btn{padding:9px 18px;font-size:13px}

/* ---------- footer (mirrors tandom.ai) ---------- */
footer.site{position:relative;overflow:hidden;background:var(--footer);color:#fff}
footer.site .glow{height:1px;width:100%;background:linear-gradient(90deg,transparent 0%,rgba(94,139,252,.4) 30%,rgba(94,139,252,.5) 50%,rgba(94,139,252,.4) 70%,transparent 100%)}
footer.site .halo{pointer-events:none;position:absolute;top:0;left:50%;transform:translateX(-50%);width:800px;height:300px;background:radial-gradient(ellipse 50% 60% at 50% 0%,rgba(94,139,252,.06) 0%,transparent 70%)}
footer.site .inner{position:relative;max-width:1080px;margin:0 auto;padding:56px 24px 44px;display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap}
footer.site .fl{max-width:340px}
footer.site .fl svg{height:20px;width:auto;display:block}
footer.site .blurb{margin-top:16px;font-size:13px;color:rgba(255,255,255,.62);line-height:1.6}
footer.site .flinks{margin-top:20px;display:flex;gap:16px;flex-wrap:wrap;font-size:12px}
/* tandom.ai renders these at 30% white, which is 2.66:1 on #0a1120 — below AA
   on exactly the links people need to find (privacy/terms). 55% clears 6.19:1. */
footer.site .flinks a{color:rgba(255,255,255,.55)}
footer.site .flinks a:hover{color:#fff}
footer.site .fr{display:flex;flex-direction:column;gap:18px;align-items:flex-start}
footer.site .badges{display:flex;gap:12px;flex-wrap:wrap}
footer.site .badge{display:flex;align-items:center;gap:12px;border-radius:12px;padding:12px 16px;background:linear-gradient(135deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.02) 100%);border:1px solid rgba(255,255,255,.08)}
footer.site .badge .bi{display:flex;align-items:center;justify-content:center;height:36px;width:36px;border-radius:8px;background:rgba(255,255,255,.06);flex:none}
footer.site .badge .bt{font-size:10px;color:rgba(255,255,255,.55);line-height:1.2}
footer.site .badge .bn{font-size:12.5px;font-weight:600;color:rgba(255,255,255,.65);line-height:1.2;margin-top:2px}
footer.site .social{display:flex;gap:14px}
footer.site .social a{color:rgba(255,255,255,.35)}
footer.site .social a:hover{color:rgba(255,255,255,.7)}
footer.site .copy{position:relative;max-width:1080px;margin:0 auto;padding:0 24px 40px;font-size:11.5px;color:rgba(255,255,255,.55)}
@media (min-width:721px){footer.site .fr{align-items:flex-end}}

/* ---------- document pages (about / legal) ---------- */
.doc{padding:64px 0 88px}
.doc h1{font-size:clamp(30px,4.2vw,44px);font-weight:700;letter-spacing:-.025em;line-height:1.12;margin-bottom:14px}
.doc .updated{font-size:12px;color:var(--faint);margin-bottom:40px}
.doc article{max-width:720px}
.doc h2{font-size:clamp(19px,2.2vw,23px);margin:38px 0 10px}
.doc h3{font-size:16px;font-weight:600;margin:22px 0 6px}
.doc p,.doc li{font-size:15px;color:var(--muted-foreground);line-height:1.65}
.doc p{margin-bottom:12px}
.doc ul,.doc ol{margin:0 0 14px 20px}
.doc li{margin-bottom:6px}
.doc a{color:var(--primary);text-decoration:underline;text-underline-offset:2px}
.doc strong{color:var(--foreground);font-weight:600}
.doc .toc{background:var(--tint);border:1px solid var(--border);border-radius:var(--radius-card);padding:18px 22px;margin-bottom:32px}
.doc .toc ol{margin:0 0 0 18px}
.doc .toc li{font-size:13.5px;margin-bottom:4px}
.doc .note{background:var(--warn-soft);border:1px solid rgba(194,65,12,.18);border-radius:var(--radius);padding:14px 16px;margin-bottom:28px}
.doc .note p{color:var(--warn);font-size:13px;margin:0}

/* ---------- motion ---------- */
@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.js .reveal{opacity:0}
/* opacity:1 is set by .on itself, not by the animation's fill mode — a paused
   or dropped animation can never leave content invisible. */
.reveal.on{opacity:1;animation:fadeUp .55s cubic-bezier(.3,.8,.35,1)}
.js .stagger>*{opacity:0}
.stagger.on>*{opacity:1;animation:fadeUp .55s cubic-bezier(.3,.8,.35,1) backwards}
.stagger.on>*:nth-child(1){animation-delay:.04s}
.stagger.on>*:nth-child(2){animation-delay:.12s}
.stagger.on>*:nth-child(3){animation-delay:.2s}
.stagger.on>*:nth-child(4){animation-delay:.28s}
.stagger.on>*:nth-child(5){animation-delay:.36s}
.stagger.on>*:nth-child(6){animation-delay:.44s}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal,.js .stagger>*{opacity:1!important;animation:none!important}
  *,*::before,*::after{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important}
}
@media (max-width:720px){
  header.site nav{display:none}
  section.block{padding:52px 0}
  footer.site .inner{flex-direction:column;gap:32px}
}

/* ---------- language switcher ---------- */
.langsw{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;overflow:hidden;font-size:11.5px;font-weight:600;flex:none}
.langsw a{padding:5px 10px;color:var(--muted-foreground);line-height:1.2}
.langsw a:hover{background:var(--tint);color:var(--foreground)}
.langsw a[aria-current=true]{background:var(--accent);color:var(--accent-foreground)}
header.site .wrap{gap:14px}
footer.site .flinks .langsw a{color:rgba(255,255,255,.55)}
footer.site .flinks .langsw{border-color:rgba(255,255,255,.18)}
footer.site .flinks .langsw a[aria-current=true]{background:rgba(255,255,255,.14);color:#fff}
@media (max-width:720px){.langsw{display:none}}

/* ---------- print ----------
   Every scroll-reveal hides its element until JS marks it, and print has no
   viewport to scroll: whatever the reader had not reached would rasterize
   blank. app.js reveals everything on `beforeprint`, but that event has not
   always fired in Safari, so state it in CSS too. !important beats the .js
   gates wherever they are declared, including the page-local <style> blocks in
   index.html and proposta.html that hide .fanstem / .fanrail. */
@media print{
  .reveal,.stagger>*,.fanstem,.fanrail::before,.fanrail span{opacity:1!important}
  .tl::before{transform:none!important}
  *,*::before,*::after{animation:none!important;transition:none!important}
}


/* ---------- contact form ----------
   Site-wide because three pages now render it (/, /about, and every recursos
   page). It lived inline in index.html and was copy-lifted into about.html;
   a third consumer is the point at which copying stops being acceptable. */
/* .field serves the CONTACT form (5 uses); it predates the retired demo but is
   not demo CSS — do not remove it with demo leftovers. */
.field{flex:1;min-width:220px;display:flex;align-items:center;gap:10px;border:1px solid var(--input);border-radius:var(--radius);padding:0 14px;background:var(--card);transition:border-color .15s,box-shadow .15s}
.field:focus-within{border-color:var(--ring);box-shadow:0 0 0 3px var(--accent)}
.field svg{width:16px;height:16px;color:var(--faint);flex:none}
.field input,.field textarea{flex:1;border:0;outline:0;background:none;font:inherit;font-size:14px;color:var(--foreground);padding:12px 0;min-width:0;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:var(--faint)}
.field.ta{align-items:flex-start;padding-top:12px}
/* Assunto select, styled to match the inputs exactly. Native <select> so it
   uses the platform picker on mobile; the placeholder option is disabled+
   selected so it cannot be submitted, and greys like a real placeholder. */
.field.sel{padding-right:10px;position:relative}
.field select{flex:1;border:0;outline:0;background:none;font:inherit;font-size:14px;
  color:var(--foreground);padding:12px 22px 12px 0;min-width:0;appearance:none;-webkit-appearance:none;cursor:pointer}
.field select:invalid{color:var(--faint)}
.field.sel::after{content:"";position:absolute;right:16px;top:50%;width:7px;height:7px;
  border-right:2px solid var(--faint);border-bottom:2px solid var(--faint);
  transform:translateY(-70%) rotate(45deg);pointer-events:none}
.hint{margin-top:12px;font-size:11px;color:var(--faint);text-align:center}
.err{display:none;margin-top:12px;font-size:12px;color:var(--destructive);background:var(--destructive-soft);border-radius:var(--radius);padding:8px 12px}
.steps{list-style:none;padding:0;margin:4px 0 0}
.steps li{display:flex;align-items:center;gap:10px;padding:9px 0;font-size:13px;color:var(--muted-foreground);border-top:1px solid var(--border)}
.steps li:first-child{border-top:0}
.dot{width:18px;height:18px;border-radius:999px;background:var(--muted);flex:none;display:flex;align-items:center;justify-content:center;color:var(--muted-foreground)}
.dot svg{width:11px;height:11px}
.steps li.done{color:var(--foreground)}
.steps li.done .dot{background:var(--ok-soft);color:var(--ok)}
.steps li.run .dot{background:var(--accent);color:var(--primary);animation:pulse 1.1s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}
.res-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--muted-foreground)}
.items{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 22px}
.chip.pick{border:1px solid transparent;font:inherit;font-size:11px;font-weight:600;background:var(--accent);color:var(--accent-foreground)}
.chip.pick:hover{border-color:var(--ring)}
.chip.pick .x{opacity:.5;font-size:13px;line-height:1}
.chip.pick:hover .x{opacity:1}
.sup{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--border)}
.sup .n{width:26px;height:26px;border-radius:999px;background:var(--accent);color:var(--primary);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.sup .who{flex:1;min-width:0}
.sup .who b{display:block;font-size:14px;font-weight:600}
.sup .who span{display:block;font-size:12px;color:var(--muted-foreground);margin-top:2px}
.sup .meta{font-size:11px;color:var(--faint);text-align:right;flex:none;white-space:pre-line}
.locked{margin-top:18px;background:var(--secondary);border:1px solid var(--border);border-radius:var(--radius-card);padding:20px;text-align:center}
.locked .lk{width:34px;height:34px;border-radius:999px;background:var(--card);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin:0 auto 12px;color:var(--muted-foreground)}
.locked .lk svg{width:16px;height:16px}
.locked b{display:block;font-size:15px;font-weight:600;margin-bottom:4px}
.locked p{font-size:13px;color:var(--muted-foreground);max-width:390px;margin:0 auto 16px}
.gate{display:flex;gap:10px;max-width:420px;margin:0 auto;flex-wrap:wrap}
.okbox{text-align:center;padding:8px 0}
.okbox .ck{width:38px;height:38px;border-radius:999px;background:var(--ok-soft);color:var(--ok);display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.okbox b{display:block;font-size:16px;font-weight:600;margin-bottom:4px}
.okbox p{font-size:13px;color:var(--muted-foreground)}
/* success path sets [hidden] on the form; without this the display:grid
   below overrides the UA hidden style and the form stays visible with the
   button stuck on "Enviando" (same bug class as the hub cards, 2026-08-12) */
.contact[hidden]{display:none}
.contact{max-width:640px;margin:0 auto;display:grid;gap:10px}
.contact .row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.contact .act{display:flex;justify-content:center;margin-top:6px}
@media (max-width:720px){.contact .row2{grid-template-columns:1fr}}
.ctahead{max-width:1080px;margin:0 auto 34px;text-align:center}
.ctahead .lead{max-width:56ch;margin-left:auto;margin-right:auto}
