/* ==========================================================================
   The Leak Finder — brand stylesheet
   Colors/type/radii pulled live from labelconverter.ai (see DESIGN-SPEC.md).
   Mobile-first: this is used on a phone, one-handed, in a conference hall.
   ========================================================================== */

:root {
  color-scheme: light;

  --navy: #173959;
  --green: #2D6A3F;
  --green-mid: #3D8B55;
  --green-accent: #52B06A;
  --gold: #C8972A;

  --white: #FFFFFF;
  --off-white: #F7F8F6;
  --green-light: #EAF4EE;
  --navy-light: #E8EEF4;
  --gold-light: #FBF4E6;

  --ink: #1C2018;
  --body: #4A5244;
  --muted: #8E9A87;
  --line: #DDE2D9;
  --line-soft: #F0F2EE;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(23, 57, 89, 0.08);
  --shadow-md: 0 8px 32px rgba(23, 57, 89, 0.12);
  --shadow-lg: 0 24px 64px rgba(23, 57, 89, 0.16);

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- reset-ish ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* The flow toggles screens with the `hidden` attribute — this must always win. */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0 0 1em; }
small { font-size: 0.85em; }
a { color: var(--navy); }

/* --- app shell ------------------------------------------------------------ */
.lf-app {
  min-height: 100dvh;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.lf-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--navy);
  padding: 6px 0 18px;
}
.lf-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-accent);
  flex: 0 0 auto;
}

/* Step label + 3-phase progress bar */
.lf-progress {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
  position: relative;
  padding-top: 10px;
}
.lf-progress::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--line-soft);
  border-radius: 2px;
}
.lf-progress::after {
  content: "";
  position: absolute; left: 0; top: 0;
  height: 3px; width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-accent));
  transition: width 0.45s var(--ease);
}
.lf-progress[data-phase="1"]::after { width: 33.3%; }
.lf-progress[data-phase="2"]::after { width: 66.6%; }
.lf-progress[data-phase="3"]::after { width: 100%; }

.lf-screen {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  animation: lf-in 0.35s var(--ease) both;
}
@keyframes lf-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.lf-q {
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 800;
  margin: 0 0 10px;
}
.lf-sub { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.lf-hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.lf-optional {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 6px;
}

/* --- buttons -------------------------------------------------------------- */
.lf-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  border-radius: var(--r-pill);
  padding: 16px 32px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              border-color 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lf-btn:focus-visible { outline: 3px solid rgba(82, 176, 106, 0.55); outline-offset: 2px; }
.lf-btn:disabled { opacity: 0.6; cursor: default; transform: none !important; box-shadow: none !important; }

.lf-btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.lf-btn-primary:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.lf-btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.lf-btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.lf-btn-secondary:hover { background: var(--navy-light); transform: translateY(-1px); }

/* --- hook ----------------------------------------------------------------- */
.lf-hook { justify-content: center; padding: 8vh 0 4vh; }
.lf-hook-title {
  font-size: clamp(34px, 9.5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.lf-hook-body { font-size: 18px; color: var(--body); margin: 0 0 14px; max-width: 34em; }
.lf-hook-body + .lf-hook-body { color: var(--ink); }
.lf-hook #btn-start { margin-top: 26px; align-self: flex-start; padding: 18px 36px; font-size: 17px; }

/* --- option cards (bucket + leak) ----------------------------------------- */
.lf-options { display: flex; flex-direction: column; gap: 10px; }
.lf-option {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: var(--shadow-sm);
}
.lf-option:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.lf-option.is-selected, .lf-option[aria-pressed="true"] {
  background: var(--navy-light);
  border-color: var(--navy);
}
.lf-option-label { font-weight: 600; }
.lf-option-hint { color: var(--muted); font-weight: 400; font-size: 14px; }
.lf-option-other {
  background: transparent;
  border-style: dashed;
  color: var(--body);
  box-shadow: none;
  margin-top: 6px;
}
.lf-option-other:hover { background: var(--white); }

.lf-other { margin-top: 18px; }

/* --- inputs --------------------------------------------------------------- */
.lf-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.lf-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.lf-input::placeholder { color: #B4BCAE; }
.lf-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(23, 57, 89, 0.10); }
input[type="number"].lf-input { -moz-appearance: textfield; }
input[type="number"].lf-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Range sliders */
.lf-range {
  width: 100%;
  margin: 26px 0 8px;
  accent-color: var(--navy);
  height: 32px;
}
.lf-readout {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 10vw, 52px);
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 6px 0 4px;
  line-height: 1;
}
.lf-readout small, .lf-readout .lf-unit {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
}
.lf-salary-row { display: flex; align-items: baseline; gap: 10px; }
.lf-salary-row .lf-label { margin: 0; flex: 0 0 auto; }
.lf-salary-row .lf-input { margin-top: 0; }

/* Stepper */
.lf-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 22px 0 6px;
}
.lf-stepper-btn {
  width: 60px; height: 60px;
  padding: 0;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}
.lf-stepper-btn:hover { background: var(--navy-light); }
.lf-stepper-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 64px;
  letter-spacing: -0.03em;
  color: var(--navy);
  min-width: 2ch;
  text-align: center;
  line-height: 1;
}
.lf-stepper + .lf-hint { text-align: center; }

