* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  color-scheme: dark;
  --background: #0b0b0d;
  --surface: #101013;
  --raised: #161619;
  --field: #19191d;
  --line: #2a2a30;
  --text: #f5f5f7;
  --muted: #aaaab3;
  --accent: #d9e2ff;
  --action: #f6f6f8;
  --on-action: #17171b;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.55 var(--sans); }
:where(h1, h2, h3, h4, p, figure, dl, dd) { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 5.4vw, 5rem); font-weight: 560; letter-spacing: -.062em; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 3vw, 2.65rem); font-weight: 590; text-wrap: balance; }
h3 { font-size: 1.125rem; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
input, select { accent-color: var(--accent); }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { opacity: .52; cursor: not-allowed; }
fieldset { border: 0; margin: 0; min-inline-size: 0; padding: 0; }
legend { padding: 0; }
summary { cursor: pointer; }
summary::marker { color: var(--accent); }
code { font-family: var(--mono); overflow-wrap: anywhere; }
section[id], form[id], div[id] { scroll-margin-top: 1rem; }
.sr-only, .visually-hidden, .skip-link:not(:focus), .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus, .skip:focus { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .65rem 1rem; background: var(--action); color: var(--on-action); }
.shell, .wrap { width: min(100% - clamp(2rem, 8vw, 9rem), 1240px); margin-inline: auto; }
.topbar, .masthead, .nav-shell { min-height: 66px; display: flex; align-items: center; gap: clamp(1.1rem, 4vw, 3.5rem); }
.topbar nav, .masthead nav, .nav-shell nav { flex: 1; display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.65rem); }
.topbar nav a, .masthead nav a, .nav-shell nav a { color: var(--muted); font-size: .82rem; text-decoration: none; white-space: nowrap; }
.topbar nav a:hover, .masthead nav a:hover, .nav-shell nav a:hover { color: var(--text); }
.wordmark, .brand { display: inline-flex; align-items: center; gap: .48rem; color: var(--text); text-decoration: none; font-size: 1.12rem; font-weight: 660; letter-spacing: -.04em; white-space: nowrap; }
.wordmark img, .brand img { width: 25px; height: 25px; border-radius: 6px; }
button, .action, .button, .pro-action {
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
  border-radius: 8px;
  padding: .5rem .78rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
}
button:hover:not(:disabled), .action:hover, .button:hover, .pro-action:hover { border-color: var(--muted); }
button[aria-pressed="true"] { background: var(--field); border-color: var(--accent); color: var(--text); }
.hero-cta, .nav-cta, .pro-action { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: .55em; text-decoration: none; }
.hero-cta, .pro-action, :is(.topbar, .masthead, .nav-shell) nav .nav-cta { background: var(--action); color: var(--on-action); border: 1px solid transparent; border-radius: 999px; }
.hero-cta { padding: .65rem 1rem; font-size: .85rem; font-weight: 640; }
:is(.topbar, .masthead, .nav-shell) nav .nav-cta { margin-inline-start: auto; padding: .46rem .72rem; font-size: .77rem; font-weight: 640; }
.hero-cta:hover, .pro-action:hover, :is(.topbar, .masthead, .nav-shell) nav .nav-cta:hover { background: var(--accent); color: var(--on-action); }
.pro-action { padding-inline: .9rem; text-align: center; }
.budgethub-hint { flex-basis: 100%; width: 0; color: var(--muted); font-size: .8rem; }
#save-budgethub:not([href]) + .budgethub-hint { display: none; }
input:not([type="checkbox"], [type="range"]), select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: .52rem .63rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  color: var(--text);
  font-size: .88rem;
}
input[type="range"] { display: block; width: 100%; margin-inline: 0; }
input::placeholder { color: var(--muted); }
label { color: var(--text); font-size: .83rem; font-weight: 570; }
small { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .8rem clamp(.75rem, 2vw, 1.4rem); text-align: right; }
th:first-child { text-align: left; }
thead { background: var(--raised); color: var(--muted); font-size: .77rem; }
tbody tr { border-top: 1px solid var(--line); }
tbody th, tbody td { font-size: .84rem; }
tbody td { font-family: var(--mono); }
.table-wrap, .table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
:is(.table-wrap, .table-scroll):focus-visible { outline-offset: -2px; }
footer { margin-top: clamp(3rem, 7vw, 6rem); padding-block: 2.1rem; border-top: 1px solid var(--line); }
footer h2 { font-size: 1.12rem; }
footer ul { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: .65rem 1.3rem; }
footer a, footer p { color: var(--muted); font-size: .8rem; }
.footer-inner { padding-top: .9rem; border-top: 1px solid var(--line); }

@media (max-width: 620px) {
  .topbar, .masthead, .nav-shell { min-height: 54px; gap: .65rem 1rem; flex-wrap: wrap; padding-block: .62rem; }
  .topbar nav, .masthead nav, .nav-shell nav { gap: .8rem; justify-content: flex-end; }
  :is(.topbar, .masthead, .nav-shell) nav .nav-cta { display: none; }
}
@media (max-width: 360px) {
  .topbar nav, .masthead nav, .nav-shell nav { gap: .6rem; }
}

