/* orquestrar · site
   Tokens do Syntelix Design System v2 (paper, ink, roxo pensa, coral decide, teal verifica). */

@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --paper: #f4f0ea;
  --paper-light: #faf8f4;
  --ink: #211b25;
  --ink-soft: #5f5864;
  --line: rgba(33, 27, 37, 0.16);
  --line-strong: rgba(33, 27, 37, 0.28);
  --purple-100: #efeaf5;
  --purple-200: #d5c7e5;
  --purple-500: #8349a4;
  --purple-600: #673981;
  --purple-700: #4b295e;
  --purple-900: #25142f;
  --coral: #d96f52;
  --coral-deep: #a8432a;
  --teal: #3f817c;
  --teal-deep: #245f5b;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-control: 10px;
  --radius-surface: 18px;
  --shadow-artifact: 0 34px 90px rgba(49, 32, 58, 0.13);
  --shadow-panel: 0 24px 70px rgba(75, 41, 94, 0.07);
  --ring-focus: 0 0 0 3px rgba(103, 57, 129, 0.38);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --chamfer: polygon(0 0, 92% 0, 100% 10%, 100% 100%, 0 100%);
  --shell: min(1360px, 100vw - 48px);
  --section: clamp(5rem, 9vw, 9rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(63, 129, 124, 0.24); }
a { color: var(--purple-600); text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: 6px; }
img, svg { display: block; max-width: 100%; }

.shell { width: var(--shell); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper-light); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; }

/* Tipografia */
.kicker { font: 700 .75rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--purple-600); margin: 0 0 1.2rem; }
.kicker--light { color: var(--purple-200); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h1 { font-weight: 480; font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: .96; letter-spacing: -.05em; }
h1 em, h2 em { font-style: italic; font-weight: 450; color: var(--purple-600); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: .98; letter-spacing: -.045em; }
h3 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; }
.lede { font-size: 1.075rem; color: var(--ink-soft); max-width: 58ch; margin: 1.4rem 0 0; }
.meta { font: 700 .66rem/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(244, 240, 234, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { font: 500 1.4rem/1 var(--serif); letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.4rem; font-size: .9rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--coral-deep); }
.lang { font: 700 .7rem/1 var(--mono); letter-spacing: .1em; border: 1px solid var(--line-strong); border-radius: 999px; padding: .45rem .7rem; }
@media (max-width: 900px) { .nav .nav-link { display: none; } }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: .85rem 1.6rem; border-radius: var(--radius-control); font: 700 .85rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--purple-600); color: #fff; }
.btn--primary:hover { background: var(--coral-deep); color: #fff; }
.btn--secondary { background: transparent; color: var(--purple-700); border-color: var(--line-strong); }
.btn--secondary:hover { background: rgba(217, 111, 82, .08); color: var(--coral-deep); border-color: var(--coral-deep); }
.btn--light { background: var(--paper); color: var(--purple-900); }
.btn--light:hover { background: var(--coral); color: var(--purple-900); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
@media (max-width: 620px) { .actions .btn { width: 100%; justify-content: center; } }

/* Seções */
section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 3.2rem; }

/* Hero */
.hero { border-top: 0; padding-top: clamp(3.5rem, 7vw, 6.5rem); }
.hero .shell { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .hero .shell { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-light); font: 600 .7rem/1.2 var(--mono); letter-spacing: .04em; color: var(--ink); }
.chip svg { width: 14px; height: 14px; color: var(--teal); }

/* Artefato: conversa de exemplo */
.artifact { background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: var(--radius-surface); box-shadow: var(--shadow-artifact); clip-path: var(--chamfer); padding: 1.6rem 1.6rem 1.4rem; }
.artifact__bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.msg { border-radius: 14px; padding: .9rem 1rem; font-size: .92rem; line-height: 1.5; }
.msg + .msg { margin-top: .8rem; }
.msg--user { background: var(--purple-100); margin-left: 18%; }
.msg--agent { background: var(--paper); border: 1px solid var(--line); }
.msg ol { margin: .5rem 0 .3rem; padding-left: 1.2rem; }
.msg li + li { margin-top: .25rem; }
.msg .default { color: var(--teal-deep); font-weight: 600; }
.msg .stop { display: block; margin-top: .6rem; padding-left: .7rem; border-left: 3px solid var(--coral); }
.msg__who { display: block; margin-bottom: .35rem; }

/* Comparação */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
.panel { background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-surface); padding: 1.8rem; box-shadow: var(--shadow-panel); }
.panel h3 { margin: .3rem 0 1rem; }
.panel ul { margin: 0; padding-left: 1.1rem; }
.panel li + li { margin-top: .5rem; }
.panel--with { border-color: var(--line-strong); }

