/* ============================================================
   Process Craft — Cost of Chaos Calculator
   Design system shared with the Gravity Diagnostic build, in Process Craft brand tokens.
   Navy = structure & trust. Orange = the single action colour (buttons, selection, progress).
   Amber / peach / blue are supporting surfaces for the result page.
   ============================================================ */
:root {
  --navy: #1e2e3f;
  --navy-2: #20364d;
  --navy-soft: #e3effa;
  --orange: #ee4327;
  --orange-hover: #d63c22;
  --orange-soft: #fff4f1;
  --amber: #f5a623;
  --peach: #fdf0ed;
  --blue: #e3effa;
  --grey: #6b7684;
  --grey-2: #9ba5b0;
  --line: #e2e5e9;
  --bg: #f8f7f4;
  --card: #ffffff;
  --text: #1e2e3f;
  --muted: #586a79;
  --good: #1f9d74;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 46, 63, 0.05), 0 6px 20px rgba(30, 46, 63, 0.06);
  --maxw: 640px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--navy); }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar + progress ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px; padding: 10px 16px;
  background: rgba(248, 247, 244, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.topbar__logo { height: 60px; width: auto; flex: none; }
.topbar__progress { flex: 1; max-width: 520px; margin-left: auto; }
.progress__meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--grey); margin-bottom: 6px; }
.progress__meta strong { color: var(--navy); font-weight: 600; }
.progress__bar { display: grid; grid-template-columns: repeat(var(--segs, 8), 1fr); gap: 4px; }
.seg { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.seg__fill { height: 100%; background: var(--orange); border-radius: 99px; transition: width 0.45s cubic-bezier(.2,.8,.2,1); }
.seg--active { background: #f6d2ca; }

/* ---------- Layout ---------- */
.app { max-width: var(--maxw); margin: 0 auto; padding: 16px 16px 64px; }
.screen { padding-top: 12px; }
.enter { animation: enter 0.38s cubic-bezier(.2,.8,.2,1) both; }
.enter-back { animation: enterBack 0.38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.question { font-size: clamp(21px, 5.2vw, 27px); font-weight: 700; margin-bottom: 8px; }
.qnote { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.question + .options { margin-top: 20px; }
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--grey); }
.hint--keys { margin-top: 18px; text-align: center; }
kbd { font: inherit; font-size: 12px; font-weight: 600; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--card); }
@media (hover: none) { .hint--keys { display: none; } }

.link-back { background: none; border: 0; padding: 6px 0; margin-bottom: 14px; color: var(--grey); font-size: 14px; font-weight: 500; cursor: pointer; }
.link-back:hover { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 600; font-size: 16px; cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s, opacity 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(238, 67, 39, 0.28); }
.btn--primary:hover:not(:disabled) { background: var(--orange-hover); }
.btn--ghost { background: var(--card); color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.28); }
.btn--light:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: 0.7; }
:focus-visible { outline: 3px solid rgba(238, 67, 39, 0.45); outline-offset: 2px; }

.pill { display: inline-block; background: var(--navy); color: #fff; font-weight: 600; font-size: 13.5px; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.pill--light { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); }

/* ---------- Intro ---------- */
.screen--intro { padding-top: 32px; padding-bottom: 24px; }
.hero .eyebrow { margin-bottom: 20px; }
.hook { font-size: clamp(32px, 8.6vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 22px; }
.hook span { display: block; animation: rise 0.55s cubic-bezier(.2,.8,.2,1) both; }
.hook span:first-child { color: var(--navy); }
.hook span:last-child { color: var(--orange); animation-delay: 0.18s; }
.hook-sub { font-size: 17px; color: var(--muted); line-height: 1.55; max-width: 44ch; animation: rise 0.55s 0.4s cubic-bezier(.2,.8,.2,1) both; }
.bridge {
  margin: 24px 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--orange);
  font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--navy);
  animation: rise 0.55s 0.55s cubic-bezier(.2,.8,.2,1) both;
}

