/* Camada visual profissional + interações GSAP
   i9 Consultoria — preserva a estrutura original e melhora hierarquia, ritmo e acabamento. */

:root {
  --i9-navy: #000322;
  --i9-navy-2: #07112e;
  --i9-ink: #000322;
  --i9-gold: #ffb900;
  --i9-gold-soft: #ffd45c;
  --i9-paper: #f4f7fb;
  --i9-line: #dce3ed;
  --i9-muted: #46546a;
  --i9-white: #ffffff;
  --i9-shadow: 0 24px 70px rgba(6, 21, 45, 0.14);
}

html {
  scroll-padding-top: 112px;
}

body {
  background: var(--i9-paper);
  color: var(--i9-ink);
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.012em;
  overflow-x: hidden;
}

::selection {
  color: var(--i9-navy);
  background: rgba(255, 183, 14, 0.72);
}

body.site-enhanced::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--i9-gold), var(--i9-gold-soft));
  box-shadow: 0 0 18px rgba(255, 183, 14, 0.45);
  pointer-events: none;
}

.shell {
  width: min(1260px, calc(100% - 64px));
}

/* Navegação flutuante, com acabamento de produto premium */
.nav.shell {
  position: relative;
  z-index: 4;
  isolation: isolate;
  width: min(1260px, calc(100% - 64px));
  height: 86px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav.shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: rgba(248, 250, 255, 0.98);
  border-bottom: 1px solid rgba(7, 22, 44, 0.1);
  box-shadow: 0 3px 14px rgba(6, 21, 45, 0.035);
  pointer-events: none;
}

.nav.shell.is-scrolled {
  background: transparent;
  box-shadow: none;
}

.nav-links {
  gap: 34px;
}

.nav-links a {
  position: relative;
  color: #30405a;
  font-size: 14px;
  font-weight: 680;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-links a:hover {
  color: var(--i9-navy);
  background: rgba(6, 21, 45, 0.055);
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--i9-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 12px;
  box-shadow: none;
}

/* Hero editorial: menos “template”, mais contraste e espaço */
.hero {
  min-height: 940px;
  padding-top: 0;
  padding-bottom: 54px;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 183, 14, 0.13), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(32, 86, 153, 0.28), transparent 36%),
    linear-gradient(145deg, #000322 0%, #02082a 58%, #06133c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 78%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 183, 14, 0.12), transparent 25%),
    radial-gradient(circle at 92% 70%, rgba(52, 109, 182, 0.24), transparent 33%);
  pointer-events: none;
}

.hero-grid {
  min-height: 720px;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-copy {
  max-width: 720px;
  padding: 90px 0 125px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9b6900;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.hero .eyebrow { color: var(--i9-gold); }

.hero h1 {
  max-width: 700px;
  margin-top: 22px;
  color: #fff;
  font-size: clamp(52px, 5.2vw, 79px);
  line-height: 0.99;
  letter-spacing: -0.062em;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 610px;
  color: #c1ccdc;
  font-size: 19px;
  line-height: 1.7;
}

.primary-button {
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid rgba(7, 22, 44, 0.08);
  border-radius: 13px;
  background: var(--i9-gold);
  box-shadow: 0 14px 30px rgba(255, 183, 14, 0.24);
  font-weight: 780;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  will-change: transform;
}

.primary-button:hover {
  background: #ffc536;
  box-shadow: 0 18px 36px rgba(255, 183, 14, 0.34);
}

.hero .primary-button + .safe-note {
  margin-top: 28px;
}

.safe-note {
  color: #c3cedd;
}

.diagnosis-card {
  width: min(100%, 520px);
  margin: 42px 0 42px auto;
  padding: 31px;
  position: relative;
  z-index: 4;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(15, 43, 82, 0.94), rgba(4, 19, 43, 0.96));
  box-shadow: 0 36px 90px rgba(1, 9, 23, 0.42);
  transform-style: preserve-3d;
  will-change: transform;
}

.diagnosis-card::before {
  content: "";
  position: absolute;
  inset: -80% -45%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.1) 48%, transparent 58%);
  transform: translateX(-45%) rotate(8deg);
  pointer-events: none;
}

.diagnosis-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 86% 8%, rgba(255, 183, 14, 0.16), transparent 32%);
  pointer-events: none;
}

