/* ====================================================================
   Escola Play — tema "Caderno" (claro, papel pautado + índigo + vermelho-
   corretivo; rodapé escuro tipo quadro-negro). Shape language inédita:
   "lombada de espiral" (coluna de furos circulares via radial-gradient
   lado a lado com uma linha de margem vermelha), aplicada em .notebook.
   ==================================================================== */

:root {
  --bg: #F7F2E7;
  --bg-panel: #FFFFFF;
  --bg-panel-alt: #FBF6EC;
  --line: #E3D9C4;
  --ink: #262A5E;
  --ink-soft: #5B5F8A;
  --accent: #E1512B;
  --accent-dark: #B83D1E;
  --chalk-bg: #1E2340;
  --chalk-bg-soft: #262B52;
  --chalk-text: #F5F2E8;
  --chalk-text-soft: #B9BEDC;
  --chalk-line: #3A3F6B;
  --footer-text: var(--chalk-text-soft);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 28px -14px color-mix(in srgb, var(--ink) 45%, transparent);
  --shadow-lg: 0 24px 54px -20px color-mix(in srgb, var(--ink) 50%, transparent);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: "League Spartan", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
section { padding: 72px 0; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header.site-header {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.header-inner {
  width: min(1180px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; font-family: "League Spartan", sans-serif; }
.brand img { width: 40px; height: 40px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: none; color: var(--ink);
  width: 40px; height: 40px; cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 70vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 6%; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav a { display: block; padding: 14px 4px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; font-family: "League Spartan", sans-serif;
  cursor: pointer; border: none; position: relative; overflow: hidden;
  background-size: 0% 3px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size .25s ease, transform .15s ease;
}
.btn-primary { background-color: var(--accent); color: #fff; background-image: linear-gradient(0deg, #fff 0 3px, transparent 3px); }
.btn-primary:hover { background-size: 100% 3px; transform: translateY(-1px); }
.btn-outline { background-color: transparent; color: var(--ink); border: 1.5px solid var(--line); background-image: linear-gradient(0deg, var(--accent) 0 3px, transparent 3px); }
.btn-outline:hover { background-size: 100% 3px; border-color: var(--accent); color: var(--accent-dark); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Shape language: "lombada de espiral" ---------- */
.notebook {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding-left: 40px;
}
.notebook::before {
  content: "";
  position: absolute; left: 32px; top: 14px; bottom: 14px; width: 2px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}
.notebook::after {
  content: "";
  position: absolute; left: 9px; top: 10px; bottom: 10px; width: 11px;
  border-radius: 6px;
  background-color: var(--line);
  background-image: radial-gradient(circle at center, var(--bg-panel) 0 3.6px, transparent 4.2px);
  background-size: 11px 22px;
  background-repeat: repeat-y;
  background-position: center top;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 84px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-dark); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow .icon { width: 18px; height: 18px; }
.btn .icon { width: 20px; height: 20px; }
.hero-copy h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero-copy .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-panel-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: .86rem; font-weight: 600; color: var(--ink);
}
.trust-chip .icon { width: 16px; height: 16px; color: var(--accent); }

.hero-notebook {
  position: relative;
  transform: rotate(-1.6deg);
  padding: 28px 24px 24px 50px;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 29px, var(--line) 29px 30px);
}
.hero-notebook .stamp {
  position: absolute; top: -20px; right: 6px;
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--bg-panel);
  border: 3px solid var(--accent);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: "League Spartan", sans-serif;
  font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .02em;
  transform: rotate(9deg);
}
.hero-notebook .stamp .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  display: inline-block; margin-right: 4px;
  animation: dotPulse 1.5s infinite;
}
@keyframes dotPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.hero-notebook .pin {
  position: absolute; top: -14px; left: 18px;
  width: 30px; height: 30px; color: var(--accent-dark);
  transform: rotate(-18deg);
}
.hero-notebook h2 { font-size: 1.05rem; margin-bottom: 14px; }
.notebook-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 18%, transparent);
  font-weight: 600; font-size: .95rem;
}
.notebook-list li:last-child { border-bottom: none; }
.notebook-list .icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.notebook-list .tag {
  margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--ink-soft);
  background: var(--bg-panel-alt); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-notebook { transform: none; margin-top: 12px; }
}

