* { 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: #c5c7ff; --muted: #b0afb9; }
.wordmark .mark { width: 23px; height: 23px; border: 1px solid #595768; border-radius: 6px; display: grid; place-items: center; background: #1d1a2a; }
.wordmark .mark::before { content: ""; width: 9px; height: 9px; border: 1px solid #d7d0ff; border-radius: 2px; transform: rotate(45deg); }
.masthead { border-bottom: 1px solid #ffffff0e; }
.hero { padding-block: clamp(3.45rem, 8vw, 7rem) clamp(1.95rem, 4vw, 3.6rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 1rem 3rem; }
.hero h1 { margin-top: 1rem; text-wrap: initial; }
.hero h1 em { font-style: normal; }
.preview-label { display: flex; align-items: center; gap: .48rem; color: var(--muted); font-size: .8rem; }
.preview-label > span { width: 6px; height: 6px; border-radius: 50%; background: #c4c3ff; }
.hero-detail { max-width: 38ch; padding-bottom: .25rem; }
.hero-detail p { color: var(--muted); font-size: clamp(.96rem, 1.5vw, 1.17rem); }
.hero-detail .hero-cta { margin-top: 1rem; }
.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;
}

.studio {
  padding: clamp(.65rem, 3.75vw, 3.25rem);
  border: 1px solid #a8adfa70;
  border-radius: clamp(18px, 2.6vw, 32px);
  background:
    linear-gradient(0deg, #20203b 1%, #282543 25%, transparent 72%),
    radial-gradient(ellipse at 42% 0%, #e0f2ff, transparent 58%),
    linear-gradient(112deg, #b392e8, #818fe4 50%, #92f0ed);
  box-shadow: 0 24px 62px #0007;
}
.canvas, .calculator { min-width: 0; background: #101015; border: 1px solid #ffffff30; border-radius: 15px; }
.canvas { overflow: hidden; box-shadow: 0 10px 36px #1d173f48; }
.canvas-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem .65rem; padding: .68rem clamp(.65rem, 2vw, 1.35rem); border-bottom: 1px solid var(--line); background: #18181e; }
.canvas-bar span { font-weight: 630; }
.canvas-bar a { font-size: .78rem; text-decoration: none; }
.canvas-gallery {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(.45rem, 1.5vw, 1.1rem);
  padding: clamp(.55rem, 2vw, 1.5rem);
  background-color: #13131a;
  background-image: radial-gradient(#ffffff23 .8px, transparent .8px);
  background-size: 13px 13px;
}
.canvas-tile { padding: .5rem; background: #1c1b22; border: 1px solid #3d3a4b; border-radius: 9px; min-width: 0; }
.canvas-tile p { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; padding: .35rem .2rem .12rem; font-size: .83rem; }
.canvas-tile p span { color: var(--muted); font-size: .73rem; }
.drafts, .final-art { height: clamp(98px, 17vw, 210px); border-radius: 5px; }
.drafts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; overflow: hidden; }
.drafts span, .final-art {
  --horizon: #8773cc;
  --shade: #201635;
  --light: #f2b0eb;
  --orb: #392653;
  border: 1px solid #ffffff27;
  border-radius: 5px;
  background:
    radial-gradient(ellipse at 50% 61%, #fff8, transparent 3%, transparent 20%, var(--light) 20.6%, transparent 21.5%),
    radial-gradient(circle at 51% 52%, var(--orb) 0 13%, var(--horizon) 13.5%, var(--light) 15%, transparent 16%),
    linear-gradient(171deg, var(--shade) 16%, var(--horizon) 63%, var(--light) 64%, var(--shade) 72%);
}
.drafts span:nth-child(2) { --horizon: #538b9e; --shade: #172e47; --light: #b3f7f5; --orb: #254456; transform: scaleX(-1); }
.drafts span:nth-child(3) { --horizon: #a1739c; --shade: #3b233b; --light: #ffd3bc; --orb: #593549; }
.final-art {
  --light: #b6f2ff;
  background:
    radial-gradient(ellipse at 54% 61%, transparent 7%, #d2eaff8c 11%, #b9d1ff50 13%, transparent 14%),
    radial-gradient(ellipse at 58% 48%, #66538f 0%, #33375a 11%, #8486c4 14%, #d6c2f9 15.6%, #bedbff 17%, transparent 19%),
    repeating-radial-gradient(ellipse at 56% 70%, transparent 1%, #c4f4ff35 3%, transparent 6%, transparent 9%),
    linear-gradient(139deg, #241a39 18%, #654c83 38%, #c9a7ee 52%, #92cad5 67%, #25304a 84%);
}
.calculator { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); margin-top: .65rem; }
.setup, .estimate { min-width: 0; padding: clamp(.85rem, 2.25vw, 1.7rem); }
.setup h2, .estimate h2 { font-size: 1.16rem; }
.estimate { border-left: 1px solid var(--line); background: radial-gradient(ellipse at right top, #292741, transparent 75%), #15151c; border-radius: 0 13px 13px 0; }
.presets { margin-block: .8rem .85rem; }
.presets legend { color: var(--muted); font-size: .78rem; margin-bottom: .32rem; }
.presets button { margin: 0 .15rem .25rem 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.field { display: grid; align-content: start; gap: .25rem; min-width: 0; }
.field label span { color: var(--muted); font-size: .7rem; }
.field input, .field select { box-shadow: inset 0 1px 2px #0005; }
.field input[aria-invalid="true"] { border-color: #eb978c; }
.field-error, .invalid-results, #scale-error { color: #ffc1b7; font-size: .76rem; }
.rates { margin-top: .9rem; padding: .6rem .6rem .68rem; border: 1px solid var(--line); border-radius: 8px; background: #15151b; }
.rates summary { font-size: .82rem; }
.rates summary span { color: var(--muted); margin-inline-start: .2rem; font-size: .72rem; }
.rates .form-grid { margin-top: .55rem; }
.rate-actions, .result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.rate-actions { margin-top: .55rem; }
.rate-actions p { flex-basis: 100%; color: var(--muted); font-size: .75rem; }
.rate-actions button { padding: .3rem .5rem; }
.total-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .6rem; margin-top: .35rem; }
.total { font-size: clamp(2.5rem, 5vw, 4.4rem); font-weight: 585; line-height: 1.06; letter-spacing: -.065em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.total-line span, .effective { font-size: .79rem; color: var(--muted); overflow-wrap: anywhere; }
.effective { margin: .32rem 0 .78rem; }
.effective strong { color: var(--accent); }
.breakdown { table-layout: fixed; }
.breakdown :is(th, td) { padding: .45rem .36rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.breakdown th:first-child { width: 27%; }
.breakdown th, .breakdown td { font-size: .76rem; }
.breakdown tfoot { background: #232232; }
.savings, .capacity dl { display: grid; gap: .3rem; margin-top: .75rem; }
.savings > div, .capacity dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .45rem; font-size: .79rem; }
.estimate dd { color: var(--accent); font-family: var(--mono); overflow-wrap: anywhere; }
.capacity, .capacity-prompt { padding: .62rem .68rem; background: #1f1d2c; border: 1px solid #38344f; border-radius: 7px; margin-top: .7rem; font-size: .77rem; color: var(--muted); }
.capacity h3 { font-size: .96rem; color: var(--text); }
.capacity-assets { color: var(--text); margin-top: .25rem; overflow-wrap: anywhere; }
.result-actions { margin-top: .9rem; }
.share-fallback, .action-status:not(:empty), .invalid-results { margin-top: .5rem; }
.action-status { color: var(--muted); font-size: .78rem; }
.scale, .method { margin-top: clamp(2.65rem, 7vw, 5.35rem); }
.section-heading p, .method p { color: var(--muted); margin-top: .5rem; }
.scale .table-scroll { margin-top: 1.15rem; }
.scale table { min-width: 30rem; }
.scale small { display: block; font-size: .68rem; font-weight: 500; }
.hybrid-column { background: #242235; color: var(--accent); }
.method { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.35rem 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.source-links { list-style: none; padding: 0; }
.source-links li, .faqs details { padding-block: .45rem; }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { font-weight: 600; }

@media (max-width: 760px) {
  .hero, .calculator, .method { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 3rem; }
  .hero-detail { max-width: 42ch; }
  .estimate { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 13px 13px; }
}
@media (max-width: 420px) {
  .studio { margin-inline: -.35rem; }
  .canvas-tile { padding: .32rem; }
  .drafts { gap: .15rem; }
}
