:root {
  --ink: #17201D;
  --muted: #68736F;
  --paper: #F7FAF8;
  --surface: #FFFFFF;
  --line: #D8E6DE;
  --green-950: #031F1B;
  --green-900: #063B32;
  --green-800: #075246;
  --green-700: #0F766E;
  --green-600: #0D9488;
  --green-500: #10B981;
  --green-100: #DDF7EC;
  --green-50: #EFFCF6;
  --shadow: 0 24px 70px rgba(6, 59, 50, 0.12);
  --radius: 28px;
  --max: 1180px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.theme-loading * {
  transition: none !important;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  height: 4px;
  background: var(--green-600);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    transform: scaleX(0);
    animation: progress linear both;
    animation-timeline: scroll(root block);
  }

  @keyframes progress {
    to { transform: scaleX(1); }
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  backdrop-filter: blur(18px);
  transition: box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: 0 14px 40px rgba(6, 59, 50, 0.08);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-900);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:not(.nav-cta) {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--green-700);
  transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta,
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.nav-cta,
.btn.primary {
  color: white;
  background: var(--green-900);
  box-shadow: 0 16px 36px rgba(6, 59, 50, 0.18);
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  color: var(--green-900);
  background: transparent;
  border: 1px solid var(--line);
}

.btn.full {
  width: 100%;
}

.theme-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-900);
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
}

.theme-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green-800);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--green-900);
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 42px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.76fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-700);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.section-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 6.4vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
  color: var(--green-950);
  margin-bottom: 28px;
}

.hero-copy > p:not(.section-kicker) {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 26px;
}

.hero-note {
  max-width: 540px;
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 3px solid var(--green-600);
}

.hero-note strong {
  color: var(--green-900);
}

.hero-note span {
  color: var(--muted);
}

.hero-media {
  position: relative;
}

.image-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: var(--green-100);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.02);
}

.rate-stamp {
  position: absolute;
  left: -44px;
  bottom: 34px;
  width: 214px;
  min-height: 214px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 999px;
  color: white;
  background: var(--green-900);
  box-shadow: 0 26px 50px rgba(6, 59, 50, 0.24);
}

.rate-compare-stamp div {
  display: grid;
  gap: 1px;
}

.rate-stamp span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.58rem;
  line-height: 1.15;
  font-weight: 900;
  opacity: 0.78;
}

