/* Patient Flow leak calculator — light theme. Type, kicker, buttons and red follow
   sparkxagency.com; the ground is white so the numbers read like a clean report. */

@font-face {
  font-family: 'Raleway';
  src: url('/assets/fonts/raleway-latin-var.woff2') format('woff2');
  font-weight: 700 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  src: url('/assets/fonts/raleway-latin-ext-var.woff2') format('woff2');
  font-weight: 700 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-latin-var.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-latin-ext-var.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F5F4;
  --ink: #0A0202;
  --ink-2: #3B3535;
  --muted: #6E6767;
  --line: #E8E3E1;
  --red: #FC1616;          /* brand red: large numbers, bars, accents */
  --red-ink: #D61212;      /* readable red for small text and button fills */
  --red-soft: #FFF2F2;
  --red-btn: #D61212;      /* red fills behind white text */
  --surface: #FFFFFF;      /* cards, answer buttons, keys */
  --on-ink: #FFFFFF;       /* text on an ink-coloured fill */
  --topbar-bg: rgba(255, 255, 255, .88);
  --placeholder: #CFC8C6;
  --idk-line: #BDB5B3;
  --faint: #B5ADAB;
  --cta-bg: #0A0202;
  --cta-line: transparent;

  --font-display: 'Raleway', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --radius-pill: 40px;
  --radius-card: 20px;
  --col: 720px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* long, soft landing */
  --ease-in: cubic-bezier(.5, 0, .75, 0);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* Dark theme — the main site's ground, same red. White stays the default. */
:root[data-theme="dark"] {
  --bg: #0A0202;
  --bg-soft: #170808;
  --surface: #120505;
  --ink: #F5F1F0;
  --ink-2: rgba(245, 241, 240, .82);
  --muted: rgba(245, 241, 240, .6);
  --line: rgba(255, 255, 255, .12);
  --red-ink: #FF4A4A;
  --red-btn: #E01414;
  --red-soft: rgba(252, 22, 22, .14);
  --on-ink: #0A0202;
  --topbar-bg: rgba(10, 2, 2, .82);
  --placeholder: rgba(245, 241, 240, .26);
  --idk-line: rgba(255, 255, 255, .3);
  --faint: rgba(245, 241, 240, .34);
  --cta-bg: #1A0909;
  --cta-line: rgba(255, 255, 255, .08);
  color-scheme: dark;
}

body { font-family: var(--font-body); font-size: 17px; line-height: 1.6; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100svh; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.red { color: var(--red); }

.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.kicker::before { content: ""; width: 40px; height: 3px; background: var(--red); border-radius: 2px; flex: 0 0 40px; }

kbd { font-family: var(--font-body); font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface); color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); }
@media (hover: none) { .hint { display: none; } }

/* ---------- chrome ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--line); z-index: 30; }
.progress__bar { display: block; height: 100%; width: 0; background: var(--red); transition: width .8s var(--ease-out); }
.is-intro .progress, .is-results .progress { visibility: hidden; }

.topbar { position: fixed; inset: 4px 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(24px, env(safe-area-inset-right)) 14px max(24px, env(safe-area-inset-left)); background: var(--topbar-bg); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.2px; min-height: 44px; }
.brand img { width: 32px; height: auto; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.counter { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 1px; }
.theme-toggle { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, transform .2s; }
.theme-toggle:hover { border-color: var(--ink); transform: rotate(-12deg); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }

/* Switching theme: one soft crossfade of the whole page where supported, else a colour fade. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .55s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .55s ease, color .55s ease, border-color .55s ease, fill .55s ease, stroke .55s ease, box-shadow .55s ease !important; }

.back { background: none; border: 0; font: 600 14px var(--font-body); color: var(--ink-2); cursor: pointer; min-height: 44px; padding: 0 6px; }
.back:hover { color: var(--red-ink); }
.is-results .topbar { position: absolute; }

/* ---------- screens ---------- */
.screen { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 104px 24px 72px; }
/* Transitions: the current screen drifts out (.36s), then the next rises in with its parts
   following one after another — title, help text, answers, button. */
