:root {
  --bg: #f5f2ec;
  --bg-soft: #ebe7df;
  --dark: #101010;
  --text: #151515;
  --muted: #68645d;
  --line: rgba(16, 16, 16, 0.12);
  --line-strong: rgba(16, 16, 16, 0.2);
  --white: #fff;
  --accent: #b89b5e;
  --accent-soft: #d8c79a;
  --success: #2d6a4f;
  --warning: #9a6b10;
  --danger: #8f2d2d;
  --info: #2f5f73;
  --info-soft: #eef7f8;
  --info-line: rgba(47, 95, 115, 0.24);
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: -1;
  background-image: radial-gradient(var(--dark) 0.7px, transparent 0.7px);
  background-size: 14px 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  padding: 22px 32px;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid rgba(16, 16, 16, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-copy small,
.microcopy,
.card-label,
.section-kicker,
.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.header-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.header-nav a:hover {
  color: var(--dark);
  background: var(--white);
}

.section-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px 24px;
}

#calculadora,
#como-funciona,
#analise {
  scroll-margin-top: 112px;
}

.hero {
  min-height: calc(100vh - 89px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.68fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.065em;
  line-height: 0.96;
  color: var(--dark);
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 620;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.calculator-intro p,
.cta-section p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.8vw, 1.28rem);
}

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(16, 16, 16, 0.14);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

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

.hero-card,
.calculator-card,
.cta-section,
.pill-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
}

.price-preview {
  display: grid;
  gap: 4px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.price-preview span,
.preview-line span {
  color: var(--muted);
  font-size: 0.88rem;
}

.price-preview strong {
  font-size: 2.45rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.price-preview.featured strong {
  color: var(--accent);
}

.preview-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.signature-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

.section-block {
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pill-card {
  padding: 26px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.48);
}

.pill-card span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--accent);
  font-weight: 700;
}

.pill-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.calculator-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: start;
  padding-top: 48px;
}

.calculator-intro {
  position: sticky;
  top: 112px;
  align-self: start;
}

.calculator-card {
  padding: 26px;
  background: var(--white);
}

.stepper {
  display: flex;
  gap: 8px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.step-dot {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.step-dot.is-active,
.step-dot.is-complete {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: stepIn 0.28s ease both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-head {
  margin-bottom: 24px;
}

.form-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-head p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full {
  grid-column: 1 / -1;
}

.consent-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaf7;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.consent-row input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--dark);
}

.consent-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.consent-copy strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.consent-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
}

.consent-row .field-message {
  grid-column: 1 / -1;
  padding-left: 34px;
  margin-top: -2px;
}

.consent-row.has-error {
  border-color: rgba(143, 45, 45, 0.28);
  background: rgba(143, 45, 45, 0.035);
}

.consent-row.has-error input {
  box-shadow: 0 0 0 4px rgba(143, 45, 45, 0.1);
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 15px;
  outline: none;
  background: #fbfaf7;
  color: var(--dark);
  transition: 0.2s ease;
}

input::placeholder {
  color: rgba(104, 100, 93, 0.62);
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 155, 94, 0.16);
}

.field-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(143, 45, 45, 0.12) !important;
}

.form-actions {
  justify-content: space-between;
  padding-top: 24px;
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.result-panel {
  display: grid;
  gap: 16px;
}

.empty-state {
  display: grid;
  gap: 6px;
  min-height: 220px;
  place-content: center;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--bg);
}

.result-hero {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: var(--white);
}

.result-hero small {
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-hero h4 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-card,
.reading-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: #fbfaf7;
}

