:root {
  --page: #f4f7fb;
  --paper: #ffffff;
  --paper-soft: #eef3f8;
  --ink: #090d18;
  --muted: #526071;
  --quiet: #8793a4;
  --line: rgba(15, 23, 42, .1);
  --line-strong: rgba(15, 23, 42, .18);
  --blue: #0066ff;
  --blue-quiet: #dceaff;
  --violet: #0066ff;
  --mint: #0f9f8f;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --shadow: 0 24px 80px rgba(15, 23, 42, .12);
  --shell: 1440px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(115deg, rgba(0, 102, 255, .13), transparent 28rem) 0 0 / 100% 520px no-repeat,
    linear-gradient(245deg, rgba(15, 159, 143, .1), transparent 30rem) 100% 0 / 100% 560px no-repeat,
    linear-gradient(180deg, #fbfdff 0%, #eef3f8 44%, #f8fafc 100%),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  width: 100%;
  margin: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(24px, calc((100vw - var(--shell)) / 2 + 16px));
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  border-radius: 0;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 38px rgba(15, 23, 42, .075);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .11), transparent 40%),
    var(--ink);
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 10px 22px rgba(9,13,24,.16);
}
.brand-mark svg {
  width: 32px;
  height: 32px;
}
.logo-base { fill: #fff; }
.logo-level { fill: #7fb0ff; }
.logo-step { fill: #81d8cd; }
.brand span:last-child {
  display: grid;
  gap: 1px;
}
.brand strong {
  font-size: 14px;
  letter-spacing: .025em;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}
nav a {
  text-decoration: none;
}
nav a:hover { color: var(--ink); }
.menu-button {
  display: none;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 760;
}
.menu-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.nav-cta {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}
.nav-cta:hover { color: white; filter: brightness(1.08); }

.app-shell {
  width: min(calc(100% - 32px), var(--shell));
  margin: 0 auto;
  padding: 46px 0 28px;
}

.intro {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(320px, 470px);
  gap: 54px;
  align-items: end;
  margin-bottom: 30px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .22em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-family: var(--sans);
  max-width: 780px;
  font-size: clamp(54px, 7.6vw, 112px);
  font-weight: 820;
  letter-spacing: -.022em;
  line-height: .88;
}
.intro-proof {
  display: grid;
  gap: 22px;
}
.intro-proof p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.intro-proof dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 16px 44px rgba(15, 23, 42, .07);
}
.intro-proof dl div {
  min-height: 82px;
  display: grid;
  align-content: center;
  padding: 14px;
  background: rgba(255, 255, 255, .72);
}
.intro-proof dt {
  color: var(--ink);
  font-size: 30px;
  font-weight: 820;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.intro-proof dd {
  margin: 6px 0 0;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}
.hero-actions a,
.hero-actions span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}
.hero-primary {
  background: var(--ink);
  color: white;
}
.hero-actions span {
  border: 1px solid rgba(15, 23, 42, .1);
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.input-panel,
.chart-panel,
.decision-panel,
.method {
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(29, 41, 57, .09);
  backdrop-filter: blur(22px);
}

.input-panel {
  position: sticky;
  top: 16px;
  padding: 22px;
}
.panel-head,
.section-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.panel-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 2px;
}
.preset-button,
.tone-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 760;
}
.preset-button:hover,
.tone-button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.preset-button.is-active,
.tone-button.is-active {
  border-color: rgba(0, 102, 255, .24);
  background: var(--blue-quiet);
  color: var(--blue);
}
h2 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
}
.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button:hover {
  color: var(--blue);
  border-color: rgba(37, 99, 235, .3);
}

fieldset {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}
.advanced-group {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.advanced-group summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  list-style: none;
}
.advanced-group summary::-webkit-details-marker { display: none; }
.advanced-group summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--blue);
}
.advanced-group[open] summary::after {
  content: "-";
}
.advanced-group summary span {
  margin-left: auto;
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.advanced-group fieldset {
  margin-top: 0;
  padding-bottom: 2px;
}
legend {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  outline: none;
}
input,
select {
  min-height: 42px;
  padding: 0 12px;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
input[type="number"] {
  appearance: textfield;
}
textarea {
  resize: vertical;
  min-height: 138px;
  padding: 12px;
  line-height: 1.55;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  border-color: rgba(37, 99, 235, .7);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}
.segmented label { display: block; }
.segmented input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}
.segmented span {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.segmented input:checked + span {
  background: white;
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}
.toggle span { color: var(--ink); }
.range-field {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.range-field input {
  grid-column: 1 / -1;
  min-height: 24px;
  padding: 0;
  accent-color: var(--violet);
}
.range-field output { color: var(--ink); font-variant-numeric: tabular-nums; }

.output-panel {
  display: grid;
  gap: 18px;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 20px 60px rgba(29, 41, 57, .08);
}
.summary-strip div {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, .82);
}
.summary-strip span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.summary-strip strong {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
}

.chart-panel,
.decision-panel {
  padding: 26px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-quiet);
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}
.status-pill.warn {
  background: #fff7ed;
  color: #c2410c;
}
.status-pill.good {
  background: #ccfbf1;
  color: #0f766e;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.year-card {
  min-height: 92px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.year-card span {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 760;
}
.year-card strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.year-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.recommendation {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
  background: #f6f9fd;
  border: 1px solid rgba(37, 99, 235, .15);
}
.recommendation span {
  display: grid;
  place-items: center;
  min-height: 112px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 28px;
  font-weight: 780;
}
.recommendation p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.recommendation div > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -.035em;
}
.script-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.script-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tone-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
}
.tone-button {
  min-height: 30px;
  border: 0;
  background: transparent;
  padding: 0 10px;
}
.primary-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 780;
}
.primary-button:hover {
  filter: brightness(1.04);
}

