:root {
  color-scheme: light;
  --ink: #153c63;
  --navy: #0c3b70;
  --navy-deep: #082e58;
  --blue: #0d79d5;
  --blue-bright: #118ce8;
  --blue-soft: #eaf4ff;
  --muted: #677b90;
  --page: #f3f7fc;
  --line: #dce7f1;
  --success: #34a98a;
  --danger: #c83f4d;
  --shadow: 0 24px 60px rgba(20, 61, 101, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0; min-width: 320px; color: var(--ink);
  background: linear-gradient(180deg, #fff 0, #fff 180px, var(--page) 520px);
  font-family: "DM Sans", Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-shell { min-height: 100vh; overflow: hidden; }

.information-bar { color: #d9e9fa; background: var(--navy); font-size: 12px; }
.information-bar > div {
  width: min(1180px, calc(100% - 40px)); min-height: 35px; margin: auto;
  display: flex; align-items: center; justify-content: flex-end; gap: 28px;
}
.information-links { display: inline-flex; align-items: center; gap: 26px; margin-left: 35px; }
.information-links a { color: inherit; text-decoration: none; }
.information-links i { width: 1px; height: 12px; background: rgba(255,255,255,.38); }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; background: white; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 184px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 36px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; }
.site-header nav a:hover { color: var(--blue); }
.site-header .nav-button {
  padding: 13px 23px; color: white; background: linear-gradient(135deg, var(--blue-bright), #086bc7);
  border-radius: 10px; box-shadow: 0 7px 18px rgba(13,121,213,.26); transition: 160ms ease;
}
.site-header .nav-button:hover { color: white; transform: translateY(-1px); }

main { position: relative; }
.hero { padding: 58px 0 38px; text-align: center; }
.eyebrow, .section-kicker { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 8px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero h1 {
  max-width: 870px; margin: 13px auto 15px; color: var(--navy); font-family: "Manrope", sans-serif;
  font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.045em;
}
.hero p { max-width: 710px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.65; }
.default-pills { margin-top: 24px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.default-pills span {
  padding: 8px 12px; color: var(--ink); background: white; border: 1px solid var(--line);
  border-radius: 999px; font-size: 12px; box-shadow: 0 4px 12px rgba(28,69,108,.04);
}

.calculator-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.calculator-heading { min-height: 94px; padding: 23px 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.calculator-heading h2, .assumptions h2 { margin: 6px 0 0; color: var(--navy); font-family: "Manrope", sans-serif; font-size: 28px; letter-spacing: -.03em; }
.reset-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: 160ms ease; }
.reset-button:hover { color: var(--blue); border-color: #9bc7ed; background: var(--blue-soft); }
.reset-button svg, .primary-cta svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr); }
.inputs-panel { padding: 32px 34px 36px; }
.scenario-row { display: flex; gap: 8px; margin-bottom: 31px; }
.scenario-chip { min-height: 36px; padding: 7px 13px; color: var(--muted); background: #f8fafc; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; }
.scenario-chip:hover { border-color: #9cc8ed; color: var(--blue); }
.scenario-chip.is-active { color: white; background: var(--blue); border-color: var(--blue); box-shadow: 0 6px 14px rgba(13,121,213,.2); }
.field-group + .field-group, .two-fields + .field-group, .field-group + .two-fields { margin-top: 28px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.field-label-row label { color: var(--ink); font-size: 14px; font-weight: 700; }
.number-wrap { min-width: 94px; height: 38px; display: flex; align-items: center; justify-content: flex-end; border-radius: 8px; border: 1px solid #cad9e7; background: #fbfdff; transition: 160ms ease; }
.number-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,121,213,.1); }
.number-wrap span { padding-left: 10px; color: var(--muted); font-size: 13px; }
.number-wrap input { width: 82px; height: 100%; padding: 0 10px; color: var(--navy); border: 0; outline: 0; text-align: right; background: transparent; font-weight: 700; appearance: textfield; }
.number-wrap input::-webkit-inner-spin-button, .number-wrap input::-webkit-outer-spin-button { appearance: none; }
.number-wrap.currency input { width: 78px; padding-left: 2px; }
.number-wrap.suffix { min-width: 126px; }
.number-wrap.suffix input { width: 54px; padding-right: 3px; }
.number-wrap.suffix span { padding: 0 10px 0 4px; }
.range { --fill: 50%; display: block; width: 100%; height: 4px; margin: 0; border-radius: 99px; outline: none; appearance: none; background: linear-gradient(to right, var(--blue) var(--fill), #dfe8f1 var(--fill)); }
.range::-webkit-slider-thumb { width: 18px; height: 18px; border-radius: 50%; appearance: none; background: white; border: 5px solid var(--blue); box-shadow: 0 0 0 2px rgba(13,121,213,.15); cursor: pointer; }
.range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: white; border: 5px solid var(--blue); cursor: pointer; }
.field-meta { display: flex; justify-content: space-between; margin-top: 10px; color: #8093a5; font-size: 10px; }
.compact .field-label-row { align-items: flex-start; min-height: 38px; }
.compact .field-label-row label { max-width: 110px; line-height: 1.3; }
.form-error { margin: 20px 0 0; color: var(--danger); font-size: 12px; }

.results-panel { position: relative; padding: 32px 34px 36px; color: white; background: radial-gradient(circle at 92% 5%, rgba(28,151,236,.4), transparent 15rem), linear-gradient(145deg, #0d4b87, var(--navy-deep)); border-left: 1px solid var(--line); }
.results-panel::after { content: ""; position: absolute; right: -85px; bottom: -115px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018); pointer-events: none; }
.results-topline { display: flex; justify-content: space-between; color: #bfe4ff; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.gst-note { padding: 4px 7px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; letter-spacing: .05em; }
.payback-block { padding: 35px 0 30px; border-bottom: 1px solid rgba(255,255,255,.14); }
.result-label { color: #d3e5f4; font-size: 13px; }
.payback-number { margin-top: 8px; color: white; font-family: "Manrope", sans-serif; font-size: clamp(50px, 6vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.payback-number small { margin-left: 5px; color: #84ccff; font-size: 17px; letter-spacing: -.02em; }
.payback-sub { margin-top: 9px; color: #bdd4e7; font-size: 12px; }
.progress-track { height: 5px; margin-top: 23px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.13); }
.progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #39b7ff, #7be6c2); transition: width 250ms ease; }
.payback-block p { margin: 10px 0 0; color: #91afc8; font-size: 10px; }
.weekly-results { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 0; color: #c1d5e6; font-size: 13px; }
.result-row strong { color: white; font-family: "Manrope", sans-serif; font-size: 17px; }
.result-row.cost strong { color: #c2d3e2; }
.result-row.contribution { color: white; }
.result-row.contribution strong { color: #7be6c2; font-size: 20px; }
.annual-summary { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; padding: 23px 0; }
.annual-summary div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.annual-summary span, .annual-summary strong { display: block; }
.annual-summary span { color: #9bb8cf; font-size: 10px; line-height: 1.4; }
.annual-summary strong { margin-top: 7px; color: white; font-family: "Manrope", sans-serif; font-size: 18px; }
.primary-cta { position: relative; z-index: 1; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--navy); background: white; border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 800; box-shadow: 0 12px 28px rgba(0,0,0,.14); transition: transform 160ms ease, box-shadow 160ms ease; }
.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,0,0,.2); }

.assumptions { padding: 72px 0 65px; }
.assumptions > div:first-child { text-align: center; }
.assumption-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; }
.assumption-grid article { padding: 28px 32px; }
.assumption-grid article + article { border-left: 1px solid var(--line); }
.assumption-number { color: var(--blue); font-family: "Manrope", sans-serif; font-size: 11px; font-weight: 800; }
.assumption-grid h3 { margin: 18px 0 8px; color: var(--navy); font-family: "Manrope", sans-serif; font-size: 16px; }
.assumption-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.disclaimer { max-width: 850px; margin: 24px auto 0; color: #75899c; text-align: center; font-size: 10px; line-height: 1.6; }
footer { min-height: 108px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 32px; color: #6d8194; border-top: 1px solid var(--line); font-size: 11px; }
footer img { width: 155px; height: auto; }

@media (max-width: 860px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .results-panel { border-left: 0; border-top: 1px solid var(--line); }
  .hero { padding-top: 48px; }
  .site-header nav a:not(.nav-button) { display: none; }
}
@media (max-width: 640px) {
  .information-bar > div { width: calc(100% - 24px); justify-content: center; font-size: 10px; }
  .information-bar > div > span:first-child { display: none; }
  .information-links { margin-left: 0; gap: 14px; }
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 82px; }
  .brand img { width: 150px; }
  .site-header .nav-button { padding: 10px 14px; font-size: 12px; }
  .hero { padding: 42px 5px 32px; }
  .hero h1 { font-size: 39px; }
  .hero h1 br { display: none; }
  .hero p { font-size: 15px; }
  .calculator-card { border-radius: 16px; }
  .calculator-heading, .inputs-panel, .results-panel { padding-left: 20px; padding-right: 20px; }
  .calculator-heading { min-height: 88px; }
  .calculator-heading h2, .assumptions h2 { font-size: 23px; }
  .scenario-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .scenario-chip { padding-inline: 5px; font-size: 10px; }
  .two-fields { grid-template-columns: 1fr; gap: 27px; }
  .field-group + .field-group, .two-fields + .field-group, .field-group + .two-fields { margin-top: 27px; }
  .compact .field-label-row { min-height: auto; }
  .compact .field-label-row label { max-width: none; }
  .payback-number { font-size: 58px; }
  .annual-summary { gap: 12px; }
  .annual-summary div + div { padding-left: 12px; }
  .annual-summary strong { font-size: 16px; }
  .assumptions { padding-top: 58px; }
  .assumption-grid { grid-template-columns: 1fr; }
  .assumption-grid article { padding: 22px 20px; }
  .assumption-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; padding: 28px 0; gap: 14px; text-align: center; }
  footer img { margin: auto; }
}
@media (max-width: 410px) {
  .brand img { width: 138px; }
  .hero h1 { font-size: 35px; }
  .default-pills span:last-child { display: none; }
  .field-label-row { gap: 8px; }
  .field-label-row label { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
