:root {
  --bg: #f6f7f9;
  --card: rgba(255,255,255,0.88);
  --card-strong: #ffffff;
  --text: #0f172a;
  --muted: #667085;
  --line: #dde3ea;
  --primary: #0f172a;
  --accent: #17c86f;
  --accent-soft: rgba(23, 200, 111, 0.12);
  --bg-soft: #f2f4f7;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, #fbfbfc 0%, #f4f6f8 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.site-shell { min-height: 100vh; }
.container {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(251, 251, 252, 0.82);
  border-bottom: 1px solid rgba(221,227,234,0.8);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}
.brand strong {
  display: block;
  font-size: 1rem;
}
.brand span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 600;
}
.nav-cta {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.hero { padding: 28px 0 24px; }
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  max-width: 980px;
}

.glass-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.compact-copy,
.hero-simulator {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.04em; }
.compact-copy h1 {
  margin-top: 16px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: .96;
}
.compact-copy h1 span { color: var(--accent); }

.title-only {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px 4px 0;
}
.title-only h1 {
  margin-top: 0;
  max-width: 820px;
}

.hero-mini-copy {
  margin-top: 12px;
  max-width: 640px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.result-actions {
  margin-top: 4px;
}

.form-helper {
  margin-top: 10px;
  color: var(--muted);
  font-size: .88rem;
}
.hero-simulator {
  padding-top: 22px;
}
.compact-copy p,
.section-heading p,
.step-card p,
.result-panel p,
.audience-points p,
.footer p,
.cta-card p { color: var(--muted); line-height: 1.65; }
.compact-copy p { margin-top: 18px; max-width: 560px; font-size: 1.04rem; }

.hero-actions,
.form-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.compact-actions { margin-top: 24px; }

.btn {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,0.18);
}
.btn-secondary {
  background: #fff;
  border-color: var(--line);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-badges span,
.result-points li {
  list-style: none;
}
.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}

.simulator-topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 18px;
}
.simulator-topbar h2 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.mini-label { color: var(--muted); font-weight: 700; font-size: .9rem; }