.method,
.after-calc,
.faq {
  margin-top: 20px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(29, 41, 57, .1);
  backdrop-filter: blur(22px);
}

.method {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 30px;
}
.method h2 {
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 820;
  letter-spacing: -.006em;
}
.method > div > p,
.faq > div > p { color: var(--muted); margin: 10px 0 0; }
.method ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.method li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.method li::before {
  content: counter(steps);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--blue);
  font-weight: 780;
}
.method strong,
.method span {
  grid-column: 2;
}
.method span { color: var(--muted); }

.after-calc {
  display: grid;
  gap: 22px;
  background:
    radial-gradient(circle at 86% 20%, rgba(0, 102, 255, .13), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, .04), transparent 48%),
    rgba(255, 255, 255, .86);
}
.after-calc-copy {
  max-width: 780px;
}
.after-calc h2,
.faq h2 {
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 820;
  letter-spacing: -.006em;
}
.after-calc-copy p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}
.next-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.next-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
}
.next-card span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 820;
  letter-spacing: -.045em;
  line-height: .82;
}
.next-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -.01em;
}
.next-card p {
  margin: 0;
  color: var(--muted);
}
.bundle-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}
.bundle-strip p {
  margin: 0;
  color: var(--muted);
}
.bundle-strip strong { color: var(--ink); }
.cta-button {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 780;
  white-space: nowrap;
}

.faq {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 30px;
}
.faq-list {
  display: grid;
  gap: 0;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -.005em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--blue);
}
.faq details[open] summary::after { content: "-"; }
.faq p {
  max-width: 760px;
  margin: -4px 0 20px;
  color: var(--muted);
}

.footer {
  width: 100%;
  margin: 0 auto;
  padding: 28px max(24px, calc((100vw - var(--shell)) / 2)) 46px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: #e8eef6;
  color: #475569;
  font-size: 13px;
}
.footer p { margin: 0; }
.footer a {
  color: #1f2937;
  font-weight: 720;
}
.footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mobile-decision-bar {
  display: none;
}