.screen .q__inner > *, .screen .intro > *, .screen .loading > * { will-change: opacity, transform; }
.screen.is-entering .q__inner > *, .screen.is-entering .intro > *, .screen.is-entering .loading > * { animation: rise .8s var(--ease-out) both; }
.screen.is-back .q__inner > *, .screen.is-back .intro > *, .screen.is-back .loading > * { animation: drop .8s var(--ease-out) both; }
.screen.is-entering :is(.q__inner, .intro, .loading) > :nth-child(2), .screen.is-back :is(.q__inner, .intro, .loading) > :nth-child(2) { animation-delay: .07s; }
.screen.is-entering :is(.q__inner, .intro, .loading) > :nth-child(3), .screen.is-back :is(.q__inner, .intro, .loading) > :nth-child(3) { animation-delay: .14s; }
.screen.is-entering :is(.q__inner, .intro, .loading) > :nth-child(4), .screen.is-back :is(.q__inner, .intro, .loading) > :nth-child(4) { animation-delay: .21s; }
.screen.is-entering :is(.q__inner, .intro, .loading) > :nth-child(n+5), .screen.is-back :is(.q__inner, .intro, .loading) > :nth-child(n+5) { animation-delay: .28s; }
.screen.is-leaving .q__inner, .screen.is-leaving .intro { animation: leaveUp .36s var(--ease-in) both; }
.screen.is-leaving-back .q__inner, .screen.is-leaving-back .intro { animation: leaveDown .36s var(--ease-in) both; }
.results.is-entering { animation: fadeIn .9s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-34px); } to { opacity: 1; transform: none; } }
@keyframes leaveUp { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-30px); } }
@keyframes leaveDown { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(30px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* intro */
.intro { max-width: 820px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.intro h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -1.8px; line-height: 1.04; }
.intro__sub { margin-top: 24px; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.intro__go { margin-top: 36px; display: flex; align-items: center; gap: 16px; }
.intro__meta { list-style: none; margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 14px; color: var(--muted); }
.intro__meta li { display: inline-flex; align-items: center; gap: 8px; }
.intro__meta svg { width: 18px; height: 18px; fill: none; stroke: var(--red-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; padding: 16px 30px; min-height: 52px; border-radius: var(--radius-pill);
  border: 2px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--big { font-size: 18px; padding: 18px 46px; min-height: 60px; }
.btn--dark { background: var(--ink); color: var(--on-ink); box-shadow: 0 12px 30px rgba(10, 2, 2, .18); }
.btn--dark:hover { background: var(--red-btn); color: #fff; box-shadow: 0 14px 36px rgba(214, 18, 18, .3); }
.btn--red { background: var(--red-btn); color: #fff; box-shadow: 0 14px 40px rgba(214, 18, 18, .3); }
.btn--red:hover { background: var(--ink); color: var(--on-ink); box-shadow: 0 14px 36px rgba(10, 2, 2, .25); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn--pill { padding: 6px 6px 6px 28px; }
.btn--pill i { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--red-btn); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 18px; flex: 0 0 42px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.linkbtn { background: none; border: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* questions */
.flow { display: block; }
.q__inner { width: 100%; max-width: var(--col); }
.q__num { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--red-ink); vertical-align: .32em; }
.q__title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -.5px; }
.q__help { margin-top: 12px; font-size: 17px; color: var(--muted); max-width: 600px; }
.q__more { margin-top: 26px; }
.q__ok { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.q__error { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--red-ink); }

.choices { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice label { display: inline-flex; align-items: center; gap: 14px; min-width: 260px; min-height: 52px; padding: 10px 18px 10px 12px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 17px; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.choice label:hover { border-color: var(--ink); }
.choice kbd { min-width: 26px; text-align: center; }
.choice input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.choice input:checked + label kbd { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }
.choice input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }
.choices--row { flex-direction: row; flex-wrap: wrap; }
.choices--row .choice label { min-width: 0; }

.big-input { display: block; width: 100%; margin-top: 30px; border: 0; border-bottom: 2px solid var(--line); background: transparent; padding: 6px 0 10px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); color: var(--ink); letter-spacing: -.5px; border-radius: 0; }
.big-input::placeholder { color: var(--placeholder); }
.big-input:focus { outline: none; border-bottom-color: var(--ink); }
.big-input--text { font-size: clamp(26px, 3.6vw, 36px); margin-top: 6px; }
.is-invalid .big-input, .big-input.is-invalid { border-bottom-color: var(--red-ink); }
.money-input { display: flex; align-items: baseline; gap: 14px; margin-top: 30px; }
.money-input .big-input { margin-top: 0; }
.money-input__cur { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); color: var(--muted); }
.names { margin-top: 22px; display: grid; gap: 8px; }
.names__label { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 18px; }

.rate { margin-top: 26px; }
.rate__out { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 8vw, 88px); line-height: 1; letter-spacing: -2px; color: var(--ink); }
.rate.is-unknown .rate__out { color: var(--muted); font-size: clamp(34px, 5vw, 52px); letter-spacing: -.5px; }
.rate.is-unknown input { opacity: .3; }
.rate__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: -4px; }
.idk { min-height: 52px; padding: 12px 22px; border-radius: var(--radius-pill); border: 1.5px dashed var(--idk-line); background: var(--surface); color: var(--ink-2); font: 600 15px var(--font-body); cursor: pointer; transition: all .15s; }
.idk:hover { border-color: var(--ink); color: var(--ink); }
.idk[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-style: solid; border-color: var(--ink); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; background: transparent; margin: 12px 0 0; cursor: pointer; display: block; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--red) 0 var(--p, 50%), var(--line) var(--p, 50%) 100%); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--red); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 4px 14px rgba(10, 2, 2, .2); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 4px 14px rgba(10, 2, 2, .2); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(252, 22, 22, .25); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(252, 22, 22, .25); }

/* ---------- calculating ---------- */
.loading { width: 100%; max-width: 520px; }
.loading__ring { width: 56px; height: 56px; margin-bottom: 26px; }
.loading__ring svg { width: 100%; height: 100%; fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 90 200; animation: spin 1s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.5px; }
.loading__steps { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.loading__steps li { display: flex; gap: 14px; align-items: center; font-size: 17px; color: var(--faint); transition: color .3s; }
.loading__steps li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); transition: all .3s; }
.loading__steps li.is-active { color: var(--ink); }
.loading__steps li.is-active::before { border-color: var(--red); border-top-color: transparent; animation: spin .8s linear infinite; }
.loading__steps li.is-done { color: var(--ink-2); }
.loading__steps li.is-done::before { border-color: var(--red); background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- results ---------- */
.results { max-width: calc(var(--col) + 48px); margin: 0 auto; padding: 112px 24px 40px; }
.results > * + * { margin-top: 76px; }
.r-hero h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.6px; line-height: 1.15; }
.r-hero__mega { display: block; margin: 10px 0 6px; font-weight: 900; font-size: clamp(54px, 10vw, 112px); line-height: .98; letter-spacing: -3px; color: var(--red); overflow-wrap: anywhere; }
.r-hero__mega.is-range { font-size: clamp(42px, 7.4vw, 84px); letter-spacing: -2px; }
.r-hero__range { margin-top: 14px; font-weight: 600; color: var(--ink-2); }
.r-facts { list-style: none; margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.r-facts li { background: var(--bg-soft); border-radius: 16px; padding: 18px 20px; }
.r-facts b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1.15; letter-spacing: -.4px; overflow-wrap: anywhere; }
.r-facts span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.r-note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 640px; }
.r-title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.4px; }
.r-lead { margin-top: 12px; font-size: 18px; color: var(--ink-2); }
.r-lead b { color: var(--ink); }

