/* Matemática de Bancada · vitrine (D-36)
   Design read: página de venda de material digital para professores do fundamental, vinda do Instagram no
   celular; linguagem de bancada de trabalho, clara e confiável, apoiada nos cards reais.
   Dials (taste-skill): VARIANCE 6 · MOTION 4 · DENSITY 4. Um único momento de movimento: o leque de cards.
   Cantos: botões em pílula, painéis 20px, imagens 12px. Um acento só: amarelo da marca. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("/fonts/noto-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --tint-navy: #e7edf4;
  --tint-yellow: #fdf1d3;
  --ink: #04335f;          /* azul-marinho da marca: títulos */
  --text: #24384d;
  --muted: #52657a;
  --line: #d9e0e8;
  --accent: #fbb313;       /* amarelo da marca: o único acento */
  --on-accent: #04335f;
  --panel: #04335f;
  --on-panel: #f3f6fa;
  --on-panel-muted: #b9c8d8;
  --shadow: 0 1px 2px rgb(4 51 95 / 0.06), 0 12px 32px -12px rgb(4 51 95 / 0.22);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-panel: 20px;
  --radius-img: 12px;
  --display: "Bricolage Grotesque", "Noto Sans", system-ui, sans-serif;
  --body: "Noto Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1622;
    --surface: #12202f;
    --tint-navy: #16283b;
    --tint-yellow: #2a2414;
    --ink: #eef3f8;
    --text: #d3dde8;
    --muted: #9fb0c2;
    --line: #243649;
    --panel: #12304f;
    --on-panel: #f3f6fa;
    --on-panel-muted: #b9c8d8;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 36px -14px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
  accent-color: var(--accent);
  scrollbar-color: var(--muted) var(--bg);
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 750; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--accent); color: #04335f; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------------- botões: pílula, retorno ao toque (Emil: scale 0.97, 160ms, ease-out) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 700 1.0625rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-buy { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgb(4 51 95 / 0.25), 0 10px 24px -12px rgb(251 179 19 / 0.9); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-buy:hover { background: #ffc23a; }
  .btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
}