.card-top,
.simulator-hint,
.money-row,
.result-row,
.clarity {
  position: relative;
  z-index: 1;
}

.live-dot {
  color: var(--i9-gold) !important;
  border-color: rgba(255, 183, 14, 0.28);
  background: rgba(255, 183, 14, 0.06);
}

.money-row {
  min-height: 58px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.money-row:focus-within {
  border-color: rgba(255, 183, 14, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 183, 14, 0.09);
}

.input-money b {
  color: var(--i9-gold);
}

.result-row {
  border-radius: 13px;
  background: linear-gradient(120deg, rgba(15, 53, 96, 0.96), rgba(19, 66, 113, 0.72));
}

.ring span,
.clarity svg {
  color: var(--i9-gold);
}

.trust-strip {
  margin-top: -16px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 18px 55px rgba(1, 9, 23, 0.22);
  backdrop-filter: blur(10px);
}

.trust-strip > div {
  min-height: 92px;
}

.trust-strip svg {
  color: var(--i9-gold);
}

.trust-strip > div + div { border-color: rgba(255, 255, 255, 0.13); }
.trust-strip small { color: #b9c7da; }

/* Elementos monetários editoriais, usados com parallax no scroll */
.currency-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.currency-watermark {
  position: absolute;
  right: -0.03em;
  bottom: -0.23em;
  color: rgba(255, 255, 255, 0.028);
  font-size: clamp(260px, 35vw, 570px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.1em;
}

.currency-note {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 172px;
  height: 86px;
  padding: 15px 17px;
  color: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(5px);
}

.currency-note::before,
.currency-note::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 183, 14, 0.38);
  border-radius: 50%;
}

.currency-note::before { top: 9px; left: 9px; }
.currency-note::after { right: 9px; bottom: 9px; }
.currency-note i { color: var(--i9-gold); font-style: normal; font-weight: 850; }
.currency-note b { font-size: 12px; letter-spacing: .08em; }
.currency-note.note-a { top: 18%; right: 4%; transform: rotate(7deg); }
.currency-note.note-b { right: 32%; bottom: 10%; transform: rotate(-9deg) scale(.88); }
.currency-note.note-c { top: 46%; right: -4%; transform: rotate(13deg) scale(.72); }

/* Seção de dor: um único painel, sem a aparência de três cards genéricos */
.section-pad {
  padding: 124px 0;
}

.reality {
  background: #fff;
}

.split-heading {
  gap: 100px;
}

.split-heading h2,
.how h2,
.documents h2,
.triage h2,
.faq h2,
.closing h2 {
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.split-heading > p {
  color: var(--i9-muted);
}

.pain-grid {
  gap: 0;
  margin-top: 62px;
  overflow: hidden;
  border: 1px solid var(--i9-line);
  border-radius: 18px;
  background: var(--i9-line);
}

.pain-grid article {
  min-height: 286px;
  padding: 34px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: color 260ms ease, background 260ms ease;
}

.pain-grid article + article {
  border-left: 1px solid var(--i9-line);
}

.pain-grid article:is(:hover, .is-active) {
  color: #fff;
  background: var(--i9-navy);
  box-shadow: none;
  transform: none;
}

.pain-grid article:is(:hover, .is-active) p { color: #b7c2d2; }
.pain-grid article:is(:hover, .is-active) span { color: var(--i9-gold); }
.pain-grid span { color: #9b6900; }
.pain-grid h3 { margin-top: 62px; font-size: 24px; letter-spacing: -.025em; }
.pain-grid p { color: var(--i9-muted); }

/* Centro da experiência: narrativa financeira acompanhando os passos */
.how {
  color: #fff;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 183, 14, .10), transparent 22%),
    linear-gradient(155deg, #02082a, #000322 58%, #06133c);
  position: relative;
  overflow: clip;
}

.how::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -22%;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012);
  pointer-events: none;
}

.how-grid {
  grid-template-columns: .88fr 1.12fr;
  gap: 100px;
  position: relative;
  z-index: 2;
}

.how-intro {
  top: 118px;
}

.how-intro .eyebrow,
.dark-panel .eyebrow {
  color: var(--i9-gold);
}

.how-intro > p {
  color: #aeb9ca;
}

.text-link {
  color: var(--i9-gold);
  font-weight: 650;
}

.steps {
  gap: 15px;
}

.steps article {
  min-height: 142px;
  padding: 28px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  opacity: .58;
  transform: scale(.985);
  transition: border-color 240ms ease, background 240ms ease, opacity 240ms ease, transform 240ms ease;
}

.steps article.is-active {
  border-color: rgba(255, 183, 14, 0.44);
  background: linear-gradient(120deg, rgba(255, 183, 14, 0.095), rgba(255,255,255,.06));
  opacity: 1;
}

.steps b {
  color: var(--i9-navy);
  border-radius: 10px;
  background: var(--i9-gold);
}

.steps p {
  color: #aeb9ca;
}

.documents .doc-list span {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.documents .doc-list span:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 183, 14, 0.48);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.documents .doc-list svg {
  transition: transform 220ms ease;
}

.documents .doc-list span:hover svg {
  transform: scale(1.12) rotate(-8deg);
}

.triage-trust {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 22px;
  color: #53647c;
  font-size: 13px !important;
  font-weight: 650;
  line-height: 1.5;
}

.triage-trust span {
  flex: none;
  color: var(--i9-gold);
  font-size: 16px;
  line-height: 1.1;
}

.triage-form .conversion-cta {
  width: 100%;
  min-height: 58px;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: .025em;
}

.triage-form .conversion-cta span {
  font-size: 21px;
  line-height: 1;
  transition: transform 220ms ease;
}

.triage-form .conversion-cta:hover span { transform: translateX(4px); }

.triage-form select[aria-invalid="true"] {
  border-color: #c55347;
  box-shadow: 0 0 0 3px rgba(197, 83, 71, 0.12);
}

.triage-error {
  display: none;
  margin: -8px 0 0;
  color: #a43f35;
  font-size: 12px;
  font-weight: 700;
}

.triage-error.is-visible { display: block; }

.conversion-reinforcement {
  margin-top: 4px;
  padding: 22px;
  color: var(--i9-ink);
  border: 1px solid #cdd9e8;
  border-radius: 15px;
  background: #f4f8fd;
}

.conversion-reinforcement strong {
  color: #a66d00;
  font-size: 12px;
  letter-spacing: .11em;
}

.conversion-reinforcement p {
  margin: 10px 0 13px;
  color: var(--i9-muted);
  font-size: 14px;
  line-height: 1.55;
}

.conversion-reinforcement ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}

.conversion-reinforcement li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--i9-gold);
}

