/* ==========================================================================
   Aprender Criar Crescer — stylesheet
   Self-contained: no external fonts, no CDN, no remote requests.
   ========================================================================== */

:root {
  --ink:          #0d1512;
  --ink-soft:     #3d4b46;
  --ink-faint:    #667571;
  --line:         #d9e2de;
  --line-soft:    #e9efec;
  --paper:        #ffffff;
  --paper-alt:    #f1f6f3;
  --paper-deep:   #0d2a23;
  --accent:       #0f6b57;
  --accent-dark:  #0a5445;
  --accent-wash:  #e4f0eb;
  --focus:        #1a6fd4;
  --warn-bg:      #fdf6e8;
  --warn-line:    #e8d4a8;

  --wrap:      1140px;
  --wrap-text: 700px;
  --radius:    4px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Sans headings, tight and heavy — deliberately unlike a serif editorial look. */
h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.13;
  margin: 0 0 .5em;
  font-weight: 750;
  letter-spacing: -.028em;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.012em; }
h4 { font-size: .98rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

img, svg { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap--text { max-width: var(--wrap-text); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__name { font-size: 1.03rem; font-weight: 750; letter-spacing: -.028em; }

.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .91rem; font-weight: 500;
  padding: .55rem .7rem; white-space: nowrap; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }
.nav .btn { border-bottom: 0; margin-left: .5rem; }
.nav .btn:hover { border-bottom: 0; }

/* `.nav a` (0,1,1) outranks `.btn--primary` (0,1,0), so without these two
   rules the nav CTA inherits --ink-soft on the accent fill — about 1.7:1
   contrast. Keep them whenever a button lives inside .nav. */
.nav .btn--primary, .nav .btn--primary:hover { color: #fff; }
.nav .btn--ghost, .nav .btn--ghost:hover { color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .5rem .6rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .4rem 22px 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .78rem .2rem; border-bottom: 1px solid var(--line-soft); }
  .nav a:hover { border-bottom-color: var(--line-soft); }
  .nav .btn { margin: .7rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: .94rem; font-weight: 650;
  padding: .7rem 1.3rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-alt); color: var(--ink); border-color: var(--ink-faint); }
.btn--onDark { background: #fff; color: var(--paper-deep); }
.btn--onDark:hover { background: var(--accent-wash); color: var(--paper-deep); }
.btn--block { width: 100%; }
.btn--lg { font-size: 1rem; padding: .85rem 1.7rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section--alt { background: var(--paper-alt); }
.section--deep { background: var(--paper-deep); color: #dfeae5; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .eyebrow { color: #7fd4bb; }

.section__head { max-width: 640px; margin-bottom: 2.6rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-soft); font-size: 1.04rem; margin-bottom: 0; }
.section--deep .section__head p { color: #bcd4cc; }

.eyebrow {
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}

.rule { height: 3px; width: 46px; background: var(--accent); margin: 0 0 1.4rem; }
.section__head--center .rule { margin-inline: auto; }

/* ---------- Hero (centred — distinct from a split layout) ---------- */

.hero { padding: clamp(3rem, 2rem + 5vw, 5.75rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem); text-align: center; }
.hero__inner { max-width: 800px; margin-inline: auto; }
.hero__lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 620px; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; justify-content: center; }
.hero__note { margin-top: 1.3rem; font-size: .87rem; color: var(--ink-faint); max-width: 560px; margin-inline: auto; }

.hero__strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.hero__strip div { background: var(--paper); padding: 1.15rem 1rem; text-align: left; }
.hero__strip dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.hero__strip dd { margin: 0; font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 820px) { .hero__strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .hero__strip { grid-template-columns: 1fr; } }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.card p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 0; }
.card__icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: .85rem; }
.section--deep .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.section--deep .card p { color: #bcd4cc; }
.section--deep .card__icon { color: #7fd4bb; }

.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 750;
  margin-bottom: .85rem; font-variant-numeric: tabular-nums;
}
.section--deep .num { background: #7fd4bb; color: var(--paper-deep); }

/* ---------- Curriculum: left-rail timeline ---------- */

.track { border-left: 2px solid var(--line); margin-left: 14px; }
.track__item { position: relative; padding: 0 0 2.2rem 2.2rem; }
.track__item:last-child { padding-bottom: 0; }
.track__dot {
  position: absolute; left: -15px; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 750; font-variant-numeric: tabular-nums;
  border: 3px solid var(--paper-alt);
}
.track__item p { color: var(--ink-soft); font-size: .95rem; }
.track__item ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .92rem; }
.track__item li { margin-bottom: .32rem; }
@media (max-width: 560px) { .track__item { padding-left: 1.6rem; } }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; position: relative;
  font-weight: 650; font-size: 1rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 1.45rem;
  width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__body { padding: 0 2.2rem 1.25rem 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Callouts ---------- */

.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--paper-alt); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem; font-size: .93rem; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }
.callout--plain { border-left-color: var(--ink-faint); }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: #c99a2e; }
.section--deep .callout { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); border-left-color: #7fd4bb; color: #cfe3dc; }
.section--deep .callout strong { color: #fff; }

/* ---------- Form ---------- */

.form-shell { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.35rem, 1rem + 2vw, 2.2rem); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; font-weight: 650; margin-bottom: .35rem; }
.field .hint { font-size: .81rem; color: var(--ink-faint); font-weight: 400; }

.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: .66rem .78rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: 2px solid rgba(15, 107, 87, .16); outline-offset: 0;
}
.field [aria-invalid="true"] { border-color: #b4342a; }

.consent { display: grid; grid-template-columns: 19px 1fr; gap: .68rem; align-items: start; }
.consent input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent); }
.consent label { font-size: .86rem; font-weight: 400; color: var(--ink-soft); line-height: 1.5; margin: 0; }

