:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #19201f;
  --muted: #68706f;
  --line: #dfe3df;
  --accent: #1d5f58;
  --accent-soft: #e7f0ed;
  --shadow: 0 10px 30px rgba(24, 32, 31, 0.06);
  --radius: 18px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button { color: inherit; }
.page-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 72px; }
.hero { padding: 24px 4px 30px; }
.brand { font-size: 18px; font-weight: 750; letter-spacing: 0.04em; margin-bottom: 48px; }
.hero h1 { margin: 0; max-width: 820px; font-size: clamp(40px, 7vw, 72px); line-height: .98; letter-spacing: -.045em; font-weight: 650; }
.hero p { max-width: 680px; margin: 24px 0 0; font-size: 20px; line-height: 1.5; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.section-heading { margin-bottom: 22px; }
.section-heading.compact { margin-bottom: 18px; }
.section-note { color: var(--muted); line-height: 1.55; margin: 8px 0 0; }
.eyebrow { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: var(--accent); }
h2, h3 { margin-top: 0; }
.section-heading h2, .card h3 { margin-bottom: 0; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field > span { font-size: 14px; font-weight: 650; }
.label-with-info { display: inline-flex; align-items: center; gap: 7px; }
.inline-info { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); padding: 0; font-size: 12px; font-weight: 800; cursor: pointer; }
select, input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; background: #fff; color: var(--text); outline: none; }
select:focus, input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-tagline { color: var(--muted); margin: -2px 0 4px; font-size: 14px; }

.pace-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pace-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 17px; cursor: pointer; transition: 150ms ease; text-align: center; }
.pace-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px rgba(29,95,88,.06); }
.pace-card input { width: auto; margin: 0 0 10px; }
.pace-card strong { display: block; margin-bottom: 6px; }
.pace-card small { display: block; color: var(--muted); line-height: 1.42; }

