:root {
  color-scheme: dark;
  --graphite: #0f1115;
  --surface: #171a21;
  --surface-soft: #1d212a;
  --line: #343945;
  --line-strong: #4b5261;
  --off-white: #f8f7f4;
  --muted: #adb2be;
  --indigo: #4f6bff;
  --indigo-light: #8b9cff;
  --danger: #ff9b9b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--graphite); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--graphite);
  color: var(--off-white);
}

a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--off-white);
  color: var(--graphite);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer,
.flow-shell { position: relative; z-index: 1; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid rgba(248, 247, 244, .12);
}
.brand { display: inline-flex; }
.brand img { display: block; width: 128px; height: auto; }
.site-header > span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.header-plans { display: none; }

.flow-shell {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 64px) 0 64px;
}
.flow-intro { margin-bottom: 28px; }
.eyebrow,
.step-kicker {
  margin: 0 0 18px;
  color: var(--indigo-light);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.flow-intro h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.flow-intro > p:last-child {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
}

.form-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(23, 26, 33, .96);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .2);
  overflow: hidden;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 12px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.progress-track { height: 3px; background: #242933; }
.progress-track span {
  display: block;
  width: 16.6667%;
  height: 100%;
  background: var(--indigo);
  transition: width .28s ease;
}

.form-step,
.success-panel { padding: clamp(28px, 5vw, 42px); }
.step-title,
.success-panel h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.step-title:focus,
.success-panel:focus { outline: none; }
.step-copy,
.success-panel > p {
  max-width: 620px;
  margin: 12px 0 26px;
  color: var(--muted);
  line-height: 1.65;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field-grid-single { grid-template-columns: minmax(0, 1fr); }
.field-wide { grid-column: 1 / -1; }
.field,
.conditional-question,
.segmented-group,
.plan-group,
.addon-group {
  display: grid;
  gap: 9px;
  color: #dfe2e9;
  font-size: .84rem;
  font-weight: 600;
}
input:not([type="checkbox"]):not([type="radio"]),
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #12151b;
  color: var(--off-white);
  padding: 0 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input::placeholder { color: #747b89; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }

:focus-visible {
  outline: 3px solid rgba(139, 156, 255, .9);
  outline-offset: 3px;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus {
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(79, 107, 255, .18);
}

.consent {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}
.consent input,
.choice input,
.segmented-group input,
.plan-choice input { accent-color: var(--indigo); }
.consent a { color: var(--off-white); text-underline-offset: 3px; }
.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
}
.consent-error { display: block; margin-top: 6px; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #14171d;
  color: #dfe2e9;
  cursor: pointer;
  font-size: .8rem;
  line-height: 1.4;
}
.choice:has(input:checked) { border-color: var(--indigo-light); background: rgba(79, 107, 255, .12); }
.choice input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; }

.conditional-question {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #12151b;
}
.conditional-question legend,
.segmented-group legend,
.plan-group legend,
.addon-group legend { margin-bottom: 12px; color: var(--off-white); font-weight: 600; }
.conditional-question > div { display: grid; gap: 8px; }
.conditional-question label { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-weight: 500; }

.segmented-group,
.plan-group,
.addon-group { margin-top: 20px; }
.segmented-group { grid-template-columns: 1fr 1fr; }
.segmented-group legend,
.segmented-group .field-error { grid-column: 1 / -1; }
.segmented-group label,
.plan-choice {
  display: block;
  cursor: pointer;
}
.segmented-group input,
.plan-choice input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-group label span,
.plan-choice > span {
  display: grid;
  min-height: 46px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #14171d;
  padding: 10px 13px;
}
.segmented-group input:checked + span,
.plan-choice input:checked + span { border-color: var(--indigo-light); background: rgba(79, 107, 255, .12); }
.plan-group { grid-template-columns: repeat(3, 1fr); }
.plan-group legend,
.plan-group .field-error { grid-column: 1 / -1; }
.plan-choice small { margin-top: 5px; color: var(--muted); font-size: .73rem; font-weight: 400; line-height: 1.4; }
.addon-group { grid-template-columns: 1fr 1fr; }
.addon-group legend,
.addon-group .field-error { grid-column: 1 / -1; }
.addon-group legend small { color: var(--muted); font-weight: 400; }

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-radius: 9px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.primary-action { border: 1px solid var(--indigo); background: var(--indigo); color: #fff; }
.primary-action:hover { background: #6179ff; }
.primary-action:disabled { cursor: wait; opacity: .65; }
.secondary-action { border: 1px solid var(--line); background: transparent; color: #dfe2e9; }
.secondary-action:hover { border-color: var(--line-strong); background: var(--surface-soft); }

.review-list { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.review-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.review-row small { color: var(--muted); line-height: 1.5; }
.review-row strong { font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; }
.review-row button { border: 0; background: none; color: var(--indigo-light); cursor: pointer; font-size: .78rem; font-weight: 600; }
.commercial-context {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #14171d;
}
.commercial-context-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.commercial-context-line > div { display: grid; gap: 4px; }
.commercial-context small { color: var(--muted); font-size: .72rem; }
.commercial-context strong { font-size: .85rem; line-height: 1.45; }
.commercial-context button {
  border: 0;
  background: none;
  color: var(--indigo-light);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 600;
}
.commercial-context > p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.commercial-editor { margin-top: 15px; padding-top: 2px; border-top: 1px solid var(--line); }
.compact-options { gap: 8px; margin-top: 14px; }
.compact-options legend { margin-bottom: 7px; font-size: .76rem; }
.compact-options label span,
.compact-options.plan-group label > span { min-height: 40px; padding: 8px 10px; font-size: .78rem; }
.compact-options.choice { min-height: 40px; }
.no-charge { margin: 24px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.request-feedback { min-height: 24px; margin: 16px 0 0; color: var(--muted); font-size: .82rem; text-align: right; }
.honeypot { position: absolute; left: -9999px; }

.success-panel { text-align: left; }
.success-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--indigo);
  font-size: 1.3rem;
  font-weight: 700;
}
.success-panel .secondary-action { margin-top: 12px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid rgba(248, 247, 244, .12);
  color: var(--muted);
  font-size: .76rem;
}
.site-footer a { color: var(--off-white); text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 820px) {
  .flow-shell { padding-top: 40px; }
  .flow-intro h1 { max-width: 620px; }
  .flow-intro > p:last-child { margin-top: 20px; }
}

@media (max-width: 600px) {
  .site-header,
  .site-footer,
  .flow-shell { width: min(100% - 28px, 1120px); }
  .site-header { padding: 20px 0; }
  .site-header > span { display: none; }
  .header-plans { display: inline-flex; min-height: 44px; align-items: center; font-size: .875rem; font-weight: 600; text-underline-offset: 4px; }
  .brand img { width: 112px; }
  .flow-shell { padding: 32px 0 48px; }
  .flow-intro { margin-bottom: 24px; }
  .flow-intro h1 { font-size: clamp(2rem, 10.5vw, 2.8rem); }
  .form-panel { border-radius: 18px; }
  .progress-meta { padding: 17px 20px 11px; }
  .form-step,
  .success-panel { padding: 26px 20px 30px; }
  .field-grid,
  .choice-group,
  .plan-group,
  .addon-group { grid-template-columns: 1fr; }
  .field-wide,
  .plan-group legend,
  .plan-group .field-error,
  .addon-group legend,
  .addon-group .field-error { grid-column: auto; }
  .step-actions { flex-direction: column-reverse; }
  .primary-action,
  .secondary-action { width: 100%; }
  .review-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .review-row small { grid-column: 1 / -1; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 360px) {
  .site-header,
  .site-footer,
  .flow-shell { width: calc(100% - 20px); }
  .form-step,
  .success-panel { padding-right: 17px; padding-left: 17px; }
  .segmented-group { grid-template-columns: 1fr; }
  .segmented-group legend,
  .segmented-group .field-error { grid-column: auto; }
}

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

/* Jornada comercial: uma página de trabalho, não um cartão solto sobre um cenário. */
.site-header,
.site-footer,
.flow-shell { width: min(1180px, calc(100% - 64px)); }
.site-header { padding: 27px 0; }
.brand img { width: 136px; }
.site-header > span { font-size: .8125rem; letter-spacing: .035em; text-transform: none; }
.flow-shell {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
  padding: clamp(64px, 7vw, 104px) 0 110px;
}
.flow-intro { margin: 0; }
.eyebrow,
.step-kicker {
  margin-bottom: 22px;
  color: var(--indigo-light);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.flow-intro h1 { max-width: 490px; font-size: clamp(2.6rem, 4vw, 4.25rem); line-height: 1.07; }
.flow-intro > p:last-child,
.flow-intro > p:not(.eyebrow) {
  max-width: 480px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.flow-intro .flow-assurance { padding-top: 23px; border-top: 1px solid var(--line); }
.flow-assurance a { color: var(--off-white); text-underline-offset: 4px; }
.form-panel {
  border: 0;
  border-top: 2px solid var(--off-white);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.progress-meta {
  padding: 20px 0 14px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
}
.progress-track { height: 2px; }
.form-step,
.success-panel { padding: 44px 0 0; }
.step-title,
.success-panel h2 { font-size: clamp(2rem, 3vw, 2.6rem); }
.step-copy,
.success-panel > p { margin: 14px 0 30px; font-size: .9375rem; }
.field,
.conditional-question,
.segmented-group,
.plan-group,
.addon-group { font-size: .875rem; }
.field-error:empty { display: none; }
.choice,
.commercial-context,
.conditional-question,
.segmented-group label span,
.plan-choice > span { border-radius: 4px; }
.choice { font-size: .875rem; }
.primary-action,
.secondary-action { min-height: 48px; border-radius: 2px; }
.primary-action { background: var(--off-white); border-color: var(--off-white); color: var(--graphite); }
.primary-action:hover { background: #dfe2e9; border-color: #dfe2e9; }
.secondary-action { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.secondary-action:hover { background: transparent; border-color: transparent; color: #fff; }
.step-actions { margin-top: 36px; }
.success-mark { border-radius: 3px; }
.site-footer { padding: 28px 0 42px; font-size: .875rem; }

@media (max-width: 850px) {
  .flow-shell { grid-template-columns: 1fr; gap: 48px; max-width: 680px; padding: 54px 0 72px; }
  .flow-intro h1 { max-width: 640px; }
}

@media (max-width: 600px) {
  .site-header,
  .site-footer,
  .flow-shell { width: calc(100% - 40px); }
  .site-header { padding: 18px 0; }
  .brand img { width: 116px; }
  .flow-shell { gap: 28px; padding: 28px 0 66px; }
  .flow-intro h1 { font-size: clamp(2.35rem, 10vw, 3.25rem); }
  .flow-intro > p:not(.eyebrow) { margin-top: 18px; font-size: .9375rem; }
  .flow-intro .flow-assurance { display: none; }
  .form-step,
  .success-panel { padding: 30px 0 0; }
  .step-title { font-size: 2rem; }
  .step-copy { margin-bottom: 26px; }
  .step-actions { margin-top: 28px; }
  .secondary-action { border: 1px solid var(--line); text-decoration: none; }
  .secondary-action:hover { border-color: var(--line-strong); background: var(--surface-soft); }
  .site-footer { font-size: .8125rem; }
}

@media (max-width: 360px) {
  .site-header,
  .site-footer,
  .flow-shell { width: calc(100% - 32px); }
}
