/* Formatura360 — landing page. Sem fontes externas; só system-ui. */
:root {
  color-scheme: light;

  --ink: #241f35;
  --ink-2: #3a3450;
  --muted: #5b5470;
  --line: #e6e1f2;
  --bg: #ffffff;
  --bg-soft: #f7f5fc;
  --brand: #5a3bb0;
  --brand-hover: #4a2f96;
  --brand-soft: #efeaf9;
  --night: #1d1830;
  --night-2: #2a2342;
  --on-night: #ffffff;
  --on-night-muted: #d9d3ea;
  --gold: #f0d27a;
  --gold-hover: #f6df9c;
  --gold-ink: #241f35;
  --ok: #1f7a4d;
  --ok-soft: #e3f4ea;
  --bad: #b42318;
  --bad-soft: #fdeceb;
  --wa: #157a3f;
  --wa-hover: #0f6533;
  --focus: #f0b400;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(36, 31, 53, .06), 0 8px 24px rgba(36, 31, 53, .07);
  --gutter: 16px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--gold-ink); padding: 10px 14px;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: 14px 24px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-hover); color: var(--gold-ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.125rem;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 10px; background: var(--brand); color: var(--gold);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name span { color: var(--brand); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__name span { color: var(--gold); }

.topnav { display: none; }
.topnav a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9375rem;
  padding: 8px 10px; border-radius: 8px;
}
.topnav a:hover { color: var(--brand); background: var(--brand-soft); }

.topbar .btn--sm { white-space: nowrap; }
@media (max-width: 479px) {
  .hide-sm { display: none; }
}
@media (max-width: 380px) {
  .brand { font-size: 1rem; }
  .topbar .btn--sm { padding: 8px 12px; font-size: .875rem; }
}
@media (min-width: 960px) {
  .topnav { display: flex; gap: 4px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(106, 70, 196, .55), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(240, 210, 122, .16), transparent 50%),
    var(--night);
  color: var(--on-night);
  padding-block: 48px 56px;
  overflow: hidden;
}
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(2rem, 6.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.hero__lead {
  margin-top: 18px;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  color: var(--on-night-muted);
  max-width: 60ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__micro { margin-top: 14px; font-size: .9375rem; color: var(--on-night-muted); max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .875rem; font-weight: 600;
}
.chips svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.hero__art img { width: 100%; max-width: 560px; margin-inline: auto; }

@media (max-width: 479px) {
  .cta-row .btn { width: 100%; }
}
@media (min-width: 960px) {
  .hero { padding-block: 80px 88px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; }
}

/* ---------- Seções ---------- */
.section { padding-block: 64px; }
.section--tint { background: var(--bg-soft); }
.section--dark { background: var(--night); color: var(--on-night); }
.section__head { max-width: 760px; margin-bottom: 36px; }
.section h2 { font-size: clamp(1.625rem, 4.4vw, 2.375rem); font-weight: 800; }
.section__lead { margin-top: 14px; font-size: 1.0625rem; color: var(--muted); }
.section--dark .section__lead { color: var(--on-night-muted); }
.eyebrow {
  margin-bottom: 10px;
  font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--gold { color: var(--gold); }

@media (min-width: 960px) {
  .section { padding-block: 96px; }
}

/* ---------- Cartões ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .cards--2, .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards { gap: 20px; }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand);
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--solid { background: var(--brand); color: var(--gold); }
.card--pain { border-top: 3px solid var(--gold); }
.card--module h3 { font-size: 1.3125rem; }

.ticks { display: grid; gap: 8px; margin-top: 16px; }
.ticks li {
  position: relative; padding-left: 28px; color: var(--ink-2); font-weight: 600;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok-soft);
  box-shadow: inset 0 0 0 5px var(--ok-soft), inset 0 0 0 9px var(--ok);
}
.ticks--light li { color: var(--on-night); }
.ticks--light li::before {
  background: rgba(240, 210, 122, .18);
  box-shadow: inset 0 0 0 5px rgba(240, 210, 122, .18), inset 0 0 0 9px var(--gold);
}

/* ---------- Passos do Family Day ---------- */
.steps { display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.step__num {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--night); color: var(--gold); font-weight: 800; font-size: 1.125rem;
}
.step h3 { font-size: 1.125rem; margin-bottom: 6px; }
.step p { color: var(--muted); }

.notes { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 720px) { .notes { grid-template-columns: repeat(2, 1fr); } }
.note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--ink-2);
}
.note svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }

/* ---------- Cobrança ---------- */
.split { display: grid; gap: 32px; }
@media (min-width: 960px) { .split { grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: start; } }
.features { display: grid; gap: 22px; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features__icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border-radius: 12px; background: rgba(240, 210, 122, .14); color: var(--gold);
}
.features__icon svg { width: 24px; height: 24px; }
.features h3 { font-size: 1.125rem; margin-bottom: 4px; }
.features p { color: var(--on-night-muted); }

.rules {
  background: var(--night-2); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 24px;
}
.rules h3 { font-size: 1.125rem; margin-top: 24px; }
.bubble {
  position: relative; background: #e3f4ea; color: #12301f;
  border-radius: 14px 14px 14px 4px; padding: 14px 16px; max-width: 34ch;
}
.bubble__label {
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #1f5a3c; margin-bottom: 4px;
}

/* ---------- Segurança ---------- */
.secure { display: grid; gap: 14px; }
@media (min-width: 720px) { .secure { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; } }
.secure li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px;
}
.secure svg { width: 26px; height: 26px; color: var(--ok); flex: none; }
.secure p { color: var(--muted); }
.secure strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 18px 52px 18px 20px; font-weight: 700; font-size: 1.0625rem;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 1.25rem; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Demonstração e formulário ---------- */
.demo { display: grid; gap: 36px; }
@media (min-width: 960px) { .demo { grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; } }
.demo .ticks { margin-top: 18px; }
.demo__pilot { margin-top: 20px; color: var(--on-night-muted); }
.demo__wa {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid; gap: 12px; justify-items: start;
}
.demo__wa p { font-weight: 700; }