.rate-stamp strong {
  font-size: 2.05rem;
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.rate-stamp small {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.86;
}

.rate-stamp hr {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-bottom {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-bottom div {
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-bottom div:not(:last-child) {
  border-right: 1px solid var(--line);
}

.hero-bottom span {
  color: var(--green-700);
  font-weight: 900;
  font-size: 0.82rem;
}

.hero-bottom p {
  color: var(--green-950);
  font-weight: 800;
}

.rate-section,
.guidance-section,
.warning-section,
.process-section,
.form-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.section-title h2,
.warning-card h2,
.form-intro h2 {
  color: var(--green-950);
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.section-text p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 680px;
}

.rate-board {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rate-board article {
  padding: clamp(28px, 5vw, 52px);
}

.rate-board article span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.rate-board article strong {
  display: block;
  color: var(--green-950);
  font-size: clamp(3.2rem, 6.2vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.09em;
  margin: 14px 0;
}

.rate-board article p,
.fine-print {
  color: var(--muted);
}

.featured-rate {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
}

.featured-rate span,
.featured-rate strong,
.featured-rate p {
  color: white !important;
}

.rate-divider {
  width: 1px;
  background: var(--line);
}

.fine-print {
  margin-top: 18px;
  font-size: 0.92rem;
}

.editorial-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.editorial-list article {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.editorial-list span {
  color: var(--green-900);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.editorial-list p {
  color: var(--muted);
  font-size: 1.02rem;
}

.warning-card {
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  border-radius: 38px;
  color: white;
  background:
    radial-gradient(circle at 92% 12%, rgba(16, 185, 129, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(3, 31, 27, 0.97), rgba(6, 59, 50, 0.97));
  box-shadow: var(--shadow);
}

.warning-card .section-kicker,
.warning-card h2 {
  color: white;
}

.warning-points {
  display: grid;
  gap: 14px;
}

.warning-points p {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
}

.warning-points strong {
  color: #DDF7EC;
}

.process-steps {
  display: grid;
  gap: 18px;
}

.process-steps article {
  display: grid;
  grid-template-columns: 68px 0.85fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.process-steps span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green-900);
  border-radius: 18px;
  font-weight: 900;
}

.process-steps h3 {
  color: var(--green-950);
  font-size: 1.18rem;
}

.process-steps p {
  color: var(--muted);
}

.form-shell {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 42px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-intro p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 18px 0 22px;
}

.contact-line {
  display: inline-flex;
  color: var(--green-900);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.lead-form {
  display: grid;
  gap: 18px;
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form label span {
  display: flex;
  justify-content: space-between;
  color: var(--green-900);
  font-weight: 900;
}

.lead-form em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.lead-form input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.lead-form input:focus {
  outline: 0;
  border-color: var(--green-700);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.lead-form label.has-error input {
  border-color: #DC2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.error-message {
  min-height: 18px;
  color: #DC2626;
  font-size: 0.84rem;
  font-weight: 800;
}

.form-note {
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.success-message {
  display: none;
  padding: 14px;
  color: #065F46;
  background: var(--green-100);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  font-weight: 900;
}

.success-message.show {
  display: block;
}

.site-footer {
  padding: 64px 0 28px;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid,
.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.1fr;
  gap: 42px;
}

.footer-brand {
  color: white;
  margin-bottom: 14px;
}

.site-footer h3 {
  color: white;
  margin-bottom: 12px;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  color: white;
  font-weight: 800;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: white;
  background: var(--green-700);
  box-shadow: 0 18px 42px rgba(6, 59, 50, 0.22);
  font-weight: 900;
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-3px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: reveal-by-view linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 30%;
  }

  @keyframes reveal-by-view {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@supports (view-transition-name: none) {
  :root { view-transition-name: site-root; }
  .brand { view-transition-name: brand; }
  .image-frame { view-transition-name: hero-image; }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 280ms;
    animation-timing-function: ease;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E5F4EE;
  --muted: #A2BDB2;
  --paper: #031F1B;
  --surface: #082A25;
  --line: rgba(221, 247, 236, 0.14);
  --green-950: #E5F4EE;
  --green-900: #DDF7EC;
  --green-800: #B6F1DA;
  --green-700: #34D399;
  --green-600: #10B981;
  --green-500: #10B981;
  --green-100: rgba(16, 185, 129, 0.14);
  --green-50: #052E2B;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .site-header {
  background: rgba(3, 31, 27, 0.86);
}

html[data-theme="dark"] .nav-links,
html[data-theme="dark"] .section-text p,
html[data-theme="dark"] .editorial-list p,
html[data-theme="dark"] .process-steps p,
html[data-theme="dark"] .form-intro p,
html[data-theme="dark"] .fine-print,
html[data-theme="dark"] .hero-copy > p:not(.section-kicker),
html[data-theme="dark"] .hero-note span,
html[data-theme="dark"] .rate-board article p {
  color: var(--muted);
}

html[data-theme="dark"] .featured-rate {
  background: linear-gradient(135deg, #064E3B, #047857);
}

html[data-theme="dark"] .lead-form input {
  color: var(--ink);
  background: rgba(3, 31, 27, 0.66);
}

html[data-theme="dark"] .lead-form input::placeholder {
  color: rgba(162, 189, 178, 0.7);
}

html[data-theme="dark"] .btn.ghost,
html[data-theme="dark"] .theme-toggle {
  background: var(--surface);
}

html[data-theme="dark"] .btn.primary,
html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .process-steps span {
  color: #031F1B;
  background: #34D399;
}

html[data-theme="dark"] .rate-stamp {
  color: #031F1B;
  background: #34D399;
}

html[data-theme="dark"] .rate-stamp hr {
  border-top-color: rgba(3, 31, 27, 0.22);
}

html[data-theme="dark"] .rate-stamp span,
html[data-theme="dark"] .rate-stamp small {
  color: rgba(3, 31, 27, 0.78);
}

@media (max-width: 980px) {
  .hero-layout,
  .section-grid,
  .warning-card,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 850px;
  }

  .hero-media {
    max-width: 520px;
  }

  .rate-stamp {
    left: auto;
    right: -18px;
  }

  .rate-board {
    grid-template-columns: 1fr;
  }

  .rate-divider {
    width: 100%;
    height: 1px;
  }

  .process-steps article {
    grid-template-columns: 54px 1fr;
  }

  .process-steps p {
    grid-column: 2;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    height: 74px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta,
  .theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.7rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero-bottom div:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rate-stamp {
    width: 178px;
    min-height: 178px;
    right: -8px;
    bottom: 14px;
    padding: 20px;
    gap: 8px;
  }

  .rate-stamp strong {
    font-size: 1.62rem;
  }

  .rate-stamp span {
    font-size: 0.5rem;
  }

  .rate-stamp small {
    font-size: 0.66rem;
  }

  .editorial-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Ajuste final de navegação interna */
#inicio,
#comparativo,
#orientacao,
#transparencia,
#processo,
#simulacao {
  scroll-margin-top: 112px;
}


/* Ajustes do envio por e-mail */
.lead-form button:disabled,
.btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.success-message.show {
  display: block;
  animation: success-pop 260ms ease both;
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
