:root {
  color-scheme: dark;
  --canvas: #0d0d0d;
  --surface: #1a1a1a;
  --surface-raised: #202020;
  --ink: #e0e0e0;
  --body: #a6a6a6;
  --muted: #777;
  --line: #333;
  --blue: #2563eb;
  --blue-hover: #3974f6;
  --warning: #f5a623;
  --warning-soft: #30240e;
  --danger: #ff7777;
  --radius: 8px;
  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #73a0ff; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, 1080px); margin-inline: auto; }

.site-header { border-bottom: 1px solid #242424; background: rgb(13 13 13 / 94%); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.brand-mark { width: 30px; height: 30px; display: block; flex: 0 0 auto; object-fit: contain; }
.header-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #b8caff; text-decoration: none; font-size: 13px; }
.header-link:hover, .footer-nav a:hover { color: #fff; }

.hero { position: relative; isolation: isolate; padding-block: 72px 38px; text-align: center; }
.hero-glow { position: absolute; z-index: -1; pointer-events: none; inset: -10px 4% auto; height: 300px; opacity: .4; filter: blur(55px); background: radial-gradient(ellipse at 28% 48%, #007cf055 0, transparent 42%), radial-gradient(ellipse at 50% 35%, #7928ca55 0, transparent 44%), radial-gradient(ellipse at 68% 56%, #ff008033 0, transparent 43%), radial-gradient(ellipse at 56% 79%, #f9cb2830 0, transparent 38%); }
.eyebrow { margin: 0 0 12px; color: #a1a1a1; font: 500 11px/1.4 "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; color: #c1c1c1; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #50e3c2; box-shadow: 0 0 12px #50e3c299; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin: 0 auto; font-size: clamp(36px, 7vw, 64px); line-height: 1.04; letter-spacing: -.055em; font-weight: 650; }
.hero-copy { max-width: 620px; margin: 20px auto 0; color: #a7a7a7; font-size: clamp(16px, 2vw, 18px); line-height: 1.65; }
.disclaimer { max-width: 720px; min-height: 48px; margin: 25px auto 0; padding: 11px 15px; display: flex; justify-content: center; align-items: flex-start; gap: 10px; border: 1px solid #38322a; border-radius: var(--radius); background: rgb(26 26 26 / 88%); color: #d0c6b6; text-align: left; font-size: 13px; line-height: 1.55; }
.disclaimer-icon { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #b68839; border-radius: 50%; color: #ffc85b; font: 600 12px/1 system-ui; }

.calculator-section { max-width: 880px; }
.calculator-card, .results-card, .formula-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.calculator-card { padding: clamp(22px, 4vw, 36px); box-shadow: 0 1px 1px rgb(0 0 0 / 25%); }
.card-heading, .results-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-heading h2, .results-topline h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; line-height: 1.25; }
.free-badge, .estimate-tag { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #3b3b3b; border-radius: 5px; color: #a8a8a8; font: 500 10px/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin-top: 30px; }
.field label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #e0e0e0; font-size: 14px; font-weight: 550; }
.unit { color: #838383; font-size: 11px; font-weight: 400; }
.input-shell { position: relative; display: flex; align-items: center; min-height: 54px; border: 1px solid #444; border-radius: 6px; background: #111; transition: border-color .16s ease, box-shadow .16s ease; }
.input-shell:focus-within { border-color: #5686f3; box-shadow: 0 0 0 3px rgb(37 99 235 / 20%); }
.input-prefix, .input-suffix { flex: 0 0 auto; padding-inline: 14px; color: #858585; font-size: 14px; }
.input-prefix { padding-right: 0; }
.input-shell input { width: 100%; min-width: 0; height: 52px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: #f0f0f0; font-variant-numeric: tabular-nums; font-size: 17px; }
.input-shell:has(.input-prefix) input { padding-left: 9px; }
.input-shell input:focus-visible { outline: none; }
.input-shell input::-webkit-inner-spin-button, .input-shell input::-webkit-outer-spin-button { opacity: .5; }
.field small { display: block; margin-top: 7px; color: #777; font-size: 11px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 100px; cursor: pointer; font-size: 14px; font-weight: 600; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-hover); }
.button-secondary { border-color: #444; background: #242424; color: #dedede; }
.button-secondary:hover { background: #303030; border-color: #555; }
.privacy-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #777; font-size: 11px; }
.privacy-note svg { width: 15px; height: 15px; }
.form-error { margin: 18px 0 0; padding: 10px 12px; border: 1px solid #693535; border-radius: 6px; background: #2c1717; color: #ffaaaa; font-size: 13px; }

.results-card { margin-top: 16px; padding: clamp(22px, 4vw, 32px); }
.results-topline { align-items: center; }
.results-topline h2 { font-size: 21px; }
.payout-highlight { margin-top: 23px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid #2d4b83; border-radius: 7px; background: linear-gradient(120deg, #13203a, #151a28 70%, #1d1828); }
.result-label { color: #c4d4f5; font-size: 13px; }
.payout-value { color: #fff; font: 600 clamp(34px, 7vw, 48px)/1.1 "SFMono-Regular", Consolas, monospace; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.payout-caption { color: #9ba9c2; font-size: 11px; }
.result-list { margin: 20px 0 0; }
.result-row { min-height: 48px; padding: 11px 1px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #303030; }
.result-row dt { color: #a9a9a9; font-size: 13px; }
.result-row dd { margin: 0; color: #ededed; font: 500 14px/1.35 "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; text-align: right; }
.result-row dd.negative { color: #ff9a9a; }
.result-row-last { border-bottom: 0; }
.break-even { margin: 13px 0 0; padding: 12px 14px; border-left: 2px solid var(--blue); background: #171d29; color: #d3dfff; font-size: 13px; }
.principal-warning { margin: 12px 0 0; padding: 12px 14px; border: 1px solid #59441f; border-radius: 6px; background: var(--warning-soft); color: #ffd78c; font-size: 12px; }
.result-footnote { margin: 16px 0 0; color: #777; font-size: 11px; line-height: 1.6; }

.how-section, .faq-section { padding-top: 92px; }
.seo-content { padding-top: 88px; }
.guide-copy { max-width: 820px; }
.guide-copy h3 { margin: 30px 0 9px; color: #ededed; font-size: 19px; line-height: 1.35; letter-spacing: -.025em; }
.guide-copy p { margin: 0 0 15px; color: #aaa; font-size: 14px; line-height: 1.85; }
.guide-copy strong { color: #e0e0e0; font-weight: 600; }
.guide-copy em { color: #e0e0e0; }
.guide-copy a { color: #9ab8ff; text-underline-offset: 3px; }
.guide-copy a:hover { color: #c1d3ff; }
.section-heading { max-width: 640px; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(25px, 4vw, 34px); line-height: 1.2; letter-spacing: -.045em; }
.formula-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.formula-card { min-height: 194px; padding: 20px; }
.step-number { display: inline-grid; width: 26px; height: 26px; place-items: center; border: 1px solid #414141; border-radius: 5px; color: #a6a6a6; font: 11px "SFMono-Regular", Consolas, monospace; }
.formula-card h3 { margin: 17px 0 7px; font-size: 16px; letter-spacing: -.02em; }
.formula { margin: 0; color: #d5d5d5; font: 12px/1.6 "SFMono-Regular", Consolas, monospace; }
.formula-note { margin: 8px 0 0; color: #777; font-size: 11px; }
.faq-section { padding-bottom: 92px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 58px; padding: 17px 34px 17px 0; position: relative; cursor: pointer; list-style: none; color: #e2e2e2; font-size: 15px; font-weight: 550; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: #999; font: 24px/1.2 system-ui; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 780px; margin: -2px 0 19px; color: #a1a1a1; font-size: 13px; line-height: 1.75; }

.site-footer { border-top: 1px solid #272727; background: #101010; }
.footer-inner { padding-block: 27px 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 17px 24px; }
.footer-brand { font-size: 12px; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-nav a { color: #939393; text-decoration: none; font-size: 12px; }
.footer-copy, .copyright { margin: 0; color: #707070; font-size: 11px; }
.copyright { text-align: right; }

/* Supporting pages */
.page-hero { padding-block: 66px 30px; }
.page-hero h1 { max-width: 780px; margin: 0; font-size: clamp(34px, 6vw, 52px); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-copy { max-width: 760px; padding-bottom: 80px; }
.page-copy h2 { margin: 35px 0 10px; font-size: 21px; letter-spacing: -.03em; }
.page-copy p, .page-copy li { color: #b1b1b1; font-size: 15px; line-height: 1.8; }
.page-copy a { color: #8cb0ff; text-underline-offset: 3px; }
.page-copy ul { padding-left: 22px; }
.source-list li { margin: 9px 0; }
.breadcrumb { margin: 0 0 20px; color: #777; font-size: 12px; }
.breadcrumb a { color: #a5a5a5; text-decoration: none; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-link { min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 100px; background: var(--blue); color: #fff !important; text-decoration: none; }

@media (max-width: 650px) {
  .wrap { width: min(100% - 28px, 1080px); }
  .header-inner { min-height: 60px; }
  .brand { gap: 8px; font-size: 12px; }
  .brand-mark { width: 28px; height: 28px; }
  .header-link { font-size: 12px; }
  .hero { padding-block: 58px 28px; }
  h1 { font-size: clamp(35px, 10.2vw, 52px); }
  .desktop-break { display: none; }
  .hero-copy { margin-top: 15px; font-size: 15px; }
  .disclaimer { margin-top: 20px; font-size: 12px; }
  .fields-grid { grid-template-columns: 1fr; gap: 17px; margin-top: 23px; }
  .calculator-card { padding: 21px 17px; }
  .card-heading h2 { font-size: 20px; }
  .form-actions { align-items: stretch; }
  .form-actions .button { flex: 1 1 auto; }
  .privacy-note { flex: 1 0 100%; justify-content: center; margin: 4px 0 0; }
  .results-topline h2 { font-size: 19px; }
  .payout-highlight { padding: 18px; }
  .formula-grid { grid-template-columns: 1fr; }
  .formula-card { min-height: 0; }
  .how-section, .faq-section, .seo-content { padding-top: 68px; }
  .faq-section { padding-bottom: 68px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .footer-nav { justify-content: flex-start; gap: 15px; }
  .copyright { text-align: left; }
  .page-hero { padding-block: 48px 25px; }
  .page-copy { padding-bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
