/* ============================================================
   COPEILOT — landing pública em "/"
   Self-contained: não carrega Bootstrap nem style.css (sidebar).
   Tokens = design-system/tokens.css (bandeira do RS) + neutros do app.
   Regra de cor: verde = marca e ação; amarelo = exclusivamente IA.
   ============================================================ */
:root {
  --g: #00963F;
  --g-dark: #00702F;
  --g-deep: #005A28;
  --g-soft: #E6F4EC;
  --y: #FFCB00;
  --y-soft: #FFF8DC;
  --y-border: #F2C200;
  --y-text: #7a5a00;
  --red: #D52B1E;
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #202123;
  --muted: #6e6e80;
  --border: #e5e5e5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .08);
  --shadow-md: 0 6px 20px -6px rgba(0, 40, 20, .18);
  --shadow-card: 0 28px 50px -22px rgba(0, 60, 30, .38);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 2000px;
  --gutter: clamp(18px, 4vw, 88px);
  /* Escala tipográfica fluida: cresce com a tela até o teto */
  /* Hero ~18% menor que a versão de 15/09: no zoom 100% de um notebook (1366×768) a dobra inteira cabe na tela */
  --t-display: clamp(2.6rem, 4.7vw, 5.75rem);
  --t-hero-lede: clamp(1.1rem, 1.4vw, 1.6rem);
  --t-headline: clamp(2.1rem, 3.6vw, 4.2rem);
  --t-question: clamp(1.9rem, 3vw, 3.5rem);
  --t-lede: clamp(1.15rem, 1.45vw, 1.55rem);
  --t-body: clamp(1.12rem, 1.3vw, 1.45rem);
  --t-demo: clamp(15px, 1vw, 18px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--card);
  overflow-x: hidden;
  caret-color: var(--g);
}
img { max-width: 100%; display: block; }
a { color: var(--g-dark); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--g-deep); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button { font-family: inherit; }

/* Superfícies do navegador, no vocabulário da página */
::selection { background: var(--g-soft); color: var(--text); }
:focus-visible { outline: 3px solid var(--g); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #bcd9c8 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #bcd9c8; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--g); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--g); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
  z-index: 100; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ── Botões ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, transform .18s var(--ease-out), box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--g); color: #fff; }
.btn-primary:hover { background: var(--g-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 112, 47, .5); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); padding: 12px 16px; }
.btn-ghost:hover { background: var(--bg); }
.btn-on-green { background: #fff; color: var(--g-deep); }
.btn-on-green:hover { background: var(--g-soft); color: var(--g-deep); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: -.2px; font-size: 17px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: none; gap: 4px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15.5px; font-weight: 500; padding: 9px 14px; border-radius: var(--radius-sm); }
.nav-links a:hover { color: var(--text); background: var(--bg); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(40px, 4.5vw, 96px) clamp(36px, 4vw, 80px);
  --mx: 0px; --my: 0px;
  background:
    radial-gradient(58% 62% at 78% 28%, var(--g-soft) 0%, rgba(230, 244, 236, 0) 72%),
    var(--card);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 1024px) {
  /* Ao abrir, a hero preenche a tela abaixo da barra (76px) */
  .hero { min-height: calc(100svh - 76px); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 3vw, 64px); }
}

.hero-title {
  font-size: var(--t-display);
  font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
}
.hero-title .line2 { display: block; color: var(--g); }
.hero-sub {
  margin-top: clamp(24px, 2.2vw, 40px); max-width: 52ch;
  font-size: var(--t-hero-lede); line-height: 1.5; color: #3a3a44;
}
.hero-sub strong { font-weight: 600; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 2.2vw, 38px); }
.hero-cta .btn { font-size: clamp(16px, 1vw, 18px); padding: 16px 30px; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); max-width: 58ch; }
.hero-note a { color: var(--g-dark); font-weight: 600; text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }

/* Leque de cartões do produto (sem fotos de pessoas: LGPD/TCLE) */
.fan-wrap { position: relative; width: 100%; --fs: .5; height: calc(430px * var(--fs) + 40px); }
.fan { position: absolute; left: 50%; top: 20px; width: 750px; height: 430px; transform: translateX(-50%) scale(var(--fs)); transform-origin: top center; }
@media (min-width: 560px) { .fan-wrap { --fs: .76; } }
/* Em duas colunas o leque ancora na esquerda da coluna e transborda só para a
   direita (o hero tem overflow hidden), sem cobrir o subtítulo. */