.toast,
.noscript {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  z-index: 20;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .2);
  transition: transform .22s ease;
}
.toast.show { transform: translate(-50%, 0); }
.noscript { transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .intro,
  .workspace,
  .method,
  .faq {
    grid-template-columns: 1fr;
  }
  .input-panel {
    position: static;
  }
  .intro {
    gap: 24px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 86px;
  }
  body {
    background:
      linear-gradient(180deg, #eef4fb 0%, #f8fafc 46%, #f8fafc 100%),
      var(--page);
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: max(8px, env(safe-area-inset-top)) 12px 10px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: #f8fafc;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand strong {
    font-size: 13px;
    letter-spacing: .035em;
  }
  .menu-button {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
  }
  .menu-button:focus-visible {
    border-radius: 8px;
  }
  .menu-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .menu-button .icon-close {
    display: none;
  }
  .topbar.menu-open .menu-button .icon-menu {
    display: none;
  }
  .topbar.menu-open .menu-button .icon-close {
    display: block;
  }
  .topbar nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    z-index: 24;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 12px 14px;
    border-width: 0 0 1px;
    border-color: rgba(15, 23, 42, .08);
    border-style: solid;
    border-radius: 0 0 22px 22px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(.98);
    transform-origin: top center;
    transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1), visibility .2s ease;
    visibility: hidden;
  }
  .topbar.menu-open nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }
  .topbar nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 11px;
    padding: 0 14px;
    background: #f3f6fa;
    color: var(--ink);
    font-weight: 720;
  }
  .topbar nav a.nav-cta {
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    background: var(--ink);
    color: white;
    box-shadow: 0 12px 26px rgba(9, 13, 24, .18);
  }
  .app-shell {
    width: 100%;
    padding: 0 10px 124px;
  }
  .intro {
    position: relative;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 -10px 10px;
    padding: 18px 20px 16px;
    overflow: hidden;
    background:
      linear-gradient(145deg, rgba(0, 102, 255, .2), transparent 46%),
      linear-gradient(180deg, #111827 0%, #0b1020 100%);
    color: white;
  }
  .intro::after {
    content: "";
    position: absolute;
    inset: auto 20px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  }
  .field-grid,
  .split-row,
  .summary-strip,
  .year-grid,
  .recommendation,
  .next-cards,
  .faq {
    grid-template-columns: 1fr;
  }
  .summary-strip div {
    min-height: 96px;
  }
  .chart-panel,
  .decision-panel,
  .input-panel,
  .method,
  .after-calc,
  .faq {
    padding: 18px;
    border-color: rgba(255, 255, 255, .88);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
  }
  .input-panel,
  .chart-panel,
  .decision-panel {
    border-radius: 20px;
  }
  .section-title,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-head {
    flex-direction: row;
    align-items: center;
  }
  h1 {
    position: relative;
    z-index: 1;
    max-width: 330px;
    font-size: clamp(38px, 11.8vw, 48px);
    letter-spacing: -.008em;
    line-height: .94;
  }
  .eyebrow {
    position: relative;
    z-index: 1;
    font-size: 11px;
    letter-spacing: .2em;
  }
  .hero-actions {
    gap: 8px;
    margin-top: 14px;
  }
  .hero-actions a,
  .hero-actions span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }
  .hero-actions span:last-child {
    display: none;
  }
  .hero-primary {
    background: white;
    color: var(--ink);
  }
  .hero-actions span {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .76);
  }
  .intro-proof {
    position: relative;
    z-index: 1;
    gap: 12px;
  }
  .intro-proof p {
    max-width: 350px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .78);
  }
  .intro-proof dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
  }
  .intro-proof dl div {
    min-height: 62px;
    padding: 10px;
    background: rgba(255, 255, 255, .07);
  }
  .intro-proof dt {
    font-size: 22px;
    color: white;
  }
  .intro-proof dd {
    font-size: 8px;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .58);
  }
  .workspace,
  .output-panel { gap: 12px; }
  .output-panel {
    order: -1;
  }
  .decision-panel {
    order: 1;
  }
  .summary-strip {
    order: 2;
  }
  .chart-panel {
    order: 3;
  }
  .input-panel {
    margin-top: 8px;
  }
  .preset-row {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -18px;
    padding: 14px 18px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .preset-row::-webkit-scrollbar {
    display: none;
  }
  .preset-button {
    min-height: 40px;
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 13px;
  }
  .panel-head {
    padding-bottom: 14px;
  }
  fieldset {
    margin-top: 18px;
  }
  legend {
    margin-bottom: 10px;
    color: var(--quiet);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  label {
    gap: 8px;
    font-size: 13px;
  }
  input,
  select {
    min-height: 50px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 16px;
  }
  .segmented {
    gap: 4px;
    border-radius: 14px;
    padding: 4px;
  }
  .segmented span {
    min-height: 42px;
    border-radius: 10px;
  }
  .split-row {
    gap: 10px;
  }
  .toggle,
  .range-field {
    min-height: 54px;
    border-radius: 14px;
    background: #f8fafc;
  }
  .advanced-group {
    margin-top: 18px;
  }
  .advanced-group summary {
    min-height: 56px;
    font-size: 14px;
  }
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .summary-strip div {
    min-height: 102px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  }
  .summary-strip div:first-child {
    grid-column: 1 / -1;
    min-height: 118px;
    background:
      linear-gradient(135deg, rgba(0, 102, 255, .11), transparent 58%),
      #ffffff;
  }
  .summary-strip strong {
    font-size: 40px;
  }
  canvas {
    min-height: 190px;
    border-radius: 16px;
    object-fit: contain;
  }
  .year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .year-card {
    min-height: 88px;
    border-radius: 16px;
    background: #f8fafc;
  }
  .script-box textarea {
    min-height: 190px;
    border-radius: 16px;
    background: #f8fafc;
    font-size: 14px;
  }
  .script-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .tone-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 14px;
  }
  .tone-button {
    min-height: 40px;
    border-radius: 10px;
  }
  .primary-button,
  .cta-button {
    min-height: 52px;
    border-radius: 14px;
  }
  .recommendation span {
    min-height: 82px;
    font-size: 24px;
    border-radius: 16px;
  }
  .bundle-strip {
    align-items: stretch;
    flex-direction: column;
  }
  .cta-button { width: 100%; }
  .faq summary { font-size: 15px; }
  .next-card span {
    margin-bottom: 22px;
    font-size: 54px;
  }
  .next-card {
    min-height: 176px;
  }
  .mobile-decision-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 40;
    min-height: calc(78px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, .88);
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
    background: #111827;
    color: white;
    box-shadow: 0 18px 54px rgba(15, 23, 42, .28);
  }
  .mobile-decision-bar span {
    display: block;
    color: rgba(255,255,255,.48);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .mobile-decision-bar strong {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
  }
  .mobile-decision-bar a,
  .mobile-decision-bar button {
    min-width: 58px;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: white;
    color: white;
    font-weight: 780;
  }
  .mobile-decision-bar a {
    display: grid;
    place-items: center;
    color: white;
    background: #374151;
    text-decoration: none;
  }
  .mobile-decision-bar button {
    color: var(--ink);
  }
  .footer {
    width: 100%;
    padding: 28px 24px calc(134px + env(safe-area-inset-bottom));
    background: #e8eef6;
  }
}

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