/* CostCalc surface. All colors inherit the shared cinematic palette. */
.costcalc-page { --font-display: "Bebas Neue", sans-serif; --font-body: "Inter", sans-serif; --font-mono: "JetBrains Mono", monospace; --cost-border: color-mix(in srgb, var(--steel) 24%, transparent); --cost-muted: color-mix(in srgb, var(--ice) 68%, var(--steel)); margin: 0; background: var(--void); color: var(--ice); font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.6; color-scheme: dark; }
.costcalc-page *, .costcalc-page *::before, .costcalc-page *::after { box-sizing: border-box; }
.costcalc-page::before { content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='white' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.costcalc-page ::selection { background: var(--coral); color: var(--void); }
.costcalc-page :focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
.costcalc-page [hidden] { display: none; }
.costcalc-page a { color: var(--ice); text-underline-offset: 4px; transition: color .25s cubic-bezier(.16,1,.3,1); }
.costcalc-page a:hover { color: var(--coral); }
.costcalc-page h1, .costcalc-page h2, .costcalc-page h3 { margin: 0; }
.costcalc-page p { margin: 0; }
.costcalc-page p.rate-detail { margin-block: 12px 18px; }
.costcalc-page p.estimate-total { margin-top: 20px; }
.costcalc-page p.estimate-disclaimer { margin-block: 24px 16px; }
.costcalc-page p.field-note { margin-top: 16px; }
.costcalc-page p#result-status { margin-top: 12px; }
.costcalc-page main { max-width: 1200px; margin: auto; padding-inline: clamp(1.5rem, 5vw, 4rem); }
.cost-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(1.5rem, 5vw, 4rem); border-bottom: 1px solid var(--cost-border); }
.cost-brand { display: flex; align-items: center; gap: 14px; font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: .04em; text-decoration: none; }
.cost-brand span { display: none; font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0; color: var(--cost-muted); }
.cost-nav > div { display: flex; gap: 20px; font-size: 12px; }
.cost-nav a { text-decoration: none; }
.cost-header { display: grid; gap: 24px; padding-block: clamp(3rem, 7vw, 5rem); background: radial-gradient(ellipse at 5% 5%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 65%); }
.cost-header h1 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(3.6rem, 8vw, 5.5rem); line-height: .98; letter-spacing: .01em; }
.cost-header h1 > span { display: block; margin-top: 12px; font-family: 'Inter', sans-serif; font-size: clamp(1.1rem, 3vw, 1.65rem); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.header-title > p { max-width: 510px; margin-top: 16px; color: var(--cost-muted); }
.rate-stamp { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; line-height: 1.8; color: var(--cost-muted); }
.stamp-dot { width: 6px; height: 6px; flex-shrink: 0; margin-top: 7px; background: var(--gold); }
.rate-stamp time { display: block; font-family: 'JetBrains Mono', monospace; color: var(--ice); font-size: 12px; }
.rate-stamp a { display: block; margin-top: 4px; }
.budget-workspace { display: grid; gap: 32px; align-items: start; }
#budget-form { min-width: 0; }
.costcalc-page h2 { font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }
.project-settings { padding: 24px; background: var(--void-3); border: 1px solid var(--cost-border); border-radius: .5rem; }
.settings-grid { display: grid; gap: 16px; margin-top: 24px; }
.costcalc-page label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--cost-muted); }
.costcalc-page input:not([type='checkbox']), .costcalc-page select { width: 100%; min-width: 0; min-height: 46px; padding: 12px 12px; border: 1px solid var(--cost-border); border-radius: .375rem; background: var(--void-2); color: var(--ice); font: 400 13px/1.5 'Inter', sans-serif; caret-color: var(--coral); transition: border-color .25s cubic-bezier(.16,1,.3,1); }
.costcalc-page select { text-overflow: ellipsis; }
.costcalc-page input:not([type='checkbox']):hover, .costcalc-page select:hover { border-color: var(--steel); }
.costcalc-page input[type='number'] { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.costcalc-page input[type='checkbox'] { accent-color: var(--coral); width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }
.field-note { margin-top: 16px; font-size: 12px; line-height: 1.8; color: var(--cost-muted); }
.generation-section { padding-block: 30px; border-bottom: 1px solid var(--cost-border); }
.section-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.section-top p { margin-top: 5px; font-size: 12px; color: var(--cost-muted); }
.costcalc-page label.include { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--ice); }
.costcalc-page fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.costcalc-page fieldset:disabled { opacity: .5; }
.rate-detail { margin-block: 12px 18px; color: var(--cost-muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.rate-detail a { color: var(--gold); white-space: nowrap; }
.quantity-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }
.monthly-section { padding-block: 30px; }
#subscription-list { display: grid; margin-top: 20px; }
.costcalc-page .plan-choice { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 46px; padding-block: 8px; cursor: pointer; border-bottom: 1px solid var(--cost-border); color: var(--ice); }
.plan-price { margin-left: auto; font: 12px 'JetBrains Mono', monospace; color: var(--cost-muted); white-space: nowrap; }
.other-cost { margin-top: 24px; max-width: 300px; }
.costcalc-page .btn-primary, .costcalc-page .btn-ghost { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 12px 20px; border-radius: .375rem; font: 500 13px 'Inter', sans-serif; text-decoration: none; cursor: pointer; transition: background .25s cubic-bezier(.16,1,.3,1), color .25s cubic-bezier(.16,1,.3,1), border-color .25s cubic-bezier(.16,1,.3,1); box-shadow: none; transform: none; }
.costcalc-page .btn-primary { background: var(--coral); border: 1px solid var(--coral); color: var(--void); width: 100%; }
.costcalc-page .btn-primary:hover { background: var(--ice); border-color: var(--ice); }
.costcalc-page .btn-ghost { background: transparent; border: 1px solid var(--cost-border); color: var(--ice); justify-content: center; width: 100%; }
.costcalc-page .btn-ghost:hover { color: var(--coral); border-color: var(--coral); }
.costcalc-page button:disabled { opacity: .45; cursor: default; }
#calc-error { color: var(--coral); font-size: 13px; margin-bottom: 16px; }
.estimate-panel { background: var(--void-2); border: 1px solid var(--cost-border); border-top-color: var(--gold); border-radius: .5rem; padding: 24px; min-width: 0; }
.estimate-heading { display: flex; align-items: center; justify-content: space-between; }
.currency-label { font: 12px 'JetBrains Mono', monospace; letter-spacing: .06em; color: var(--steel); }
.estimate-total { font: 400 clamp(2.6rem, 7vw, 3.8rem)/1.25 'Bebas Neue', sans-serif; margin-top: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#res-sub { font-size: 12px; color: var(--cost-muted); max-width: 260px; }
.estimate-ledger { margin-block: 24px; padding-block: 18px; border-block: 1px solid var(--cost-border); }
.estimate-ledger > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 5px; }
.estimate-ledger dt { font-size: 12px; color: var(--cost-muted); }
.estimate-ledger dd { margin: 0; font: 12px 'JetBrains Mono', monospace; white-space: nowrap; }
.breakdown-heading { font-size: 12px; font-weight: 500; margin-bottom: 12px; }
.budget-line { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--cost-border); }
.budget-line strong { font-size: 12px; font-weight: 500; }
.budget-line small { display: block; font-size: 12px; line-height: 1.7; color: var(--cost-muted); }
.line-quantity { grid-column: 1; font: 12px/1.7 'JetBrains Mono', monospace; color: var(--steel); }
.line-price { grid-column: 2; grid-row: 1; align-self: start; font: 12px/1.7 'JetBrains Mono', monospace; }
.plan-line { font-size: 12px; }
.estimate-warnings > p { padding-block: 12px; border-bottom: 1px solid var(--cost-border); color: var(--coral); font-size: 12px; }
.estimate-disclaimer { font-size: 12px; line-height: 1.9; color: var(--cost-muted); margin-block: 24px 16px; }
#result-status { min-height: 22px; margin-top: 12px; font-size: 12px; color: var(--cost-muted); }
.pricing-notes { padding-block: clamp(5rem, 10vw, 9rem); }
.pricing-notes h2 { font: 400 clamp(2rem, 5vw, 3rem)/1.15 'Bebas Neue', sans-serif; }
.notes-grid { display: grid; gap: 32px; margin-top: 32px; }
.notes-grid h3 { font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.notes-grid p { font-size: 12px; line-height: 1.9; color: var(--cost-muted); margin-top: 12px; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 110; padding: 12px; background: var(--void-3); }
.skip-link:focus { top: 12px; }
.costcalc-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.no-script { padding: 24px; border: 1px solid var(--coral); }
@media (min-width: 768px) { .cost-brand span { display: inline; } .cost-header { grid-template-columns: 1fr auto; align-items: end; } .settings-grid { grid-template-columns: 1.6fr 1fr 1fr; } .notes-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .costcalc-page::before { opacity: .025; } }
@media (min-width: 1024px) { .budget-workspace { grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; } .estimate-panel { position: sticky; top: 24px; } }
@media (prefers-reduced-motion: reduce) { .costcalc-page *, .costcalc-page *::before, .costcalc-page *::after { animation: none; transition: none; scroll-behavior: auto; } }

.estimate-jump { display: inline-block; margin-bottom: 20px; font-size: 12px; }
@media (min-width: 1024px) { .estimate-jump { display: none; } }
