:root {
  --ink: #132b24;
  --ink-2: #23423a;
  --muted: #61736d;
  --canvas: #f4f3ee;
  --surface: #ffffff;
  --surface-2: #f8f8f4;
  --line: #d8ded9;
  --line-dark: #b9c4be;
  --lime: #d7f44a;
  --lime-soft: #f1f9c8;
  --coral: #ff7657;
  --coral-soft: #fff0ec;
  --danger: #c44d37;
  --shadow: 0 16px 45px rgba(19, 43, 36, .08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.site-header {
  height: 66px;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(244,243,238,.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-weight: 830;
  letter-spacing: -.04em;
  font-size: 20px;
}
.brand-mark { width: 29px; height: 26px; display: flex; align-items: flex-end; gap: 3px; }
.brand-mark i { display: block; width: 7px; border-radius: 2px 2px 0 0; background: var(--ink); }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 25px; background: var(--coral); }
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; font-size: 13px; font-weight: 720; color: var(--ink-2); }
nav a:hover { color: var(--coral); }

.intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 28px 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.eyebrow, .panel-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 790;
}
.intro-copy { max-width: 680px; margin: 17px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.product-promises { margin: 0 0 3px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; min-width: 190px; }
.product-promises li { font-size: 12px; font-weight: 750; color: var(--ink-2); }
.product-promises li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: var(--lime); font-size: 10px; }

.workspace {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(360px, .82fr);
  gap: 18px;
  align-items: start;
}
.calculator-panel, .result-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-header, .result-header {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-header h2, .result-header h2 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.panel-kicker { margin-bottom: 6px; }
.utility-actions { display: flex; gap: 7px; }
.quiet-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 730;
  cursor: pointer;
}
.quiet-button:hover { border-color: var(--ink); background: var(--surface-2); }

