:root {
  --bg: #07111f;
  --panel: #0f2036;
  --panel-2: #132b47;
  --text: #f7fbff;
  --muted: #adc0d7;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #1d9bf0;
  --brand-2: #46d6a8;
  --danger: #ff6b6b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, #07111f 0%, #0b1d33 48%, #07111f 100%);
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
}

.messages {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 20;
}

.message {
  margin: 0 auto;
  max-width: 760px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 32, 54, 0.96);
  box-shadow: var(--shadow);
}

.hero {
  min-height: 92vh;
  display: grid;
  align-items: center;
  gap: 28px;
  padding: 32px 18px 16px;
}

.hero__content,
.form-shell,
.result-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: 2.65rem;
  line-height: 0.98;
}

.hero__copy,
.result-copy,
.trust-band p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: #06111f;
  background: linear-gradient(135deg, var(--brand-2), #88f2ce);
}

.button--ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.button--full {
  width: 100%;
}

.hero__stats,
.mini-grid,
.bottlenecks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__stats {
  margin-top: 18px;
}

.hero__stats span,
.mini-grid span,
.bottlenecks span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.hero__panel,
.result-card {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 32, 54, 0.76);
  box-shadow: var(--shadow);
}

.signal-card {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(29, 155, 240, 0.28), rgba(70, 214, 168, 0.14));
}

.signal-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.signal-card strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 3rem;
}

.meter,
.progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.meter span,
.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 220ms ease;
}

.mini-grid {
  margin-top: 14px;
}

.trust-band {
  padding: 24px 18px 44px;
}

.trust-band p {
  width: min(100%, 980px);
  margin: 0 auto;
}

.home-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 44px 18px 72px;
}

.home-hero {
  padding: 24px 0 28px;
}

.home-hero h1 {
  max-width: 880px;
}

.home-grid {
  display: grid;
  gap: 14px;
}

.product-list {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 18px 64px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.75rem;
}

.product-grid {
  display: grid;
  gap: 14px;
}

.product-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 32, 54, 0.78);
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.product-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.product-card--featured h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.product-card--featured .button {
  margin-top: 18px;
}

.content-band {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 24px 18px;
}

.content-band h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.content-band > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 32, 54, 0.78);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  color: var(--muted);
  line-height: 1.6;
}

.form-shell {
  padding: 24px 14px 128px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
}

.form-header h1 {
  font-size: 2.35rem;
}

.progress {
  margin-top: 22px;
}

.step-form {
  margin-top: 18px;
}

.step-card {
  display: none;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 32, 54, 0.78);
  box-shadow: var(--shadow);
}

.step-card.is-active {
  display: block;
  animation: rise 180ms ease;
}

legend {
  width: 100%;
  margin-bottom: 18px;
  font-size: 1.35rem;
  font-weight: 800;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.choice.is-selected {
  border-color: var(--brand-2);
  background: rgba(70, 214, 168, 0.14);
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-2);
}

.input-grid {
  display: grid;
  gap: 12px;
}

.input-grid label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

select option {
  color: #07111f;
}

.field-error {
  display: block;
  margin: 10px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 42px;
}

#submitForm {
  grid-column: 1 / -1;
}

.result-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 24px 14px;
}

.result-card h1 {
  font-size: 2.35rem;
}

.score-panel {
  display: grid;
  gap: 14px;
  margin: 24px 0 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.score-panel strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.score-panel span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.result-meter {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.result-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.level {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 8px;
  color: #06111f;
  background: var(--brand-2);
  font-weight: 900;
}

.bottlenecks {
  margin: 18px 0 24px;
}

.bottlenecks h2 {
  flex-basis: 100%;
  margin: 0;
  font-size: 1.2rem;
}

.offer-box,
.status-box,
.price-line,
.premium-section,
.premium-cta {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.offer-box h2,
.premium-section h2,
.premium-cta h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.offer-box p,
.status-box p,
.premium-header p,
.premium-section p,
.premium-item span,
.premium-cta p {
  color: var(--muted);
  line-height: 1.6;
}

.offer-box strong,
.price-line strong {
  display: block;
  margin: 14px 0;
  font-size: 2rem;
}

.offer-box form {
  margin: 0;
}

.payment-card h1,
.premium-header h1 {
  font-size: 2.35rem;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.price-line span {
  color: var(--muted);
  font-weight: 800;
}

.status-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-2);
}

.status-box--error strong {
  color: var(--danger);
}

.pix-qr {
  display: block;
  width: min(100%, 280px);
  margin: 18px auto;
  border-radius: 8px;
  background: #fff;
}

.pix-copy {
  display: block;
  margin: 18px 0 10px;
}

.pix-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.pix-copy textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.premium-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 14px 86px;
}

.premium-header {
  padding: 18px 0 6px;
}

.premium-grid {
  display: grid;
  gap: 14px;
}

.premium-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.premium-item:first-of-type {
  border-top: 0;
}

.premium-item strong,
.premium-item span,
.premium-item em {
  display: block;
}

.premium-item em {
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #06111f;
  background: var(--brand-2);
  font-style: normal;
  font-weight: 900;
}

.action-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.metrics-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px 14px 86px;
}