.cost-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; }
.money-input { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding-left: 14px; background: #fff; }
.money-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.money-input input { border: 0; box-shadow: none !important; }
.money-input span { color: var(--muted); }
.cost-preview { color: var(--accent); font-weight: 650; }

.primary-button, .secondary-button, .notify-button { border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 750; cursor: pointer; }
.primary-button { margin-top: 24px; width: 100%; background: var(--accent); color: #fff; font-size: 16px; }
.primary-button:hover, .secondary-button:hover, .notify-button:hover { filter: brightness(.96); }
.secondary-button { background: var(--accent); color: #fff; white-space: nowrap; }
.notify-button { width: 100%; margin-top: auto; background: var(--accent-soft); color: var(--accent); }

.results { display: grid; gap: 20px; margin-top: 20px; }
.result-hero h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.025em; margin-bottom: 8px; }
.result-hero p { color: var(--muted); margin: 0; }
.dual-path { background: #f3f6f4; }
.dual-path p { margin-bottom: 0; color: var(--muted); }
.timeline-comparison { width: 100%; overflow-x: auto; padding-bottom: 6px; }
.timeline-grid { display: grid; gap: 16px; }
.timeline-grid.pathways-1 { grid-template-columns: minmax(620px, 1fr); }
.timeline-grid.pathways-2 { grid-template-columns: repeat(2, minmax(500px, 1fr)); }
.timeline-grid.pathways-3 { grid-template-columns: repeat(3, minmax(430px, 1fr)); }
.timeline-group { border: 1px solid var(--line); border-radius: 14px; overflow: visible; background: #fff; }
.timeline-group-title { padding: 13px 16px; background: #fafafa; font-weight: 750; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; border-radius: 14px 14px 0 0; }
.timeline-group-title small { color: var(--muted); font-weight: 600; }
.start-date-box { padding: 16px; background: var(--accent-soft); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.start-date-box span { font-size: 13px; color: var(--muted); }
.start-date-box strong { font-size: 18px; }
.timeline-row { display: grid; grid-template-columns: minmax(180px, 1fr) 130px 220px; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); position: relative; }
.timeline-row:last-child { border-bottom: 0; }
.duration-input { display: grid; grid-template-columns: 72px auto; align-items: center; gap: 8px; }
.duration-input input { padding: 9px 10px; }
.duration-input span { font-size: 12px; color: var(--muted); }
.stage-dates { display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.date-arrow { color: #a5aaa8; }

.pace-impact-card { display: grid; gap: 7px; background: linear-gradient(135deg, #edf5f2, #fff); }
.pace-impact-text { margin: 0; font-size: 20px; line-height: 1.4; }
.pace-impact-text strong { color: var(--accent); }
.pace-impact-note { margin: 0; color: var(--muted); }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.placeholder-box { margin-top: 18px; padding: 18px; border-radius: 12px; background: #f7f8f6; border: 1px dashed #c9ceca; }
.placeholder-box p, .assumptions p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.source-note { font-size: 12px; }
.email-output-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 18px; }
.coming-soon-section { margin-top: 64px; padding-top: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; min-height: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.product-card h3 { margin: 12px 0 8px; font-size: 21px; }
.product-card p { color: var(--muted); line-height: 1.55; margin: 0 0 22px; }
.product-status { align-self: flex-start; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 8px; border-radius: 999px; }
.founding-offer { text-align: center; color: var(--muted); margin: 20px 0 0; }


.fees-output { display: grid; gap: 14px; margin-top: 14px; }
.fee-pathway-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.fee-pathway-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; background: #fafafa; border-bottom: 1px solid var(--line); }
.fee-pathway-heading span { color: var(--muted); font-size: 12px; }
.fee-table { display: grid; }
.fee-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.fee-row:last-child { border-bottom: 0; }
.fee-name { min-width: 0; font-size: 14px; }
.fee-name small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; font-size: 11px; }
.fee-value { font-weight: 700; white-space: nowrap; text-align: right; }
.fee-total { background: var(--accent-soft); }
.fee-badge { display: inline-block; margin-left: 7px; padding: 2px 6px; border-radius: 999px; background: #eef3f9; color: var(--info-blue); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.fee-notes { padding: 12px 2px 0; }
.fee-notes p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(18,25,24,.55); display: grid; place-items: center; padding: 20px; z-index: 100; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(520px, 100%); background: #fff; border-radius: 18px; padding: 28px; position: relative; box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 28px; cursor: pointer; color: var(--muted); }
.modal-field { margin-top: 16px; }
.modal-footnote { color: var(--muted); font-size: 12px; line-height: 1.45; margin-bottom: 0; }
.info-body p { color: var(--muted); line-height: 1.5; }
.info-body strong { color: var(--text); }

.stage-info { position: relative; display: inline-flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; cursor: help; outline: none; font-weight: 600; }
.stage-info-button { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 750; line-height: 1; flex: 0 0 auto; }
.stage-tooltip { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 10px); width: min(360px, 78vw); padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 34px rgba(24,32,31,.14); color: var(--text); font-size: 13px; line-height: 1.45; font-weight: 400; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease; pointer-events: none; }
.stage-tooltip strong { display: block; margin: 6px 0 3px; font-size: 13px; }
.stage-tooltip strong:first-child { margin-top: 0; }
.stage-tooltip span { display: block; color: var(--muted); }
.stage-info:hover .stage-tooltip, .stage-info:focus .stage-tooltip, .stage-info:focus-within .stage-tooltip, .stage-info.is-open .stage-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 900px) {
  .product-grid, .two-column { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-shell { width: min(100% - 20px, 680px); padding-top: 16px; }
  .hero { padding-top: 12px; }
  .brand { margin-bottom: 32px; }
  .hero p { font-size: 17px; }
  .card { padding: 20px; }
  .field-grid, .pace-options, .email-output-row, .cost-input-row { grid-template-columns: 1fr; }
  .timeline-grid.pathways-1, .timeline-grid.pathways-2, .timeline-grid.pathways-3 { grid-template-columns: repeat(3, minmax(310px, 1fr)); }
  .timeline-grid.pathways-1 { grid-template-columns: minmax(310px, 1fr); }
  .timeline-grid.pathways-2 { grid-template-columns: repeat(2, minmax(310px, 1fr)); }
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
  .stage-dates { justify-content: flex-start; }
  .secondary-button { width: 100%; }
  .stage-tooltip { position: fixed; left: 18px; right: 18px; bottom: 18px; width: auto; max-width: none; z-index: 100; }
}
.timeline-group.is-muted { opacity: .38; background: #f1f2ef; filter: grayscale(.4); }
.timeline-group.is-muted input { background: #eceeeb; cursor: not-allowed; }
.timeline-group.is-muted .start-date-box { background: #eef0ed; }

/* v5 clarity + mobile refinements */
:root { --info-blue: #0b3b78; }
.inline-info,
.stage-info-button {
  border-color: var(--info-blue);
  background: var(--info-blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 59, 120, .16);
}
.inline-info:hover,
.inline-info:focus-visible,
.stage-info:hover .stage-info-button,
.stage-info:focus .stage-info-button {
  background: #082f61;
  border-color: #082f61;
}

.duration-input {
  grid-template-columns: 72px 24px auto;
  gap: 6px;
}
.duration-input input[type="number"] {
  appearance: auto;
  -moz-appearance: auto;
}
.week-stepper {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  height: 38px;
}
.week-step-button {
  border: 1px solid var(--line);
  background: #f7f8f7;
  border-radius: 5px;
  padding: 0;
  min-width: 24px;
  min-height: 17px;
  color: var(--info-blue);
  font-size: 8px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.week-step-button:hover,
.week-step-button:focus-visible { background: #eef3f9; border-color: #a9bed8; }
.duration-suffix { white-space: nowrap; }

@media (max-width: 760px) {
  body { -webkit-text-size-adjust: 100%; }
  .page-shell { width: min(100% - 16px, 680px); padding: 10px 0 44px; }
  .hero { padding: 14px 4px 20px; }
  .brand { margin-bottom: 22px; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); line-height: 1.02; }
  .hero p { margin-top: 16px; font-size: 16px; }
  .card { padding: 17px; border-radius: 15px; }
  .planner-form { width: 100%; }
  .field-grid { gap: 15px; }
  select, input { min-height: 48px; font-size: 16px; }
  .primary-button, .secondary-button, .notify-button { min-height: 48px; }

  .pace-options { grid-template-columns: 1fr; gap: 10px; }
  .pace-card {
    display: grid;
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    text-align: left;
    align-items: center;
    padding: 13px 14px;
  }
  .pace-card input { grid-column: 1; grid-row: 1 / 3; margin: 0; min-height: auto; }
  .pace-card strong { grid-column: 2; grid-row: 1; margin: 0; }
  .pace-card small { grid-column: 2; grid-row: 2; margin-top: 2px; }

  .timeline-comparison { overflow-x: visible; }
  .timeline-grid.pathways-1,
  .timeline-grid.pathways-2,
  .timeline-grid.pathways-3 { grid-template-columns: 1fr; }
  .timeline-group { min-width: 0; }
  .timeline-row { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
  .stage-info { width: 100%; justify-content: space-between; gap: 10px; }
  .stage-info-button { width: 22px; height: 22px; font-size: 12px; }
  .duration-input { grid-template-columns: minmax(88px, 116px) 28px auto; justify-content: start; }
  .duration-input input { min-height: 42px; }
  .week-stepper { height: 42px; }
  .week-step-button { min-width: 28px; min-height: 19px; }
  .stage-dates {
    justify-content: flex-start;
    white-space: normal;
    flex-wrap: wrap;
    padding-top: 2px;
    font-size: 13px;
  }
  .timeline-group-title, .start-date-box { align-items: center; }
  .timeline-group-title { flex-wrap: wrap; }
  .email-output-row, .cost-input-row { gap: 8px; }
  .fee-row { grid-template-columns: 1fr; gap: 5px; }
  .fee-value { text-align: left; }
  .fee-pathway-heading { align-items: center; }
  .modal { padding: 24px 20px 20px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .modal-backdrop { padding: 12px; }
  .stage-tooltip { left: 12px; right: 12px; bottom: 12px; }
  .product-card { min-height: 0; }
  .coming-soon-section { margin-top: 42px; }
}

@media (max-width: 390px) {
  .page-shell { width: calc(100% - 12px); }
  .card { padding: 14px; }
  .pace-card { grid-template-columns: 22px 1fr; }
  .duration-input { grid-template-columns: 90px 28px auto; }
}


.two-column.single-column { grid-template-columns: 1fr; }
.fee-subheading { padding: 14px; background: #f6f8fb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--deep-blue, #123a63); }
.fee-deposit-row { background: #fbfcfe; }
.fee-deposit-total { background: #f6f8fb; border-top: 1px solid var(--line); }