@media (min-width: 1024px) {
  .fan-wrap { --fs: .7; }
  .fan { left: 0; transform: scale(var(--fs)); transform-origin: top left; }
}
@media (min-width: 1240px) { .fan-wrap { --fs: .84; } }
@media (min-width: 1500px) { .fan-wrap { --fs: .98; } }
@media (min-width: 1800px) { .fan-wrap { --fs: 1.12; } }
@media (min-width: 2100px) { .fan-wrap { --fs: 1.26; } }

.pcard {
  position: absolute; width: 232px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 14px; font-size: 12px; line-height: 1.45; color: var(--text);
  transform: rotate(var(--r, 0deg));
  /* Parallax do mouse (--mx/--my vêm do JS da hero) + balanço (--by, animado) */
  --by: 0px;
  translate: calc(var(--mx) * var(--depth, 0)) calc(var(--my) * var(--depth, 0) + var(--by));
  transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.pcard-1 { left: 0; top: 78px; --r: -7deg; z-index: 1; --depth: .5; --idle: 6.4s; --ip: 0s; }
.pcard-2 { left: 172px; top: 26px; --r: -2.5deg; z-index: 2; --depth: .8; --idle: 7.2s; --ip: -2.1s; }
.pcard-3 { left: 344px; top: 10px; --r: 3deg; z-index: 3; --depth: 1.1; --idle: 6.8s; --ip: -4.3s; }
.pcard-4 { left: 516px; top: 62px; --r: 8deg; z-index: 2; --depth: 1.4; --idle: 7.6s; --ip: -1.2s; }
.pcard:hover { transform: rotate(0deg) scale(1.05); z-index: 9; box-shadow: 0 40px 70px -24px rgba(0, 60, 30, .5); }
.pcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pcard-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
.pcard-title img { width: 16px; height: 16px; }
.pcard-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.pcard-row span:first-child { color: var(--muted); }
.pcard-row-badge { justify-content: flex-start; gap: 10px; }
.pcard-row .redacted { letter-spacing: 1px; color: #9a9aa6; }
.pcard-label { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; margin: 10px 0 4px; }
.pcard-field { border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; background: #fff; color: #3a3a44; }
.pcard-field.ia { position: relative; padding-top: 22px; border-color: var(--y); box-shadow: 0 0 0 3px rgba(255, 203, 0, .22); background: #fffdf2; }
.pcard-field.ia .badge-ia { position: absolute; top: 5px; left: 6px; }
.month-head { margin: -14px -14px 10px; padding: 10px 14px; border-radius: 13px 13px 0 0; background: linear-gradient(135deg, #f0fdf8, var(--g-soft)); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.month-head span:last-child { font-weight: 500; color: var(--muted); font-size: 11px; }

/* PDF em miniatura */
.pcard-pdf { padding: 12px; background: #fbfbfb; }
.pdf-sheet { background: #fff; border: 1px solid #d9d9de; padding: 12px 12px 14px; min-height: 220px; box-shadow: inset 0 0 0 1px #f2f2f4; }
.pdf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pdf-head img { width: 22px; height: 22px; }
.pdf-head b { font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.pdf-bar { height: 12px; background: #f2f2f2; border: 1px solid #222; font-size: 7px; font-weight: 700; padding: 0 4px; line-height: 10px; margin-top: 6px; text-transform: uppercase; }
.pdf-line { height: 5px; background: #e6e6ea; border-radius: 2px; margin-top: 5px; }
.pdf-line.short { width: 62%; }
.pdf-foot { margin-top: 10px; font-size: 8.5px; color: var(--muted); display: flex; justify-content: space-between; }

/* Badges (mesma convenção do app) */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; line-height: 1.5; white-space: nowrap; }
.badge img { width: 11px; height: 11px; }
.badge-cripto { background: var(--g-soft); color: var(--g-dark); }
.badge-ia { background: var(--y); color: var(--text); font-weight: 700; letter-spacing: .3px; }
.badge-req { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.badge-status { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.btn-ia {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 16px;
  background: var(--y-soft); border: 1.5px solid var(--y-border); color: var(--y-text);
  font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.btn-ia img { width: 12px; height: 12px; }
.btn-ia:hover { background: #fff1b8; border-color: var(--y); }
.btn-ia[disabled] { opacity: .6; cursor: progress; }

/* Pílulas flutuantes (só desktop) */
.pill {
  display: none; position: absolute; z-index: 5;
  align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px 9px 9px; font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-md);
  --by: 0px; --depth: 1.8; --idle: 8s;
  translate: calc(var(--mx) * var(--depth)) calc(var(--my) * var(--depth) + var(--by));
}
.pill-left { --ip: -3s; }
.pill-right { --ip: -5.5s; }
.pill img { width: 32px; height: 32px; border-radius: 50%; background: var(--g-soft); padding: 5px; }
.pill.ia img { background: var(--y-soft); }
@media (min-width: 1024px) {
  .pill { display: inline-flex; }
  .pill-left { left: 8px; bottom: 2px; }
  .pill-right { right: -8px; top: -26px; }
}
@media (min-width: 1240px) {
  .pill-right { right: -40px; }
}
@media (min-width: 1800px) {
  .pill-left { bottom: -6px; }
  .pill-right { top: -34px; right: -56px; }
}

/* Entrada: uma animação só, escalonada */
.float-in { animation: float-in .55s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes float-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@property --by { syntax: '<length>'; inherits: false; initial-value: 0px; }
.fan .float-in {
  animation: float-in-card .55s var(--ease-out) backwards, card-idle var(--idle, 7s) ease-in-out infinite;
  animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + .6s + var(--ip, 0s));
}
.pill.float-in {
  animation: float-in .55s var(--ease-out) backwards, card-idle var(--idle, 8s) ease-in-out infinite;
  animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + .6s + var(--ip, 0s));
}
@keyframes float-in-card { from { opacity: 0; transform: translateY(24px) rotate(var(--r, 0deg)); } to { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); } }
/* Balanço lento, cada cartão numa fase (--ip) e duração (--idle) próprias */
@keyframes card-idle { 0%, 100% { --by: 0px; } 50% { --by: -12px; } }


/* ── Seções ─────────────────────────────────────────────── */
.section { padding-block: clamp(48px, 6vw, 104px); }
.section-panels { background: var(--bg); }
.section-panels + .section-panels { padding-top: 0; }
.section-intro { max-width: none; }
.section-title { max-width: 26ch; }
.section-title { font-size: var(--t-headline); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.section-lede { margin-top: clamp(16px, 1.6vw, 26px); font-size: var(--t-lede); line-height: 1.55; color: #3a3a44; max-width: 58ch; }

/* Painel: um container por assunto, revelado ao rolar */
.panel, .qa {
  --r: 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 76px);
}

/* Perguntas dos professores */
.qa-list { display: flex; flex-direction: column; gap: clamp(24px, 2.2vw, 40px); margin-top: clamp(32px, 3.5vw, 60px); }
.qa { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .qa { grid-template-columns: 5fr 7fr; gap: clamp(36px, 5vw, 104px); }
  .qa.flip { grid-template-columns: 7fr 5fr; }
  .qa.flip .qa-text { order: 2; }
  .qa.flip .qa-demo { order: 1; }
}
.qa-q { font-size: var(--t-question); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.qa-q::before { content: '“'; color: var(--g); margin-right: 2px; }
.qa-q::after { content: '”'; color: var(--g); }
.qa-src { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.qa-a { margin-top: clamp(18px, 1.8vw, 28px); font-size: var(--t-body); line-height: 1.6; color: #2c2c33; max-width: 50ch; }
.qa-a + .qa-a { margin-top: 14px; }
.qa-a strong { font-weight: 600; color: var(--text); }
.qa-demo { min-width: 0; }

/* Demos (mockups em CSS do produto) */
.demo {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(22px, 2vw, 36px); font-size: var(--t-demo); line-height: 1.5;
}
.demo-cap { margin-top: 14px; font-size: 14px; color: var(--muted); }
.demo-sec { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.demo-sec + .demo-sec { margin-top: 10px; }
.demo-sec.ro { background: var(--bg); }
.demo-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05em; margin-bottom: 8px; }
.demo-sec-head .who { font-weight: 500; color: var(--muted); font-size: .88em; }
.demo-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); color: #3a3a44; }
.demo-row span:first-child { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 4px 13px; font-size: .92em; }
.field-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .95em; font-weight: 600; margin: 14px 0 6px; }
.field-label .req { font-weight: 500; color: var(--muted); }
.field { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: #fff; min-height: 46px; color: #3a3a44; }
.field.empty { color: #9a9aa6; }
.field.locked { background: var(--bg); }
.field-note { margin-top: 6px; font-size: .9em; color: var(--muted); }

/* Demo interativa de IA */
.demo-ia textarea {
  width: 100%; resize: vertical; min-height: 72px;
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font: inherit; color: var(--text); background: #fff;
}
.demo-ia textarea:focus { outline: 2px solid var(--g); outline-offset: 1px; border-color: var(--g); }
.ia-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: .88em; color: var(--muted); }
.ia-out { margin-top: 12px; border: 1px solid var(--y); border-radius: 10px; background: #fffdf2; box-shadow: 0 0 0 3px rgba(255, 203, 0, .18); padding: 12px; }
.ia-out[hidden] { display: none; }
.ia-out-head { display: flex; align-items: center; gap: 8px; font-size: .9em; font-weight: 600; margin-bottom: 8px; }
.ia-out p { color: #2c2c33; }
.ia-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ia-actions .btn { padding: 9px 16px; font-size: .9em; }
.ia-done { margin-top: 10px; font-size: .88em; color: var(--g-dark); font-weight: 600; }

/* Pilha de Skills (laudo → ação) */
.stack { display: grid; gap: 8px; }
.layer { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fff; display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.layer b { font-size: .86em; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.layer.cond { border-color: #cfe9da; background: var(--g-soft); }
.stack-arrow { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; padding: 2px 0; }
.stack-arrow svg { width: 12px; height: 12px; }
.stack-out { border: 1px solid var(--y); background: #fffdf2; border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; }

/* Vai / nunca vai (bloco verde de tela inteira) */
.privacy { background: var(--g-deep); color: #fff; border-color: var(--g-deep); }
.privacy .qa-q::before, .privacy .qa-q::after { color: var(--g-soft); }
.privacy .qa-src { color: #bfe3cf; }
.privacy .qa-a { color: #e4f3ea; }
.privacy .qa-a strong { color: #fff; }
.ledger { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .ledger { grid-template-columns: 1fr 1fr; } }
.ledger-col { border-radius: 14px; padding: 22px; }
.ledger-col.goes { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.ledger-col.never { background: #fff; color: var(--text); }
.ledger-col h3 { font-size: clamp(17px, 1.15vw, 20px); font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ledger-col h3 img { width: 20px; height: 20px; }
.ledger-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: clamp(15px, 1vw, 18px); }
.ledger-col li { display: flex; gap: 8px; align-items: baseline; }
.ledger-col li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--y); transform: translateY(-1px); }
.ledger-col.never li::before { background: var(--red); }
.ledger-col li small { color: inherit; opacity: .75; }
.ledger-foot { margin-top: 16px; font-size: 15px; color: #bfe3cf; }

/* Ciclo do documento */
.ribbon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ribbon-step { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 8px; text-align: center; font-size: .9em; }
.ribbon-step b { display: block; font-size: 1.05em; }
.ribbon-step span { color: var(--muted); font-size: .92em; }
.ribbon-step.on { background: var(--g-soft); border-color: #bfe0cf; }
.roles { display: grid; gap: 8px; margin-top: 14px; }
.role { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.role img { width: 38px; height: 38px; border-radius: 9px; background: var(--g-soft); padding: 6px; }
.role b { display: block; font-size: 1.05em; }
.role span { color: #3a3a44; font-size: .95em; }
@media (max-width: 480px) { .ribbon { grid-template-columns: repeat(2, 1fr); } }

/* Como vamos provar */

/* Por que existe: linha do tempo */
.timeline { list-style: none; margin: clamp(36px, 3vw, 52px) 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--g-soft); }
@media (min-width: 800px) { .timeline { grid-template-columns: repeat(6, 1fr); } .timeline::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 2px; } }
.tl { position: relative; padding: 4px 0 18px 22px; }
.tl::before { content: ''; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--g); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--g-soft); }
@media (min-width: 800px) { .tl { padding: 20px 14px 0 0; } .tl::before { left: 0; top: -7px; } }
.tl b { display: block; font-size: clamp(1.3rem, 1.6vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; color: var(--g-dark); }
.tl span { display: block; font-size: clamp(15px, 1vw, 17.5px); color: #3a3a44; margin-top: 4px; max-width: 26ch; }
.why-thesis { margin-top: clamp(30px, 3vw, 48px); font-size: clamp(1.5rem, 2.4vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; max-width: 34ch; line-height: 1.25; }
.why-thesis .g { color: var(--g); }
.why-p { margin-top: 18px; max-width: 64ch; color: #3a3a44; font-size: var(--t-body); line-height: 1.6; }

/* Fechamento verde */
.close { background: linear-gradient(160deg, var(--g-dark) 0%, var(--g-deep) 100%); color: #fff; position: relative; overflow: hidden; }
.close::before { content: ''; position: absolute; top: -30%; right: -18%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%); pointer-events: none; }
.close .wrap { position: relative; }
.close-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .close-grid { grid-template-columns: 1.2fr .8fr; gap: clamp(48px, 6vw, 120px); } }
.close-title { font-size: var(--t-headline); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.close-p { margin-top: 18px; color: #e4f3ea; max-width: 50ch; font-size: var(--t-lede); line-height: 1.55; }
.close-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.close-mail { margin-top: 16px; font-size: 15.5px; color: #dff0e6; }
.close-mail a { color: #fff; font-weight: 600; }

/* Rodapé */
.footer { padding-block: 36px 44px; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(40px, 5vw, 96px); } }
.footer h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--g-dark); text-decoration: underline; }
.footer .brand { margin-bottom: 8px; }

/* ── Movimento ao rolar: "preenchimento" ───────────────────
   Um material só: cada resposta entra se preenchendo de baixo para cima.
   Estado padrão é visível (sem JS nada some); `html.js` arma o estado
   inicial e o IntersectionObserver adiciona `.in` uma única vez.
   ───────────────────────────────────────────────────────── */
html.js [data-reveal], html.js [data-stagger] > * { opacity: 0; }
html.js [data-reveal="up"], html.js [data-stagger] > * { transform: translateY(16px); }
html.js [data-reveal="fill"] { transform: translateY(10px); clip-path: inset(0 0 22% 0 round var(--r, 12px)); }
html.js .in[data-reveal], html.js .in[data-stagger] > * {
  opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--r, 12px));
  transition: opacity .55s ease-out, transform .7s var(--ease-out), clip-path .85s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
[data-stagger="list"] > * { --delay: calc(var(--i, 0) * 70ms + 80ms); }
[data-stagger="seq"] > * { --delay: calc(var(--i, 0) * 150ms + 180ms); }
[data-stagger="list"] > *, [data-stagger="seq"] > * { will-change: auto; }

/* Eixo da linha do tempo se desenha; os anos entram em ordem */
.timeline::before { transform-origin: top left; transition: transform 1.1s var(--ease-out) .1s; }
html.js .timeline:not(.in)::before { transform: scaleY(0); }
@media (min-width: 800px) { html.js .timeline:not(.in)::before { transform: scaleX(0); } }

/* Etapas do ciclo acendem em sequência (cor, além da entrada) */
html.js .ribbon > .ribbon-step.on { background: var(--bg); border-color: var(--border); }
html.js .ribbon.in > .ribbon-step.on { background: var(--g-soft); border-color: #bfe0cf; transition: background .4s ease-out, border-color .4s ease-out, opacity .55s ease-out, transform .7s var(--ease-out); transition-delay: var(--delay, 0ms); }

/* O botão ✦ Sugerir chama atenção uma vez, quando a demo aparece */
@keyframes ia-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 203, 0, .55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 203, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 203, 0, 0); }
}
.pulse-once { animation: ia-pulse .9s ease-out .7s 1 both; }

/* Nav: sombra ao rolar e seção atual marcada */
.nav { transition: box-shadow .25s ease; }
.nav.scrolled { box-shadow: 0 8px 24px -14px rgba(0, 40, 20, .28); }
.nav-links a[aria-current="true"] { color: var(--text); background: var(--bg); }

/* Movimento reduzido: só fades curtos, sem deslocamento, sem pulso */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-in, .fan .float-in, .pill.float-in { animation: none; }
  .pcard, .pill { translate: none; transition: none; }
  .pcard:hover { transform: rotate(var(--r, 0deg)); }
  .btn, .btn-ia { transition: none; }
  html.js [data-reveal], html.js [data-stagger] > * { transform: none; clip-path: none; }
  html.js .in[data-reveal], html.js .in[data-stagger] > * { transition: opacity .25s ease-out; transition-delay: 0ms; clip-path: none; }
  html.js .timeline:not(.in)::before { transform: none; }
  .timeline::before { transition: none; }
  html.js .ribbon > .ribbon-step.on { background: var(--g-soft); border-color: #bfe0cf; }
  .pulse-once { animation: none; }
  .nav { transition: none; }
}

/* Painéis no mobile: mais compactos */
@media (max-width: 899px) {
  .panel, .qa { --r: 16px; padding: 20px 18px; }
  .qa-list { gap: 16px; }
}

/* Demos no celular: rótulo acima do valor, menos padding */
@media (max-width: 559px) {
  .demo { padding: 16px; font-size: 14px; }
  .demo-sec { padding: 12px 14px; }
  .demo-sec-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .demo-row { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
  .field-label { flex-wrap: wrap; }
  .layer { grid-template-columns: 1fr; gap: 4px; }
  .qa-a { font-size: 1.05rem; }
}