.tool-card {
  position: relative; overflow: hidden;
  background: var(--navy); color: #c9d3e0; border-radius: 22px; padding: 30px 22px 24px;
  box-shadow: 0 20px 50px rgba(30, 46, 63, 0.22);
}
.tool-card::before {
  content: ''; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%;
  border: 16px solid rgba(238, 67, 39, 0.2); border-left-color: transparent; border-bottom-color: transparent; pointer-events: none;
}
.tool-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.tool-card h2 { color: #fff; font-size: clamp(22px, 6vw, 28px); font-weight: 700; }
.tool-card__body { font-size: 16px; line-height: 1.6; color: #dfe6ef; margin-bottom: 18px; }
.leak-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 7px; }
.leak-list li { font-size: 13px; font-weight: 500; color: #fff; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 99px; }
.leak-list li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 7px; vertical-align: 2px; }
.tool-card .btn--primary { box-shadow: 0 10px 28px rgba(238, 67, 39, 0.4); }
.tool-card__note { text-align: center; font-size: 13px; color: #9fb0c3; margin-top: 12px; }

/* Sticky footer CTA (phones/tablets on intro; phones on result) */
.sticky-cta { display: none; }
.sticky-cta__note { font-size: 12.5px; font-weight: 600; color: var(--navy); text-align: center; margin-bottom: 6px; line-height: 1.4; }

/* orbit motif (loading) */
.orbit { position: relative; width: 64px; height: 64px; margin: 0 auto 24px; }
.orbit span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; }
.orbit span:nth-child(1) { border-top-color: var(--navy); border-left-color: var(--navy); animation: spin 1.1s linear infinite; }
.orbit span:nth-child(2) { inset: 8px; border-bottom-color: var(--orange); border-right-color: var(--orange); animation: spin 0.8s linear infinite reverse; }
.orbit span:nth-child(3) { inset: 26px; background: var(--amber); border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Options ---------- */
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; min-height: 58px; cursor: pointer; font-size: 15.5px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(30, 46, 63, 0.04);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.option:hover { border-color: var(--navy); }
.option:active { transform: scale(0.99); }
.option__key {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--navy-soft); color: var(--navy); font-size: 13px; font-weight: 700; transition: background 0.15s, color 0.15s;
}
.option.is-selected { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 3px rgba(238, 67, 39, 0.12); }
.option.is-selected .option__key { background: var(--orange); color: #fff; }

/* ---------- Exact-number slider (optional, under the options) ---------- */
.exact { margin-top: 14px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.exact.is-open { border-style: solid; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238, 67, 39, 0.08); }
.exact[hidden] { display: none; }
.exact__toggle {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 16px; background: none; border: 0; cursor: pointer;
  text-align: left; font-size: 14.5px; font-weight: 600; color: var(--navy);
}
.exact__toggle-sub { font-weight: 400; color: var(--grey); font-size: 13px; }
.exact__chev { margin-left: auto; transition: transform 0.2s; color: var(--grey); }
.exact.is-open .exact__chev { transform: rotate(180deg); }
.exact__body { padding: 14px 16px 16px; }
.exact__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 2px; }
.exact__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.exact__hint { font-size: 13px; color: var(--grey); }
.exact__body[hidden] { display: none; }
.exact__val { font-size: 22px; font-weight: 700; color: var(--orange); margin-bottom: 8px; }
.exact__range { width: 100%; accent-color: var(--orange); height: 28px; cursor: pointer; }
.exact__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey); margin-top: 2px; }
.exact__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.exact__type { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.exact__num { width: 96px; padding: 8px 10px; min-height: 0; }
@media (max-width: 639px) { .exact__row .btn { width: 100%; justify-content: center; } }

/* ---------- Inputs ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--grey); font-size: 13px; }
.input {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--grey-2); }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 46, 63, 0.1); }
.row-end { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.link-skip { background: none; border: 0; color: var(--grey); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.link-skip:hover { color: var(--navy); }

/* ---------- Loading ---------- */
.screen--calc { text-align: center; padding-top: 56px; }
.screen--calc h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.screen--calc .muted { font-size: 14.5px; margin-bottom: 22px; }
.calc-list { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 8px; max-width: 300px; text-align: left; }
.calc-list li { font-weight: 500; color: var(--muted); opacity: 0; animation: tick 0.35s ease-out both; display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.calc-list li::before { content: '✓'; color: var(--orange); font-weight: 700; }
@keyframes tick { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Result ---------- */
.screen--result { padding-top: 16px; }
.result-hero { text-align: center; padding: 8px 0 26px; }
.coc-tag { display: inline-block; background: var(--peach); color: var(--orange); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.coc-number { font-size: clamp(44px, 12vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--navy); margin: 16px 0 6px; font-variant-numeric: tabular-nums; }
.coc-number .unit { color: var(--orange); }
.coc-per { font-size: 15px; font-weight: 600; color: var(--grey); letter-spacing: 0.02em; }
.coc-kicker { font-size: clamp(16px, 4vw, 19px); font-weight: 500; color: var(--navy); margin: 16px auto 0; max-width: 34ch; line-height: 1.45; }
.coc-kicker strong { color: var(--orange); }
.coc-lead { font-size: 16px; font-weight: 600; color: var(--muted); margin: 16px 0 14px; }
.coc-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin: 0; }
.coc-k + .coc-number { margin-top: 6px; }
.coc-per strong { color: var(--orange); }
.coc-time { margin: 22px auto 0; padding-top: 18px; border-top: 1px solid var(--line); max-width: 360px; }
.coc-time__n { font-size: clamp(30px, 8vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--navy); margin: 6px 0 4px; }
.coc-time__n span { font-size: 0.45em; font-weight: 600; color: var(--grey); letter-spacing: 0; }
.time-row { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.leak__note { font-size: 12px; color: var(--grey); font-style: italic; margin-top: 4px; }
.btn--wa { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 560px; margin: 12px auto 0; background: #25d366; color: #0b2e1a; border: 0; text-decoration: none; font-weight: 700; }
.btn--wa:hover { background: #1ebe5b; }
.cta__wa { margin: 8px auto 0; max-width: 520px; font-size: 12.5px; color: #c9d3e0; text-align: center; line-height: 1.5; }
.about { position: relative; background: var(--card); border-radius: 18px; padding: 22px 18px; margin: 0; }
.about-dialog { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 48px); overflow: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(30, 46, 63, 0.35); }
.about-dialog::backdrop { background: rgba(30, 46, 63, 0.55); }
.about-dialog:not([open]) { display: none; }
.about__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; }
.about__close:hover { background: var(--line); }
.cta__host-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; }
.cta__host-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: #ffb4a6; text-decoration: none; cursor: pointer; }
.cta__host-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.about__head { display: flex; gap: 16px; align-items: center; margin: 10px 0 14px; }
.about__photo { width: 96px; height: 128px; object-fit: cover; border-radius: 12px; flex: none; }
.about__name { font-size: 20px; margin: 0; color: var(--navy); }
.about__role { font-size: 13px; color: var(--orange); font-weight: 600; margin: 2px 0 8px; }
.about__intro { font-size: 14px; line-height: 1.6; color: var(--text, #3c4a57); }
.about__facts { list-style: none; padding: 0; margin: 16px 0 10px; display: grid; gap: 6px; }
.about__facts li { font-size: 14px; padding-left: 20px; position: relative; color: var(--navy); }
.about__facts li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.about__sectors { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.about__sectors span { font-weight: 700; color: var(--navy); }
.about__k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin: 6px 0 10px; }
.about__quotes { display: grid; gap: 12px; }
.tcard { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; box-shadow: 0 2px 10px rgba(30, 46, 63, 0.06); }
.tcard__mark { position: absolute; top: 4px; right: 14px; font-size: 56px; line-height: 1; font-weight: 800; color: var(--orange); opacity: 0.18; }
.tcard__h { font-weight: 700; color: var(--navy); font-size: 15.5px; line-height: 1.35; margin: 0 28px 8px 0; }
.tcard__q { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.tcard__who { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--grey); line-height: 1.4; }
.tcard__who strong { color: var(--navy); font-size: 13.5px; }
.tcard__avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--peach); color: var(--orange); font-weight: 700; font-size: 13px; }
.about__link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--orange); text-decoration: none; }
.about__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .about { padding: 28px 28px; } .about__photo { width: 120px; height: 160px; } }
.coc-basis { font-size: 13px; color: var(--grey); margin: 14px auto 0; max-width: 46ch; line-height: 1.5; }
.coc-basis strong { color: var(--navy); }
.steps dd.track { color: var(--navy); font-weight: 500; }
.leak__how { font-size: 12.5px; color: var(--grey); margin-top: 6px; line-height: 1.45; }
.leak__src { display: inline-block; font-size: 11px; font-weight: 600; color: var(--muted); background: #eef0f2; padding: 1px 7px; border-radius: 99px; margin-left: 2px; }
.leak__src--own { color: #1d6b3f; background: #e4f4ea; }
.recalc { display: block; margin: 18px 0 0; padding: 0; background: none; border: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--orange); cursor: pointer; text-align: left; }
.recalc:hover { text-decoration: underline; text-underline-offset: 3px; }
.unsure { border: 1.5px dashed var(--amber); background: #fff8ec; border-radius: 14px; padding: 16px 18px; margin: 0 0 22px; }
.unsure h3 { font-size: 14px; color: #8a5a00; margin: 0 0 4px; }
.unsure p { font-size: 14px; color: #5c4a2a; line-height: 1.55; }
.coc-hours { margin-top: 8px; font-size: 15px; color: var(--muted); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; margin: 14px 0; box-shadow: var(--shadow); }
.panel__k { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; font-weight: 700; color: var(--orange); margin: 0 0 16px; }
.panel--navy { background: var(--navy); border: 0; color: #dfe6ef; }

.leaks { display: grid; gap: 15px; list-style: none; padding: 0; margin: 0; }
.leak__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 7px; }
.leak__name { font-size: 14.5px; font-weight: 500; }
.leak__flag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); background: var(--peach); padding: 2px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; }
.leak__amt { font-size: 14px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.leak__track { height: 10px; background: #eef0f2; border-radius: 99px; overflow: hidden; }
.leak__fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #f8cf8a, var(--amber)); transition: width 0.9s cubic-bezier(.3,0,.2,1); }
.leak--top .leak__fill { background: linear-gradient(90deg, #f4957f, var(--orange)); }
.leak--top .leak__name { font-weight: 600; }
.leaks-note { font-size: 12.5px; color: var(--grey); margin-top: 16px; }

.profile { padding: 26px 4px 6px; }
.res-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.res-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.res-type { font-size: clamp(26px, 6.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 8px; }
.res-oneliner { font-size: clamp(16px, 4vw, 18px); color: var(--muted); font-style: italic; }

.core-truth { font-size: clamp(18px, 4.4vw, 21px); font-weight: 600; line-height: 1.45; color: var(--navy); border-left: 3px solid var(--orange); padding-left: 16px; margin: 26px 0; }

.section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin: 34px 0 14px; }
.dx h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.dx p { font-size: 15.5px; color: #3c4a57; line-height: 1.65; }
.dx > p { margin-bottom: 18px; }
.belief { background: var(--peach); border-radius: 14px; padding: 18px; margin: 0 0 18px; }
.belief h3 { color: var(--orange-hover); }
.belief p { color: #5a3c34; }
.cause h3 { color: var(--navy-2); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.step__h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.step__n { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.step__name { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.step dl { margin: 0; }
.step dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); margin: 12px 0 3px; }
.step dd { margin: 0; font-size: 15px; color: #3c4a57; line-height: 1.6; }
.step dd.recovers { color: var(--navy); font-weight: 600; }

.starthere { background: var(--blue); border-radius: 14px; padding: 18px; margin: 22px 0; }
.starthere h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--navy-2); }
.starthere h3 .star { color: var(--amber); }
.starthere p { font-size: 15.5px; color: #2b3e4f; line-height: 1.6; }

.fund { background: var(--card); border: 1px dashed #c9d2db; border-radius: 14px; padding: 16px 18px; margin: 22px 0 12px; font-size: 15.5px; color: #2b3e4f; line-height: 1.55; }
.fund b { color: var(--orange); }
.unlocks .panel__k { color: var(--amber); }
.unlocks p { color: #fff; font-size: 16px; line-height: 1.55; }
.estimate-note { font-size: 13.5px; color: var(--muted); font-style: italic; border-left: 3px solid var(--amber); padding: 4px 0 4px 14px; margin: 24px 0; line-height: 1.55; }

.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--navy); color: #dfe6ef; border-radius: 22px; padding: 30px 20px 26px; margin: 28px 0 10px;
  box-shadow: 0 20px 50px rgba(30, 46, 63, 0.22);
}
.cta::before {
  content: ''; position: absolute; left: -70px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%;
  border: 16px solid rgba(238, 67, 39, 0.18); border-right-color: transparent; border-top-color: transparent; pointer-events: none;
}
.cta__meta { display: inline-block; background: rgba(238, 67, 39, 0.16); color: #ffb4a6; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; margin-bottom: 14px; }
.cta__title { color: #fff; font-size: clamp(22px, 5.6vw, 28px); font-weight: 800; margin-bottom: 8px; }
.cta__host { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 14px auto 20px; padding: 12px 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; text-align: left; }
.cta__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; border: 2px solid rgba(255, 255, 255, 0.25); }
.cta__host-name { color: #fff; font-weight: 700; font-size: 15px; margin: 0 0 3px; }
.cta__host-name span { color: #c9d3e0; font-weight: 500; font-size: 13px; }
.cta__host-intro { color: #c9d3e0; font-size: 13px; line-height: 1.5; margin: 0; }
.cta__body { font-size: 15px; color: #c9d3e0; max-width: 44ch; margin: 0 auto 22px; line-height: 1.55; }
.cta__actions { display: grid; gap: 10px; max-width: 420px; margin: 0 auto; position: relative; }
.cta__actions .btn { width: 100%; }
.restart { text-align: center; margin: 22px 0 0; }
.restart button { background: none; border: 0; color: var(--grey); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.restart button:hover { color: var(--navy); }

.site-foot {
  background: var(--navy); color: #9fb0c3; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.site-foot .brand { color: #fff; font-weight: 600; }
.site-foot a { color: #9fb0c3; text-decoration: none; }
.site-foot[hidden] { display: none; }

/* ---------- Phones + tablets: intro fits one screen, Start pinned to the bottom ---------- */
@media (max-width: 959px) {
  .intro-left { display: contents; }
  body.is-intro .topbar { padding-top: 10px; padding-bottom: 4px; }
  body.is-intro .topbar__logo { height: 42px; }
  body.is-intro .app { padding-top: 0; padding-bottom: 100px; }

  .screen--intro {
    min-height: calc(100svh - 160px);
    display: flex; flex-direction: column; justify-content: space-evenly; padding: 4px 0 8px;
  }
  .hero .eyebrow { font-size: clamp(10px, 2.9vw, 11.5px); letter-spacing: 0.1em; margin-bottom: clamp(8px, 1.6svh, 16px); }
  .hook { font-size: clamp(25px, min(7.6vw, 4.4svh), 46px); line-height: 1.08; margin-bottom: clamp(10px, 2svh, 20px); }
  .hook-sub { font-size: clamp(14px, 2.15svh, 17px); max-width: none; }
  .bridge { margin: clamp(10px, 2svh, 22px) 0; padding-left: 10px; border-left-width: 2px; font-size: clamp(14.5px, 2.15svh, 17px); }

  .tool-card { border-radius: 18px; padding: clamp(16px, 2.6svh, 24px) 16px; }
  .tool-card::before { width: 140px; height: 140px; right: -52px; top: -52px; border-width: 12px; }
  .tool-card__head { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: clamp(6px, 1.2svh, 12px); }
  .tool-card h2 { font-size: clamp(18px, 2.8svh, 22px); }
  .tool-card__head .pill, .tool-card #intro-start, .tool-card__note { display: none; }
  .tool-card__body { font-size: clamp(13.5px, 1.95svh, 15.5px); line-height: 1.5; margin-bottom: clamp(8px, 1.6svh, 14px); }
  .leak-list { gap: 5px; margin: 0; }
  .leak-list li { font-size: clamp(11.5px, 1.6svh, 13px); padding: 4px 9px; }

  body.is-intro .sticky-cta,
  body.is-result .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(30, 46, 63, 0.06);
  }
  body.is-intro .sticky-cta > *, body.is-result .sticky-cta > * { max-width: 608px; margin-left: auto; margin-right: auto; }
  body.is-intro .sticky-cta .btn, body.is-result .sticky-cta .btn { display: flex; }
  body.is-intro .sticky-cta .btn { font-size: clamp(15px, 4.3vw, 17px); padding-left: 14px; padding-right: 14px; white-space: nowrap; }
  /* On the result page the footer slides in only once the number has been seen */
  body.is-result .sticky-cta { transform: translateY(110%); transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
  body.is-result .sticky-cta.is-visible { transform: none; }
  body.is-result .app { padding-bottom: 96px; }
}

@media (min-width: 640px) {
  .topbar { padding: 14px 24px; }
  .app { padding-top: 28px; }
  .panel { padding: 26px 24px; }
  .cta { padding: 36px 32px 30px; }
  .cta__actions { grid-template-columns: 1fr 1fr; max-width: 560px; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .tool-card { padding-left: 24px; padding-right: 24px; }
}

/* ---------- Desktop: two columns, hook left, calculator card right, one screen ---------- */
@media (min-width: 960px) {
  body.is-intro .app { max-width: 1160px; padding: 0 40px; }
  .screen--intro {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center;
    min-height: calc(100svh - 102px); padding: 12px 0 24px;
  }
  .hook { font-size: clamp(32px, min(3.4vw, 5.6svh), 50px); margin-bottom: clamp(14px, 2.6svh, 24px); }
  .hook-sub { font-size: clamp(16px, 2.2svh, 18.5px); }
  .bridge { margin: clamp(16px, 3.4svh, 32px) 0 0; font-size: clamp(16px, 2.2svh, 18px); }
  .tool-card { padding: clamp(24px, 3.8svh, 36px) 32px clamp(20px, 3svh, 28px); }
  .tool-card h2 { font-size: clamp(22px, 3.2svh, 28px); }
  .tool-card__body { font-size: clamp(14.5px, 2svh, 16px); }
  .leak-list { margin-bottom: clamp(16px, 3svh, 26px); }
}
/* Phones, and short tablets: the seven leak tags don't fit one screen — the card text already names "seven everyday leaks" */
@media (max-width: 639px), (max-width: 959px) and (max-height: 860px), (max-width: 1199px) and (max-height: 760px) {
  .leak-list { display: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (max-width: 479px) { .exact__toggle-sub { display: none; } }