/* ---------- Why grid / cards ---------- */
.section-head { max-width: 62ch; margin-bottom: 40px; }
.kicker { display: inline-block; color: var(--accent-dark); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.why-grid, .device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 26px 24px 24px 50px;
  box-shadow: var(--shadow);
}
.card:nth-child(even) .icon { color: var(--accent-dark); }
.icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 14px; flex-shrink: 0;
}
.icon svg { width: 100%; height: 100%; }
/* Contextos onde o ícone é inline (botão, chip, lista) nunca herdam o
   margin-bottom pensado pro ícone de topo dos cards. */
.trust-chip .icon, .eyebrow .icon, .btn .icon, .notebook-list .icon,
.plan-card li .icon, .whatsapp-float .icon, article.post ul li .icon {
  margin-bottom: 0;
}
.card h3 { font-size: 1.1rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

@media (max-width: 980px) { .why-grid, .device-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid, .device-grid { grid-template-columns: 1fr; } }

/* ---------- Planos ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan-card {
  position: relative; overflow: hidden;
  padding: 30px 26px 26px 50px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.plan-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.plan-card .badge {
  position: absolute; top: 18px; right: -34px;
  transform: rotate(38deg); padding: 5px 40px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .72rem; text-transform: uppercase;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.plan-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.plan-card .price { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 2px; }
.plan-card .price .currency { font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.plan-card .price .amount { font-size: 2.3rem; font-weight: 800; font-family: "League Spartan", sans-serif; }
.plan-card .price .period { font-size: .9rem; color: var(--ink-soft); }
.plan-card .per-month { font-size: .82rem; color: var(--accent-dark); font-weight: 700; margin-bottom: 14px; }
.plan-card .note { font-size: .82rem; color: var(--ink-soft); margin-bottom: 16px; }
.plan-card ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; flex: 1; }
.plan-card li { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; }
.plan-card li .icon { width: 18px; height: 18px; margin: 2px 0 0; color: var(--accent); flex-shrink: 0; }
.plan-card .btn { justify-content: center; width: 100%; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-panel);
  margin-bottom: 12px; padding: 4px 22px;
}
.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; position: relative; list-style: none; font-family: "League Spartan", sans-serif; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--accent);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- Page hero (satélites) ---------- */
.page-hero { padding: 48px 0 56px; background: var(--bg-panel-alt); border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: .82rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-soft); } .breadcrumbs a:hover { color: var(--accent); }
.page-icon-badge {
  width: 52px; height: 52px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.page-icon-badge svg { width: 26px; height: 26px; }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); max-width: 44ch; }
.page-hero .lead { color: var(--ink-soft); max-width: 60ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px 22px 22px 48px; box-shadow: var(--shadow); }
.step .step-no {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px;
  font-family: "League Spartan", sans-serif;
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { overflow: hidden; box-shadow: var(--shadow); }
.blog-card img { aspect-ratio: 16/9; object-fit: cover; }
.blog-card .blog-card-body { padding: 22px 22px 22px 46px; }
.blog-card .blog-date { font-size: .8rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
.blog-card h3 { font-size: 1.15rem; }
article.post { max-width: 760px; margin: 0 auto; }
article.post .post-cover { border-radius: var(--radius); margin: 24px 0 32px; aspect-ratio: 16/9; object-fit: cover; }
article.post h2 { margin-top: 1.4em; }
article.post ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
article.post ul li { display: flex; gap: 10px; padding: 6px 0; }
article.post ul li .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; flex-shrink: 0; }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--chalk-bg); color: var(--chalk-text);
  border-radius: var(--radius); padding: 48px 40px; text-align: center;
}
.cta-final h2 { color: var(--chalk-text); }
.cta-final p { color: var(--chalk-text-soft); max-width: 56ch; margin: 0 auto 24px; }

/* ---------- Footer (quadro-negro) ---------- */
.site-footer { background: var(--chalk-bg); color: var(--chalk-text-soft); padding: 56px 0 0; }
.site-footer .brand { color: var(--chalk-text); }
.site-footer p { color: var(--footer-text); }
.footer-inner {
  width: min(1180px, 92%); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 40px; border-bottom: 1px solid var(--chalk-line);
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h3 { color: var(--chalk-text); font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--chalk-text-soft); font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-brand p { max-width: 32ch; margin-top: 14px; }
.footer-bottom { width: min(1180px, 92%); margin: 0 auto; padding: 20px 0; font-size: .8rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.whatsapp-float .icon { width: 28px; height: 28px; margin: 0; color: #fff; }

/* ---------- 404 ---------- */
.page-404 { padding: 110px 0; text-align: center; }
.page-404 h1 { font-size: 3rem; }

/* ---------- Legal ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 1.6em; }