.smart-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 8px;
  border-radius: 22px;
  background: #eef2f6;
  border: 1px solid var(--line);
}
.smart-switch-btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
}
.smart-switch-btn .switch-title {
  display: block;
  font-weight: 800;
}
.smart-switch-btn .switch-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .88rem;
}
.smart-switch-glow {
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc(50% - 9px);
  height: calc(100% - 16px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
  transition: transform .28s ease;
}
.smart-switch[data-mode="equity"] .smart-switch-glow {
  transform: translateX(calc(100% + 10px));
}


.flow-form {
  display: grid;
  gap: 12px;
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.flow-step.unlocked {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.flow-step.complete {
  border-color: rgba(23, 200, 111, 0.32);
}
.flow-step.open {
  border-color: rgba(15, 23, 42, 0.12);
}
.flow-step-header {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}
.flow-step:not(.unlocked) .flow-step-header {
  cursor: default;
}
.flow-step-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 800;
  font-size: .95rem;
}
.flow-step.complete .flow-step-badge {
  background: var(--accent-soft);
  color: #0f5132;
}
.flow-step-copy {
  display: grid;
  gap: 3px;
}
.flow-step-copy strong {
  font-size: 1rem;
}
.flow-step-copy small {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.flow-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.flow-step.open .flow-step-icon {
  transform: rotate(45deg);
}
.flow-step-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  transition: max-height .32s ease, padding .22s ease;
}
.flow-step.open .flow-step-body {
  max-height: 900px;
  padding: 0 18px 18px;
}
.flow-step .form-grid {
  padding-top: 4px;
}

.compact-simulator-card {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, .62fr);
  gap: 16px;
  align-items: start;
}
.form-panel { display: none; }
.form-panel.active { display: block; }
.lead-form,
.result-panel {
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
}
.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
label { display: grid; gap: 8px; }
label span { font-size: .92rem; font-weight: 700; }
input, select {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus {
  border-color: rgba(23, 200, 111, 0.45);
  box-shadow: 0 0 0 4px rgba(23, 200, 111, 0.08);
}
.compact-form-actions { margin-top: 18px; }

.field-hidden {
  display: none !important;
}

.result-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-label {
  color: var(--accent);
  font-weight: 800;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.result-panel h3 {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.result-box {
  margin-top: 4px;
  padding: 18px;
  border-radius: 20px;
  display: grid;
  gap: 8px;
}
.result-box.neutral { background: var(--bg-soft); }
.result-box.good { background: rgba(23,200,111,0.12); color: #0f5132; }
.result-box.warning { background: rgba(245,158,11,0.14); color: #8a4b00; }
.result-box.attention { background: rgba(239,68,68,0.12); color: #991b1b; }
.result-points {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.result-points li {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--muted);
}

.result-actions {
  margin-top: 4px;
}

.result-whatsapp-btn {
  width: 100%;
  justify-content: center;
}

.section { padding: 34px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(247,248,251,0.9), rgba(255,255,255,0));
}
.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}
.narrow-heading h2,
.compact-audience-grid h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step-card,
.audience-points article {
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}
.step-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.step-card h3 { margin: 16px 0 10px; font-size: 1.12rem; }

.audience-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 18px;
  align-items: start;
}
.audience-points {
  display: grid;
  gap: 14px;
}

.cta-section { padding-bottom: 60px; }

.cta-user-flow h2 {
  max-width: 700px;
}

.cta-user-flow p {
  max-width: 560px;
}
.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  background: rgba(255,255,255,0.72);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .92rem;
  text-align: right;
}
code {
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--bg-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #15d368;
  box-shadow: 0 18px 40px rgba(21,211,104,.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@media (max-width: 1080px) {
  .hero-layout,
  .compact-simulator-card,
  .audience-grid,
  .cta-card,
  .steps-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 820px) {
  .nav {
    min-height: 70px;
  }

  .nav-links {
    display: none;
  }

  .compact-copy,
  .hero-simulator {
    padding: 22px;
  }

  .compact-copy h1 {
    font-size: clamp(2.1rem, 10vw, 3.35rem);
  }

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

  .container {
    width: min(100% - 16px, 1180px);
  }

  .btn,
  .nav-cta {
    width: 100%;
  }

  .hero-actions,
  .form-actions,
  .cta-actions {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 18px;
  }

  .header {
    position: static;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .compact-copy,
  .hero-simulator,
  .lead-form,
  .result-panel,
  .step-card,
  .audience-points article,
  .cta-card {
    padding: 18px;
  }

  .smart-switch {
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
  }

  .smart-switch-btn {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .smart-switch-btn .switch-subtitle {
    font-size: .8rem;
  }

  .smart-switch-glow {
    top: 6px;
    left: 6px;
    width: calc(50% - 7px);
    height: calc(100% - 12px);
    border-radius: 14px;
  }

  .smart-switch[data-mode="equity"] .smart-switch-glow {
    transform: translateX(calc(100% + 8px));
  }

  .result-panel h3 {
    font-size: 1.35rem;
  }

  .compact-copy p,
  .section-heading p,
  .step-card p,
  .audience-points p,
  .cta-card p,
  .footer p,
  .result-panel p {
    font-size: .96rem;
  }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }
}


@media (min-width: 821px) {
  .hero-simulator {
    padding: 30px;
  }
}

@media (max-width: 820px) {
  .title-only {
    padding: 6px 2px 0;
  }

  .title-only h1 {
    max-width: 100%;
  }

  .simulator-topbar {
    margin-bottom: 14px;
  }
}

@media (max-width: 640px) {
  .title-only {
    padding: 2px 0 0;
  }

  .compact-copy.title-only h1 {
    font-size: clamp(2.3rem, 13vw, 3.4rem);
    line-height: .94;
  }

  .hero-layout {
    gap: 12px;
  }

  .hero-simulator {
    padding-top: 18px;
  }

  .result-panel h3 {
    font-size: 1.45rem;
  }
}

@media (max-width: 900px) {
  .title-only h1 { max-width: 100%; }
}

/* copy + mobile polish */
.result-panel h3,
.result-panel p,
.result-box span,
.result-points li {
  overflow-wrap: anywhere;
}

.result-panel h3 {
  line-height: 1.06;
}

.btn,
button,
input[type="submit"] {
  touch-action: manipulation;
}

input,
select,
textarea {
  font-size: 16px;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .nav {
    min-height: 70px;
  }

  .hero-simulator,
  .compact-copy {
    padding: 22px;
  }
}

@media (max-width: 680px) {
  .nav {
    gap: 12px;
  }

  .nav-links {
    gap: 10px;
    font-size: .92rem;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 12px;
  }

  .compact-copy h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: .98;
  }

  .hero-mini-copy {
    font-size: .96rem;
    line-height: 1.45;
  }

  .hero-simulator,
  .compact-copy {
    padding: 18px;
    border-radius: 22px;
  }

  .simulator-card {
    grid-template-columns: 1fr;
  }

  .form-panels,
  .result-panel {
    min-width: 0;
  }

  .cta-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-actions {
    width: 100%;
    display: grid;
    gap: 12px;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 14px, 1180px);
  }

  .header {
    backdrop-filter: blur(10px);
  }

  .nav {
    min-height: 64px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: .93rem;
  }

  .brand span {
    font-size: .74rem;
  }

  .nav-links a:first-child {
    display: none;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 10px;
    font-size: .84rem;
  }

  .hero {
    padding: 18px 0 20px;
  }

  .compact-copy,
  .hero-simulator {
    padding: 16px;
    border-radius: 18px;
  }

  .compact-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
    margin-top: 0;
  }

  .smart-switch {
    padding: 6px;
    gap: 8px;
    border-radius: 18px;
  }

  .smart-switch-btn {
    padding: 13px 12px;
    border-radius: 14px;
  }

  .smart-switch-btn .switch-title {
    font-size: .93rem;
  }

  .smart-switch-btn .switch-subtitle {
    font-size: .76rem;
  }

  .lead-form,
  .result-panel {
    padding: 14px;
  }

  .compact-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  label span {
    font-size: .78rem;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    border-radius: 12px;
    padding: 0 12px;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    font-size: .95rem;
  }

  .result-box {
    padding: 14px;
  }

  .result-points {
    gap: 8px;
  }

  .cta-card {
    padding: 18px;
    border-radius: 18px;
  }

  .cta-card h2 {
    font-size: 1.95rem;
    line-height: 1.02;
  }
}


.result-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 14px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  border: 1px solid var(--line);
  background: #fff;
}
.result-verdict.good {
  color: #067647;
  background: rgba(23,200,111,.10);
  border-color: rgba(23,200,111,.22);
}
.result-verdict.warning {
  color: #b54708;
  background: rgba(247,144,9,.12);
  border-color: rgba(247,144,9,.24);
}
.result-verdict.attention {
  color: #b42318;
  background: rgba(240,68,56,.10);
  border-color: rgba(240,68,56,.22);
}
