/* The Budget Split: calm, tidy, sage-tinted. One white card does the work. */
:root {
  --bg: #f4f7f3;
  --ink: var(--ea-ink);
  --text: var(--ea-foreground);
  --muted: oklch(0.43 0.025 280);
  --accent: var(--ea-crimson);
  --accent-strong: var(--ea-crimson-strong);
  --blush: var(--ea-blush);
  --sage: var(--ea-sage);
  --sage-ink: var(--ea-sage-ink);
  --border: oklch(0.9 0.012 150);
  --danger: oklch(0.5 0.22 27);
  --ease: var(--ea-ease);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ea-font-sans);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

[tabindex='-1']:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.budget {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 22px 0;
}

.screen {
  animation: rise 0.22s var(--ease);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.eyebrow {
  color: var(--sage-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow--accent {
  color: var(--accent);
}

.display {
  color: var(--ink);
  font-size: clamp(38px, 8vw, 58px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.display em,
.section-title em,
.trial__title em {
  color: var(--accent);
  font-style: italic;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 460px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-strong);
}

.btn--lg {
  min-height: 54px;
  font-size: 17px;
}

.link-btn {
  justify-self: start;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--text);
  font-weight: 500;
}

.text-link {
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 4px;
}

/* ── Inputs screen ──────────────────────────────────────────────────────── */
.inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  align-items: flex-start;
  padding-top: 16px;
}

.inputs__copy {
  flex: 1 1 320px;
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.panel {
  flex: 1 1 380px;
  min-width: 0;
  display: grid;
  gap: 26px;
  padding: 26px;
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--ea-shadow-soft);
}

.field {
  display: grid;
  gap: 12px;
}

.field__label {
  color: var(--ink);
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.money {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 0 20px;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.money:focus-visible {
  outline-offset: 0;
  border-color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.chip[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--blush);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 22px;
}

.stepper__btn {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.stepper__btn:disabled {
  opacity: 0.4;
}

.stepper__value {
  color: var(--muted);
}

.stepper__value output {
  color: var(--ink);
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

.note {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 14px;
}

.radios {
  display: grid;
  gap: 8px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
}

.radio input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex: none;
}

.radio:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--blush) 50%, white);
}

.radio:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.radio input:focus-visible {
  outline: none;
}

/* ── Result + gate ──────────────────────────────────────────────────────── */
.result {
  display: grid;
  gap: 28px;
  padding-top: 12px;
}

.result__top {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
}

.result__text {
  flex: 1 1 360px;
  display: grid;
  gap: 16px;
}

.result__eyebrows {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.sent {
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 13px;
  font-weight: 600;
}

.gate-card {
  padding: 22px;
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--ea-shadow-floating);
}

.ranges {
  flex: 1 1 360px;
  display: grid;
  gap: 18px;
  padding: 28px;
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--ea-shadow-soft);
}

.ranges.locked {
  filter: blur(9px);
  user-select: none;
  pointer-events: none;
}

.ranges__head {
  display: grid;
  gap: 4px;
}

.ranges__summary {
  color: var(--muted);
  font-size: 14px;
}

.range {
  display: grid;
  gap: 6px;
}

.range__label {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.range__value {
  font-size: 14px;
  font-weight: 500;
}

.bar {
  display: block;
  height: 8px;
  border-radius: 9999px;
  background: var(--ea-champagne);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.8s var(--ease);
}

.range__hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Email capture (markup from /shared/email-capture.js) */
.ea-capture {
  display: grid;
  gap: 10px;
}

.ea-capture__label {
  color: var(--ink);
  font-weight: 600;
}

.ea-capture__row {
  display: grid;
  gap: 10px;
}

.ea-capture__input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
}

.ea-capture__input:focus-visible {
  outline-offset: 0;
  border-color: var(--accent);
}

.ea-capture__submit {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.ea-capture__retry {
  justify-self: start;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--accent);
  border-radius: 9999px;
  background: none;
  color: var(--accent);
  font-weight: 600;
}

.ea-capture[data-state='loading'] .ea-capture__submit {
  opacity: 0.75;
}

.ea-capture__message:empty {
  display: none;
}

.ea-capture__message {
  color: var(--danger);
  font-size: 14px;
}

.ea-capture__consent {
  color: var(--muted);
  font-size: 13px;
}

.ea-capture__consent a {
  color: inherit;
}

@media (min-width: 560px) {
  .ea-capture__row {
    grid-template-columns: 1fr auto;
  }
}

.section-title {
  color: var(--ink);
  font-size: clamp(30px, 6vw, 38px);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.moves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: m;
}

.move {
  counter-increment: m;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--ea-shadow-soft);
}

.move::before {
  content: counter(m);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--sage-ink);
  font-weight: 700;
}

.move__title {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}

.move__body {
  color: var(--muted);
  font-size: 14px;
}

.trial {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 26px;
  background: var(--ea-gradient-romance);
}

.trial__title {
  color: var(--ink);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.trial__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 6px;
}

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
}

@media (min-width: 720px) {
  .budget {
    padding: 16px 56px 0;
  }
  .trial {
    padding: 36px;
  }
}
