/* ============================================================
   Patamar — site v2
   Hero enxuto, ribbon de KPIs, comparação, mockup da ferramenta,
   métodos com numeração, cases com números gigantes, depoimento.
   ============================================================ */

@font-face {
  font-family: "Sora";
  src: url("./public/fonts/Sora.ttf") format("truetype-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0E0E0E;
  --accent: #FFD400;
  --black: #0E0E0E;
  --white: #FFFFFF;
  --ink: #F5F1E8;
  --text-muted: rgba(14, 14, 14, 0.6);
  --text-faint: rgba(14, 14, 14, 0.38);
  --line: rgba(14, 14, 14, 0.08);
  --on-black-muted: rgba(255, 255, 255, 0.62);
  --on-black-faint: rgba(255, 255, 255, 0.36);
  --on-black-line: rgba(255, 255, 255, 0.1);
  --radius-card: clamp(28px, 3vw, 44px);
  --radius-pill: 999px;
  --gap-cards: clamp(12px, 1.4vw, 18px);
  --pad-x: clamp(32px, 6vw, 120px);
  --pad-y: clamp(72px, 11vh, 140px);
  --pad-y-tight: clamp(56px, 8vh, 100px);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--black); }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: transparent; cursor: pointer; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- Shell ---------- */
.shell { width: 100%; min-height: 100vh; padding: var(--gap-cards); }
.card {
  border-radius: var(--radius-card);
  margin-bottom: var(--gap-cards);
  overflow: hidden;
  padding: var(--pad-y) var(--pad-x);
}
.card.tight { padding: var(--pad-y-tight) var(--pad-x); }
.card.yellow { background: var(--accent); color: var(--black); }
.card.black { background: var(--black); color: var(--white); }
.card.white { background: var(--ink); color: var(--black); }
.card.hero {
  min-height: calc(100svh - calc(var(--gap-cards) * 2));
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* ---------- Section marker ---------- */
.section-mark {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: clamp(36px, 5.5vh, 72px);
}
.section-mark .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.78;
}
.section-mark .rule { height: 1px; background: currentColor; opacity: 0.18; width: 100%; }

/* ---------- Tipografia ---------- */
h1.headline {
  font-size: clamp(38px, 5.6vw, 84px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-wrap: balance;
}
h2.section-title {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.028em;
  max-width: 22ch;
  text-wrap: balance;
}
h3.sub-title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
p.lead {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  font-weight: 400;
  max-width: 50ch;
}
p.body {
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.6;
  font-weight: 400;
  max-width: 56ch;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--black); color: var(--white);
  font-size: 14px; font-weight: 600;
  padding: 13px 24px; border-radius: var(--radius-pill);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3); }