/* --- gate ----------------------------------------------------------------- */
.lf-gate .lf-label + .lf-label { margin-top: 4px; }
.lf-error {
  color: #9B2C2C;
  background: #FBEDED;
  border: 1px solid #F1C9C9;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 15px;
  margin: 6px 0 0;
}

/* --- nav ------------------------------------------------------------------ */
.lf-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
}
.lf-nav .lf-btn { white-space: nowrap; }
.lf-nav #btn-back { flex: 0 0 auto; padding-left: 26px; padding-right: 26px; }
.lf-nav #btn-next { flex: 1 1 auto; max-width: 320px; margin-left: auto; padding-left: 20px; padding-right: 20px; }
.lf-nav #btn-back[hidden] + #btn-next { max-width: none; }
@media (max-width: 380px) { .lf-nav .lf-btn { font-size: 15px; padding-top: 15px; padding-bottom: 15px; } }

/* --- reveal --------------------------------------------------------------- */
.lf-result { display: block; }
.lf-reveal {
  text-align: center;
  padding: 18px 0 30px;
}
.lf-reveal-kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 8px;
}
.lf-reveal-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(56px, 16vw, 96px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy);
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}
.lf-result-hours { font-size: 19px; color: var(--ink); margin: 0 0 6px; }
.lf-result-loaded { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.lf-download { width: 100%; max-width: 420px; }
#download-status { margin-top: 10px; }

/* --- the document --------------------------------------------------------- */
.lf-document { margin-top: 10px; }
.lf-doc {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 22px 40px;
  color: var(--body);
}
@media (min-width: 640px) { .lf-doc { padding: 56px 56px 64px; } }

.lf-doc-cover { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.lf-doc-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  margin: 0 0 34px;
}
.lf-doc-prepared { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.lf-doc-prepared strong { color: var(--ink); font-weight: 500; }
.lf-doc-h1 {
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.lf-doc-subtitle { font-size: 17px; color: var(--ink); margin: 0 0 22px; }
.lf-doc-byline { color: var(--muted); font-size: 14px; margin: 0; }

.lf-doc-section { padding: 36px 0 8px; border-bottom: 1px solid var(--line); }
.lf-doc-section:last-of-type { border-bottom: 0; }
.lf-doc-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 8px;
}
.lf-doc-title { font-size: clamp(24px, 6vw, 30px); font-weight: 800; margin: 0 0 18px; }
.lf-doc-lead { font-size: 20px; color: var(--ink); line-height: 1.5; margin: 0 0 16px; }
.lf-doc-lead strong { color: var(--navy); }
.lf-doc-p { margin: 0 0 16px; }
.lf-doc-p strong { color: var(--ink); font-weight: 500; }
.lf-doc-quiet { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.lf-doc-quiet strong { color: var(--body); font-weight: 500; }
.lf-doc-h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* math table */
.lf-doc-math {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 26px;
  font-size: 15px;
}
.lf-doc-math td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); vertical-align: baseline; }
.lf-doc-math td:first-child { color: var(--body); }
.lf-doc-math td:last-child { text-align: right; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.lf-doc-math tr:last-child td { border-bottom: 1px solid var(--line); }

.lf-doc-big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(52px, 14vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy);
  margin: 6px 0 6px;
  font-variant-numeric: tabular-nums;
}
.lf-doc-big-label { font-size: 17px; color: var(--ink); margin: 0 0 14px; }

/* process map + questions */
.lf-doc-map, .lf-doc-questions {
  list-style: none;
  counter-reset: lf;
  margin: 8px 0 18px;
  padding: 0;
}
.lf-doc-step, .lf-doc-q {
  counter-increment: lf;
  position: relative;
  padding: 12px 0 12px 48px;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.6;
}
.lf-doc-step::before, .lf-doc-q::before {
  content: counter(lf);
  position: absolute; left: 0; top: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
}
.lf-doc-step::before { background: var(--navy); color: var(--white); }
.lf-doc-q::before { background: var(--green-light); color: var(--green); }

/* the write-in blanks — the part that makes it a work product */
.lf-blank {
  display: inline;            /* inline text, not inline-block — see document.js */
  white-space: nowrap;        /* a blank never breaks across lines */
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 1px;
  margin: 0 2px;
  user-select: none;
}

/* before / after */
.lf-doc-ba { display: grid; gap: 14px; margin: 6px 0 18px; }
@media (min-width: 640px) { .lf-doc-ba { grid-template-columns: 1fr 1fr; } }
.lf-doc-before, .lf-doc-after { border-radius: var(--r-md); padding: 20px 20px 8px; }
.lf-doc-before { background: var(--off-white); }
.lf-doc-after { background: var(--green-light); border-left: 4px solid var(--green-accent); }
.lf-doc-after .lf-doc-h3 { color: var(--green); }

/* next steps + CTA */
.lf-doc-nextsteps { list-style: none; margin: 4px 0 20px; padding: 0; }
.lf-doc-nextsteps li {
  padding: 12px 0 12px 18px;
  border-left: 3px solid var(--navy);
  margin: 0 0 12px;
  line-height: 1.6;
}
.lf-doc-nextsteps strong { color: var(--navy); font-weight: 500; }
.lf-doc-cta { text-align: center; margin: 26px 0 0; }
.lf-cta { display: inline-block; text-decoration: none; padding: 18px 40px; font-size: 17px; }

/* Only shown with ?debug in the URL (app.js adds .lf-debug-on to <body>) */
.lf-debug { display: none; margin-top: 28px; color: var(--muted); font-size: 12px; }
.lf-debug-on .lf-debug { display: block; }
.lf-debug pre { font-size: 11px; overflow: auto; }

/* --- PDF capture + print --------------------------------------------------- */
/* app.js adds .lf-pdf to <body> while html2pdf snapshots #document */
.lf-pdf .lf-doc { box-shadow: none; border-radius: 0; padding: 28px 36px 40px; }
.lf-pdf .lf-doc-section { page-break-inside: auto; }

@media print {
  body { background: var(--white); }
  .lf-topbar, .lf-progress, .lf-nav, .lf-reveal, .lf-debug, .lf-download, #download-status { display: none !important; }
  .lf-app { max-width: none; padding: 0; }
  .lf-doc { box-shadow: none; border-radius: 0; padding: 0; }
  .lf-doc-section { page-break-before: always; padding-top: 24px; }
  .lf-doc-step, .lf-doc-q, .lf-doc-ba, .lf-doc-math { page-break-inside: avoid; }
}

/* ==========================================================================
   Design pass 2: hero, richer cards, real sliders, stat tiles, ticket cover
   ========================================================================== */

/* --- hook as a navy hero card ---------------------------------------------- */
.lf-hook {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 44px 26px 36px;
  margin: 0 0 8px;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.lf-hook::before {
  content: "";
  position: absolute;
  right: -28%; bottom: -46%;
  width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 176, 106, 0.55) 0%, rgba(82, 176, 106, 0) 68%);
  pointer-events: none;
}
.lf-hook::after {
  content: "";
  position: absolute;
  left: -18%; top: -30%;
  width: 55%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.lf-hook > * { position: relative; z-index: 1; }
.lf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin: 0 0 20px;
}
.lf-hook-title { color: var(--white); }
.lf-hook-body { color: rgba(255, 255, 255, 0.72); }
.lf-hook-body + .lf-hook-body { color: var(--white); }
.lf-hook #btn-start {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.lf-hook #btn-start:hover { background: var(--green-light); border-color: var(--green-light); color: var(--green); }
@media (min-width: 640px) { .lf-hook { padding: 64px 56px 56px; } }