/* ---------------- navegação: uma linha, 72px */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: 72px; padding: 0 max(20px, calc((100vw - 1200px) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand img { width: 150px; height: auto; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .brand img { width: 128px; }
}
@media (prefers-color-scheme: dark) {
  .brand, .foot > img { background: #fff; border-radius: 12px; padding: 6px 10px; }  /* guia de marca: placa branca */
}

main > section { padding: clamp(72px, 10vw, 128px) max(20px, calc((100vw - 1200px) / 2)); }
.sub { color: var(--muted); max-width: 60ch; margin-top: 14px; font-size: 1.125rem; }

/* ---------------- topo */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(40px, 7vw, 96px) !important; padding-bottom: clamp(56px, 8vw, 112px) !important;
}
.hero h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; max-width: 11ch; }
.lead { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--text); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.fan { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.fan img {
  position: absolute; width: 50%; top: 14%;
  border-radius: var(--radius-img); box-shadow: var(--shadow);
  transform-origin: 50% 100%;
}
.fan .c1 { left: 2%; transform: rotate(-9deg); }
.fan .c2 { left: 25%; top: 6%; z-index: 2; transform: rotate(0deg); }
.fan .c3 { left: 48%; transform: rotate(9deg); }
/* o único momento animado: o leque abre ao carregar (marketing pode passar de 300ms) */
@media (prefers-reduced-motion: no-preference) {
  .fan img { animation: deal 720ms var(--ease-out) both; }
  .fan .c1 { --r: -9deg; animation-delay: 80ms; }
  .fan .c2 { --r: 0deg; animation-delay: 0ms; }
  .fan .c3 { --r: 9deg; animation-delay: 160ms; }
  @keyframes deal {
    from { opacity: 0; transform: translateY(24px) rotate(0deg) scale(0.96); }
    to { opacity: 1; transform: translateY(0) rotate(var(--r)) scale(1); }
  }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: left; }
  .fan { width: 86%; max-width: 400px; aspect-ratio: 1.1 / 1; }   /* margem para a carta girada não passar da tela */
}

/* ---------------- como funciona: vídeo + três verbos */
.how { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; background: var(--surface); }
.phone { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 9 / 16; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.verbs { margin: 36px 0 0; display: grid; gap: 28px; }
.verbs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 20px; align-items: baseline; }
.verbs dt { font: 800 1.9rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.verbs dd { margin: 0; color: var(--text); max-width: 42ch; }
.note { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); max-width: 56ch; }
@media (max-width: 860px) {
  .how { grid-template-columns: 1fr; }
  .phone { max-width: 320px; }
  .verbs div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------------- o que vem: bento com 6 células para 6 itens */
.bento {
  margin-top: 48px; display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "big big a b" "big big c d" "e e e e";
}
.cell { margin: 0; border-radius: var(--radius-panel); padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.cell:nth-child(1) { grid-area: big; }
.cell:nth-child(2) { grid-area: a; }
.cell:nth-child(3) { grid-area: b; }
.cell:nth-child(4) { grid-area: c; }
.cell:nth-child(5) { grid-area: d; }
.cell:nth-child(6) { grid-area: e; flex-direction: row; align-items: center; gap: 32px; }
.tint-navy { background: var(--tint-navy); }
.tint-yellow { background: var(--tint-yellow); }
.plain { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cell img { border-radius: var(--radius-img); box-shadow: var(--shadow); background: #fff; }
.cell img.top { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.cell.big img { width: 100%; }
figcaption { display: grid; gap: 4px; }
figcaption strong { font: 700 1.15rem/1.25 var(--display); color: var(--ink); letter-spacing: -0.01em; }
figcaption span { color: var(--muted); font-size: 0.97rem; }
.duo { display: flex; gap: 14px; flex: 0 0 auto; }
.duo img { width: 120px; }
.duo img:last-child { transform: rotate(4deg) translateY(6px); }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "big big" "a b" "c d" "e e"; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "big" "a" "b" "c" "d" "e"; }
  .cell:nth-child(6) { flex-direction: column; align-items: flex-start; }
}

/* ---------------- oferta: painel marinho contido (não inverte a página) */
.offer-panel {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 72px); align-items: center;
  background: var(--panel); color: var(--on-panel); border-radius: var(--radius-panel);
  padding: clamp(32px, 6vw, 72px); box-shadow: var(--shadow); overflow: hidden;
}
.offer h2 { color: var(--on-panel); }
.price { margin: 22px 0 6px; font: 800 clamp(3.2rem, 7vw, 4.6rem)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #fff; }
.price .currency { font-size: 0.42em; vertical-align: 0.95em; margin-right: 6px; letter-spacing: 0; }
.price .once { display: block; margin-top: 10px; font: 500 1rem/1.4 var(--body); letter-spacing: 0; color: var(--on-panel-muted); }
.checks { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; max-width: 48ch; }
.checks li::before {   /* Phosphor "check-circle" (fill) como máscara: herda a cor do acento */
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: var(--accent);
  -webkit-mask: url("/img/check-circle.svg") center / contain no-repeat; mask: url("/img/check-circle.svg") center / contain no-repeat;
}
.fine { margin-top: 18px; color: var(--on-panel-muted); font-size: 0.93rem; }
.offer-img { border-radius: var(--radius-img); transform: rotate(3deg); box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.55); max-width: 340px; justify-self: center; }
@media (max-width: 860px) {
  .offer-panel { grid-template-columns: 1fr; }
  .offer-img { max-width: 240px; }
}

/* ---------------- próximos kits */
.next-grid { margin-top: 48px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.kit { position: relative; background: var(--surface); border-radius: var(--radius-panel); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.kit:nth-child(2) { margin-top: 56px; }
.kit-cards { display: flex; gap: 14px; margin-bottom: 22px; }
.kit-cards img { width: 46%; max-width: 200px; border-radius: var(--radius-img); box-shadow: var(--shadow); }
.kit-cards img:last-child { transform: rotate(-3deg); }
.kit p { color: var(--muted); margin-top: 6px; }
.kit-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.kit-list li { position: relative; padding-left: 26px; color: var(--text); }
.kit-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; background: var(--muted);
  -webkit-mask: url("/img/check-circle.svg") center / contain no-repeat; mask: url("/img/check-circle.svg") center / contain no-repeat;
}
.soon { position: absolute; top: 20px; right: 20px; background: var(--tint-yellow); color: var(--ink); font: 700 0.85rem/1 var(--display); padding: 8px 12px; border-radius: 999px; }
.follow { margin-top: 36px; color: var(--muted); }
.follow a { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .next-grid { grid-template-columns: 1fr; }
  .kit:nth-child(2) { margin-top: 0; }
}

/* ---------------- dúvidas: <details> nativo, sem JavaScript */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.qa { display: grid; gap: 10px; }
details { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font: 650 1.1rem/1.35 var(--display); color: var(--ink); letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--muted);
  -webkit-mask: url("/img/caret-down.svg") center / contain no-repeat; mask: url("/img/caret-down.svg") center / contain no-repeat;
  transition: transform 200ms var(--ease-out);
}
details[open] summary::after { transform: rotate(180deg); }
details p { padding: 0 22px 22px; color: var(--text); max-width: 62ch; }
details a { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------------- rodapé */
.foot {
  padding: 56px max(20px, calc((100vw - 1200px) / 2)) 48px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px 32px; align-items: center; color: var(--muted);
}
.foot > img { width: 140px; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.foot a { color: var(--ink); font-weight: 500; }
.legal { grid-column: 1 / -1; font-size: 0.875rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ---------------- páginas de texto (privacidade, 404) */
.doc { max-width: 72ch; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 20px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.doc h2 { font-size: 1.4rem; margin-top: 40px; letter-spacing: -0.015em; }
.doc p, .doc li { margin-top: 12px; }
.doc .updated { color: var(--muted); margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}
.doc .back { margin-top: 28px; }