.error-msg { display: none; color: #a62c22; font-size: .83rem; margin-top: .3rem; }
.error-msg.is-shown { display: block; }

/* Honeypot — hidden from humans, catches naive bots. Not a CAPTCHA. */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; font-size: .92rem; padding: .8rem 1rem; border-radius: var(--radius); display: none; }
.form-status.is-shown { display: block; }
.form-status--ok  { background: var(--accent-wash); border: 1px solid #b9d9cd; color: #0a5445; }
.form-status--err { background: #fdf0ef; border: 1px solid #f0d2cf; color: #93261d; }

/* ---------- Confirmation modal ---------- */

.modal {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  padding: 1.25rem; background: rgba(13, 42, 35, .62);
}
.modal.is-open { display: flex; }

.modal__box {
  background: var(--paper); border-radius: var(--radius);
  max-width: 500px; width: 100%; padding: 2rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .28);
  max-height: 90vh; overflow-y: auto;
  animation: modalIn .18s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal__check {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.modal__check svg { width: 24px; height: 24px; }
.modal__box h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.modal__box p { font-size: .95rem; color: var(--ink-soft); }
.modal__list { margin: 1.1rem 0 0; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.modal__list li { margin-bottom: .38rem; }
.modal__actions { margin-top: 1.6rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Prose / legal ---------- */

.prose { font-size: 1rem; }
.prose h2 { font-size: 1.28rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.01rem; margin-top: 1.7rem; }
.prose ul, .prose ol { padding-left: 1.25rem; color: var(--ink-soft); }
.prose li { margin-bottom: .42rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.2rem 0; }
.prose th, .prose td { text-align: left; padding: .62rem .78rem; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-alt); font-weight: 700; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--paper-alt); padding: .1em .35em; border-radius: 3px; }
.table-scroll { overflow-x: auto; }

.page-head { padding: 3rem 0 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 2.4rem; }
.page-head p { color: var(--ink-faint); font-size: .91rem; margin: .4rem 0 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper-deep); color: #a9c4bb; padding: 3.25rem 0 2rem; font-size: .9rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer .brand { color: #fff; }
.site-footer h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #7fd4bb; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .44rem; }
.site-footer a { color: #a9c4bb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand p { color: #8fada4; max-width: 34ch; font-size: .88rem; }

.site-footer__legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  color: #8fada4; font-size: .83rem;
}
.site-footer__legal p { margin-bottom: .6rem; }
.site-footer__legal strong { color: #cfe3dc; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: var(--paper); border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .13);
  padding: 1.1rem 0; display: none;
}
.cookie-banner.is-shown { display: block; }
.cookie-banner__inner { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.cookie-banner p { font-size: .88rem; color: var(--ink-soft); margin: 0; flex: 1 1 380px; min-width: 250px; }
.cookie-banner__actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.cookie-banner .btn { font-size: .88rem; padding: .55rem 1.05rem; }

/* ---------- Utilities ---------- */

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--ink-faint); }
.small { font-size: .86rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