.metric-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-card strong {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.reading-card {
  display: grid;
  gap: 10px;
}

.reading-card h4 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.reading-card p {
  margin: 0;
  color: var(--muted);
}

.estimate-note {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(184, 155, 94, 0.34);
  border-left: 4px solid var(--accent);
  background: rgba(216, 199, 154, 0.18);
}

.estimate-note strong {
  letter-spacing: -0.03em;
}

.estimate-note p {
  margin: 0;
  color: var(--muted);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alert-low .result-hero {
  background: var(--danger);
}

.alert-ok .result-hero {
  background: var(--warning);
}

.alert-high .result-hero {
  background: var(--success);
}

.cta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  padding: 44px;
  margin-top: 40px;
  margin-bottom: 84px;
}

.cta-section p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.reveal {
  animation: reveal 0.58s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.noscript-alert {
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(143, 45, 45, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(143, 45, 45, 0.08);
  color: var(--danger);
  font-weight: 650;
}

.stepper {
  gap: 10px;
}

.step-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 112px;
  height: 42px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
}

.step-dot small {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 0.82rem;
}

.step-dot.is-active .step-number,
.step-dot.is-complete .step-number {
  background: rgba(255, 255, 255, 0.16);
}

label:not(.consent-row):not(.bot-field) {
  display: block;
}

label:not(.consent-row):not(.bot-field) input,
label:not(.consent-row):not(.bot-field) select {
  margin-top: 8px;
}

label:not(.consent-row):not(.bot-field) .field-message {
  margin-top: 7px;
}

.field-hint {
  position: relative;
  display: block;
  margin-top: 9px;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--info-line);
  border-radius: 14px;
  background: var(--info-soft);
  color: var(--info);
  font-size: 0.84rem;
  line-height: 1.42;
  font-weight: 550;
}

.field-hint::before {
  content: "?";
  position: absolute;
  left: 12px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--info);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.field-hint strong {
  color: var(--text);
  font-weight: 750;
}

.has-error .field-hint {
  display: none;
}

.required-note {
  margin: -6px 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.required-mark {
  color: var(--accent);
  font-weight: 800;
}

.form-alert {
  scroll-margin-top: 126px;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: #fbfaf7;
  color: var(--text);
}

.form-alert strong {
  letter-spacing: -0.03em;
}

.form-alert p,
.form-alert ul {
  margin: 0;
  color: var(--muted);
}

.form-alert ul {
  padding-left: 18px;
}

.form-alert.is-error {
  border-color: rgba(143, 45, 45, 0.22);
  border-left-color: var(--danger);
  background: rgba(143, 45, 45, 0.06);
}

.form-alert.is-success {
  border-color: rgba(45, 106, 79, 0.22);
  border-left-color: var(--success);
  background: rgba(45, 106, 79, 0.07);
}

.field-message {
  scroll-margin-top: 126px;
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.has-error .field-message {
  display: block;
}

.has-error input,
.has-error select,
.field-error {
  border-color: var(--danger) !important;
  background: rgba(143, 45, 45, 0.045) !important;
  box-shadow: 0 0 0 4px rgba(143, 45, 45, 0.1) !important;
}

label:focus-within {
  color: var(--dark);
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
}

input:disabled,
select:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.calculator-card {
  position: relative;
  overflow: hidden;
}

.calculator-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--dark), var(--accent));
}

.form-head {
  padding-right: 8px;
}

.form-head h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

input,
select {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.result-actions .btn {
  min-width: 190px;
}

.btn:focus-visible,
.step-dot:focus-visible,
.floating-contact:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(184, 155, 94, 0.36);
  outline-offset: 2px;
}


.floating-contact {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: #19764f;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(16, 16, 16, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-contact:hover {
  transform: translateY(-2px);
  background: #145f41;
  box-shadow: 0 22px 50px rgba(16, 16, 16, 0.28);
}

.floating-contact-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  flex: 0 0 auto;
}

.floating-contact-copy {
  display: grid;
  line-height: 1.12;
}

.floating-contact-copy strong {
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.floating-contact-copy small {
  margin-top: 3px;
  font-size: 0.72rem;
  opacity: 0.82;
}

@media (max-width: 940px) {
  html {
    scroll-padding-top: 24px;
  }

  .site-header {
    position: static;
    padding: 18px 20px;
  }

  .header-nav {
    display: none;
  }

  .hero,
  .section-heading,
  .calculator-section,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .calculator-section {
    padding-top: 58px;
  }

  .calculator-intro {
    position: static;
  }

  .pill-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .stepper {
    overflow-x: auto;
    padding-bottom: 18px;
  }

  .step-dot {
    flex: 0 0 auto;
  }

  .cta-section {
    display: grid;
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .section-shell {
    padding: 58px 18px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .hero-card,
  .calculator-card {
    padding: 20px;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 10px;
  }

  .form-actions .btn {
    width: 100%;
    max-width: none;
    min-height: 54px;
  }

  #nextBtn,
  #calculateBtn {
    order: 1;
  }

  #prevBtn {
    order: 2;
    min-height: 48px;
    background: transparent;
    box-shadow: none;
  }

  #prevBtn:disabled {
    display: none;
  }

  .step-dot {
    min-width: 54px;
    padding: 0 10px;
  }

  .step-dot small {
    display: none;
  }

  .result-actions .btn {
    min-width: 0;
  }
}


@media (max-width: 560px) {
  .consent-row {
    padding: 13px 14px;
  }

  .consent-row .field-message {
    padding-left: 0;
  }
}


@media (max-width: 640px) {
  .floating-contact {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    padding: 9px 12px 9px 9px;
    gap: 8px;
  }

  .floating-contact-icon {
    width: 38px;
    height: 38px;
  }

  .floating-contact-copy strong {
    font-size: 0.8rem;
  }

  .floating-contact-copy small {
    display: none;
  }
}