/* --- option cards: icon, two-line text, chevron ----------------------------- */
.lf-option {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 48px 16px 16px;
  position: relative;
}
.lf-option::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lf-option:hover::after { border-color: var(--navy); transform: translateY(-50%) translateX(3px) rotate(-45deg); }
.lf-option:active { transform: scale(0.99); }
.lf-option-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--navy-light);
  color: var(--navy);
  display: grid; place-items: center;
}
.lf-option-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lf-option.is-selected .lf-option-icon { background: var(--navy); color: var(--white); }
.lf-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lf-option-other .lf-option-icon { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }
.lf-option-other::after { display: none; }

/* --- real slider styling (track fill driven by --pct from app.js) ----------- */
.lf-range { -webkit-appearance: none; appearance: none; background: transparent; height: 44px; margin: 18px 0 4px; }
.lf-range:focus { outline: none; }
.lf-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-accent)) 0 0 / var(--pct, 30%) 100% no-repeat, var(--line-soft);
}
.lf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  margin-top: -11px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s var(--ease);
}
.lf-range:active::-webkit-slider-thumb { transform: scale(1.08); }
.lf-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--line-soft); }
.lf-range::-moz-range-progress { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--green-accent)); }
.lf-range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); box-shadow: var(--shadow-md); }
.lf-range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 0 4px; }