.demo__form {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 24px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
@media (min-width: 480px) { .demo__form { padding: 32px; } }
.form { display: grid; gap: 16px; }
.form__title { font-size: 1.375rem; font-weight: 800; }
.form__hint { font-size: .875rem; color: var(--muted); margin-top: -10px; }
.form__micro { font-size: .875rem; color: var(--muted); text-align: center; }

.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; font-size: .9375rem; }
.field small { font-size: .8125rem; color: var(--muted); }
.req { color: var(--bad); }
.opt { font-weight: 500; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #bdb5d3; border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brand);
}
.field [aria-invalid="true"] { border-color: var(--bad); background: var(--bad-soft); }
.counter { justify-self: end; }

.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input {
  width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0;
  accent-color: var(--brand);
}
.field--check label { font-weight: 500; font-size: .9375rem; }

.hp {
  position: absolute !important; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.form__status {
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bad-soft); color: var(--bad); font-weight: 600;
}

.done { text-align: center; display: grid; gap: 14px; justify-items: center; padding-block: 16px; }
.done:focus { outline: none; }
.done__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
}
.done__icon svg { width: 34px; height: 34px; }
.done h3 { font-size: 1.5rem; }
.done p { color: var(--muted); max-width: 42ch; }

/* ---------- Rodapé ---------- */
.footer { background: #15111f; color: var(--on-night-muted); padding-block: 48px 24px; }
.footer__inner { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand p { margin-top: 12px; max-width: 36ch; }
.footer__title { color: #fff; font-weight: 800; margin-bottom: 10px; }
.footer__nav ul { display: grid; gap: 8px; }
.footer a { color: var(--on-night-muted); }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer__legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .875rem;
}

/* ---------- WhatsApp flutuante (só no celular) ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 12px 18px; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.wa-float:hover { background: var(--wa-hover); color: #fff; }
.wa-float svg { width: 24px; height: 24px; }
@media (min-width: 768px) { .wa-float { display: none !important; } }
@media (max-width: 767px) { body.has-wa { padding-bottom: 84px; } }

/* ---------- Página de privacidade ---------- */
.legal { padding-block: 48px 72px; }
.legal h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal__meta { margin-top: 8px; color: var(--muted); }
.legal__back { display: inline-block; margin-top: 36px; font-weight: 700; }
.legal h3 { font-size: 1.0625rem; margin-top: 20px; margin-bottom: 6px; }
.legal p + ul, .legal ul + p, .legal p + ol, .legal ol + p { margin-top: 10px; }
.legal ol { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; }
.legal li > ul { margin-top: 6px; }
.legal__lead { margin-top: 16px; font-size: 1.0625rem; }
.legal__toc {
  margin-top: 24px; padding: 18px 22px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.legal__toc-title { font-weight: 800; color: var(--ink); }
.legal .legal__toc ol { margin-top: 8px; gap: 4px; }
.legal__note {
  margin-top: 14px; padding: 14px 18px;
  background: var(--brand-soft); border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal__related { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal__related ul { margin-top: 8px; }

/* ---------- Página não encontrada ---------- */
.notfound { padding-block: 64px 88px; }
.notfound__inner { text-align: center; }
.notfound__code {
  font-size: clamp(3.5rem, 14vw, 6.5rem); font-weight: 800; line-height: 1;
  color: var(--brand); letter-spacing: -0.03em;
}
.notfound h1 { margin-top: 12px; font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; }
.notfound__lead { margin: 14px auto 0; max-width: 52ch; font-size: 1.0625rem; color: var(--muted); }
.notfound .cta-row { justify-content: center; }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-soft); color: var(--brand-hover); }
.notfound__areas { margin-top: 48px; text-align: left; }
.notfound__areas h2 { font-size: 1.125rem; text-align: center; margin-bottom: 16px; }
.notfound__areas .card { display: block; text-decoration: none; color: var(--ink); height: 100%; }
.notfound__areas .card:hover h3 { color: var(--brand); }
@media (min-width: 720px) { .notfound__areas .cards { grid-template-columns: repeat(3, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
