/* AxeCode: ferramenta de oficina. Papel frio, tinta azul-ardósia e um corte em diagonal (o gume do machado).
   Fontes do sistema, nada externo. Sotaque por oferta: amarelo giz (Aprender) e cobalto (Construir). */

:root {
  --paper: #e8edf0;
  --paper-deep: #dae1e6;
  --panel: #f7f9fa;
  --ink: #14232d;
  --steel: #3a4a55;
  --rule: #b6c3cb;
  --accent: #f0be1f;
  --on-accent: #14232d;
  --accent-deep: #6b4f00;
  --accent-tint: #fbf0c4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
}

body.offer-construir {
  --accent: #2446d6;
  --on-accent: #ffffff;
  --accent-deep: #2446d6;
  --accent-tint: #dde4fb;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

a { color: var(--accent-deep); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }

/* ---- cabeçalho ---- */
.top { width: min(100% - 2.5rem, 68rem); margin-inline: auto; padding: 1.25rem 0 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--serif); letter-spacing: -.01em; }
.brand-mark { width: 1.6rem; height: 1.6rem; fill: var(--ink); }

/* ---- tipografia ---- */
h1, h2, h3, legend { font-family: var(--serif); line-height: 1.12; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.1rem, 7.2vw, 3.9rem); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.3rem); font-weight: 700; margin-bottom: 1.25rem; text-wrap: balance; }
h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.lede { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--steel); max-width: 34rem; margin: 1.25rem 0 0; }
.small { font-size: .9rem; color: var(--steel); margin: .75rem 0 0; max-width: 30rem; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }
.strong { font: 700 1.2rem/1.4 var(--serif); }

/* ---- hero ---- */
.hero { padding: 2.5rem 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
.hero-copy { padding-bottom: .5rem; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1.75rem 0 0; }
.cta-note { color: var(--steel); font-size: .95rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .7rem 1.5rem;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 2px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: #27414f; border-color: #27414f; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-deep); }
.btn:disabled { opacity: .6; cursor: progress; }

/* A lâmina: bloco de cor com o gume cortado na diagonal. É o único elemento ousado da página. */
.slab {
  background: var(--accent); color: var(--on-accent);
  margin-inline: -1.25rem;
  padding: 3.5rem 1.75rem 2rem;
  clip-path: polygon(0 2.2rem, 100% 0, 100% 100%, 0 100%);
  animation: wipe .7s cubic-bezier(.2, .7, .2, 1) both;
}
.slab-title { font: 700 1.15rem/1.3 var(--serif); margin: 0 0 1rem; }
.board { list-style: none; margin: 0; padding: 0; font-size: 1.05rem; }

/* Aprender: ficha de tarefas, linhas pautadas com caixa de marcação */
.offer-aprender .board li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1.5px solid currentColor; }
.offer-aprender .board li::before { content: ""; width: 1rem; height: 1rem; border: 2px solid currentColor; flex: none; }

/* Construir: nós ligados por um fio, o que a AxeCode conecta */
.offer-construir .board { position: relative; padding-left: 1.6rem; }
.offer-construir .board::before { content: ""; position: absolute; left: .45rem; top: .9rem; bottom: .9rem; width: 2px; background: currentColor; opacity: .7; }
.offer-construir .board li { position: relative; padding: .55rem 0; font-weight: 600; }
.offer-construir .board li::before { content: ""; position: absolute; left: -1.6rem; top: 50%; width: .95rem; height: .95rem; margin-top: -.48rem; border: 2px solid currentColor; background: var(--accent); border-radius: 50%; }

@keyframes wipe { from { clip-path: polygon(0 2.2rem, 0 0, 0 100%, 0 100%); } }

/* ---- faixas ---- */
.band { padding: 3.5rem 0; }
.band.alt {
  background: var(--paper-deep);
  clip-path: polygon(0 1.6rem, 100% 0, 100% 100%, 0 100%);
  padding-top: 5rem; margin-top: -1.6rem;
}
.band.final { padding-bottom: 4rem; }

.cuts, .checks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.cuts li, .checks li { position: relative; padding: .55rem 0 .55rem 1.9rem; }
.cuts li::before { content: ""; position: absolute; left: .35rem; top: 1.05rem; width: .5rem; height: 1.1rem; background: var(--accent); transform: skewX(-24deg); outline: 1.5px solid var(--ink); }
.checks li::before { content: ""; position: absolute; left: .3rem; top: .75rem; width: .55rem; height: 1rem; border: solid var(--accent-deep); border-width: 0 3px 3px 0; transform: rotate(40deg); }

.steps-list { counter-reset: passo; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; max-width: var(--measure); }
.steps-list li { counter-increment: passo; position: relative; padding-left: 3.4rem; }
.steps-list li::before {
  content: counter(passo); position: absolute; left: 0; top: -.1rem;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font: 700 1.2rem/1 var(--serif);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 70% 100%, 0 100%);
}
.steps-list strong { display: block; font: 700 1.2rem/1.3 var(--serif); }