.conversion-reinforcement small {
  display: block;
  margin-top: 15px;
  color: #718098;
  font-size: 11px;
  line-height: 1.45;
}

.faq-list summary {
  font-weight: 600;
}

.closing .primary-button {
  text-transform: uppercase;
}

.mini-chart span {
  top: auto;
  right: 0;
  bottom: 100%;
  margin-bottom: 10px;
  padding: 5px 8px;
  color: #a66d00;
  border-radius: 999px;
  background: #fff7df;
  font-size: 11px;
  line-height: 1;
}

.money-flow {
  margin: 32px 0 4px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}

.flow-head,
.flow-summary,
.flow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.flow-head {
  margin-bottom: 15px;
  color: #c8d1df;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.flow-head span:last-child {
  padding: 5px 8px;
  color: var(--i9-gold);
  border: 1px solid rgba(255, 183, 14, .24);
  border-radius: 99px;
  background: rgba(255, 183, 14, .06);
  letter-spacing: .08em;
}

.flow-summary span,
.flow-footer span {
  color: #9eabba;
  font-size: 12px;
}

.flow-summary strong {
  color: #fff;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.money-lane {
  height: 165px;
  margin: 14px 0 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255,183,14,.045) 0 50%, rgba(255,255,255,.025) 50%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.025) 40px);
}

.money-lane::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,.08);
}

.lane-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  color: #8391a5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lane-label.income { left: 12px; }
.lane-label.commitments { right: 12px; }

.flow-note {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 57px;
  height: 33px;
  margin: -16px 0 0 -28px;
  color: #14233b;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 7px;
  background: linear-gradient(140deg, var(--i9-gold-soft), var(--i9-gold));
  box-shadow: 0 8px 16px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 900;
  will-change: transform, opacity;
}

.flow-note::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(7,22,44,.18);
  border-radius: 4px;
}

.flow-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.09);
}

.flow-meter i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--i9-gold), var(--i9-gold-soft));
  transform-origin: left;
}