/* Fases: rede sem centro */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; position: relative; }
.phases::before { content: ""; position: absolute; left: 4%; right: 4%; top: 15px; border-top: 1.5px dashed rgba(103, 57, 129, .35); }
@media (max-width: 1100px) { .phases { grid-template-columns: repeat(3, 1fr); row-gap: 2.4rem; } .phases::before { display: none; } }
@media (max-width: 620px) { .phases { grid-template-columns: 1fr; } }
.phase { position: relative; }
.node { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--purple-600); display: grid; place-items: center; font: 700 .72rem/1 var(--mono); color: var(--purple-600); margin-bottom: 1rem; position: relative; }
.phase--decide .node { border-color: var(--coral); color: var(--coral-deep); box-shadow: 0 0 0 4px rgba(217, 111, 82, .22); }
.phase--verify .node { border-color: var(--teal); color: var(--teal-deep); }
.phase h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.phase p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* Benefícios: achados */
.findings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .findings { grid-template-columns: 1fr; } }
.finding { background: var(--paper-light); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius-surface); padding: 1.6rem 1.8rem; }
.finding--decide { border-left-color: var(--coral); }
.finding h3 { margin: .2rem 0 .5rem; }
.finding p { margin: 0; color: var(--ink-soft); }

/* Bloco escuro: resultados */
.night { background: var(--purple-900); color: var(--paper); border-top: 0; }
.night h2, .night h3 { color: var(--paper); }
.night h2 em { color: var(--purple-200); }
.night .lede, .night p { color: var(--purple-200); }
.night a { color: var(--paper); }
.night a:hover { color: var(--coral); }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
@media (max-width: 900px) { .scores { grid-template-columns: 1fr; } }
.score { border: 1px solid rgba(213, 199, 229, .28); border-radius: var(--radius-surface); padding: 1.6rem; }
.score__big { font: 480 clamp(3rem, 6vw, 4.6rem)/1 var(--serif); letter-spacing: -.05em; color: var(--paper); }
.score__big span { color: var(--coral); }
.bar { height: 8px; border-radius: 999px; background: rgba(213, 199, 229, .18); margin: .55rem 0 .2rem; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.bar--with i { background: var(--coral); }
.bar--without i { background: var(--purple-200); opacity: .55; }
.score .meta { color: var(--purple-200); }
.v04 { margin-top: 1.2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; border-top: 1px solid rgba(213, 199, 229, .28); padding-top: 1.4rem; }
.v04 strong { font: 480 1.8rem/1 var(--serif); color: var(--paper); }
.limits { margin-top: 2.2rem; max-width: 70ch; font-size: .95rem; }

/* Instalação */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.tab { min-height: 44px; padding: .6rem 1.1rem; border-radius: var(--radius-control); border: 1px solid var(--line-strong); background: transparent; font: 600 .85rem/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--purple-600); border-color: var(--purple-600); color: #fff; }
.tab:hover:not([aria-selected="true"]) { border-color: var(--coral-deep); color: var(--coral-deep); }
.tabpanel { background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: var(--radius-surface); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-panel); }
.tabpanel[hidden] { display: none; }
.steps { counter-reset: step; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; min-height: 1.8rem; }
.steps li + li { margin-top: 1rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid var(--purple-600); display: grid; place-items: center; font: 700 .72rem/1 var(--mono); color: var(--purple-600); }
.path { font-weight: 600; }
.copy { display: flex; align-items: stretch; margin: .55rem 0 0; max-width: 640px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--paper); overflow: hidden; }
.copy code { flex: 1; font: 500 .85rem/1.4 var(--mono); padding: .75rem .9rem; overflow-x: auto; white-space: nowrap; }
.copy button { border: 0; border-left: 1px solid var(--line-strong); background: transparent; padding: 0 1rem; font: 700 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--purple-600); cursor: pointer; min-width: 92px; }
.copy button:hover { color: var(--coral-deep); background: rgba(217, 111, 82, .08); }
.copy button.done { color: var(--teal-deep); }
.note { margin-top: 1.4rem; padding: .9rem 1.1rem; border-radius: var(--radius-control); background: var(--purple-100); font-size: .92rem; }

/* Packs */
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.4rem; }
@media (max-width: 1100px) { .packs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .packs { grid-template-columns: 1fr; } }
.pack { background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius-surface); padding: 1.4rem; }
.pack h3 { font-size: 1.25rem; margin: .7rem 0 .4rem; }
.pack p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.status { display: inline-block; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line); font: 600 .66rem/1.2 var(--mono); letter-spacing: .04em; color: var(--coral-deep); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 500 1.2rem/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--purple-600); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: .8rem 0 0; color: var(--ink-soft); max-width: 68ch; }

/* Rodapé */
footer { border-top: 1px solid var(--line); padding: 2.4rem 0 3rem; font-size: .9rem; color: var(--ink-soft); }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.thesis { font: italic 450 1.35rem/1.25 var(--serif); color: var(--ink); margin: 0 0 .4rem; }

/* Revelação ao rolar */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; } }

/* Ajustes */
.night .btn--light { color: var(--purple-900); }
.night .btn--light:hover { color: var(--purple-900); }
.score p { margin: 0; }
.score__big { margin: .9rem 0 .4rem !important; }
