/* ============================================================
   Pietro Mauro — Funil OAB Itu · oab.css v1.0
   Identidade derivada de /mentoria-advogados (law-firm premium)
   Mobile-first · responsivo até 320px · motion só transform/opacity
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Paleta */
  --ink: #0e0e10;
  --ink-2: #15161a;
  --ink-3: #1c1e23;
  --paper: #ffffff;
  --mist: #f4f3f1;
  --mist-2: #eceae5;
  --text: #17191c;
  --muted: #6b7075;
  --muted-2: #8a8f96;
  --line: rgba(14, 14, 16, 0.10);
  --line-2: rgba(14, 14, 16, 0.18);
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-dark-2: rgba(255, 255, 255, 0.20);
  --gold: #c2a24a;
  --gold-soft: #d8bd73;
  --gold-tint: rgba(194, 162, 74, 0.14);
  --wa: #25d366;
  --wa-2: #1ebe5a;
  --ok: #1f8a5f;
  --ok-tint: rgba(31, 138, 95, 0.28);
  --err: #b42318;
  --err-tint: rgba(180, 35, 24, 0.32);

  /* Tipografia */
  --display: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 0.78rem;
  --text-sm: 0.88rem;
  --text-base: clamp(0.98rem, 0.94rem + 0.2vw, 1.05rem);
  --text-lg: clamp(1.05rem, 1rem + 0.35vw, 1.18rem);
  --text-h3: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem);
  --text-h2: clamp(1.7rem, 1.3rem + 2.2vw, 3.2rem);
  --text-hero: clamp(2.1rem, 1.4rem + 4.4vw, 4.4rem);

  /* Espaçamento */
  --sp-1: 6px;
  --sp-2: 10px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 36px;
  --sp-6: 56px;
  --space-section: clamp(64px, 8vw, 120px);
  --space-gutter: clamp(16px, 4vw, 40px);

  /* Raios e sombras */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 34px rgba(14, 14, 16, 0.08);
  --shadow-deep: 0 40px 90px rgba(0, 0, 0, 0.45);

  /* Motion */
  --dur-fast: 0.18s;
  --dur-normal: 0.3s;
  --dur-slow: 0.7s;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --content: 1200px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, video { display: block; height: auto; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { color: var(--paper); background: var(--ink); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

/* ---------- Utilitários ---------- */
.container { width: min(var(--content), 100%); margin-inline: auto; }
.container--narrow { width: min(820px, 100%); margin-inline: auto; }

.section { padding: var(--space-section) var(--space-gutter); }
.section--light { background: var(--mist); color: var(--text); }
.section--dark { background: var(--ink); color: var(--paper); }

/* Cabeçalho de seção */
.head { width: min(760px, 100%); margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.head h2 { font-size: var(--text-h2); }
.head p { margin: 16px auto 0; max-width: 620px; color: var(--muted); font-size: var(--text-lg); }
.section--dark .head p { color: rgba(255, 255, 255, 0.66); }

/* Eyebrow / tag */
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 16px;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.tag i { width: 7px; height: 7px; background: var(--gold); border-radius: 1px; flex: 0 0 auto; }
.section--dark .tag, .tag--light { color: rgba(255, 255, 255, 0.62); }

/* Reveal on scroll (JS adiciona .is-visible) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  line-height: 1.15; cursor: pointer; text-align: center;
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease,
    background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--primario { background: var(--gold); color: var(--ink); }
.btn--primario:hover { background: var(--gold-soft); }

.btn--secundario { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--secundario:hover { border-color: var(--gold); }
.section--dark .btn--secundario,
.btn--secundario.btn--onDark { color: var(--paper); border-color: var(--line-dark-2); }

.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp:hover { background: var(--wa-2); }
.btn--whatsapp svg { fill: #fff; }

.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: var(--text-sm); }

/* ---------- Nav ---------- */
.oab-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px var(--space-gutter);
  background: rgba(14, 14, 16, 0.82);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
  color: var(--paper);
}
.oab-nav .brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.oab-nav .brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 11px; background: var(--gold); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 0.84rem;
}
.oab-nav .brand-name strong { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.13em; white-space: nowrap; }
.oab-nav .brand-name small { display: block; margin-top: 1px; font-size: 0.66rem; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.oab-nav__links { display: none; align-items: center; gap: 4px; }
.oab-nav__links a {
  padding: 9px 13px; border-radius: 8px;
  font-size: var(--text-sm); font-weight: 500; color: rgba(255, 255, 255, 0.74);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.oab-nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.oab-nav__cta { display: flex; align-items: center; gap: 10px; }
.oab-nav__cta .btn { min-height: 42px; padding: 0 16px; font-size: var(--text-sm); }

@media (min-width: 900px) {
  .oab-nav__links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(110px, 16vw, 180px) var(--space-gutter) var(--space-section);
  background:
    radial-gradient(900px 520px at 88% -8%, var(--gold-tint), transparent 60%),
    radial-gradient(700px 600px at -5% 110%, rgba(255, 255, 255, 0.05), transparent 55%),
    var(--ink);
  color: var(--paper);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero__inner { width: min(var(--content), 100%); margin: 0 auto; }
.hero h1 { font-size: var(--text-hero); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero__sub {
  max-width: 620px; margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74); font-size: var(--text-lg); line-height: 1.7;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions .btn { width: 100%; }
.hero--center .hero__inner { text-align: center; }
.hero--center .hero__sub { margin-inline: auto; }
.hero--center .hero__actions { justify-content: center; }

@media (min-width: 560px) {
  .hero__actions .btn { width: auto; }
}

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--dur-fast) ease;
}
a.card:hover { transform: translateY(-3px); }
.card h3 { font-size: var(--text-h3); color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: var(--text-base); line-height: 1.6; }
.card .num { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--gold); }

.card--destaque {
  position: relative;
  border-color: var(--gold); box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, rgba(194, 162, 74, 0.07), transparent 55%), var(--paper);
}

.section--dark .card {
  background: var(--ink-2); border-color: var(--line-dark);
}
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: rgba(255, 255, 255, 0.7); }
.section--dark .card--destaque { border-color: var(--gold); background: linear-gradient(180deg, rgba(194, 162, 74, 0.12), transparent 55%), var(--ink-2); }

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 680px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid--3 { grid-template-columns: repeat(3, 1fr); } .cards-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Badge de preço ---------- */
.badge-preco {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 8px 15px; border-radius: var(--radius-pill);
  background: var(--gold-tint); border: 1px solid rgba(194, 162, 74, 0.45);
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  color: var(--ink); letter-spacing: -0.01em; white-space: nowrap;
}
.badge-preco small { font-family: var(--sans); font-weight: 600; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.badge-preco--gratis { background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.4); color: var(--ok); }
.section--dark .badge-preco { color: var(--gold-soft); }
.section--dark .badge-preco small { color: rgba(255, 255, 255, 0.55); }
.section--dark .badge-preco--gratis { color: var(--wa); }

