.calculator-page { background: #070907; }
.calculator-page .topbar { background: rgba(7,9,7,.91); }
.calculator-label { color: var(--muted); font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.calculator-hero { position: relative; overflow: hidden; padding: 160px 0 110px; background: radial-gradient(circle at 50% 22%, rgba(190,236,64,.13), transparent 36%), #070907; }
.calculator-grid { position: absolute; inset: 0; opacity: .7; background-image: linear-gradient(rgba(223,255,91,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(223,255,91,.045) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.calculator-glow { position: absolute; top: -320px; left: 50%; width: 980px; height: 760px; border: 1px solid rgba(223,255,91,.13); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 150px rgba(199,255,56,.08) inset; }
.calculator-intro { position: relative; z-index: 1; text-align: center; }
.calculator-intro .eyebrow { margin-bottom: 30px; }
.calculator-intro h1 { font-size: clamp(64px, 10vw, 134px); }
.calculator-intro h1 span { color: var(--lime); }
.calculator-lead { max-width: 720px; margin: 30px auto 0; color: #c2c7ba; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.7; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 28px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.trust-row span { display: inline-flex; align-items: center; gap: 9px; }
.trust-row span::before { content: "✓"; color: var(--lime); }

.calculator-shell { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; max-width: 1120px; margin-top: 72px; }
.calculator-form, .calculator-output { min-height: 720px; padding: clamp(30px, 5vw, 58px); border: 1px solid var(--line-strong); }
.calculator-form { border-radius: 30px 0 0 30px; background: linear-gradient(145deg, #151a12, #0c0f0b); }
.calculator-output { display: flex; align-items: stretch; border-left: 0; border-radius: 0 30px 30px 0; background: linear-gradient(155deg, #0c0f0b, #080a07); box-shadow: 30px 30px 90px rgba(0,0,0,.36); }
.form-heading { display: flex; align-items: center; gap: 17px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.step-number { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--lime); font-family: var(--display); font-size: 11px; font-weight: 900; }
.form-heading p { margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.form-heading h2 { font-size: 27px; letter-spacing: -.04em; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset legend { width: 100%; margin-bottom: 12px; color: #dfe3d8; font-size: 12px; font-weight: 700; }
.time-fieldset { margin-top: 30px; }
.time-inputs { display: flex; align-items: flex-end; gap: 12px; }
.time-inputs label { display: grid; flex: 1; gap: 7px; }
.time-inputs label span { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.time-inputs input { width: 100%; height: 76px; border: 1px solid var(--line-strong); border-radius: 15px; outline: 0; background: #080b07; color: var(--text); font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -.04em; text-align: center; transition: border-color .18s, box-shadow .18s; appearance: textfield; }
.time-inputs input::-webkit-inner-spin-button { display: none; }
.time-inputs input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(223,255,91,.1); }
.time-inputs > b { padding-bottom: 12px; color: var(--lime); font-family: var(--display); font-size: 36px; }
.choice-fieldset { margin-top: 25px; }
.segmented { display: grid; gap: 8px; }
.two-up { grid-template-columns: repeat(2, 1fr); }
.three-up { grid-template-columns: repeat(3, 1fr); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label > span { display: flex; min-height: 52px; align-items: center; justify-content: center; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7,9,7,.55); color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; transition: .18s ease; }
.segmented label > span small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 9px; font-weight: 500; }
.segmented input:checked + span { border-color: var(--lime); background: rgba(223,255,91,.1); color: var(--lime); box-shadow: 0 0 0 1px rgba(223,255,91,.12) inset; }
.segmented input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.form-error { min-height: 20px; margin: 14px 0 0; color: #ff9d8d; font-size: 12px; }
.calculate-button { width: 100%; border: 0; cursor: pointer; }
.calculate-button span { margin-left: auto; font-size: 22px; }
.form-note { margin: 13px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.55; text-align: center; }

.result-empty, .pace-result { width: 100%; }
.result-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.result-empty[hidden], .pace-result[hidden] { display: none; }
.output-kicker { color: var(--lime); font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.empty-gauge { width: min(340px, 100%); height: 115px; margin: 42px 0 28px; display: flex; align-items: flex-end; justify-content: center; gap: 11px; }
.empty-gauge i { display: block; width: 12%; border-radius: 7px 7px 2px 2px; background: linear-gradient(to top, rgba(223,255,91,.08), rgba(223,255,91,.32)); }
.empty-gauge i:nth-child(1), .empty-gauge i:nth-child(5) { height: 36%; }
.empty-gauge i:nth-child(2), .empty-gauge i:nth-child(4) { height: 68%; }
.empty-gauge i:nth-child(3) { height: 100%; background: var(--lime); box-shadow: 0 0 30px rgba(223,255,91,.35); }
.result-empty > strong { font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.result-empty > p { max-width: 370px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.pace-result { outline: 0; }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.result-badge { padding: 7px 10px; border: 1px solid rgba(223,255,91,.2); border-radius: 999px; background: rgba(223,255,91,.07); color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-label { margin: 34px 0 6px; color: var(--muted); font-size: 12px; }
.pace-range { display: block; color: var(--text); font-family: var(--display); font-size: clamp(36px, 4.4vw, 58px); font-weight: 900; letter-spacing: -.065em; line-height: 1; }
.range-explainer { max-width: 450px; margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.result-metrics div { padding: 17px; background: #10140e; }
.result-metrics span, .result-metrics strong { display: block; }
.result-metrics span { color: var(--muted-2); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.result-metrics strong { margin-top: 5px; color: var(--lime); font-family: var(--display); font-size: 19px; }
.copy-result { margin-top: 28px; padding: 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--lime); cursor: pointer; font: 700 11px var(--body); }

.method-section { background: #090b08; }
.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 130px); align-items: start; }
.method-steps { border-top: 1px solid var(--line); }
.method-steps article { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.method-steps article > span { color: var(--lime); font-family: var(--display); font-size: 11px; font-weight: 800; }
.method-steps h3 { font-size: 24px; }
.method-steps p { max-width: 480px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.app-conversion { overflow: hidden; background: radial-gradient(circle at 78% 48%, rgba(223,255,91,.14), transparent 30%), var(--bg); }
.conversion-card { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 720px; overflow: hidden; padding: 0; border: 1px solid var(--line-strong); border-radius: 32px; background: linear-gradient(135deg, #141910, #090b08); }
.conversion-copy { padding: clamp(42px, 7vw, 80px); }
.conversion-copy h2 { font-size: clamp(48px, 6.5vw, 80px); }
.conversion-copy h2 span { color: var(--lime); }
.conversion-copy > p:not(.eyebrow) { max-width: 570px; margin: 26px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.conversion-copy ul { display: grid; gap: 12px; margin: 30px 0 34px; padding: 0; list-style: none; color: #dce0d4; font-size: 13px; font-weight: 600; }
.conversion-copy li::before { content: "✓"; margin-right: 10px; color: var(--lime); }
.conversion-copy small { display: block; margin-top: 13px; color: var(--muted-2); font-size: 10px; }
.conversion-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 55px 30px 0; overflow: hidden; }
.conversion-visual::before { content: ""; position: absolute; width: 550px; height: 550px; border: 1px dashed rgba(223,255,91,.22); border-radius: 50%; }
.calculator-phone { z-index: 1; width: min(390px, 90%); transform: translateY(70px) rotate(2deg); }
.conversion-float { position: absolute; z-index: 2; left: 7%; bottom: 130px; min-width: 190px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(12,15,11,.9); backdrop-filter: blur(14px); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.conversion-float span, .conversion-float strong, .conversion-float small { display: block; }
.conversion-float span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.conversion-float strong { margin-top: 4px; color: var(--lime); font-family: var(--display); font-size: 17px; text-transform: uppercase; }
.conversion-float small { color: var(--muted); font-size: 9px; }
.calculator-faq { border-top: 1px solid var(--line); background: #090b08; }

@media (max-width: 900px) {
  .calculator-shell, .method-grid, .conversion-card { grid-template-columns: 1fr; }
  .calculator-form, .calculator-output { min-height: 0; }
  .calculator-form { border-radius: 26px 26px 0 0; }
  .calculator-output { min-height: 540px; border-top: 0; border-left: 1px solid var(--line-strong); border-radius: 0 0 26px 26px; }
  .method-grid { gap: 60px; }
  .conversion-visual { min-height: 650px; }
}

@media (max-width: 560px) {
  .calculator-label { display: none; }
  .calculator-hero { padding: 125px 0 80px; }
  .calculator-intro h1 { font-size: clamp(56px, 17vw, 78px); }
  .calculator-lead { margin-top: 22px; font-size: 16px; }
  .calculator-shell { margin-top: 46px; padding-inline: 12px; }
  .calculator-form, .calculator-output { padding: 28px 20px; }
  .calculator-output { min-height: 490px; }
  .three-up { grid-template-columns: 1fr; }
  .three-up label > span { min-height: 48px; align-items: baseline; justify-content: flex-start; flex-direction: row; gap: 8px; padding-left: 15px; }
  .segmented label > span small { display: inline; margin: 0; }
  .time-inputs input { height: 68px; font-size: 34px; }
  .pace-range { font-size: 37px; }
  .result-metrics { grid-template-columns: 1fr; }
  .conversion-card { border-radius: 24px; }
  .conversion-copy { padding: 42px 24px; }
  .conversion-copy h2 { font-size: 48px; }
  .conversion-copy .button { width: 100%; }
  .conversion-visual { min-height: 560px; }
  .calculator-phone { width: 300px; }
  .conversion-float { left: 18px; bottom: 90px; }
}
