/* ════════════════════════════════════════════════════════════
   MARGIN LEAK CALCULATOR · lead magnet
   Rides shared/site.css tokens.
   ════════════════════════════════════════════════════════════ */

.lk { --alert: #B33B1F; --warn: #C4761F; }
.lk-sec { padding: 80px 0; border-top: 1px solid var(--rule); }
.lk-sec.band { background: var(--bg-2); }
.lk-eyebrow { font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.lk-h2 { font-size: clamp(28px,3.4vw,46px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; margin: 20px 0 0; max-width: 24ch; }
.lk-h2 em { font-style: italic; font-family: "Instrument Serif", Georgia, serif; color: var(--accent); font-weight: 400; }
.lk-lead { font-size: 17px; color: var(--ink-2); line-height: 1.55; margin: 18px 0 0; max-width: 62ch; }
.lk-lead strong { color: var(--ink); font-weight: 500; }

/* hero */
.lk-hero { padding: 76px 0 44px; position: relative; overflow: hidden; }
.lk-hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 540px; pointer-events: none; background: radial-gradient(ellipse 44% 50% at 40% 30%, #E8643D1F, transparent 70%); }
.lk-hero .shell { position: relative; }
.lk-hero h1 { font-size: clamp(42px,6vw,84px); font-weight: 500; line-height: .97; letter-spacing: -.045em; margin: 22px 0 20px; max-width: 17ch; }
.lk-hero h1 em { font-style: italic; font-family: "Instrument Serif", Georgia, serif; color: var(--alert); font-weight: 400; }
.lk-pill { display: inline-flex; align-items: center; gap: 9px; font: 500 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--alert); background: #E8643D14; padding: 7px 13px; border-radius: var(--r-pill); }
.lk-pill .d { width: 5px; height: 5px; border-radius: 999px; background: var(--alert); }

/* calculator shell */
.lk-calc { display: grid; grid-template-columns: 400px 1fr; gap: 20px; margin-top: 40px; align-items: start; }
.lk-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); padding: 30px; }
.lk-panel-h { font: 500 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px; }

/* inputs */
.lk-field { margin-bottom: 26px; }
.lk-field:last-child { margin-bottom: 0; }
.lk-field .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 11px; }
.lk-field label { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.lk-field .out { font: 500 14px/1 var(--font-mono); color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lk-field .hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; margin-top: 8px; }
.lk-range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: var(--bg-2); outline: none; }
.lk-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 999px; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 1px 6px #0E0E0C33; cursor: pointer; }
.lk-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 999px; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 1px 6px #0E0E0C33; cursor: pointer; }
.lk-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* results */
.lk-result { background: var(--ink); color: var(--bg); border-radius: var(--r-3); padding: 34px; position: relative; overflow: hidden; }
.lk-result::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 82% 12%, #E8643D33 0%, transparent 55%), radial-gradient(ellipse at 8% 92%, var(--accent-soft) 0%, transparent 50%); opacity: .5; }
.lk-result > * { position: relative; }
.lk-r-k { font: 500 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #FAFAF788; }
.lk-r-big { font-size: clamp(44px,6vw,84px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin: 16px 0 0; color: #F0A88C; font-variant-numeric: tabular-nums; }
.lk-r-sub { font-size: 14px; color: #FAFAF7CC; margin-top: 14px; line-height: 1.5; max-width: 46ch; }
.lk-r-sub b { color: var(--bg); font-weight: 500; }

.lk-bars { margin-top: 32px; padding-top: 28px; border-top: 1px solid #FAFAF71F; display: grid; gap: 16px; }
.lk-bar { display: grid; grid-template-columns: 152px 1fr 104px; gap: 16px; align-items: center; }
.lk-bar .nm { font: 500 11px/1.35 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #FAFAF7BB; }
.lk-bar .tr { height: 12px; border-radius: 999px; background: #FAFAF714; overflow: hidden; }
.lk-bar .tr i { display: block; height: 100%; border-radius: 999px; transition: width .45s var(--ease); }
.lk-bar.q .tr i { background: #F0A88C; }
.lk-bar.s .tr i { background: #D9A8C5; }
.lk-bar.a .tr i { background: #C4D0BB; }
.lk-bar.c .tr i { background: #D8C7A8; }
.lk-bar .vl { font: 500 13px/1 var(--font-mono); color: var(--bg); text-align: right; font-variant-numeric: tabular-nums; }

.lk-roi { margin-top: 30px; padding-top: 26px; border-top: 1px solid #FAFAF71F; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.lk-roi .k { font: 500 9.5px/1.35 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #FAFAF788; }
.lk-roi .v { font-size: 26px; font-weight: 500; letter-spacing: -.03em; margin-top: 10px; color: var(--bg); font-variant-numeric: tabular-nums; }
.lk-roi .v.good { color: #C4D0BB; }
.lk-roi .n { font-size: 11.5px; color: #FAFAF799; margin-top: 7px; line-height: 1.4; }

/* benchmark strip */
.lk-bench { margin-top: 18px; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-2); padding: 16px 20px; flex-wrap: wrap; }
.lk-bench .b { font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lk-bench .g { flex: 1; min-width: 180px; height: 8px; border-radius: 999px; background: var(--bg-2); position: relative; overflow: hidden; }
.lk-bench .g i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--alert)); transition: width .45s var(--ease); }
.lk-bench .g u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.lk-bench .v { font: 500 13px/1 var(--font-mono); color: var(--ink); }

/* methodology */
.lk-method { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 36px; }
.lk-mc { background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--c); border-radius: var(--r-3); padding: 24px; }
.lk-mc .n { font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.lk-mc h4 { font-size: 16px; font-weight: 500; letter-spacing: -.02em; margin: 11px 0 0; color: var(--ink); }
.lk-mc p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 9px 0 0; }
.lk-mc code { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); background: var(--bg-2); padding: 9px 11px; border-radius: var(--r-1); margin-top: 12px; line-height: 1.5; }

/* capture */
.lk-capture { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-3); padding: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; margin-top: 40px; }
.lk-capture h3 { font-size: clamp(24px,2.6vw,34px); font-weight: 500; letter-spacing: -.028em; line-height: 1.1; margin: 16px 0 0; }
.lk-capture h3 em { font-style: italic; font-family: "Instrument Serif", Georgia, serif; color: var(--accent); font-weight: 400; }
.lk-capture ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.lk-capture li { display: grid; grid-template-columns: 18px 1fr; gap: 11px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.lk-capture li .t { color: var(--accent); font-family: var(--font-mono); font-size: 12px; }
.lk-form { display: grid; gap: 12px; }
.lk-form input { width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r-1); padding: 15px 16px; outline: none; transition: border-color .2s var(--ease); }
.lk-form input:focus { border-color: var(--accent); }
.lk-form input::placeholder { color: var(--ink-3); }
.lk-form button { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--accent-ink); background: var(--accent); border: none; border-radius: var(--r-pill); padding: 16px 20px; cursor: pointer; transition: background .2s var(--ease); }
.lk-form button:hover { background: var(--ink); }
.lk-form .fine { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.lk-sent { display: none; font-size: 15px; color: var(--accent); font-weight: 500; line-height: 1.5; }
.lk-capture.done .lk-form { display: none; }
.lk-capture.done .lk-sent { display: block; }

/* proof */
.lk-proof { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 36px; }
.lk-proof div { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); padding: 26px; }
.lk-proof .v { font-size: clamp(24px,2.6vw,34px); font-weight: 500; letter-spacing: -.035em; color: var(--alert); line-height: 1; }
.lk-proof .l { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 12px; }
.lk-proof .s { font: 500 9px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }

@media (max-width: 1080px) {
  .lk-calc { grid-template-columns: 1fr; }
  .lk-method, .lk-proof { grid-template-columns: 1fr 1fr; }
  .lk-capture { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
  .lk-roi { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 620px) {
  .lk-method, .lk-proof { grid-template-columns: 1fr; }
  .lk-bar { grid-template-columns: 1fr auto; }
  .lk-bar .tr { grid-column: 1 / -1; }
}