.metrics-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 20px;
}

.metrics-header h1 {
  font-size: 2.4rem;
}

.metrics-header p:not(.eyebrow),
.metric-panel__head p,
.metric-card em,
.empty-state {
  color: var(--muted);
}

.metrics-filters {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 32, 54, 0.78);
}

.metrics-filters label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-weight: 800;
}

.metric-card-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card,
.metric-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 32, 54, 0.78);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 138px;
  padding: 16px;
}

.metric-card span,
.metric-card em {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 2rem;
  line-height: 1;
}

.metric-card em {
  font-style: normal;
  line-height: 1.45;
}

.metrics-layout {
  display: grid;
  gap: 14px;
}

.metric-panel {
  min-width: 0;
  padding: 16px;
}

.metric-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.metric-panel__head h2,
.metric-panel__head p {
  margin: 0;
}

.metric-panel__head h2 {
  font-size: 1.2rem;
}

.metric-panel__head p {
  max-width: 240px;
  text-align: right;
  line-height: 1.45;
}

.history-chart {
  display: flex;
  align-items: end;
  gap: 4px;
  min-height: 230px;
  padding: 16px 8px 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.history-chart__day {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 7px);
  align-items: end;
  gap: 2px;
  min-width: 30px;
  height: 180px;
}

.history-chart__bar {
  min-height: 2px;
  border-radius: 6px 6px 0 0;
}

.history-chart__bar--leads,
.legend-dot--leads {
  background: var(--brand-2);
}

.history-chart__bar--diagnosticos,
.legend-dot--diagnosticos {
  background: var(--brand);
}

.history-chart__bar--receita,
.legend-dot--receita {
  background: #f6c85f;
}

.history-chart__day small {
  position: absolute;
  right: 0;
  bottom: -24px;
  left: 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.chart-legend,
.mini-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chart-legend span,
.mini-kpi-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.funnel-list,
.rank-list {
  display: grid;
  gap: 10px;
}

.funnel-row,
.rank-row {
  position: relative;
  min-height: 50px;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.funnel-row span,
.funnel-row strong,
.rank-row span,
.rank-row strong {
  position: relative;
  z-index: 1;
}

.funnel-row span,
.rank-row span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.funnel-row strong,
.rank-row strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.funnel-row i,
.rank-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 4px;
  min-width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.metric-table {
  overflow-x: auto;
}

.metric-table__row {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(4, minmax(86px, 0.7fr));
  gap: 10px;
  min-width: 680px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.metric-table__row:first-child {
  border-top: 0;
}

.metric-table__row--head {
  color: var(--text);
  font-weight: 900;
}

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

@media (min-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    padding: 48px;
  }

  .hero__panel {
    align-self: center;
  }

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

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

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

  .metrics-filters {
    grid-template-columns: minmax(160px, 0.45fr) minmax(260px, 1fr) 180px;
    align-items: end;
  }

  .metric-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .metric-panel--wide {
    grid-column: 1 / -1;
  }

  .form-actions {
    grid-template-columns: 160px 1fr 1fr;
    margin-bottom: 0;
  }

  #submitForm {
    grid-column: auto;
  }

  h1 {
    font-size: 5rem;
  }

  .form-header h1,
  .result-card h1,
  .payment-card h1,
  .premium-header h1,
  .metrics-header h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1080px) {
  .metric-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .metrics-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-panel--wide {
    grid-column: span 2;
  }
}