.btn.big { font-size: 15.5px; padding: 17px 32px; }
.btn.huge { font-size: 16px; padding: 19px 36px; }
.btn.yellow { background: var(--accent); color: var(--black); }
.btn.yellow:hover { box-shadow: 0 14px 32px rgba(255, 212, 0, 0.25); }
.btn.outline {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.btn.outline:hover { background: rgba(255, 255, 255, 0.06); }
.btn .arrow { width: 17px; height: 17px; }

/* ---------- Navegação ---------- */
nav.top {
  padding: clamp(22px, 3.2vh, 36px) var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
}
nav .links {
  display: flex; align-items: center; gap: clamp(20px, 2.6vw, 34px);
  flex-wrap: nowrap;
}
nav .links .nav-group {
  display: flex; align-items: center; gap: clamp(18px, 2vw, 28px);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.navlink {
  position: relative; opacity: 0.6; transition: opacity 0.2s ease;
}
.navlink::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  height: 1.5px; width: 100%; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.navlink:hover { opacity: 1; }
.navlink:hover::after { transform: scaleX(1); }

.brand { display: flex; align-items: center; gap: 11px; }
.brand .word { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

nav.floating {
  position: fixed; top: var(--gap-cards); left: 0; right: 0;
  z-index: 60; display: flex; justify-content: center;
  pointer-events: none; transform: translateY(-180%);
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}
nav.floating.visible { transform: translateY(0); }
nav.floating .inner {
  pointer-events: auto;
  width: calc(100% - calc(var(--gap-cards) * 2));
  max-width: 1080px;
  background: rgba(14, 14, 14, 0.82);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: nowrap;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: var(--white);
}
nav.floating .inner .brand .word { font-size: 16px; }
nav.floating .inner .navlink { opacity: 0.7; }
nav.floating .inner .btn { font-size: 13px; padding: 10px 18px; }

/* ---------- HERO ---------- */
.hero-body {
  flex: 1;
  padding: clamp(36px, 5vh, 64px) var(--pad-x) clamp(40px, 5.5vh, 72px);
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(32px, 5vh, 56px);
}
.hero-tag {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--black);
}
.hero-tag::before {
  content: ""; display: inline-block;
  width: 32px; height: 1.5px; background: currentColor;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5; font-weight: 400; max-width: 44ch;
  color: var(--black);
}
.hero-bottom {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: clamp(36px, 5vw, 64px);
}
.hero-meta {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(14, 14, 14, 0.62);
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--black); }

/* ---------- RIBBON KPI ---------- */
.ribbon {
  background: var(--accent);
  color: var(--black);
  border-radius: var(--radius-card);
  margin-bottom: var(--gap-cards);
  padding: clamp(40px, 6vh, 72px) clamp(32px, 5vw, 88px);
}
.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: flex-start;
  text-align: center;
}
.kpi {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.kpi .num {
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.kpi .label {
  font-size: 14px; font-weight: 500;
  line-height: 1.45; opacity: 0.78; max-width: 28ch;
}
.ribbon-close {
  margin-top: clamp(28px, 4vh, 48px);
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(14, 14, 14, 0.18);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.ribbon-close strong {
  font-weight: 700;
}

/* ---------- PROBLEMA ---------- */
.problema-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}
.problema-grid .lede {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 400; line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 56ch;
}

/* ---------- PULL QUOTE ---------- */
.pullquote {
  border-radius: var(--radius-card);
  background: var(--accent);
  color: var(--black);
  padding: clamp(48px, 8vh, 100px) clamp(40px, 8vw, 160px);
  margin-bottom: var(--gap-cards);
  text-align: center;
  position: relative;
}
.pullquote::before, .pullquote::after {
  content: ""; position: absolute;
  width: 32px; height: 1.5px; background: currentColor; opacity: 0.5;
  top: 50%; transform: translateY(-50%);
}
.pullquote::before { left: clamp(24px, 4vw, 80px); }
.pullquote::after { right: clamp(24px, 4vw, 80px); }
.pullquote p {
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 500; line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 22ch; margin: 0 auto;
}

/* ---------- DIFERENÇA com comparação ---------- */
.dif-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vh, 72px);
}
.dif-body > p {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55; font-weight: 400;
  color: rgba(14, 14, 14, 0.72); max-width: 50ch;
}
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(20px, 3vh, 36px);
  border-top: 1px solid rgba(14, 14, 14, 0.12);
}
.compare .col {
  padding: clamp(28px, 3.5vw, 48px) clamp(8px, 1.5vw, 24px);
  border-right: 1px solid rgba(14, 14, 14, 0.12);
}
.compare .col:last-child { border-right: none; }
.compare .col.win .col-label-row {
  display: flex; align-items: center; gap: 10px;
}
.compare .col-label {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 28px; color: rgba(14, 14, 14, 0.42);
}
.compare .col.win .col-label { color: var(--black); }
.compare ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.compare li {
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.4; font-weight: 400;
  display: grid; grid-template-columns: 18px 1fr;
  gap: 14px; align-items: start;
}
.compare .col li { color: rgba(14, 14, 14, 0.62); }
.compare .col.win li {
  color: var(--black); font-weight: 500;
}
.compare li .icon-x,
.compare li .check {
  flex: none; width: 16px; height: 16px;
  position: relative; top: 2px;
}
.compare .col li .icon-x { color: rgba(14, 14, 14, 0.3); }
.compare .col.win li .check { color: var(--black); }