.flow-footer {
  margin-top: 11px;
}

.flow-footer strong {
  color: var(--i9-gold);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.flow-caption {
  min-height: 40px;
  margin: 13px 0 0;
  color: #aeb9ca;
  font-size: 12px;
  line-height: 1.55;
}

/* Demais seções: bordas e sombras mais contidas */
.documents {
  background: #f7f9fc;
}

.documents-grid {
  gap: 24px;
}

.dark-panel,
.insight-card,
.triage-card {
  border-radius: 18px;
}

.dark-panel {
  background: linear-gradient(145deg, #02082a, #06133c);
  box-shadow: var(--i9-shadow);
}

.doc-list span {
  border-radius: 9px;
}

.doc-list svg {
  color: var(--i9-gold);
}

.insight-card {
  border-color: var(--i9-line);
  box-shadow: 0 16px 45px rgba(6,21,45,.07);
}

.insight-card small {
  color: #9b6900;
}

.mini-chart i {
  transform-origin: center bottom;
}

.mini-chart i:nth-child(4) {
  background: var(--i9-gold);
}

.triage {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,183,14,.12), transparent 23%),
    linear-gradient(#f7f9fc, #eef2f8);
}

.triage-card {
  border-color: var(--i9-line);
  box-shadow: var(--i9-shadow);
}

.triage-form select {
  border-radius: 9px;
  background: #f8faff;
}

.plan-result {
  border-color: rgba(255,183,14,.35);
  background: rgba(255,183,14,.09);
}

.faq-list details {
  border-color: var(--i9-line);
}

.faq-list summary span {
  color: #a26f00;
}

.closing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 130%, rgba(255,183,14,.2), transparent 34%),
    var(--i9-navy);
}

.closing::before {
  content: "R$";
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255,255,255,.025);
  font-size: 440px;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 2;
}

.closing-inner > span {
  color: var(--i9-gold);
}

footer {
  background: #000322;
}

/* Rodapé institucional centralizado */
.i9-footer {
  padding: 21px 0 13px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: #000322;
}

.i9-footer-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.i9-footer-logo {
  display: block;
  width: 270px;
}

.i9-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.i9-footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.i9-social-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--i9-navy);
  border-radius: 50%;
  background: var(--i9-gold);
  color: var(--i9-navy);
}

.i9-social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.i9-social-instagram i {
  position: relative;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.i9-social-instagram i::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.i9-social-instagram i::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.i9-social-youtube i {
  position: relative;
  width: 14px;
  height: 10px;
  border-radius: 3px;
  background: currentColor;
}

.i9-social-youtube i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid var(--i9-gold);
}

.i9-footer p {
  margin: 1px 0 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Estados iniciais somente quando o JavaScript está ativo */
.site-enhanced .gsap-reveal {
  will-change: transform, opacity;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .85fr);
    gap: 42px;
  }

  .hero h1 { font-size: clamp(50px, 6vw, 68px); }
  .how-grid { gap: 64px; }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 34px, 700px); }

  /* As regras de acabamento vêm depois do CSS original; reafirmamos a pilha
     de uma coluna para não comprimir os blocos em telas menores. */
  .split-heading,
  .how-grid,
  .documents-grid,
  .triage-card,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .pain-grid article {
    min-height: 0;
    padding: 30px;
  }

  .pain-grid h3 { margin-top: 30px; }

  .nav.shell {
    width: min(100% - 34px, 700px);
    height: 72px;
    padding: 0;
    border-radius: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
    background:
      radial-gradient(circle at 82% 16%, rgba(255, 183, 14, 0.12), transparent 24%),
      linear-gradient(155deg, #000322, #06133c);
  }

  .hero::after {
    inset: 0;
    clip-path: none;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    max-width: none;
    padding: 74px 0 58px;
  }

  .diagnosis-card {
    width: 100%;
    max-width: 620px;
    margin: 36px auto 58px;
    justify-self: center;
  }

  .currency-note.note-a { top: 58%; right: 3%; }
  .currency-note.note-b { right: 56%; bottom: 5%; }
  .currency-note.note-c { top: 77%; right: -8%; }
  .currency-watermark { bottom: -.05em; }

  .trust-strip { margin-top: 0; }
  .section-pad { padding: 86px 0; }

  .pain-grid article + article {
    border-top: 1px solid var(--i9-line);
    border-left: 0;
  }

  .how-grid { gap: 45px; }
  .how-intro { position: static; }
  .money-flow { max-width: 620px; }

  .steps article {
    min-height: 0;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  html { scroll-padding-top: 88px; }
  .shell { width: min(100% - 26px, 700px); }

  .brand { width: 146px; }
  .nav-contact { min-height: 42px; padding-inline: 12px; }

  .hero-copy { padding-top: 58px; }
  .hero h1 { font-size: clamp(42px, 13vw, 57px); }
  .hero-copy > p { font-size: 17px; }
  .diagnosis-card { padding: 21px 17px; }
  .currency-note { display: none; }

  .section-pad { padding: 70px 0; }
  .split-heading h2,
  .how h2,
  .documents h2,
  .triage h2,
  .faq h2 { font-size: 39px; }

  .pain-grid { border-radius: 13px; }
  .pain-grid article { min-height: 0; padding: 27px 23px; }
  .pain-grid h3 { margin-top: 32px; }
  .mini-chart span {
    margin-bottom: 10px;
  }

  .money-flow { padding: 16px; }
  .money-lane { height: 150px; }
  .flow-note { width: 50px; height: 30px; margin: -15px 0 0 -25px; }

  .steps article { padding: 22px 18px; }
  .dark-panel, .insight-card, .triage-card { border-radius: 14px; }
}

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

  .currency-note { display: none; }
  .diagnosis-card { transform: none !important; }
}