.journey { list-style: none; margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.journey li { display: flex; flex-direction: column; justify-content: flex-end; }
.journey__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.5px; line-height: 1; }
.journey__bar { margin-top: 10px; height: var(--h, 10%); min-height: 6px; border-radius: 10px 10px 4px 4px; background: var(--ink); transition: height .9s var(--ease); }
.journey li:last-child .journey__bar { background: var(--red); }
.journey__chart { height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.journey__label { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }

.leaks { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.leak { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius-card); padding: 24px 26px 22px; background: var(--surface); }
.leak.is-max { border: 2px solid var(--red); box-shadow: 0 18px 50px rgba(252, 22, 22, .12); }
.leak__badge { position: absolute; top: -13px; left: 22px; background: var(--red-btn); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.leak__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.leak__step { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.leak__who { margin-top: 8px; font-size: 17px; color: var(--ink-2); }
.leak__who b { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--ink); margin-right: 6px; letter-spacing: -.4px; }
.leak__money { text-align: right; flex: 0 0 auto; }
.leak__money b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3vw, 30px); color: var(--red); letter-spacing: -.5px; line-height: 1.1; white-space: nowrap; }
.leak__money span { font-size: 13px; color: var(--muted); }
.leak__bar { margin-top: 18px; height: 10px; border-radius: 5px; background: var(--bg-soft); overflow: hidden; }
.leak__bar span { display: block; height: 100%; width: var(--w, 0%); background: var(--red); border-radius: 5px; transition: width .9s var(--ease); }
.est { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; vertical-align: 2px; }