@media (max-width: 680px) {
  .compare { grid-template-columns: 1fr; }
  .compare .col { border-right: none; border-bottom: 1px solid rgba(14, 14, 14, 0.12); }
  .compare .col:last-child { border-bottom: none; }
}

/* ---------- COMO FUNCIONA ---------- */
.passos {
  display: flex; flex-direction: column;
  margin-top: clamp(40px, 6vh, 72px);
  border-top: 1px solid rgba(245, 241, 232, 0.12);
}
.passo {
  display: grid;
  grid-template-columns: clamp(96px, 11vw, 168px) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: clamp(32px, 5vh, 60px) 0;
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
}
.passo .num {
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--white); line-height: 0.82;
}
.passo h3 {
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
}
.passo p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6; font-weight: 400;
  color: rgba(255, 255, 255, 0.7); max-width: 52ch;
}

/* ---------- PROVA / CASES ---------- */
.prova-intro {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: clamp(40px, 6vh, 72px);
}
.prova-intro p.helper {
  font-size: 14px; line-height: 1.55;
  color: var(--text-muted); max-width: 34ch;
}

.cases { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 48px); }
.case {
  border: 1px solid var(--line);
  border-radius: clamp(24px, 2.4vw, 36px);
  padding: clamp(32px, 4.4vw, 72px);
  background: rgba(14, 14, 14, 0.015);
  position: relative;
}
.case-tag {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: clamp(20px, 3vh, 32px);
}
.case-big {
  font-size: clamp(48px, 7.5vw, 116px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: clamp(20px, 3vh, 36px);
  display: flex; align-items: baseline; gap: clamp(14px, 1.8vw, 24px);
  flex-wrap: wrap;
}
.case-big .from {
  color: var(--text-faint); font-weight: 400;
  font-size: 0.55em; align-self: center;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(14, 14, 14, 0.25);
}
.case-big .arrow {
  color: var(--text-faint); font-weight: 400;
  font-size: 0.4em; align-self: center;
}
.case-big .to {
  color: var(--black);
}
.case-headline {
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 500; line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: clamp(20px, 3vh, 32px);
  max-width: 28ch;
}
.case-context {
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.55; font-weight: 400;
  color: var(--text-muted); max-width: 60ch;
  margin-bottom: clamp(24px, 3.5vh, 40px);
}
.case-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin-bottom: clamp(24px, 3vh, 36px);
}
.case-col h4 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); color: var(--text-faint);
}
.case-col.after h4 { color: var(--black); border-bottom-color: var(--black); }
.case-col ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.case-col li {
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.45; font-weight: 400;
  color: var(--text-muted);
  display: flex; gap: 14px; align-items: baseline;
}
.case-col.after li { color: var(--black); font-weight: 500; }
.case-col li .bullet { color: var(--text-faint); }
.case-col.after li .check {
  flex: none; width: 16px; height: 16px;
  position: relative; top: 3px;
}
.case-block { margin-bottom: 24px; }
.case-block-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--black); margin-bottom: 18px;
}
.case-block ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.case-block li {
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.5; font-weight: 400;
  color: var(--text-muted);
  display: flex; gap: 14px; align-items: baseline;
}
.case-block li strong { color: var(--black); font-weight: 600; }
.case-block li .bullet { color: var(--text-faint); }
.case-result {
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 3vh, 32px);
}
.case-result-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 12px;
}
.case-result p {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5; font-weight: 500;
  letter-spacing: -0.01em; max-width: 60ch;
}

/* ---------- POR QUE PATAMAR ---------- */
.pilares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 4vw, 64px);
  margin-top: clamp(36px, 5vh, 64px);
}
.pilar { border-top: 1px solid var(--line); padding-top: 28px; }
.pilar strong {
  display: block;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.12; margin-bottom: 20px; max-width: 16ch;
}
.pilar p {
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.6; font-weight: 400;
  color: var(--text-muted); max-width: 36ch;
}