:root {
  --accent: #b5ebdf;
  --active: #66c9bb;
  --standby: #e4cd81;
  --backend: #aaa1db;
}
.site-header { position: relative; z-index: 1; border-bottom: 1px solid #ffffff12; background: #0b0d0ed9; }
.brand-mark { height: 24px; width: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid #374945; border-radius: 6px; }
.brand-mark i { width: 2px; height: 8px; background: var(--accent); border-radius: 2px; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 10px; }
.intro { position: relative; isolation: isolate; min-height: clamp(410px, 46vw, 625px); display: flex; align-items: end; }
.signal-art {
  position: absolute;
  z-index: -1;
  inset: 0 calc((100% - 100vw) / 2);
  overflow: hidden;
  background:
    linear-gradient(0deg, var(--background) 1%, #0b0b0d93 37%, transparent 77%),
    radial-gradient(ellipse at 63% 33%, #1a463c 0%, #0c2225 32%, #08090c 72%);
}
.signal-art::before {
  position: absolute;
  content: "";
  inset: -55% -9% -20% -12%;
  transform: skewX(-30deg) rotate(-3deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 6.8%, #2e848139 7.2%, #72c5bd84 7.7%, #0e2728 8.1%, #080b0d 9.7%, transparent 13.8%),
    repeating-linear-gradient(90deg, #0000 0 12%, #9eb77b2b 14%, #e8cc7f63 14.3%, transparent 15% 24%);
  filter: blur(1px);
  mask-image: radial-gradient(ellipse at 57% 45%, #000 0 14%, #0008 55%, transparent 74%);
}
.signal-art span {
  position: absolute;
  top: 8%;
  left: 8%;
  width: clamp(45px, 7vw, 115px);
  height: 43%;
  transform: skewX(-28deg) rotate(-5deg);
  border: 1px solid #7bafa961;
  border-bottom: 2px solid #f0d385;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(84deg, #0009, #4f998d26 75%, #9fdad139);
  box-shadow: inset 0 -10px 22px #dfb96233, 5px 10px 35px #d0ad4f2e;
}
.signal-art span:nth-child(2) { top: -10%; left: 26%; height: 48%; opacity: .7; }
.signal-art span:nth-child(3) { top: -2%; left: 39%; height: 32%; opacity: .82; }
.signal-art span:nth-child(4) { top: -18%; left: 63%; height: 41%; opacity: .33; }
.signal-art span:nth-child(5) { top: -12%; left: 81%; height: 36%; opacity: .28; }
.signal-art::after { position: absolute; content: ""; inset: 0; background: linear-gradient(0deg, var(--background) 3%, #0b0b0da8 25%, transparent 62%); }
.intro-body { width: 100%; padding-bottom: clamp(1.65rem, 4vw, 3.8rem); display: grid; grid-template-columns: 1.12fr .72fr; align-items: end; gap: 1rem 3rem; }
.eyebrow { grid-column: 1 / -1; color: var(--accent); font: 610 .73rem/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.status-dot, .swatch { display: inline-block; width: .55rem; height: .55rem; border-radius: 100%; margin-inline-end: .24rem; background: var(--active); }
.intro h1 { font-size: clamp(2.55rem, 4.9vw, 4.55rem); text-wrap: initial; }
.intro-copy { color: #cccdcf; max-width: 37ch; margin-bottom: .95rem; }
.hero-budgethub { margin-top: .65rem; }
.hero-budgethub a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  max-width: 100%;
  min-height: 44px;
  padding: .4rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  font-size: .85rem;
  font-weight: 600;
}
.rate-sheet { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.25fr; padding-block: 1.2rem; border-block: 1px solid var(--line); }
.rate-sheet > div { display: grid; align-content: center; justify-content: start; padding-inline: clamp(.65rem, 2vw, 1.7rem); font-size: .82rem; }
.rate-sheet > div:first-child { padding-inline-start: 0; }
.rate-sheet > div + div { border-left: 1px solid var(--line); }
.rate-title span + span, .rate-note > span, .rate-item > span { color: var(--muted); }
.rate-item strong { margin-top: .2rem; font: 630 1.25rem/1.15 var(--mono); }
.swatch.standby { background: var(--standby); }
.swatch.backend { background: var(--backend); }

.calculator { margin-top: clamp(2.4rem, 6vw, 5.5rem); padding: .55rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(#1a1d1d, #111114 240px); box-shadow: 0 16px 50px #0008; }
.scenario-strip { padding: clamp(.8rem, 2vw, 1.5rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem; }
.workbench-title h2 { font-size: 1.3rem; }
.workbench-title span { color: var(--muted); font: .72rem var(--mono); }
.scenarios, .actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.scenarios button { min-height: 38px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: .55rem; }
.panel, .estimate { min-width: 0; padding: clamp(1rem, 2.4vw, 1.85rem); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.panel h2, .estimate h2 { font-size: 1.1rem; letter-spacing: -.018em; }
.panel-heading p, .field-note, .range-labels { color: var(--muted); font-size: .78rem; }
.panel-heading p { margin-top: .28rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .85rem; }
.field-grid label, .backend-fields label, .share-fallback label { display: grid; gap: .3rem; min-width: 0; }
.number-field { display: flex; align-items: center; min-width: 0; background: var(--field); border: 1px solid var(--line); border-radius: 7px; }
.number-field input { border: 0; background: transparent; font-family: var(--mono); }
.number-field > span { padding-inline: .2rem .55rem; color: var(--muted); font: .7rem var(--mono); white-space: nowrap; }
.timeout-settings { margin-top: 1rem; padding: .85rem; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; }
.toggle-row, .control-row, .range-labels { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.switch { appearance: none; width: 38px; height: 21px; margin: 0; padding: 2px; border: 1px solid #52605e; border-radius: 999px; background: var(--field); cursor: pointer; }
.switch::before { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--muted); }
.switch:checked { background: #316961; border-color: var(--active); }
.switch:checked::before { transform: translateX(17px); background: #e9fffa; }
.control-row { margin-top: .5rem; }
.timeout-number { width: 6rem; }
.slider { margin-block: .65rem .34rem; }
.field-note { margin-top: .45rem; }
.input-details { margin-top: .65rem; border-bottom: 1px solid var(--line); }
.input-details summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; list-style: none; padding: .55rem 0; font-size: .84rem; }
.input-details summary::-webkit-details-marker { display: none; }
.input-details summary::before { content: "+"; color: var(--accent); }
.input-details[open] summary::before { content: "−"; }
.input-details summary small { margin-inline-start: auto; }
.input-details > :not(summary) { padding-bottom: .75rem; }
.backend-fields { display: grid; gap: .6rem; }
.backend-fields .field-grid { margin: 0; }

.results { display: grid; align-content: start; gap: .55rem; min-width: 0; }
.estimate { background: radial-gradient(ellipse at 100% 10%, #1e3430, transparent 67%), #14191a; }
.estimate-top, .savings-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.estimate-top { justify-content: space-between; }
.estimate-top > span, .savings-line { font: .72rem var(--mono); color: var(--accent); }
.monthly-amount { margin-top: .35rem; font-size: clamp(2.75rem, 5.5vw, 5rem); line-height: 1.05; font-weight: 590; letter-spacing: -.07em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.baseline { margin-top: .4rem; color: var(--muted); font-size: .82rem; }
.baseline strong { color: var(--text); overflow-wrap: anywhere; }
.savings-line { margin-top: .7rem; }
.savings-value { padding: .25rem .48rem; background: #223e35; color: #c1f4d7; border-radius: 5px; overflow-wrap: anywhere; }
.savings-value[data-negative="true"] { background: #402c25; color: #f9c6ae; }
.cost-bar { display: block; width: 100%; height: 8px; margin: .8rem 0 .7rem; background: var(--raised); border-radius: 6px; }
.legend { display: grid; gap: .24rem; }
.legend > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .5rem; font-size: .81rem; }
.legend dt span { margin-left: .18rem; color: var(--muted); font-size: .7rem; }
.legend dd, .metrics dd { font: 650 .82rem var(--mono); overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin-top: .85rem; }
.metrics > div { padding: .55rem; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; }
.metrics dt { font-size: .72rem; color: var(--muted); margin-bottom: .28rem; }
.actions { padding: .4rem .35rem .5rem; }
.share-fallback { padding: .15rem .35rem .6rem; }
.comparison-section { margin-block: clamp(2.8rem, 7vw, 5.5rem); }
.section-heading p, .article-heading p { color: var(--muted); margin-top: .45rem; }
.comparison-section table { min-width: 32rem; }
.comparison-section .table-wrap { margin-top: 1.25rem; }
tbody .current { background: #1a2624; }
.current-label { display: inline-block; margin-left: .35rem; color: var(--accent); font: .66rem var(--mono); }
.reading-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 1.5rem 4rem; padding-block: clamp(1.75rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.article-content p, .faq-list p { color: var(--muted); }
.article-content p + p, .article-content h3 { margin-top: .85rem; }
.article-content h3 { margin-bottom: .3rem; }
.formula { padding: .55rem .75rem; border-radius: 6px; background: var(--raised); }
.faq-list details { border-bottom: 1px solid var(--line); padding-block: .65rem; }
.faq-list p { margin-top: .4rem; }
.source-list { margin: 0; padding-left: 1.15rem; }
.source-list li + li { margin-top: .45rem; }

@media (max-width: 760px) {
  .intro-body, .workspace, .reading-section { grid-template-columns: minmax(0, 1fr); }
  .intro { min-height: 480px; }
  .intro-body { gap: .8rem; }
  .rate-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .rate-sheet > div { min-height: 64px; padding-block: .6rem; }
  .rate-sheet > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .rate-sheet > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 550px) {
  .scenarios { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .intro { min-height: 420px; }
  .signal-art span { left: 0; }
  .metrics > div { padding-inline: .38rem; }
}
