:root {
  --ink: #18201e;
  --ink-deep: #101614;
  --steel: #52605a;
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --orange: #ef5a31;
  --orange-dark: #c84120;
  --line: #d9d4c9;
  --muted: #737a75;
  --mono: "DM Mono", monospace;
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.hero { min-height: 690px; padding: 28px clamp(24px, 5vw, 80px) 54px; color: var(--paper); background: var(--ink); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 54vw; height: 54vw; min-width: 620px; min-height: 620px; border: 1px solid rgba(244,240,231,.1); border-radius: 50%; right: -18vw; top: -34vw; pointer-events: none; }
.topbar { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(244,240,231,.18); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: .09em; }
.wordmark-accent, footer span:first-child span { color: var(--orange); }
.mark { display: inline-flex; gap: 2px; height: 20px; align-items: flex-end; }
.mark span { width: 4px; background: var(--orange); display: block; }
.mark span:nth-child(1) { height: 8px; }
.mark span:nth-child(2) { height: 14px; }
.mark span:nth-child(3) { height: 20px; }
.audience-tag, .eyebrow, .mini-label, .result-kicker { font: 500 11px/1.3 var(--mono); letter-spacing: .11em; }
.audience-tag { padding: 8px 11px; border: 1px solid rgba(244,240,231,.32); color: #d9ded6; }
.hero-layout { position: relative; z-index: 1; max-width: 1400px; margin: 64px auto 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .62fr); align-items: end; gap: clamp(42px, 8vw, 130px); }
.hero-copy { max-width: 750px; }
.eyebrow { margin: 0 0 16px; color: #b8c1ba; }
.eyebrow.orange { color: var(--orange-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; }
h1, h2 { font-family: var(--display); text-transform: uppercase; line-height: .9; font-weight: 700; }
h1 { font-size: clamp(62px, 8vw, 122px); max-width: 900px; }
h1 em, h2 em { color: var(--orange); font-style: normal; }
.hero-intro { max-width: 610px; margin: 28px 0 26px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: #d6dbd4; }
.proof-row { display: flex; flex-wrap: wrap; gap: 11px 24px; margin-bottom: 34px; color: #c6cec7; font-size: 13px; }
.proof-row b { color: var(--orange); font-family: var(--mono); font-size: 12px; letter-spacing: .03em; }
.button { border: 0; border-radius: 0; display: inline-flex; justify-content: center; align-items: center; gap: 16px; cursor: pointer; text-decoration: none; font-family: var(--body); font-size: 14px; font-weight: 800; letter-spacing: .01em; padding: 16px 21px; transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary, .button-calculate { background: var(--orange); color: #fff; }
.button-primary:hover, .button-calculate:hover { background: #ff7048; }
.hero-button { min-width: 200px; }
.leak-panel { max-width: 390px; width: 100%; justify-self: end; background: #25302d; border: 1px solid rgba(244,240,231,.22); box-shadow: 14px 14px 0 rgba(0,0,0,.15); }
.leak-image { height: 150px; background: linear-gradient(90deg, rgba(16,22,20,.15), rgba(16,22,20,.8)), url('/manus-storage/async-images/HxJryMqwkZmIYGGP0Rb6CM/image-1.webp') center/cover; filter: saturate(.83); }
.leak-panel-content { padding: 24px 25px 25px; }
.mini-label { margin: 0; color: var(--orange); }
.leak-list { list-style: none; padding: 0; margin: 15px 0 18px; }
.leak-list li { padding: 9px 0; border-bottom: 1px solid rgba(244,240,231,.17); color: #f3f1e9; font-size: 14px; }
.leak-list span { display: inline-block; min-width: 38px; color: #adb7af; font: 11px var(--mono); }
.leak-note { margin: 0; color: #c9d0ca; font-size: 13px; line-height: 1.55; }

.calculator-section { max-width: 1400px; margin: 0 auto; padding: 86px clamp(24px, 5vw, 80px) 100px; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(48px, 5.4vw, 84px); max-width: 750px; }
.section-note { max-width: 260px; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.calculator-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .75fr); gap: clamp(38px, 7vw, 115px); align-items: start; padding-top: 45px; }
#calculatorForm { max-width: 720px; }
.input-group { padding-bottom: 27px; }
.input-group > label, .rate-pair legend { display: block; margin-bottom: 10px; color: #252c29; font-size: 15px; font-weight: 700; line-height: 1.4; }
.field-number { margin-right: 8px; color: var(--orange-dark); font: 500 11px var(--mono); letter-spacing: .04em; }
.input-wrap { min-height: 56px; display: flex; align-items: center; background: var(--paper); border: 1px solid #c7c3bb; transition: border-color .18s ease, box-shadow .18s ease; }
.input-wrap:focus-within { border-color: var(--orange); box-shadow: 3px 3px 0 var(--orange); }
.input-wrap span { padding-left: 17px; color: var(--steel); font: 500 18px var(--mono); }
.input-wrap.percent span:last-child { padding: 0 17px 0 8px; }
.input-wrap input { width: 100%; border: 0; outline: 0; padding: 14px 17px; background: transparent; color: var(--ink); font-size: 20px; font-weight: 700; }
.input-wrap.money input { padding-left: 8px; }
.input-wrap input::placeholder { color: #abb0aa; font-weight: 500; }
.help-text, .form-footnote { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.rate-pair { margin: 0 0 26px; padding: 0 0 1px; border: 0; }
.rate-grid, .optional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input-group.compact { padding-bottom: 0; }
.input-group.compact > label { min-height: 44px; margin-bottom: 10px; color: #525a55; font-size: 12px; font-weight: 600; }
.optional-fields { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0 28px; }
.optional-fields summary { cursor: pointer; list-style: none; padding: 17px 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.optional-fields summary::-webkit-details-marker { display: none; }
.optional-fields summary span { display: inline-block; margin-right: 9px; color: var(--orange-dark); font-size: 18px; vertical-align: -1px; }
.optional-fields[open] summary span { transform: rotate(45deg); }
.optional-grid { padding: 0 0 22px; }
.form-error { display: none; margin: 0 0 14px; color: #aa2e18; font-size: 13px; font-weight: 700; }
.form-error.visible { display: block; }
.input-wrap.invalid { border-color: #b73924; box-shadow: 3px 3px 0 rgba(183,57,36,.22); }
.button-calculate { width: 100%; min-height: 59px; font-size: 15px; }
.form-footnote { text-align: center; }

.result-card { position: sticky; top: 24px; min-height: 490px; background: var(--ink); color: var(--paper); overflow: hidden; }
.result-card::before { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid rgba(244,240,231,.11); border-radius: 50%; right: -140px; top: -150px; }
.result-empty, .result-content { position: relative; z-index: 1; padding: 34px; }
.result-empty { display: flex; flex-direction: column; justify-content: center; min-height: 490px; }
.result-kicker { color: var(--orange); }
.result-empty h3, .result-content h3, .report-card h3 { margin: 12px 0; font-family: var(--display); font-size: 44px; line-height: .94; text-transform: uppercase; }
.result-empty p { max-width: 350px; color: #cbd2cc; font-size: 14px; }
.empty-rule { width: 52px; border-top: 3px solid var(--orange); margin: 13px 0 3px; }
.tiny-text { color: #9ca8a0 !important; font-size: 11px !important; line-height: 1.6; }
.result-content { padding-bottom: 28px; }
.result-summary { color: #ccd2cd; font-size: 14px; line-height: 1.55; }
.headline-result { margin: 23px 0 16px; padding: 18px 0 17px; border-top: 1px solid rgba(244,240,231,.26); border-bottom: 1px solid rgba(244,240,231,.26); }
.headline-result span { display: block; color: #b7c0b9; font: 500 10px var(--mono); letter-spacing: .08em; }
.headline-result strong { display: block; margin-top: 6px; color: var(--orange); font-family: var(--display); font-size: clamp(60px, 5.3vw, 82px); font-weight: 700; line-height: .85; letter-spacing: -.02em; }
.metric-list { border-top: 1px solid rgba(244,240,231,.17); }
.metric-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(244,240,231,.17); color: #cbd2cc; font-size: 12px; line-height: 1.35; }
.metric-row strong { flex: 0 0 auto; color: var(--paper); font-family: var(--mono); font-size: 12px; }
.gross-profit-row strong { color: var(--orange); }
.diagnosis { margin: 19px 0 12px; padding: 13px 14px; border-left: 3px solid var(--orange); background: rgba(244,240,231,.08); color: #e1e5e0; font-size: 12px; line-height: 1.55; }
.assumption-line { margin: 0; color: #9aa79e; font-size: 10px; line-height: 1.55; }
.text-button { margin-top: 18px; padding: 0; border: 0; background: transparent; color: var(--paper); cursor: pointer; font-family: var(--mono); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }

.next-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: clamp(40px, 10vw, 180px); padding: 90px max(24px, calc((100vw - 1240px) / 2)) 92px; background: #e5e0d5; }
.next-step-copy { max-width: 670px; }
.next-step-copy > p:not(.eyebrow) { max-width: 580px; margin: 22px 0; color: #535c56; font-size: 16px; }
.checklist { list-style: none; padding: 0; margin: 27px 0 0; }
.checklist li { padding: 12px 0 12px 30px; border-top: 1px solid #c9c3b8; position: relative; color: #313a35; font-size: 14px; font-weight: 700; }
.checklist li::before { content: "✓"; position: absolute; left: 2px; color: var(--orange-dark); font-weight: 800; }
.report-card { align-self: start; padding: 32px; background: var(--orange); color: #fff; box-shadow: 10px 10px 0 var(--ink); }
.report-card .mini-label { color: #ffe5d9; }
.report-card h3 { max-width: 380px; font-size: 45px; }
.report-card form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 22px; }
.report-card input { min-width: 0; padding: 0 14px; border: 1px solid rgba(255,255,255,.75); outline: 0; background: #fffaf6; color: var(--ink); font-size: 13px; }
.report-card input:focus { box-shadow: 3px 3px 0 var(--ink); }
.button-dark { background: var(--ink); color: #fff; white-space: nowrap; }
.button-dark:hover { background: #263530; }
.report-disclaimer, .report-status { margin: 13px 0 0; color: #ffe7dc; font-size: 11px; }
.report-status { min-height: 18px; color: #fff; font-weight: 700; }
.review-link { display: inline-block; margin-top: 24px; color: #fff; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.bottom-cta { padding: 90px 24px; text-align: center; background: var(--ink-deep); color: var(--paper); }
.bottom-cta .eyebrow { color: var(--orange); }
.bottom-cta h2 { max-width: 710px; margin: 0 auto 30px; font-size: clamp(48px, 5.6vw, 82px); }
.button-outline { border: 1px solid #b7c0b9; color: #fff; }
.button-outline:hover { border-color: var(--orange); color: var(--orange); }
.bottom-cta .tiny-text { margin: 16px auto 0; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px max(24px, calc((100vw - 1240px) / 2)); background: var(--ink-deep); border-top: 1px solid rgba(244,240,231,.18); color: #a5afa7; font-size: 10px; }
footer span:first-child { color: var(--paper); font: 700 13px var(--display); letter-spacing: .08em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-layout, .calculator-shell, .next-step { grid-template-columns: 1fr; }
  .hero-layout { margin-top: 48px; }
  .leak-panel { max-width: none; justify-self: stretch; }
  .leak-image { height: 130px; }
  .calculator-shell { gap: 42px; }
  .result-card { position: relative; top: 0; }
  .next-step { gap: 48px; }
}

@media (max-width: 620px) {
  .hero { padding: 20px 20px 38px; }
  .topbar { padding-bottom: 20px; }
  .audience-tag { display: none; }
  .hero-layout { gap: 37px; }
  h1 { font-size: clamp(54px, 17vw, 76px); }
  .hero-intro { margin-top: 22px; font-size: 16px; }
  .proof-row { gap: 8px 15px; }
  .proof-row span { font-size: 11px; }
  .leak-panel-content { padding: 20px; }
  .calculator-section { padding: 63px 20px 70px; }
  .section-heading { display: block; padding-bottom: 25px; }
  h2 { font-size: 52px; }
  .section-note { margin-top: 17px; }
  .calculator-shell { padding-top: 31px; }
  .rate-grid, .optional-grid { grid-template-columns: 1fr; gap: 22px; }
  .input-group.compact > label { min-height: 0; }
  .result-empty, .result-content { padding: 25px 22px; }
  .result-empty { min-height: 390px; }
  .result-empty h3, .result-content h3 { font-size: 40px; }
  .next-step { padding: 66px 20px; }
  .report-card { padding: 24px 20px; box-shadow: 7px 7px 0 var(--ink); }
  .report-card h3 { font-size: 40px; }
  .report-card form { grid-template-columns: 1fr; }
  .report-card input { min-height: 52px; }
  footer { display: block; padding: 18px 20px; }
  footer span:last-child { display: block; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