/* Posição estática de segurança caso a biblioteca externa não carregue. */
.flow-note[data-note="0"] { transform: translate(-96px, -38px) rotate(-8deg); }
.flow-note[data-note="1"] { transform: translate(-79px, -38px) rotate(-6deg); }
.flow-note[data-note="2"] { transform: translate(-62px, -38px) rotate(-4deg); }
.flow-note[data-note="3"] { transform: translate(-45px, -38px) rotate(-2deg); }
.flow-note[data-note="4"] { transform: translate(-96px, 7px) rotate(0deg); }
.flow-note[data-note="5"] { transform: translate(-79px, 7px) rotate(2deg); }
.flow-note[data-note="6"] { transform: translate(-62px, 7px) rotate(4deg); }
.flow-note[data-note="7"] { transform: translate(-45px, 7px) rotate(6deg); }
.motion-fallback .steps article:first-child { opacity: 1; border-color: rgba(255,183,14,.44); }

/* Ajustes de leitura para telas de bolso. Mantém os gatilhos no JavaScript intactos. */
@media (max-width: 520px) {
  .nav.shell {
    height: 70px;
  }

  .nav-contact {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    min-height: 0;
    padding-bottom: 38px;
  }

  .hero-grid { min-height: 0; }

  .hero-copy {
    padding-top: 54px;
    padding-bottom: 40px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: 39px;
  }

  .hero-copy > p {
    line-height: 1.6;
  }

  .hero .primary-button {
    width: 100%;
    justify-content: center;
  }

  .diagnosis-card {
    margin-top: 18px;
    margin-bottom: 34px;
  }

  .hero-copy .diagnosis-card {
    margin-top: 26px;
    margin-bottom: 30px;
  }

  .safe-note { line-height: 1.45; }

  .money-flow { margin-top: 26px; }

  .flow-summary strong { font-size: 23px; }

  .flow-caption { min-height: 0; }

  .dark-panel { padding: 30px 22px; }

  .doc-list { gap: 10px; }

  .doc-list span {
    min-height: 78px;
    align-items: flex-start;
    padding: 14px 12px;
    line-height: 1.4;
  }

  .insight-card { padding: 30px 24px; }

  .mini-chart {
    margin-top: 56px;
  }

  .mini-chart span {
    right: 0;
    max-width: calc(100% - 58px);
    margin-bottom: 8px;
    font-size: 10px;
    white-space: nowrap;
  }

  .triage-card { padding: 28px 20px; }

  .triage-form .conversion-cta {
    min-height: 60px;
    padding-inline: 16px;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
  }

  .conversion-reinforcement { padding: 19px 17px; }

  .faq-list summary {
    gap: 14px;
    padding-block: 20px;
    font-size: 16px;
    line-height: 1.42;
  }

  .faq-list p { margin-right: 0; }

  .closing { padding: 72px 0; }

  .closing::before { font-size: 300px; }
}

