:root {
  --ink: #111;
  --muted: #595959;
  --hair: #e7e7e7;
  --bg: #fff;
  --accent: #0e6b62;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 680px;
  --wide: 1040px;
  --panel: #f6f6f4;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute; left: 8px; top: -40px; background: var(--ink); color: #fff; padding: 8px 12px;
}
.skip:focus { top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: var(--wide); }
h1, h2, h3, strong, b, .wordmark, .big, .btn, summary, .break-row .nums b, .delta-num {
  font-weight: 600;
}
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 56px); margin-top: 12px; }
h2 { font-size: 28px; margin-top: 8px; }
h3 { font-size: 17px; }

.nav { padding: 24px 0 8px; }
.nav-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wage-block { text-align: right; }
.wage-block .hint { margin-top: 2px; }
.wage-line { font-size: 15px; }
.wage-line .text-btn { margin-left: 8px; }
.gate[hidden], #screen2[hidden] { display: none !important; }
.gate {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 32px 16px;
  background: linear-gradient(165deg, #0b3d38 0%, #0e1b24 100%);
}
.gate .wordmark { font-size: 18px; color: #fff; }
.micro { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.gate-card {
  width: 440px; max-width: 100%; background: #fff; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, .06); padding: 32px 28px 28px;
}
.gate-card h1 { margin-top: 0; font-size: 32px; }
.gate-card .lead { margin-top: 16px; color: var(--muted); font-size: 16px; }
.gate-card .next { margin-top: 12px; }
.gate-card label { display: block; margin-top: 24px; font-size: 14px; }
.gate-card .zip-field {
  display: block; width: 100%; height: 52px; margin-top: 8px; padding: 0 16px;
  border: 1px solid #d7dee5; border-radius: 12px; background: #fff;
  font-size: 17px; line-height: normal;
}
.gate-card .zip-field::placeholder { color: #8a939c; }
.gate-card .zip-field:focus,
.gate-card .zip-field:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 107, 98, .28);
}
.btn-block { width: 100%; margin-top: 16px; }
.page-hint { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 8px auto 0; }
.step-block { display: grid; gap: 22px; }
.step-kicker { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.step-kicker span:first-child { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 600; }
.inputs .hint { margin-top: 0; margin-bottom: 8px; }
.staff-stat { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 15px; }
.staff-stat span { color: var(--muted); }
.pace { margin-top: 12px; font-size: 16px; line-height: 1.4; }
.screen.is-leaving, .gate.is-leaving { opacity: 0; }
.gate, #screen2 { transition: opacity .35s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .gate, #screen2 { transition: none; }
}
.wordmark { font-size: 20px; letter-spacing: -.04em; text-decoration: none; }

.hero { padding: 56px 0 8px; }
.kicker { color: var(--muted); font-size: 13px; letter-spacing: .01em; }
.subhead { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.5; max-width: 36em; }
.intro h1 { max-width: 12em; }
.intro .btn { margin-top: 28px; }
.facts { padding-top: 48px; padding-bottom: 8px; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tiles li { min-height: 132px; }
.tiles b { display: block; font-size: clamp(40px, 5vw, 52px); letter-spacing: -.04em; line-height: 1; }
.tiles span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.4; max-width: 16em; }
.tiles sup, .tiles sup a { font-size: 11px; line-height: 0; color: var(--muted); text-decoration: none; }
.stand { margin-top: 40px; text-align: center; font-size: 18px; font-weight: 500; line-height: 1.4; }
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; gap: 28px; }
  .tiles li { min-height: 0; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-size: 16px;
  transition: opacity .2s var(--ease);
}
.btn:hover { opacity: .88; }
.btn.btn-amber { background: #f2b84b; color: #111; }
.btn.btn-amber:hover { opacity: .92; }

#calculator { padding: 40px 0 16px; scroll-margin-top: 16px; }
.panel { background: var(--panel); border-radius: 18px; padding: 28px 28px 32px; }
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.inputs { display: grid; gap: 20px; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 48px; border-bottom: 1px solid #cfcfca; }
.stepper input { border: 0; height: 44px; text-align: center; background: transparent; }
.step { width: 44px; height: 44px; border-radius: 22px; font-size: 20px; line-height: 1; color: var(--ink); }
.step:hover { background: rgba(0,0,0,.05); }
.substats { display: flex; gap: 24px; margin-top: 16px; min-height: 28px; }
.substats p { font-size: 15px; }
.substats span { color: var(--muted); }
.hbar { margin-top: 28px; display: grid; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hbar-row span { color: var(--muted); font-size: 13px; }
.hbar-row b { font-size: 15px; font-variant-numeric: tabular-nums; }
.track { height: 8px; background: #e4e4e0; border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; }
.hbar-row:last-child .track i { background: #f2b84b; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sticky-total { display: none; }
@media (max-width: 800px) {
  .nav-row { flex-direction: column; align-items: flex-start; }
  .wage-block { text-align: left; width: 100%; }
  .calc { grid-template-columns: 1fr; gap: 32px; }
  .panel { padding: 22px 18px 24px; }
  .hbar-row { grid-template-columns: 1fr auto; }
  .hbar-row .track { grid-column: 1 / -1; grid-row: 2; }
  body { padding-bottom: 64px; }
  .sticky-total.is-on {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
    justify-content: space-between; align-items: center; gap: 16px;
    min-height: 56px; padding: 8px 20px calc(8px + env(safe-area-inset-bottom));
    background: #0e1b24; color: #fff; border-top: 0;
  }
  .sticky-total span { color: rgba(255,255,255,.75); font-size: 13px; }
  .sticky-total b { font-size: 18px; font-variant-numeric: tabular-nums; color: #fff; }
}
.grid4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  align-items: end;
}
@media (max-width: 640px) { .grid4 { grid-template-columns: 1fr; } }
.grid4 > div { min-width: 0; }
.grid4 label, .stack label, .field label, .assume-grid label, #scenario label {
  display: block; font-size: 13px; line-height: 1.3; margin-bottom: 8px;
}
.hint, .quiet, .status { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 8px; }
.status:empty { margin: 0; }

.combo {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  height: 48px;
  border-bottom: 1px solid #cfcfca;
}
.combo:focus-within { border-bottom-color: var(--ink); }
.combo input, .combo select {
  width: 100%; height: 48px; border: 0; background: transparent; padding: 0;
  min-width: 0;
}
.combo input::placeholder { color: var(--muted); }
.combo select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%236b6b6b'/></svg>") no-repeat right center;
}

input[type="number"], input[type="text"], input[type="email"], select {
  width: 100%; height: 48px; border: 0; border-bottom: 1px solid var(--hair);
  border-radius: 0; background: transparent; padding: 0; font-size: 16px;
  transition: border-color .2s var(--ease);
}
.combo input, .combo select, .stepper input { border-bottom: 0; font-size: 16px; }
input:focus, select:focus { outline: none; border-bottom-color: var(--ink); }
.combo input:focus, .combo select:focus, .stepper input:focus { border-bottom-color: transparent; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
select { cursor: pointer; }

.result { margin-top: 0; }
.lbl { font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.big {
  margin-top: 8px; min-height: 1em; font-size: clamp(52px, 6vw, 76px); letter-spacing: -.05em;
  line-height: .95; color: var(--accent); font-variant-numeric: tabular-nums;
}
.hours { margin-top: 16px; font-size: 17px; }
.rows { margin-top: 24px; min-height: 112px; }
.break-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  align-items: baseline; padding: 16px 0; border-top: 1px solid var(--hair);
}
.break-row .name { font-size: 17px; }
.break-row .nums { text-align: right; font-variant-numeric: tabular-nums; }
.break-row .nums b { font-size: 17px; }
.break-row.info { border-top: 0; padding-top: 0; }
.break-row.info .name, .break-row.info .nums b { color: var(--muted); font-size: 13px; font-weight: 400; }
.break-row.info sup { font-size: 10px; }
.break-row.info sup a { color: var(--muted); text-decoration: none; }
.gain { margin-top: 32px; }
.gain .lbl { margin-bottom: 8px; }
.gain-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gain-cols span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.gain-cols b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.quiet { max-width: 40em; }

.finetune { margin-top: 48px; }
.finetune summary {
  cursor: pointer; list-style: none; min-height: 48px; display: flex; align-items: center;
  font-size: 17px;
}
.finetune summary::-webkit-details-marker { display: none; }
.finetune summary::after { content: ""; margin-left: 8px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); width: 7px; height: 7px; transform: rotate(45deg); }
.finetune[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }

section { padding: 48px 0; }
.band { background: transparent; }
.section-head { margin: 32px 0 16px; }
.lede, .section-head .lede { color: var(--muted); margin-top: 8px; font-size: 17px; }
.eyebrow { display: none; }

.field { padding: 16px 0; border-top: 1px solid var(--hair); }
.field-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.field .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.val { display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.val input { width: 7ch; height: 44px; text-align: right; border-bottom-color: transparent; }
.val input:focus { border-bottom-color: var(--ink); }
.unit { color: var(--muted); font-size: 13px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin-top: 8px; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--hair); }
input[type=range]::-moz-range-track { height: 1px; background: var(--hair); border: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--ink); margin-top: -8px; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--ink); }

.area-grid, .pair, .assume-grid, .compare { display: grid; gap: 24px; margin-top: 24px; }
.pair, .assume-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .pair, .assume-grid { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; margin-top: 32px; }
.stack h3 { color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.money-input { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--hair); height: 48px; }
.money-input span { color: var(--muted); }
.money-input input { border: 0; height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.text-btn, .chip { background: none; color: var(--muted); font-size: 13px; padding: 8px 0; min-height: 44px; }
.text-btn { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
a.source-pill {
  display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px;
  border-radius: 999px; background: #e6f3f1; color: #0e6b62; font-size: 12px;
  font-weight: 600; letter-spacing: 0; text-decoration: none; vertical-align: middle;
}
a.source-pill:hover { text-decoration: underline; }
.delta { margin-top: 32px; }
.delta-num { font-size: 28px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.stat span { display: block; color: var(--muted); font-size: 13px; }

.sources { margin-top: 16px; display: grid; gap: 24px; font-size: 15px; color: #3a3a3a; }
.sources a { color: var(--ink); }
.sources ul { padding-left: 18px; display: grid; gap: 8px; }
.sources h3 { margin-bottom: 8px; }

footer { padding: 32px 0 8px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--hair); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footnote { max-width: var(--max); margin: 0 auto; padding: 16px 24px 48px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.footnote span { display: block; margin-top: 12px; }
.footnote a { color: var(--muted); }

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .track i, .rise { transition: none; animation: none; }
}

.calc-page { background: #f4f7f8; }
.band-top {
  text-align: center; color: #fff;
  padding: 28px 20px 88px;
  background: linear-gradient(165deg, #0b3d38 0%, #0e1b24 100%);
}
.band-top .wordmark { display: block; color: #fff; font-size: 18px; }
.band-top .lbl { margin-top: 28px; color: rgba(255,255,255,.72); }
.band-top .big { color: #fff; font-size: clamp(64px, 10vw, 92px); }
.band-top .pace { color: rgba(255,255,255,.9); max-width: 28em; margin-left: auto; margin-right: auto; }
.band-top .substats p { background: rgba(255,255,255,.14); color: #fff; }
.band-top .substats b { color: #fff; }
.band-top .substats span { color: rgba(255,255,255,.75); }
.band-top .wage-pill { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.band-top .wage-pill a { color: #f2b84b; }
.band-top .staff-line { color: rgba(255,255,255,.78); }
.wage-pill {
  display: flex; width: fit-content; align-items: center; gap: 6px;
  margin: 16px auto 0; padding: 8px 16px; border-radius: 999px; background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, .06); font-size: 14px;
}
.wage-pill a { color: var(--accent); text-decoration: none; font-weight: 600; }
.staff-line { margin-top: 10px; color: var(--muted); font-size: 13px; min-height: 1.4em; }
.calc-page #calculator { padding-top: 0; }
.stage.overlap { margin-top: -48px; padding-top: 0; position: relative; }
.recover { text-align: center; font-size: 16px; }
.recover { background: #f2b84b; color: #111; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.stage { max-width: 720px; margin: 0 auto; padding: 16px 20px 8px; display: grid; gap: 20px; }
.calc-page .wrap, .calc-page .wrap.wide { max-width: 720px; }
.card {
  background: #fff; border-radius: 20px; box-shadow: 0 12px 32px rgba(17, 17, 17, .06);
  padding: 32px; display: grid; gap: 18px;
}
@media (max-width: 720px) { .card { padding: 20px; } }
#result { text-align: center; }
#result .break-row, #result .hbar-row { text-align: left; }
.substats { justify-content: center; flex-wrap: wrap; }
.substats p { margin: 0; background: #f3f6f7; border-radius: 999px; padding: 8px 14px; }
.actions { justify-content: center; }
.calc-page .stepper {
  height: 52px; border-bottom: 0; gap: 8px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}
.calc-page .step {
  width: 44px; height: 44px; border-radius: 22px; background: #e6f3f1; color: var(--accent);
}
.calc-page .step:hover { background: #d7ebe8; }
.calc-page .stepper input {
  height: 52px; font-size: 20px; font-weight: 600; border-bottom: 1px solid #e4eaee; background: transparent;
}
.calc-page .card label { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.calc-page .card h2 { text-align: center; font-size: 22px; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise .5s var(--ease) both; }
.stage .rise:nth-child(2) { animation-delay: .06s; }
.stage .rise:nth-child(3) { animation-delay: .12s; }
@media (prefers-reduced-motion: no-preference) {
  .track i { transition: width .45s var(--ease); }
}
@media print {
  .nav, .sticky-total, .hero .btn, .actions, .step { display: none !important; }
  .panel { background: #fff; }
  body { padding: 0; }
  .calc { display: block; }
}