/* --- reveal: glow + stat tiles ---------------------------------------------- */
.lf-reveal { position: relative; }
.lf-reveal::before {
  content: "";
  position: absolute;
  left: 50%; top: 10px;
  width: min(120vw, 560px); height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(82, 176, 106, 0.18) 0%, rgba(82, 176, 106, 0) 65%);
  pointer-events: none;
  z-index: 0;
}
.lf-reveal > * { position: relative; z-index: 1; }
.lf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 22px;
  text-align: center;
}
.lf-stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 8px 12px;
}
.lf-stat-v {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(18px, 5.2vw, 24px);
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.lf-stat-l {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lf-result-loaded { margin-bottom: 8px; }

/* --- footer ------------------------------------------------------------------ */
.lf-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 0 6px;
  font-size: 12px;
  color: var(--muted);
}
.lf-footer strong { color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 12px; }

/* --- document: ticket cover + numbered section heads ------------------------- */
.lf-doc-band {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--green) 55%, var(--green-accent) 100%);
  margin: 0 0 28px;
}
.lf-doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 26px 0 8px;
  background: var(--off-white);
}
.lf-doc-meta > div { padding: 12px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--white); }
.lf-doc-meta > div:nth-child(2n) { border-right: 0; }
.lf-doc-meta > div:nth-last-child(-n+2) { border-bottom: 0; }
.lf-doc-meta-l { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lf-doc-meta-v { display: block; margin-top: 3px; font-weight: 500; color: var(--ink); }
.lf-doc-meta .is-key { background: var(--green-light); }
.lf-doc-meta .is-key .lf-doc-meta-v { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -0.02em; }
.lf-doc-num {
  display: inline-grid;
  place-items: center;
  min-width: 30px; height: 22px;
  padding: 0 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.lf-doc-kicker { display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .lf-screen { animation: none; }
  .lf-btn, .lf-option, .lf-progress::after, .lf-range::-webkit-slider-thumb { transition: none; }
}