/* ---------- Escada de produtos ---------- */
.ladder { display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: degrau; }
.ladder__step {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(22px, 3vw, 28px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.ladder__step::before {
  counter-increment: degrau; content: "0" counter(degrau);
  font-family: var(--display); font-weight: 800; font-size: 0.95rem; color: var(--gold);
  letter-spacing: 0.04em;
}
.ladder__step h3 { font-size: var(--text-h3); color: var(--ink); }
.ladder__step p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.ladder__step .badge-preco { align-self: flex-start; }
.ladder__nota { margin: 2px 0 0; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: var(--text-xs); color: var(--muted-2); line-height: 1.5; }
.ladder__step .btn { align-self: flex-start; margin-top: 4px; }
.ladder__step--atual { border-color: var(--gold); box-shadow: var(--shadow-soft); background: linear-gradient(180deg, rgba(194, 162, 74, 0.08), transparent 55%), var(--paper); }
.ladder__voce {
  position: absolute; top: -11px; right: 16px;
  padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--gold); color: var(--ink);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}

.section--dark .ladder__step { background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .ladder__step h3 { color: #fff; }
.section--dark .ladder__step p { color: rgba(255, 255, 255, 0.7); }
.section--dark .ladder__nota { color: rgba(255, 255, 255, 0.5); border-top-color: var(--line-dark-2); }
.section--dark .ladder__step--atual { background: linear-gradient(180deg, rgba(194, 162, 74, 0.12), transparent 55%), var(--ink-2); }

@media (min-width: 900px) {
  .ladder { grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
  .ladder__step { padding-top: 30px; }
  /* degraus sobem: efeito escada no desktop */
  .ladder__step:nth-child(1) { transform: translateY(24px); }
  .ladder__step:nth-child(2) { transform: translateY(16px); }
  .ladder__step:nth-child(3) { transform: translateY(8px); }
}

/* ---------- Prova / credenciais ---------- */
.prova { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.prova span, .prova a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.prova a:hover { transform: translateY(-2px); }
.prova svg { width: 16px; height: 16px; flex: 0 0 auto; }
.prova__label {
  width: 100%; margin: 0 0 14px; text-align: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2);
  border: 0 !important; padding: 0 !important;
}
.section--dark .prova span, .section--dark .prova a { border-color: var(--line-dark); color: rgba(255, 255, 255, 0.72); }
.section--dark .prova__label { color: rgba(255, 255, 255, 0.45); }

/* ---------- Formulário ---------- */
.form-oab {
  display: grid; gap: 14px;
  padding: clamp(22px, 3.5vw, 34px);
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  color: var(--paper);
}
.form-oab label { display: grid; gap: 7px; min-width: 0; text-align: left; }
.form-oab label span { font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.74); }
.form-oab input, .form-oab select, .form-oab textarea {
  width: 100%; min-width: 0; padding: 13px 15px;
  border: 1px solid var(--line-dark-2); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05); color: #fff; color-scheme: dark;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.form-oab textarea { resize: vertical; min-height: 92px; }
.form-oab select option { color: var(--ink); }
.form-oab ::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-oab input:focus, .form-oab select:focus, .form-oab textarea:focus {
  outline: 0; border-color: var(--gold); background: rgba(255, 255, 255, 0.08);
}
.form-oab input[aria-invalid="true"], .form-oab select[aria-invalid="true"] { border-color: var(--err); }

.form-oab__row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .form-oab__row { grid-template-columns: repeat(2, 1fr); } }

.form-oab__nota { margin: 0; font-size: var(--text-xs); line-height: 1.5; color: rgba(255, 255, 255, 0.46); text-align: center; }

/* Multi-step */
.form-oab__step { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.form-oab__step legend { padding: 0; margin-bottom: 12px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: #fff; }
.form-oab__step.is-active { display: grid; gap: 14px; }
.form-oab__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-oab__nav .btn { flex: 1 1 auto; }

.form-oab__progress {
  height: 4px; border-radius: var(--radius-pill); overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}
.form-oab__progress-bar {
  display: block; height: 100%; width: 100%;
  background: var(--gold); border-radius: var(--radius-pill);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-normal) var(--ease);
}
.form-oab__passo { font-size: var(--text-xs); font-weight: 600; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.06em; text-transform: uppercase; }

/* Status (erro/sucesso) */
.form-status { display: none; padding: 13px 15px; border-radius: var(--radius-sm); font-weight: 600; line-height: 1.45; font-size: 0.92rem; }
.form-status.is-success { display: block; color: #d4f7e3; background: var(--ok-tint); }
.form-status.is-error { display: block; color: #ffe1e1; background: var(--err-tint); }

/* Bloco de sucesso (troca o form) */
.form-oab__sucesso { display: none; text-align: center; padding: 10px 0; }
.form-oab__sucesso.is-visible { display: grid; gap: 14px; justify-items: center; }
.form-oab__sucesso h3 { color: #fff; font-size: var(--text-h3); }
.form-oab__sucesso p { margin: 0; color: rgba(255, 255, 255, 0.7); max-width: 42ch; }
.form-oab.is-done .form-oab__step,
.form-oab.is-done .form-oab__progress,
.form-oab.is-done .form-oab__passo,
.form-oab.is-done .form-oab__nota { display: none; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--gold);
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.faq summary i::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq summary i::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq details p { margin: 0; padding: 0 4px 22px; color: var(--muted); line-height: 1.65; max-width: 62ch; }

.section--dark .faq { border-top-color: var(--line-dark); }
.section--dark .faq details { border-bottom-color: var(--line-dark); }
.section--dark .faq summary { color: #fff; }
.section--dark .faq details p { color: rgba(255, 255, 255, 0.68); }

/* ---------- Footer ---------- */
.footer-oab {
  background: var(--ink); color: rgba(255, 255, 255, 0.7);
  padding: clamp(44px, 6vw, 72px) var(--space-gutter) 26px;
}
.footer-oab__top {
  width: min(var(--content), 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 30px;
  padding-bottom: 34px; border-bottom: 1px solid var(--line-dark);
}
.footer-oab .brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-oab .brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; background: var(--gold); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 0.84rem;
}
.footer-oab .brand-name strong { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.13em; color: #fff; }
.footer-oab .brand-name small { display: block; margin-top: 1px; font-size: 0.66rem; color: rgba(255, 255, 255, 0.55); }
.footer-oab__tese { margin: 0; max-width: 44ch; color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; line-height: 1.65; }
.footer-oab__col { display: flex; flex-direction: column; gap: 11px; }
.footer-oab__col strong { color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.footer-oab__col a { color: rgba(255, 255, 255, 0.66); font-size: 0.92rem; transition: color var(--dur-fast) ease; }
.footer-oab__col a:hover { color: var(--gold); }
.footer-oab__bottom {
  width: min(var(--content), 100%); margin: 20px auto 0;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.48);
}

@media (min-width: 720px) {
  .footer-oab__top { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)); gap: 40px; }
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px;
  border-radius: 50%; background: var(--wa);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.4);
  transition: transform var(--dur-fast) ease;
}
.whatsapp-float:hover { transform: translateY(-3px); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