.finding { border-left: 4px solid var(--red); padding: 4px 0 4px 24px; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; }
.finding span { display: block; margin-top: 10px; font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

.panel { background: var(--red); color: #fff; border-radius: 24px; padding: 30px 30px 28px; box-shadow: 0 24px 60px rgba(252, 22, 22, .25); }
.panel__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
.panel__row { margin-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 600; font-size: 15px; }
.panel__row output { font-family: var(--font-display); font-weight: 900; font-size: 28px; }
.panel input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #fff 0 var(--p, 40%), rgba(0, 0, 0, .22) var(--p, 40%) 100%); }
.panel input[type="range"]::-moz-range-track { background: rgba(0, 0, 0, .22); }
.panel input[type="range"]::-moz-range-progress { background: #fff; }
.panel input[type="range"]::-webkit-slider-thumb { background: #0A0202; border-color: #fff; }
.panel input[type="range"]::-moz-range-thumb { background: #0A0202; border-color: #fff; }
.panel input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(255, 255, 255, .45); }
.panel :focus-visible { outline-color: #fff; }
.panel__nums { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel__nums b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -1px; overflow-wrap: anywhere; }
.panel__nums span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; opacity: .9; }

.limit__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.32; }

.cta { background: var(--cta-bg); border: 1px solid var(--cta-line); color: #fff; border-radius: 28px; padding: 44px 40px 36px; }
.cta h3 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.6px; }
.cta > p { margin-top: 14px; color: rgba(255, 255, 255, .78); max-width: 600px; }
.cta__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn--ghost:hover { background: #fff; color: #0A0202; border-color: #fff; }
.cta .btn--red:hover { background: #fff; color: var(--red-btn); }
.cta__trust { list-style: none; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.cta__trust li { display: inline-flex; align-items: center; gap: 8px; }
.cta__trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--red-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.q__privacy { margin-top: 22px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 560px; }
.q__privacy a { color: inherit; }
.cta :focus-visible { outline-color: #fff; }
.gate { margin-top: 28px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .15); }
.gate h4 { font-size: clamp(22px, 2.4vw, 26px); }
.gate__row { margin-top: 16px; display: flex; gap: 10px; }
.gate__row input { flex: 1; min-width: 0; min-height: 56px; padding: 12px 20px; border-radius: var(--radius-pill); border: 0; background: #fff; color: #0A0202; font: 500 17px var(--font-body); }
.gate__row input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.gate .btn--dark { background: var(--red-btn); color: #fff; box-shadow: none; }
.gate .btn--dark:hover { background: #fff; color: #0A0202; }
.gate .q__error { color: #FF9A9A; }
.gate__note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.gate__done { font-size: 17px; line-height: 1.7; }
.gate__done a { color: #fff; }
.r-foot { font-size: 14px; color: var(--muted); text-align: center; }
.r-foot a { color: inherit; }
.noscript { padding: 120px 24px; text-align: center; color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .topbar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .brand span { display: none; }
  .screen { padding: 92px 16px 48px; align-items: flex-start; }
  .screen--intro { align-items: center; }
  .kicker { font-size: 11.5px; letter-spacing: 2.5px; }
  .q__num { display: flex; margin: 0 0 10px; vertical-align: 0; }
  .choice label { min-width: 0; width: 100%; }
  .choices, .choice { width: 100%; }
  .q__ok .btn { flex: 1; }
  .idk { flex: 1; }
  .results { padding: 96px 16px 32px; }
  .results > * + * { margin-top: 60px; }
  .r-facts { grid-template-columns: 1fr; }
  .journey { gap: 8px; }
  .journey__chart { height: 160px; }
  .journey__label { font-size: 12.5px; }
  .leak { padding: 22px 18px 18px; }
  .leak__top { flex-direction: column; gap: 6px; }
  .leak__money { text-align: left; }
  .panel { padding: 24px 20px 22px; }
  .cta { padding: 32px 22px 28px; border-radius: 22px; }
  .cta__actions .btn { width: 100%; }
  .gate__row { flex-direction: column; }
  .gate__row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
