:root {
  --ink: #19342f;
  --forest: #173f38;
  --forest-2: #245d51;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --terracotta: #bc624a;
  --terracotta-soft: #f3ddd4;
  --gold: #d5a84e;
  --sage: #b9c9ba;
  --line: #ded8ca;
  --muted: #66736e;
  --danger: #a13e35;
  --shadow: 0 18px 60px rgba(29, 58, 51, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  min-height: 540px;
  overflow: hidden;
  position: relative;
  color: #fffdf8;
  background:
    radial-gradient(circle at 78% 30%, rgba(213, 168, 78, 0.16), transparent 23%),
    linear-gradient(135deg, #173f38 0%, #204c42 54%, #163a34 100%);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding-block: 25px; position: relative; z-index: 2; }
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; font-family: "DM Serif Display", Georgia, serif; font-size: 20px; letter-spacing: .01em; }
.brand sup { font: 9px "DM Sans", sans-serif; top: -.8em; position: relative; }
.brand-mark { width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; display: grid; place-items: center; font-size: 21px; font-style: italic; }
.private-pill { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); }
.private-pill span { color: #99c5af; font-size: 9px; }
.hero-inner { position: relative; z-index: 2; padding: 72px 0 102px; }
.eyebrow, .step-label, .insight-kicker { font-size: 11px; letter-spacing: .18em; font-weight: 700; }
.eyebrow { color: #ebc77f; margin-bottom: 18px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 400 clamp(46px, 7vw, 76px)/.98 "DM Serif Display", Georgia, serif; max-width: 800px; margin-bottom: 25px; letter-spacing: -.02em; }
h1 em { color: #ebc77f; font-weight: 400; }
.hero-copy { max-width: 650px; font-size: 18px; color: rgba(255,255,255,.78); }
.hero-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: #f6e7c5; transform: translateY(-14px); }
.hero-note span:first-child { color: var(--gold); }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.orbit-one { width: 580px; height: 580px; right: -170px; top: 62px; }
.orbit-two { width: 330px; height: 330px; right: -34px; top: 186px; border-color: rgba(213,168,78,.17); }

.calculator-section { position: relative; margin-top: -72px; padding-bottom: 90px; z-index: 3; }
.section-heading, .results-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 0 2px 22px; }
.section-heading { color: #fff; margin-bottom: 27px; transform: translateY(-32px); }
.section-heading h2, .results-heading h2 { font: 400 35px/1.1 "DM Serif Display", Georgia, serif; margin: 5px 0 0; }
.step-label { margin: 0; color: #ddba73; }
.privacy-note { font-size: 12px; color: rgba(255,255,255,.72); margin: 0 0 6px; }
.privacy-note span { color: #b6d1c2; margin-right: 4px; }

.panel { background: var(--paper); border: 1px solid rgba(94,85,67,.12); border-radius: 18px; box-shadow: var(--shadow); padding: 30px; margin-bottom: 20px; }
.panel-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 26px; }
.panel-heading h3 { font: 400 25px/1.2 "DM Serif Display", Georgia, serif; margin-bottom: 4px; }
.panel-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.number-badge { flex: 0 0 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: var(--terracotta-soft); color: var(--terracotta); font-weight: 700; font-size: 13px; }
.scenario-heading { justify-content: space-between; align-items: center; }
.heading-copy { display: flex; gap: 15px; align-items: flex-start; }
.scenario-tabs { padding: 4px; border-radius: 100px; background: #eee9dd; display: flex; }
.scenario-tab { border: 0; background: transparent; border-radius: 100px; padding: 10px 20px; font-size: 12px; font-weight: 700; cursor: pointer; }
.scenario-tab.active { background: var(--forest); color: #fff; box-shadow: 0 4px 12px rgba(23,63,56,.17); }
.path-instructions { margin: -5px 0 26px; padding: 17px 18px 18px; border: 1px solid #e3dbcc; border-left: 4px solid var(--terracotta); border-radius: 12px; background: #fbf7ee; }
.path-instructions > p { margin: 0 0 14px; color: #53605b; font-size: 13px; line-height: 1.5; }
.path-instructions > p strong { color: var(--ink); }
.path-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.path-steps li { display: flex; gap: 10px; min-width: 0; padding: 0 18px; }
.path-steps li:first-child { padding-left: 0; }
.path-steps li:last-child { padding-right: 0; }
.path-steps li + li { border-left: 1px solid #e3dbcc; }
.path-step-number { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--terracotta-soft); color: var(--terracotta); font-size: 11px; font-weight: 800; }
.path-steps li > span:last-child { display: grid; gap: 4px; }
.path-steps b { color: var(--ink); font-size: 14px; line-height: 1.25; }
.path-steps small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 18px; }
.shared-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { color: #4c5a55; font-size: 12px; font-weight: 600; min-height: 18px; }
.field input[type="number"], .field input[type="text"], .field select { width: 100%; height: 49px; border: 1px solid #d8d2c6; background: #fff; border-radius: 9px; padding: 0 13px; color: var(--ink); outline: none; transition: .15s ease; }
.field select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #68756f 50%), linear-gradient(135deg, #68756f 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36,93,81,.11); }
.field input:disabled, .field select:disabled, .input-affix:has(input:disabled) { background-color: #f0ece3; color: #78827e; cursor: not-allowed; }
.input-affix { display: flex; align-items: center; border: 1px solid #d8d2c6; background: #fff; border-radius: 9px; height: 49px; overflow: hidden; transition: .15s ease; }
.input-affix:focus-within { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36,93,81,.11); }
.input-affix > span { color: #75817d; padding-left: 13px; font-size: 13px; }
.input-affix input { border: 0 !important; box-shadow: none !important; height: 47px !important; padding-left: 5px !important; }
.input-affix.suffix input { padding-left: 13px !important; padding-right: 3px !important; }
.input-affix.suffix > span { padding: 0 13px 0 4px; }
.info { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 1px solid #9ba39f; color: #74807b; background: transparent; font: 700 10px Georgia, serif; cursor: pointer; vertical-align: 1px; }
.scenario-name-row { display: flex; align-items: end; gap: 18px; padding: 20px; background: #f6f1e7; border-radius: 12px; margin-bottom: 30px; }
.grow-field { flex: 1; }
.editing-label { flex: 0 0 auto; color: var(--terracotta); background: #fff; border: 1px solid #e7d5cb; border-radius: 100px; padding: 8px 12px; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.path-setup-card { padding: 20px; background: #f6f1e7; border-radius: 12px; margin-bottom: 30px; }
.path-setup-grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr) auto; align-items: end; gap: 18px; }
.preset-note { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid #e2dbce; color: var(--muted); font-size: 12px; }
.subsection { margin-top: 27px; }
.subsection-title { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; color: var(--forest); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.subsection-title .line { height: 1px; flex: 1; background: #e1dccf; }
.fit-subsection { border-top: 1px solid #ebe5d9; padding-top: 26px; }
.subsection-intro { color: var(--muted); font-size: 13px; margin: -7px 0 20px; }
.stage-list { display: grid; gap: 14px; }
.stage-card { border: 1px solid #ded7ca; border-radius: 12px; padding: 18px; background: #fcfaf5; }
.stage-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.stage-card-heading > span { color: var(--terracotta); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; }
.remove-stage-button { border: 0; background: transparent; color: #8b6f67; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.stage-grid { display: grid; grid-template-columns: 1.25fr .55fr 1fr; gap: 16px; }
.stage-name-field { grid-column: span 2; }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.add-stage-button { margin-top: 14px; border: 1px dashed #bdb4a6; background: transparent; border-radius: 9px; padding: 11px 15px; color: var(--forest); font-size: 11px; font-weight: 700; cursor: pointer; }
.add-stage-button:hover { border-color: var(--forest-2); background: #f7f5ed; }
.empty-stages { display: grid; gap: 4px; padding: 20px; border: 1px dashed #cfc7b9; border-radius: 10px; color: var(--muted); font-size: 12px; }
.empty-stages b { color: var(--ink); }
.slider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 34px; }
.slider-field { display: grid; gap: 9px; }
.slider-heading, .slider-field small { display: flex; justify-content: space-between; gap: 15px; }
.slider-field b { font-size: 12px; }
.slider-field output { font-size: 11px; font-weight: 700; color: var(--terracotta); }
.slider-field small { font-size: 10px; color: #929a96; }
.fit-help-toggle { justify-self: start; border: 0; background: transparent; padding: 2px 0; color: var(--forest-2); font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fit-help-toggle span { display: inline-block; margin-left: 4px; text-decoration: none; }
.fit-help { padding: 11px 12px; border-left: 3px solid var(--terracotta-soft); border-radius: 0 7px 7px 0; background: #f7f3e9; color: var(--muted); font-size: 10px; line-height: 1.55; }
.fit-help b { color: var(--ink); font-size: inherit; }
input[type="range"] { width: 100%; accent-color: var(--terracotta); }
.legal-disclaimer { margin-top: 24px; padding: 23px 24px; border: 1px solid #dfd2c5; border-left: 4px solid var(--terracotta); border-radius: 12px; background: #fffaf3; }
.legal-disclaimer h3 { margin-bottom: 10px; font: 400 22px/1.2 "DM Serif Display", Georgia, serif; }
.legal-disclaimer p { margin: 0 0 9px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.legal-acknowledgement { display: flex; align-items: flex-start; gap: 11px; margin-top: 16px; padding-top: 15px; border-top: 1px solid #e5d8cb; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.45; cursor: pointer; }
.legal-acknowledgement input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--forest); }
.form-actions { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 15px 0 0; }
.primary-button { border: 0; border-radius: 9px; background: var(--terracotta); color: #fff; font-weight: 700; font-size: 14px; padding: 15px 27px; cursor: pointer; box-shadow: 0 9px 24px rgba(188,98,74,.24); }
.primary-button:hover { background: #a9513d; transform: translateY(-1px); }
.primary-button span { margin-left: 10px; }
.text-button, .copy-button { border: 0; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }
.form-error { max-width: 620px; margin: 15px auto 0; padding: 12px; text-align: center; border-radius: 8px; background: #f9dfda; color: var(--danger); font-size: 13px; }

.results { scroll-margin-top: 24px; padding-top: 90px; }
.results-heading { margin-bottom: 22px; }
.results-heading .step-label { color: var(--terracotta); }
.copy-button { border: 1px solid #cbc4b7; border-radius: 8px; padding: 10px 15px; text-decoration: none; color: var(--forest); background: rgba(255,255,255,.4); }
.insight-banner { display: grid; grid-template-columns: auto 1fr; gap: 17px; align-items: start; padding: 22px 24px; border-radius: 13px; background: var(--forest); color: #fff; margin-bottom: 18px; }
.insight-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(213,168,78,.16); color: #e2b961; }
.insight-kicker { color: #e4ba66; }
.insight-banner p { margin: 6px 0 0; font-size: 14px; color: rgba(255,255,255,.82); }
.insight-banner strong { color: #fff; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.result-card { min-width: 0; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); border: 1px solid rgba(94,85,67,.12); padding: 25px; position: relative; overflow: hidden; }
.result-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; }
.result-a::before { background: var(--terracotta); }
.result-b::before { background: var(--forest-2); }
.result-card-top { display: flex; justify-content: space-between; align-items: center; min-height: 27px; gap: 10px; }
.path-tag { display: flex; align-items: center; gap: 7px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; }
.path-tag i, .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.result-a .path-tag i, .legend-a { background: var(--terracotta); }
.result-b .path-tag i, .legend-b { background: var(--forest-2); }
.leader-tag { background: #eef3e8; color: #496342; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-radius: 100px; }
.result-card > h3 { font: 400 27px/1.15 "DM Serif Display", Georgia, serif; margin: 12px 0 20px; }
.hero-metric { padding: 19px; background: #f5f0e6; border-radius: 11px; display: grid; gap: 4px; }
.hero-metric span, .metric span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.hero-metric strong { font: 400 33px/1.15 "DM Serif Display", Georgia, serif; }
.positive { color: #316b57; }
.negative { color: var(--danger); }
.hero-metric small, .metric small { font-size: 10px; color: #87908c; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border: 1px solid #e7e1d6; border-radius: 10px; overflow: hidden; }
.metric { min-width: 0; padding: 15px; display: grid; gap: 3px; }
.metric:nth-child(odd) { border-right: 1px solid #e7e1d6; }
.metric:not(:nth-last-child(-n+2)) { border-bottom: 1px solid #e7e1d6; }
.metric b { font: 400 20px/1.2 "DM Serif Display", Georgia, serif; }
.cost-detail { border-top: 1px solid #e7e1d6; margin-top: 18px; padding-top: 14px; display: grid; gap: 8px; }
.cost-detail span { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.cost-detail b { color: var(--ink); }
.results-empty { grid-column: 1 / -1; display: grid; gap: 6px; text-align: center; padding: 44px 24px; border: 1px dashed #c9c1b3; border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.35); }
.results-empty b { color: var(--ink); font: 400 22px "DM Serif Display", Georgia, serif; }
.results-empty span { max-width: 620px; margin-inline: auto; font-size: 12px; }
.copy-button:disabled { opacity: .45; cursor: not-allowed; }
.chart-card { margin-top: 18px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); border: 1px solid rgba(94,85,67,.12); padding: 25px; }
.chart-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.chart-heading h3 { font: 400 23px/1.2 "DM Serif Display", Georgia, serif; margin-bottom: 4px; }
.chart-heading p { color: var(--muted); font-size: 11px; margin-bottom: 0; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; font-size: 10px; font-weight: 700; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-wrap { height: 340px; margin-top: 18px; overflow: hidden; }
#advantageChart { width: 100%; height: 100%; overflow: visible; }
.grid-line { stroke: #e8e3da; stroke-width: 1; }
.zero-line { stroke: #9a9f9b; stroke-width: 1.2; stroke-dasharray: 5 5; }
.axis-label { fill: #7d8782; font: 10px "DM Sans", sans-serif; }
.chart-path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.path-a { stroke: var(--terracotta); }
.path-b { stroke: var(--forest-2); }
.assumptions { margin-top: 18px; border-top: 1px solid #d9d2c5; border-bottom: 1px solid #d9d2c5; }
.assumptions button { width: 100%; border: 0; background: transparent; padding: 17px 0; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; cursor: pointer; }
#assumptionsBody { color: var(--muted); font-size: 12px; max-width: 900px; padding: 0 0 15px; }
#assumptionsBody p { margin-bottom: 8px; }
.feedback-prompt { margin-top: 22px; padding: 24px 26px; border-radius: 16px; background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; box-shadow: var(--shadow); }
.feedback-prompt[hidden] { display: none; }
.feedback-kicker { color: #e4ba66; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.feedback-prompt h3 { margin: 5px 0 6px; color: #fff; font: 400 24px/1.2 "DM Serif Display", Georgia, serif; }
.feedback-prompt p { max-width: 670px; margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.55; }
.feedback-button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 9px; padding: 13px 20px; background: var(--terracotta); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 9px 24px rgba(0,0,0,.13); }
.feedback-button:hover { background: #a9513d; transform: translateY(-1px); }
.feedback-dialog { width: min(520px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 24px 70px rgba(13,39,34,.28); }
.feedback-dialog::backdrop { background: rgba(14,39,35,.62); backdrop-filter: blur(3px); }
.feedback-dialog form { position: relative; padding: 34px; }
.feedback-dialog h2 { margin: 7px 0 10px; font: 400 30px/1.15 "DM Serif Display", Georgia, serif; }
.feedback-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dialog-close { position: absolute; top: 13px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 25px; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: #eee8dc; }
.dialog-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.dialog-later { border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.footer { background: #eae4d8; border-top: 1px solid #d8d0c2; }
.footer-inner { min-height: 170px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-brand { color: var(--forest); }
.footer-brand .brand-mark { border-color: rgba(23,63,56,.35); }
.footer-inner > div > p { margin: 10px 0 0 47px; font: italic 15px "DM Serif Display", Georgia, serif; color: #68756f; }
.footer-disclaimer { font-size: 10px; color: #7c857f; text-transform: uppercase; letter-spacing: .08em; }
.tooltip { position: fixed; z-index: 20; width: 268px; background: #183f38; color: white; padding: 11px 13px; border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.2); font-size: 11px; }

@media (max-width: 900px) {
  .shared-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-setup-grid { grid-template-columns: 1fr 1fr; }
  .path-setup-grid .editing-label { grid-column: 1 / -1; justify-self: start; }
  .stage-grid { grid-template-columns: 1fr 1fr; }
  .stage-name-field { grid-column: span 1; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1160px); }
  .hero { min-height: 500px; }
  .nav { padding-block: 18px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 31px; height: 31px; }
  .private-pill { font-size: 9px; letter-spacing: .08em; }
  .hero-inner { padding: 70px 0 88px; }
  h1 { font-size: 49px; }
  .hero-copy { font-size: 16px; }
  .calculator-section { margin-top: -62px; }
  .section-heading { display: block; margin-left: 4px; }
  .section-heading h2, .results-heading h2 { font-size: 30px; }
  .privacy-note { margin-top: 12px; }
  .panel { padding: 21px 17px; border-radius: 14px; }
  .legal-disclaimer { padding: 20px 17px; }
  .panel-heading { margin-bottom: 22px; }
  .panel-heading h3 { font-size: 22px; }
  .shared-grid, .field-grid, .slider-grid { grid-template-columns: 1fr; gap: 17px; }
  .scenario-heading { align-items: stretch; flex-direction: column; }
  .scenario-tabs { align-self: stretch; }
  .scenario-tab { flex: 1; }
  .path-instructions { margin-top: 0; padding: 16px 15px; }
  .path-steps { grid-template-columns: 1fr; }
  .path-steps li { padding: 13px 0; }
  .path-steps li:first-child { padding-top: 0; }
  .path-steps li:last-child { padding-bottom: 0; }
  .path-steps li + li { border-left: 0; border-top: 1px solid #e3dbcc; }
  .scenario-name-row { align-items: stretch; flex-direction: column; gap: 8px; padding: 15px; }
  .path-setup-card { padding: 15px; }
  .path-setup-grid, .stage-grid { grid-template-columns: 1fr; }
  .path-setup-grid .editing-label { grid-column: auto; }
  .stage-name-field { grid-column: auto; }
  .stage-card { padding: 15px 13px; }
  .editing-label { align-self: flex-start; margin: 0; }
  .form-actions { flex-direction: column; gap: 13px; }
  .primary-button { width: 100%; min-height: 52px; }
  .results { padding-top: 70px; }
  .results-heading { align-items: start; }
  .copy-button { white-space: nowrap; margin-top: 2px; }
  .feedback-prompt { align-items: stretch; flex-direction: column; gap: 18px; padding: 22px 19px; }
  .feedback-button { width: 100%; }
  .feedback-dialog form { padding: 31px 22px 24px; }
  .feedback-dialog h2 { font-size: 27px; padding-right: 20px; }
  .dialog-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .dialog-later { min-height: 42px; }
  .insight-banner { padding: 19px; grid-template-columns: 1fr; }
  .insight-icon { width: 31px; height: 31px; }
  .result-card, .chart-card { padding: 19px 16px; }
  .result-card > h3 { font-size: 25px; }
  .hero-metric strong { font-size: 29px; }
  .metric { padding: 13px 10px; }
  .metric b { font-size: 17px; }
  .chart-heading { display: block; }
  .legend { justify-content: flex-start; margin-top: 13px; }
  .chart-wrap { height: 285px; overflow-x: auto; }
  #advantageChart { min-width: 680px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
  .footer-inner > div > p { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