@media (max-width: 360px) {
  .shell,
  .nav.shell { width: min(100% - 24px, 700px); }

  .brand { width: 126px; }

  .nav-contact {
    min-width: 112px;
    padding-inline: 10px;
    font-size: 0;
    justify-content: center;
  }

  .nav-contact::before {
    content: "FALAR";
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
  }

  .hero h1 { font-size: 39px; }

  .hero .primary-button {
    gap: 12px;
    min-height: 54px;
    padding-inline: 16px;
    font-size: 15px;
    white-space: nowrap;
  }

  .hero .primary-button svg { width: 18px; }

  .diagnosis-card { padding: 19px 15px; }

  .card-top strong { font-size: 21px; }

  .result-row { gap: 15px; }

  .ring {
    width: 70px;
    height: 70px;
  }

  .ring span { font-size: 20px; }

  .flow-note {
    width: 46px;
    height: 29px;
    margin: -14px 0 0 -23px;
    font-size: 9px;
  }

  .flow-summary strong { font-size: 21px; }

  .triage-form .conversion-cta { font-size: 12px; }
}

@media (max-width: 600px) {
  footer .footer-grid {
    justify-items: center;
    gap: 22px;
    text-align: center;
  }

  footer .footer-grid > div:first-child {
    justify-content: center;
  }

  footer .footer-grid > div:last-child {
    flex-direction: row;
    justify-content: center;
    gap: 22px;
  }

  .triage h2 {
    font-size: 39px;
  }

  .how-grid > .money-flow {
    width: 100%;
    max-width: none;
    margin: -12px 0 0;
  }

  .how-grid > .text-link {
    margin-top: -22px;
  }
}

/* Navegação integrada ao hero, com contraste de marca para fundo escuro. */
.nav.shell::before {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav .brand {
  background-image: url("./i9-consultoria.png");
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--i9-gold);
  background: rgba(255, 183, 14, 0.08);
}

.nav-links a::after {
  bottom: -8px;
}

.nav-contact {
  color: var(--i9-navy);
  border-color: var(--i9-gold);
  background: var(--i9-gold);
}

@media (max-width: 600px) {
  .nav .brand {
    background-image: url("./i9-consultoria.png");
  }
}

/* Contraste e legibilidade reforçados para leitura confortável. */
.triage-copy p,
.faq-grid > div:first-child p,
.faq-list p {
  color: #3d4c63;
}

.triage-copy p {
  font-size: 18px;
  line-height: 1.68;
}

.triage-form label {
  color: #17243b;
  font-size: 15px;
}

.triage-form select {
  color: #000322;
  font-size: 15px;
  font-weight: 650;
}

.faq-list summary {
  color: #000322;
  font-size: 19px;
  font-weight: 650;
}

.faq-list p {
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .triage-copy p { font-size: 17px; }

  .hero .primary-button {
    min-height: 60px;
    padding-inline: 18px;
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .faq-list summary { font-size: 17px; }

  .faq-list p { font-size: 16px; }
}


/* Correção definitiva dos campos monetários em smartphones. */
.money-row,
.input-money,
.input-money input {
  pointer-events: auto !important;
}

.money-row {
  position: relative;
  z-index: 20;
  cursor: text;
  touch-action: auto;
  -webkit-tap-highlight-color: rgba(255, 185, 0, 0.16);
}

.input-money {
  position: relative;
  z-index: 30;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  touch-action: auto;
}

.input-money input {
  position: relative;
  z-index: 40;
  display: block;
  width: 155px;
  min-width: 115px;
  min-height: 50px;
  margin: -9px 0;
  padding: 9px 0;
  border: 0;
  outline: 0;
  font-size: 16px !important;
  line-height: 1.2;
  cursor: text;
  touch-action: auto !important;
  -webkit-user-select: auto !important;
  user-select: auto !important;
  -webkit-appearance: none;
  appearance: none;
  caret-color: var(--i9-gold);
}

.input-money input:focus {
  outline: none;
}

@media (max-width: 600px) {
  .money-row {
    min-height: 66px;
    gap: 10px;
  }

  .money-row > span:first-child {
    flex: 0 1 auto;
  }

  .input-money {
    min-width: 145px;
  }

  .input-money input {
    width: min(170px, 47vw);
    min-width: 118px;
    min-height: 54px;
  }
}