/* ---- FAQ ---- */
.faq details { border-top: 1.5px solid var(--rule); padding: .2rem 0; }
.faq details:last-child { border-bottom: 1.5px solid var(--rule); }
.faq summary { cursor: pointer; padding: .9rem 2rem .9rem 0; font: 700 1.1rem/1.35 var(--serif); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .75rem; font: 400 1.5rem/1 var(--sans); color: var(--accent-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; max-width: 34rem; }

/* ---- formulário ---- */
.card { background: var(--panel); border: 2px solid var(--ink); padding: 1.5rem 1.25rem; max-width: 40rem; box-shadow: 8px 8px 0 var(--accent); }
.progress { margin: 0 0 .5rem; font-size: .95rem; color: var(--steel); }
.bar { height: 6px; background: var(--paper-deep); margin-bottom: 1.5rem; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent-deep); transition: width .25s ease; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 1.45rem; font-weight: 700; margin-bottom: .75rem; padding: 0; }
legend:focus { outline: none; }
.hint { margin: -.25rem 0 .75rem; color: var(--steel); font-size: .95rem; }

.opt { display: flex; align-items: center; gap: .8rem; min-height: 3.2rem; padding: .6rem .9rem; margin-bottom: .6rem; background: #fff; border: 1.5px solid var(--rule); cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent-deep); flex: none; margin: 0; }
.opt:has(input:checked) { border-color: var(--accent-deep); background: var(--accent-tint); box-shadow: inset 4px 0 0 var(--accent-deep); }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent-deep); outline-offset: 2px; }

.detail { margin: .25rem 0 .6rem; }
.field { margin-bottom: 1rem; }
label { font-weight: 600; }
.detail label, .field label { display: block; margin-bottom: .3rem; font-size: .95rem; }
input[type=text], input[type=email], input[type=tel] {
  width: 100%; min-height: 3rem; padding: .6rem .8rem; font: 1rem var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--steel); border-radius: 0;
}
.notice { font-size: .9rem; line-height: 1.5; color: var(--steel); background: var(--paper); border-left: 4px solid var(--rule); padding: .75rem .9rem; margin: 1.25rem 0; }
.check { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .9rem; font-weight: 400; font-size: .98rem; cursor: pointer; }
.check input { width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; accent-color: var(--accent-deep); flex: none; }

.err { margin: .75rem 0 0; padding: .6rem .8rem; background: #fde7e4; color: #8a1c0f; border-left: 4px solid #b3261e; font-size: .95rem; }
.err[hidden] { display: none; }

.nav { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.nav .btn[hidden] { display: none; }

.result:focus { outline: none; }
.result .btn { margin-top: .25rem; }
.links { padding-left: 1.2rem; }
.links li { margin-bottom: .5rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- rodapé ---- */
.foot { border-top: 1.5px solid var(--rule); padding: 1.75rem 0 2.5rem; font-size: .9rem; color: var(--steel); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.foot p { margin: 0; }

.prose h1 { margin: 2.5rem 0 1rem; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .5rem; }

/* ---- telas maiores ---- */
@media (min-width: 52rem) {
  body { font-size: 1.125rem; }
  .hero { padding-top: 4.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3rem; }
  .slab {
    margin-inline: 0 calc(50% - 50vw);
    padding: 2.5rem 2.5rem 2.5rem 4.5rem;
    clip-path: polygon(3.5rem 0, 100% 0, 100% 100%, 0 100%);
    align-self: stretch; display: flex; flex-direction: column; justify-content: end;
    animation-name: wipe-wide;
  }
  .band { padding: 5rem 0; }
  .band.alt { padding-top: 6.5rem; clip-path: polygon(0 2.2rem, 100% 0, 100% 100%, 0 100%); margin-top: -2.2rem; }
  .card { padding: 2.25rem 2.5rem; }
}
@keyframes wipe-wide { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slab { animation: none; }
  .bar span { transition: none; }
  .sticky-cta { transition: none; }
}

/* ---- CTA do meio, barra fixa e botões do formulário ---- */
.cta-mid { margin: 2rem 0 0; }
.nav .btn { min-height: 2.75rem; }
.sticky-cta { display: none; }

@media (max-width: 51.99rem) {
  /* Botões do formulário em largura total, alvo de toque >= 44px */
  .nav { flex-direction: column-reverse; }
  .nav .btn { width: 100%; min-height: 3rem; }
  .cta-mid .btn { width: 100%; }
  .sticky-cta {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 5;
    padding: .6rem 1.25rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--panel); border-top: 2px solid var(--ink);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-cta[hidden] { display: none; }
  .sticky-cta.on { transform: none; }
  .sticky-cta .btn { width: 100%; min-height: 3rem; }
  /* Folga no fim para a barra nunca cobrir o rodapé */
  body.has-sticky .foot { padding-bottom: 5.5rem; }
}