.form-section { padding: 24px; border-bottom: 1px solid var(--line); }
.form-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 19px; }
.form-section-heading h3 { margin: 1px 0 3px; font-size: 16px; letter-spacing: -.015em; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.step-badge { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: white; font-size: 11px; font-weight: 820; }
.field-grid { display: grid; gap: 14px; }
.field-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
label { min-width: 0; color: var(--ink-2); font-size: 11px; font-weight: 740; line-height: 1.35; }
input {
  width: 100%;
  height: 43px;
  margin-top: 7px;
  padding: 9px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 740;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
input:hover { border-color: #8f9f97; }
input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(215,244,74,.45); }
.input-shell {
  height: 43px;
  margin-top: 7px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.input-shell:hover { border-color: #8f9f97; }
.input-shell:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(215,244,74,.45); }
.input-shell input { height: 41px; margin: 0; padding: 8px; border: 0; box-shadow: none; background: transparent; }
.input-shell b { color: var(--muted); font-size: 11px; white-space: nowrap; }
.input-shell.prefix input { padding-left: 6px; }
.input-shell.suffix input { padding-right: 6px; }

.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scenario-card { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.scenario-card legend { padding: 0 4px; font-size: 12px; font-weight: 800; }
.scenario-card legend span { margin-right: 6px; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.scenario-card-accent { border-color: #bed13e; background: #fbfde9; }
.scenario-card-accent legend span { color: #6d7f00; }
.microcopy { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.advanced-costs { border-bottom: 1px solid var(--line); }
.advanced-costs summary { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.advanced-costs summary::-webkit-details-marker { display: none; }
.advanced-costs summary > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.advanced-costs summary b { font-size: 13px; }
.advanced-costs summary small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.summary-action { color: var(--ink-2); font-size: 11px; font-weight: 780; white-space: nowrap; }
.summary-action::after { content: "+"; display: inline-block; margin-left: 8px; font-size: 15px; }
.advanced-costs[open] .summary-action::after { content: "−"; }
.advanced-body { padding: 3px 24px 22px; }
.advanced-group + .advanced-group { margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.advanced-group h3 { margin: 0 0 13px; font-size: 12px; }

.target-row { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--lime-soft); }
.compact-heading { margin: 0; }
.target-field { flex: 0 0 100px; }
.target-field .input-shell { margin: 0; background: white; }
.target-field input { font-size: 18px; }
.mobile-result-button { display: none; }

.result-panel { position: sticky; top: 84px; background: var(--ink); color: white; border-color: var(--ink); box-shadow: 0 18px 55px rgba(19,43,36,.18); }
.result-header { border-color: rgba(255,255,255,.13); }
.result-header .panel-kicker { color: #aebfb9; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; color: #bdd0c8; font-size: 10px; font-weight: 700; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(215,244,74,.12); }
.verdict { margin: 16px 16px 0; padding: 16px; border-radius: 8px; background: rgba(215,244,74,.1); border: 1px solid rgba(215,244,74,.24); }
.verdict-kicker { display: block; color: #b9cbc4; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.verdict strong { display: block; margin: 7px 0 4px; color: var(--lime); font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
.verdict p { margin: 0; color: #d3dfda; font-size: 11px; line-height: 1.5; }
.verdict.not-ready { background: rgba(255,118,87,.1); border-color: rgba(255,118,87,.3); }
.verdict.not-ready strong { color: #ff9d86; }
.hero-result { padding: 24px 20px 19px; }
.hero-result span, .result-comparison span, .metric-grid span { display: block; color: #aebfb9; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-result strong { display: block; margin: 4px 0 2px; font-size: clamp(48px, 5vw, 65px); line-height: 1; letter-spacing: -.055em; font-weight: 760; color: white; }
.hero-result small, .result-comparison small, .metric-grid small { color: #aebfb9; font-size: 9px; line-height: 1.35; }
.result-comparison { margin: 0 16px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; overflow: hidden; }
.result-comparison > div { min-width: 0; padding: 13px; }
.result-comparison > div:nth-child(2) { border-left: 1px solid rgba(255,255,255,.13); }
.result-comparison > div:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.13); }
.result-comparison strong { display: block; margin: 5px 0 2px; font-size: 20px; letter-spacing: -.025em; }
.metric-grid { margin: 14px 16px 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; overflow: hidden; }
.metric-grid > div { min-width: 0; padding: 13px; border-bottom: 1px solid rgba(255,255,255,.13); }
.metric-grid > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.13); }
.metric-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.metric-grid strong { display: block; margin: 6px 0 2px; font-size: 20px; letter-spacing: -.025em; }
.meter { height: 3px; margin: 7px 0 5px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; background: var(--lime); transition: width .25s; }
.breakdown { margin: 14px 16px 0; border-top: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); }
.breakdown summary { padding: 13px 0; cursor: pointer; color: #cedbd6; font-size: 10px; font-weight: 750; }
.breakdown-grid { padding: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; }
.breakdown-grid div { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.breakdown-grid span { color: #9db0a9; font-size: 9px; line-height: 1.3; }
.breakdown-grid strong { font-size: 11px; white-space: nowrap; }
.breakdown-grid .total { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
.breakdown-grid .total strong { color: var(--lime); }
.result-actions { padding: 15px 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.result-actions button { min-height: 35px; padding: 7px; border: 1px solid rgba(255,255,255,.24); border-radius: 7px; background: transparent; color: white; font-size: 9px; font-weight: 760; cursor: pointer; }
.result-actions button:hover { border-color: var(--lime); color: var(--lime); }
.privacy-note { margin: 10px 16px 17px; color: #8fa49c; font-size: 8px; line-height: 1.4; text-align: center; }

.monetization-slot { max-width: 980px; margin: 0 auto 70px; min-height: 120px; }
.insight-strip { padding: 50px max(28px, calc((100vw - 1060px)/2)); background: var(--lime); display: grid; grid-template-columns: 1fr 1.35fr; gap: 50px; align-items: center; }
.insight-strip p { margin: 0; font-size: 15px; line-height: 1.5; }
.insight-strip strong { font-size: clamp(25px, 3vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
.method-section, .faq-section { max-width: 1160px; margin: 0 auto; padding: 92px 28px; }
.section-heading { max-width: 760px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.03; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.method-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.method-grid article { padding: 24px 26px 24px 0; }
.method-grid article + article { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.method-grid span { color: var(--coral); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.method-grid h3 { margin: 15px 0 8px; font-size: 18px; letter-spacing: -.02em; }
.method-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.formula-card { margin-top: 30px; padding: 22px 24px; border: 1px solid var(--line-dark); border-radius: 9px; background: var(--surface); }
.formula-card span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.formula-card code { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(13px, 2vw, 18px); line-height: 1.5; }
.market-note { margin-top: 24px; padding: 24px; border-left: 4px solid var(--coral); background: var(--coral-soft); }
.market-note strong { font-size: 14px; }
.market-note p { margin: 7px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.faq-section { padding-top: 10px; padding-bottom: 100px; }
.section-heading.compact h2 { font-size: clamp(32px, 4vw, 44px); }
.faq-list { margin-top: 35px; border-top: 1px solid var(--line-dark); }
.faq-list details { border-bottom: 1px solid var(--line-dark); }
.faq-list summary { padding: 21px 0; cursor: pointer; font-size: 14px; font-weight: 760; }
.faq-list details p { max-width: 780px; margin: -5px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.65; }

footer { padding: 45px clamp(24px, 5vw, 72px); background: #0d211b; color: white; display: grid; grid-template-columns: 1fr auto; gap: 24px 60px; align-items: start; }
.footer-brand .brand-mark i { background: white; }
.footer-brand .brand-mark i:last-child { background: var(--coral); }
footer p { margin: 10px 0 0; color: #9fb2aa; font-size: 12px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #c4d0cb; font-size: 12px; font-weight: 720; }
footer small { grid-column: 1 / -1; color: #72877f; font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 11px 15px; border-radius: 7px; background: var(--lime); color: var(--ink); box-shadow: var(--shadow); font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.legal-page { min-height: 70vh; padding: 76px max(24px, calc((100vw - 820px)/2)); background: var(--surface); }
.legal-page h1 { margin: 0 0 30px; font-size: clamp(42px, 6vw, 66px); line-height: 1; letter-spacing: -.05em; }
.legal-page h2 { margin: 34px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.7; }

@media (max-width: 1050px) {
  .workspace { grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); }
  .field-grid-4 { grid-template-columns: 1fr 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .intro { padding-top: 38px; display: block; }
  .product-promises { margin-top: 22px; flex-direction: row; flex-wrap: wrap; }
  .workspace { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .mobile-result-button { display: flex; width: 100%; min-height: 51px; padding: 0 20px; align-items: center; justify-content: space-between; border: 0; background: var(--ink); color: white; font-size: 13px; font-weight: 800; cursor: pointer; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article, .method-grid article + article { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 580px) {
  .site-header { height: 60px; padding: 0 18px; }
  nav { display: none; }
  .intro { padding: 30px 18px 21px; }
  h1 { font-size: 39px; line-height: 1.02; }
  .intro-copy { font-size: 15px; }
  .product-promises { gap: 7px 14px; }
  .workspace { padding: 0 12px 54px; }
  .calculator-panel, .result-panel { border-radius: 9px; }
  .panel-header, .result-header, .form-section { padding-left: 17px; padding-right: 17px; }
  .panel-header h2, .result-header h2 { font-size: 19px; }
  .field-grid-2, .field-grid-3, .field-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px 9px; }
  .scenario-card .field-grid-2 { grid-template-columns: 1fr 1fr; }
  .advanced-costs summary, .advanced-body { padding-left: 17px; padding-right: 17px; }
  .target-row { padding: 17px; }
  .target-row .form-section-heading p { display: none; }
  .hero-result strong { font-size: 56px; }
  .insight-strip { padding: 44px 22px; grid-template-columns: 1fr; gap: 18px; }
  .method-section, .faq-section { padding-left: 22px; padding-right: 22px; }
  footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 390px) {
  .field-grid-2, .field-grid-3, .field-grid-4, .scenario-card .field-grid-2 { grid-template-columns: 1fr; }
  .target-row { align-items: flex-end; }
  .target-field { flex-basis: 86px; }
  .result-actions { grid-template-columns: 1fr; }
  .result-actions button { min-height: 39px; }
}

@media print {
  .site-header, .intro, .calculator-panel, .insight-strip, .method-section, .faq-section, footer, .result-actions, .toast { display: none !important; }
  body, .workspace { background: white; }
  .workspace { display: block; padding: 0; }
  .result-panel { position: static; min-height: 100vh; border-radius: 0; box-shadow: none; }
}