/* ---------- CTA FINAL ---------- */
.cta-final {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cta-final h2 {
  font-size: clamp(32px, 4.8vw, 68px);
  font-weight: 500; line-height: 1.04;
  letter-spacing: -0.035em; max-width: 17ch;
}
.cta-final p {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5; margin: 24px 0 36px;
  max-width: 50ch; font-weight: 400;
}
.cta-final .meta-hint {
  margin-top: 20px;
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(14, 14, 14, 0.55);
  display: inline-flex; align-items: center; gap: 10px;
}
.cta-final .meta-hint .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--black);
}

/* ---------- FOOTER ---------- */
footer.card.black {
  padding: clamp(64px, 9vh, 112px) clamp(32px, 6vw, 100px) clamp(28px, 3.5vw, 44px);
  background: var(--black);
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: clamp(40px, 5vw, 96px); align-items: flex-start;
}
.foot-top .talk {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); margin-bottom: 24px;
}
.foot-top a.mail {
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 500; letter-spacing: -0.025em;
  display: inline-block; color: var(--white);
  line-height: 1.15;
}
.foot-top .menu {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px; font-weight: 500;
}
.foot-top .menu a { color: rgba(255, 255, 255, 0.7); align-self: flex-start; opacity: 1; }
.foot-top .menu a:hover { color: var(--white); }
.foot-logo {
  display: block;
  width: 100%;
  max-width: clamp(80px, 8vw, 120px);
  height: auto;
  color: var(--white);
  margin: 0 auto clamp(28px, 3.5vh, 48px);
}
.foot-bottom {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 16px; padding-top: clamp(28px, 3.5vh, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-bottom p {
  font-size: 12.5px; color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.01em;
}

/* ---------- Reveal ---------- */
[data-reveal] { transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
  transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal][data-hidden="1"] {
  opacity: 0; transform: translateY(28px); will-change: opacity, transform;
}

/* ---------- Hero headline word reveal ---------- */
h1.headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
h1.headline.shown .word {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hover refinado nos cases ---------- */
@media (hover: hover) {
  .case {
    transition:
      transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1),
      box-shadow 0.42s cubic-bezier(0.2, 0.7, 0.2, 1),
      border-color 0.42s ease;
  }
  .case:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 14, 14, 0.16);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.07);
  }
}

