/* Layout idea: etiquetas de saquinho de geladinho, contorno grosso, sombra dura, tipografia grande */
:root {
  --ice: #F2FAFB;
  --ink: #24131B;
  --berry: #C81E5A;
  --mint: #BFE8D4;
  --lemon: #FFE08A;
  --muted: #5B4650;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ice); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* topo */
.top { border-bottom: 3px solid var(--ink); background: var(--mint); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.mark { font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.02em; }
.mark span { color: var(--berry); }
.top small { font-size: 0.875rem; font-weight: 500; }
.top small a { font-weight: 700; }

/* hero */
.hero { padding-block: 48px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; background: var(--lemon); border: 3px solid var(--ink); padding: 4px 12px; font-weight: 700; font-size: 0.875rem; transform: rotate(-2deg); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.4rem, 7.2vw, 4.6rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--berry); }
.hero p.lead { margin-top: 20px; max-width: 34em; font-size: 1.15rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.disc { margin-top: 20px; max-width: 36em; font-size: 0.9375rem; color: var(--muted); border-left: 4px solid var(--berry); padding-left: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; min-height: 52px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 3px solid var(--ink); background: var(--berry); color: #fff; box-shadow: 5px 5px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; text-align: center; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn.alt { background: #fff; color: var(--ink); }
.hero svg { width: 100%; height: auto; display: block; }

/* secoes */
section { padding-block: 56px; }
section.tight { padding-top: 0; }
.sec-head { max-width: 40em; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; }
.sec-head p { margin-top: 12px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.cards.one { grid-template-columns: minmax(0, 640px); }
.card { background: #fff; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.card .tag { position: absolute; top: -16px; right: 18px; background: var(--lemon); border: 3px solid var(--ink); padding: 2px 12px; font-weight: 700; font-size: 0.875rem; transform: rotate(3deg); }
.card .tag.alt { background: var(--mint); }
.card h3 { font-size: 1.8rem; font-weight: 800; }
.card .by { font-size: 0.9375rem; color: var(--muted); margin-top: -8px; }
.card ul.items { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card ul.items li { padding-left: 28px; position: relative; }
.card ul.items li::before { content: ""; position: absolute; left: 0; top: 0.38em; width: 14px; height: 14px; background: var(--mint); border: 2px solid var(--ink); border-radius: 50%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-size: 0.9375rem; background: var(--ice); }
.card .btn { width: 100%; margin-top: auto; }
.fine { font-size: 0.8125rem; color: var(--muted); }

/* conferir */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: c; }
.checks li { background: #fff; border: 3px solid var(--ink); padding: 22px; counter-increment: c; }
.checks li::before { content: counter(c); display: grid; place-items: center; width: 36px; height: 36px; background: var(--lemon); border: 3px solid var(--ink); border-radius: 50%; font-family: var(--display); font-weight: 800; margin-bottom: 12px; }
.checks strong { display: block; font-family: var(--display); font-size: 1.15rem; margin-bottom: 6px; }
.checks p { color: var(--muted); font-size: 0.9375rem; }

/* tabela */
.table-wrap { overflow-x: auto; border: 3px solid var(--ink); background: #fff; box-shadow: 8px 8px 0 var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 2px solid var(--ink); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--mint); font-family: var(--display); font-size: 1.1rem; }
tbody th { width: 22%; font-weight: 700; background: var(--ice); }
.note { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 12px; max-width: 46rem; }
details { background: #fff; border: 3px solid var(--ink); }
summary { cursor: pointer; padding: 16px 20px; font-family: var(--display); font-weight: 800; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details[open] summary { border-bottom: 3px solid var(--ink); background: var(--lemon); }
details p { padding: 16px 20px; color: var(--muted); }

/* paginas de texto */
.prose { max-width: 46rem; padding-block: 48px 64px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 8px; }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink); margin-top: 10px; }
.prose ul { padding-left: 22px; }
.prose .upd { color: var(--muted); font-size: 0.9375rem; }

/* rodape */
.foot { background: var(--ink); color: var(--ice); padding-block: 48px 96px; }
.foot h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.foot .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot p, .foot li { font-size: 0.9375rem; color: #E6D9DE; }
.foot ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.foot a { color: var(--mint); }
.fill { background: var(--lemon); color: var(--ink); padding: 0 6px; font-weight: 700; }

/* barra fixa no celular */
.sticky { display: none; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero svg { max-width: 300px; margin-inline: auto; }
  .cards, .cards.one { grid-template-columns: 1fr; gap: 36px; }
  .checks { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr; }
  section { padding-block: 44px; }
  .sticky { display: flex; position: fixed; inset: auto 0 0 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ice); border-top: 3px solid var(--ink); }
  .sticky .btn { width: 100%; box-shadow: none; }
}

/* ===== v2: interativo ===== */
.top { position: sticky; top: 0; z-index: 20; }
.top .wrap { flex-wrap: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 0.9375rem; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a.on { border-bottom-color: var(--berry); }
.nav .btn { min-height: 40px; padding: 6px 14px; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); border-bottom: 3px solid var(--ink); color: #fff; }
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--berry); z-index: 30; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; list-style: none; padding: 0; }
.trust li { border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: 3px 12px; font-size: .875rem; font-weight: 700; }
.trust li::before { content: "\2713\00a0"; color: var(--berry); }
section[id] { scroll-margin-top: 70px; }

/* reveal (so ativa com JS) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* painel interativo */
.panel { background: #fff; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 3px solid var(--ink); background: var(--mint); }
.tabs button { flex: 1 1 auto; font: 800 1rem var(--display); padding: 14px 18px; background: transparent; border: 0; border-right: 3px solid var(--ink); cursor: pointer; color: var(--ink); min-height: 52px; }
.tabs button:last-child { border-right: 0; }
.tabs button[aria-selected="true"] { background: var(--lemon); box-shadow: inset 0 -5px 0 var(--berry); }
.tabs button:hover { background: #fff; }
.tabpanel { padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: 1.5rem; margin-bottom: 8px; }
.tabpanel p { color: var(--muted); }
.tabpanel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tabpanel li { padding-left: 28px; position: relative; }
.tabpanel li::before { content: ""; position: absolute; left: 0; top: .38em; width: 14px; height: 14px; background: var(--mint); border: 2px solid var(--ink); border-radius: 50%; }
.stepnav { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.stepnav button, .opt { font: 700 1rem var(--body); border: 3px solid var(--ink); background: #fff; padding: 10px 16px; cursor: pointer; min-height: 48px; color: var(--ink); }
.stepnav button:hover, .opt:hover { background: var(--lemon); }
.stepnav button:disabled { opacity: .4; cursor: not-allowed; }
.dots { display: flex; gap: 6px; margin-left: auto; }
.dots i { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.dots i.on { background: var(--berry); }
.bignum { font-family: var(--display); font-weight: 800; font-size: 5rem; line-height: 1; color: var(--berry); -webkit-text-stroke: 2px var(--ink); }

/* quiz */
.quiz { padding: 26px; }
.qhead { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.qbar { height: 10px; border: 2px solid var(--ink); background: #fff; margin-bottom: 20px; }
.qbar b { display: block; height: 100%; width: 0; background: var(--berry); transition: width .3s ease; }
.quiz h3 { font-size: 1.6rem; margin-bottom: 16px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; font-size: 1.05rem; }
.result { display: grid; gap: 14px; }
.result .tag2 { justify-self: start; background: var(--lemon); border: 3px solid var(--ink); padding: 2px 12px; font-weight: 700; transform: rotate(-2deg); }
.result h3 { margin: 0; }
.link { background: none; border: 0; padding: 0; font: 700 .95rem var(--body); text-decoration: underline; cursor: pointer; justify-self: start; color: var(--ink); }

/* calculadora */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.calc .in { padding: 26px; display: grid; gap: 14px; }
.calc label { display: grid; gap: 4px; font-weight: 700; font-size: .95rem; }
.calc input { font: 500 1.1rem var(--body); padding: 12px; border: 3px solid var(--ink); background: var(--ice); min-height: 48px; width: 100%; }
.calc .out { padding: 26px; background: var(--mint); border-left: 3px solid var(--ink); display: grid; gap: 14px; align-content: start; }
.calc .big { background: #fff; border: 3px solid var(--ink); padding: 14px 16px; }
.calc .big span { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); }
.calc .big strong { font: 800 2rem var(--display); }

.final { background: var(--berry); color: #fff; border-block: 3px solid var(--ink); text-align: center; padding-block: 56px; }
.final h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; }
.final p { max-width: 34em; margin: 12px auto 24px; }
.final .btn { background: #fff; color: var(--ink); }
.final .fine { color: #fff; margin-top: 14px; opacity: .9; }
.tnote { margin-top: 18px; max-width: 46rem; background: #fff; border: 3px solid var(--ink); padding: 14px 18px; font-size: .95rem; }

.float { position: fixed; right: 20px; bottom: 20px; z-index: 15; transform: translateY(140%); transition: transform .3s ease; }
.float.show { transform: none; }

@media (max-width: 860px) { .nav a:not(.btn) { display: none; } .calc { grid-template-columns: 1fr; } .calc .out { border-left: 0; border-top: 3px solid var(--ink); } .tabpanel { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .float { display: none; } .tabs button { flex: 1 1 50%; border-bottom: 3px solid var(--ink); } }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .float, .qbar b { transition: none; } }