/* ---------- Botão hover mais elegante ---------- */
.btn {
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.28s ease,
    background 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.yellow:hover {
  box-shadow: 0 16px 36px rgba(255, 212, 0, 0.28);
}
.btn:not(.yellow):not(.outline):hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

/* Reduz animações pra quem prefere */
@media (prefers-reduced-motion: reduce) {
  h1.headline .word,
  [data-reveal],
  .case,
  .btn {
    transition: none !important;
  }
  h1.headline .word { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* ---------- Tablet (≤ 880px) ---------- */
@media (max-width: 880px) {
  :root {
    --pad-y: clamp(80px, 11vh, 120px);
    --pad-y-tight: clamp(64px, 9vh, 96px);
    --gap-cards: 14px;
  }
  nav.top .links .nav-group,
  nav.floating .inner .links .nav-group { display: none; }
  nav.top { padding: 22px var(--pad-x); }
  nav.floating .inner { padding: 12px 24px; }

  .problema-grid { grid-template-columns: 1fr; gap: 32px; }
  .passo {
    grid-template-columns: auto 1fr;
    gap: 28px clamp(24px, 4vw, 40px);
    padding: 44px 0;
  }
  .passo .num { font-size: clamp(48px, 11vw, 80px); }
  .passo p { grid-column: 1 / -1; max-width: 100%; }

  .prova-intro { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ---------- Mobile (≤ 600px) ---------- */
@media (max-width: 600px) {
  :root {
    --pad-x: 28px;
    --pad-y: 88px;
    --pad-y-tight: 64px;
    --gap-cards: 14px;
    --radius-card: 26px;
  }

  /* Tipografia mais compacta porém com respiro */
  h1.headline { font-size: clamp(36px, 9vw, 56px); letter-spacing: -0.03em; }
  h2.section-title { font-size: clamp(26px, 6.8vw, 38px); }
  .lead-sub, p.lead { font-size: 16px; line-height: 1.55; }

  .section-mark { margin-bottom: 44px; gap: 18px; }
  .section-mark .label { font-size: 11px; letter-spacing: 0.18em; }

  /* Hero */
  nav.top { padding: 20px var(--pad-x); }
  .brand .word { font-size: 17px; }
  .hero-body { gap: 48px; padding: 44px var(--pad-x) 56px; }
  .hero-tag { font-size: 11px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 36px; }
  .hero-sub { font-size: 16px; line-height: 1.55; }

  /* Ribbon */
  .ribbon { padding: 56px 28px; }
  .ribbon-grid { gap: 48px; }
  .kpi { gap: 14px; }
  .kpi .num { font-size: clamp(44px, 12vw, 64px); }
  .kpi .label { font-size: 14px; }
  .ribbon-close { font-size: 18px; padding-top: 36px; margin-top: 36px; }

  /* Problema */
  .problema-grid > div:first-child { display: none; }
  .problema-grid > div:last-child h2 { margin-bottom: 28px !important; }

  /* Pull quote */
  .pullquote { padding: 72px 28px; }
  .pullquote p { font-size: 23px; max-width: 22ch; }
  .pullquote::before, .pullquote::after { display: none; }

  /* Diferença / compare */
  .dif-headline-block { margin-bottom: 40px !important; }
  .dif-body { gap: 36px; }
  .compare { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .compare .col {
    border-right: none;
    border-bottom: 1px solid rgba(14, 14, 14, 0.12);
    padding: 32px 0;
  }
  .compare .col:last-child { border-bottom: none; padding-bottom: 0; }
  .compare .col:first-child { padding-top: 0; }
  .compare ul { gap: 22px; }

  /* Como funciona / Passos */
  .passos { margin-top: 48px; }
  .passo {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 40px 0;
  }
  .passo .num { font-size: 60px; line-height: 0.85; margin-bottom: 4px; }
  .passo h3 { font-size: 22px; }
  .passo p { font-size: 16px; line-height: 1.6; }

  /* Prova / cases */
  .prova-intro { gap: 20px; margin-bottom: 44px; }
  .prova-intro p.helper { font-size: 14px; }
  .cases { gap: 28px; }
  .case { padding: 36px 28px; }
  .case-tag { margin-bottom: 24px; font-size: 11px; }
  .case-big {
    font-size: clamp(40px, 13vw, 64px);
    gap: 12px;
    margin-bottom: 28px;
  }
  .case-big .from { font-size: 0.5em; }
  .case-big .arrow { font-size: 0.35em; }
  .case-headline { font-size: 18px; margin-bottom: 28px; line-height: 1.3; }
  .case-context { font-size: 15px; margin-bottom: 36px; line-height: 1.6; }
  .case-cols { grid-template-columns: 1fr; gap: 36px; margin-bottom: 36px; }
  .case-col h4 { font-size: 11px; margin-bottom: 20px; }
  .case-col ul, .case-block ul { gap: 18px; }
  .case-col li, .case-block li { font-size: 15px; line-height: 1.5; }
  .case-block-label { font-size: 11px; margin-bottom: 18px; }
  .case-block { margin-bottom: 32px; }
  .case-result { padding-top: 28px; }
  .case-result p { font-size: 16px; }

  /* Por que Patamar */
  .pilares { gap: 36px; margin-top: 40px; }
  .pilar { padding-top: 28px; }
  .pilar strong { font-size: 20px; margin-bottom: 14px; }
  .pilar p { font-size: 15px; }

  /* CTA Final */
  .cta-final h2 { font-size: clamp(30px, 8vw, 42px); }
  .cta-final p { font-size: 16px; margin: 28px 0 36px; line-height: 1.55; }
  .btn.huge { font-size: 14.5px; padding: 17px 28px; }
  .btn.big { font-size: 14.5px; padding: 16px 26px; }

  /* Footer */
  footer.card.black { padding: 64px 28px 32px; }
  .foot-bottom { flex-direction: column; gap: 14px; align-items: center; text-align: center; padding-top: 24px; }
  .foot-logo { max-width: 100px; margin: 0 auto 40px; }
}

/* ---------- Mobile pequeno (≤ 420px) ---------- */
@media (max-width: 420px) {
  :root {
    --pad-x: 22px;
    --pad-y: 72px;
    --gap-cards: 12px;
  }
  h1.headline { font-size: 34px; }
  h2.section-title { font-size: 24px; }
  .section-mark { margin-bottom: 36px; }
  .hero-body { gap: 40px; padding: 36px var(--pad-x) 44px; }
  .ribbon { padding: 48px 22px; }
  .ribbon-grid { gap: 40px; }
  .kpi .num { font-size: 48px; }
  .pullquote { padding: 56px 22px; }
  .pullquote p { font-size: 21px; }
  .case { padding: 28px 22px; }
  .case-big { font-size: 38px; }
  .case-headline { font-size: 17px; }
  .lead-form-wrap, .lead-success { padding: 26px 20px; }
  .radio-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MODAL — Pré-diagnóstico
   ============================================================ */
.lead-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: clamp(420px, 60vw, 580px);
  width: calc(100% - 32px);
  color: var(--white);
  margin: auto;
  max-height: calc(100vh - 32px);
  overflow: visible;
}
.lead-dialog::backdrop {
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@keyframes lead-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lead-dialog[open] .lead-form-wrap,
.lead-dialog[open] .lead-success {
  animation: lead-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lead-form-wrap, .lead-success {
  background: var(--black);
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: clamp(20px, 2vw, 28px);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.lead-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(245, 241, 232, 0.06);
  border: 1px solid rgba(245, 241, 232, 0.08);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 1;
  line-height: 0;
}
.lead-close:hover {
  background: rgba(245, 241, 232, 0.12);
  transform: rotate(90deg);
}

.lead-head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
}
.lead-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead-title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.lead-sub {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.65);
  font-weight: 400;
  max-width: 42ch;
}

.lead-form { display: flex; flex-direction: column; gap: 16px; }

/* Honeypot: invisível pra usuários, presente no DOM pra bots cair */
.honeypot {
  position: absolute;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label,
.field > legend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  padding: 0;
}
.field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.65;
  font-size: 12px;
  margin-left: 4px;
}
.field input[type="text"],
.field input[type="tel"],
.field textarea {
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 15px;
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(245, 241, 232, 0.06);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 241, 232, 0.32);
}
.field textarea { resize: vertical; min-height: 72px; line-height: 1.4; }

.field-radio { border: none; }
.field-radio legend { margin-bottom: 12px; }
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.radio {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(245, 241, 232, 0.85);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.radio:hover {
  background: rgba(245, 241, 232, 0.07);
}
.radio:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 212, 0, 0.1);
  color: var(--white);
}
.radio input { accent-color: var(--accent); flex: none; }

.form-error {
  font-size: 13px;
  color: #ff8a8a;
  background: rgba(255, 138, 138, 0.08);
  border: 1px solid rgba(255, 138, 138, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
}
.form-hint {
  font-size: 12.5px;
  color: rgba(245, 241, 232, 0.45);
  text-align: center;
  margin-top: -4px;
}

.submit-btn {
  width: 100%;
  justify-content: center;
  padding: 15px 26px !important;
  font-size: 14.5px;
  margin-top: 4px;
}
.submit-btn[disabled] { opacity: 0.55; cursor: wait; }

.lead-success {
  text-align: center;
  padding: clamp(48px, 6vw, 72px) clamp(28px, 4vw, 48px);
}
.lead-success .success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.lead-success .lead-title { margin-bottom: 16px; }
.lead-success .lead-sub {
  margin: 0 auto 32px;
  max-width: 38ch;
}
.lead-success .btn { display: inline-flex; }

@media (max-width: 540px) {
  .lead-dialog { width: calc(100% - 16px); }
  .lead-form-wrap, .lead-success { padding: 24px 20px; }
  .radio-grid { grid-template-columns: 1fr; }
  .lead-head { margin-bottom: 20px; padding-bottom: 18px; }
}
