:root {
  --ink: #17191d;
  --muted: #626474;
  --line: #d9d4e4;
  --paper: #fffefd;
  --cream: #fbf8f1;
  --violet: #6657df;
  --blue: #1686df;
  --pink: #ff8ba3;
  --peach: #ffb45f;
  --mint: #c9f2df;
  --soft-violet: #f1efff;
  --shadow: 0 8px 0 rgba(23, 25, 29, .92);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  align-items: center;
  gap: 42px;
  padding-block: 46px 30px;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 5.35rem);
  line-height: .94;
  letter-spacing: -.075em;
}
.hero-lead { max-width: 650px; margin: 20px 0 16px; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.25rem); line-height: 1.5; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 20px; padding: 0; list-style: none; font-weight: 760; }
.hero-points li::before { content: "•"; margin-right: 7px; color: var(--violet); }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  padding: 13px 21px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.primary-button { color: #fff; background: var(--ink); box-shadow: 5px 5px 0 var(--violet); }
.secondary-button { background: #fff; box-shadow: 4px 4px 0 #c8c2d8; }
.primary-button:hover, .secondary-button:hover { transform: translate(-1px, -1px); }
.primary-button:active, .secondary-button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--violet); }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #1686df; outline-offset: 3px; }

.hero-visual { display: grid; min-height: 380px; place-items: center; overflow: hidden; }
.hero-visual img { display: block; width: auto; max-width: 100%; height: min(380px, 34vw); object-fit: contain; }

.trust-strip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 18px 20px;
  box-shadow: 6px 6px 0 var(--ink);
}
.privacy-dot { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 4px; border-radius: 50%; background: #14855f; }
.trust-strip p { display: grid; gap: 4px; margin: 0; font-size: 1.03rem; }
.trust-strip small { color: var(--muted); font-size: .91rem; line-height: 1.45; }
.saved-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; font-size: .9rem; }
.saved-result button, .text-button { padding: 4px 0; border: 0; border-bottom: 1px solid currentColor; background: none; font-weight: 800; cursor: pointer; }

.calculator-section { margin-top: 42px; padding: 48px 0 76px; background: #fff; border-block: 2px solid var(--ink); }
.calculator-shell { max-width: 1040px; }
.wizard-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.wizard-top h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.15rem); letter-spacing: -.045em; }
.step-count { flex: 0 0 auto; color: var(--muted); font-weight: 800; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 30px 0 42px; padding: 0; list-style: none; }
.progress li { position: relative; display: flex; align-items: center; gap: 10px; color: #777487; font-size: .82rem; font-weight: 800; }
.progress li::after { content: ""; position: absolute; z-index: 0; left: 34px; right: 0; top: 16px; height: 2px; background: var(--line); }
.progress li:last-child::after { display: none; }
.progress span { z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--line); border-radius: 50%; background: #fff; }
.progress .is-current, .progress .is-done { color: var(--ink); }
.progress .is-current span { border-color: var(--ink); color: #fff; background: var(--violet); }
.progress .is-done span { border-color: var(--ink); background: var(--mint); }
.progress .is-done::after { background: var(--ink); }

.form-step { animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.step-intro { max-width: 730px; margin-bottom: 32px; }
.step-intro h3 { margin: 0; font-size: clamp(1.65rem, 3.5vw, 2.65rem); letter-spacing: -.035em; }
.step-intro > p:last-child { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.question-grid { display: grid; gap: 28px; }
.question-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
fieldset, .number-field, .range-field { min-width: 0; margin: 0; border: 0; padding: 0; }
fieldset legend, .number-field > span:first-child { display: block; margin-bottom: 12px; font-size: 1.04rem; font-weight: 850; }
fieldset legend span { color: var(--muted); font-size: .78rem; font-weight: 650; }
.number-field small { display: block; min-height: 20px; margin: -7px 0 9px; color: var(--muted); }
.number-field > input, .input-suffix {
  display: block;
  width: 100%;
  min-height: 56px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 1.08rem;
  font-weight: 750;
}
.number-field > input { padding: 12px 14px; }
.number-field > input:focus, .input-suffix:focus-within { border-color: var(--violet); }
.input-suffix { display: flex; align-items: center; padding-inline: 14px; }
.input-suffix input { min-width: 0; flex: 1; border: 0; outline: 0; font-weight: 750; }
.input-suffix b { color: var(--muted); font-size: .85rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid label { position: relative; min-width: 0; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid label > span {
  display: flex;
  min-height: 53px;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff;
  font-weight: 750;
  line-height: 1.25;
}
.choice-grid label > span small { display: block; color: var(--muted); font-size: .79rem; font-weight: 550; }
.choice-grid.single-column { grid-template-columns: 1fr; }
.choice-grid.single-column label > span { display: grid; gap: 3px; }
.choice-grid input:checked + span { border-color: var(--ink); background: var(--soft-violet); box-shadow: inset 5px 0 0 var(--violet); }
.choice-grid input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice-grid.chips { display: flex; flex-wrap: wrap; }
.choice-grid.chips label > span { min-height: 46px; border-radius: 999px; }
.choice-grid.chips input:checked + span { color: #fff; background: var(--violet); box-shadow: none; }
.range-field { min-height: 126px; border: 2px solid var(--line); border-radius: 14px; padding: 18px; background: #faf9ff; }
.range-field > span { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.range-field output { min-width: 51px; font-weight: 900; text-align: right; }
.range-field input { width: 100%; height: 38px; margin-top: 13px; accent-color: var(--violet); cursor: pointer; }
.form-error { min-height: 24px; margin: 24px 0 0; color: #b6223b; font-weight: 750; }
.wizard-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px 0 max(16px, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(255,255,255,.78), #fff 25%); }
.wizard-actions .primary-button { margin-left: auto; }
.shake { animation: shake .26s ease; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.results-section { padding: 72px 0 86px; background: linear-gradient(150deg, #eeeaff, #f6f3ff 55%, #ffeef2); border-bottom: 2px solid var(--ink); }
.result-lead { position: relative; padding-right: 190px; }
.result-lead h2 { margin: 0; font-size: clamp(2.35rem, 5.4vw, 5rem); letter-spacing: -.06em; }
.result-lead > p:last-of-type { max-width: 700px; color: var(--muted); font-size: 1.1rem; line-height: 1.55; }
.overall-score { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 9px; }
.overall-score strong { font-size: 4.4rem; line-height: 1; letter-spacing: -.07em; }
.overall-score span { font-size: .72rem; font-weight: 850; line-height: 1.2; text-transform: uppercase; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.result-card { border: 2px solid var(--ink); border-radius: 18px; padding: 24px; background: rgba(255,255,255,.92); box-shadow: 5px 5px 0 var(--ink); }
.result-card > p:first-child { margin: 0 0 12px; color: var(--muted); font-size: .75rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.result-card h3 { margin: 0; font-size: 1.55rem; letter-spacing: -.025em; }
.result-card > p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.score-line { display: inline-block; margin-top: 7px; font-size: .8rem; color: var(--muted); }.score-line b { color: var(--ink); font-size: 1.35rem; }
.score-track { height: 8px; margin-top: 16px; overflow: hidden; border: 1px solid var(--ink); border-radius: 99px; background: #eee; }.score-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--violet), var(--blue)); transition: width .5s ease; }
.mini-breakdown { display:grid; grid-template-columns:repeat(3,1fr); margin:18px 0 0; border:1px solid var(--line); border-radius:10px; overflow:hidden; }.mini-breakdown div { padding:9px 10px; border-right:1px solid var(--line); }.mini-breakdown div:last-child { border-right:0; }.mini-breakdown dt { color:var(--muted); font-size:.69rem; font-weight:800; text-transform:uppercase; }.mini-breakdown dd { margin:3px 0 0; font-weight:900; }
.stage-card { background: #fff8d8; }
.action-panel { display: grid; grid-template-columns: 90px 1fr; gap: 30px; margin-top: 30px; border: 3px solid var(--ink); border-radius: 22px; padding: 32px; background: var(--ink); color: #fff; box-shadow: 8px 8px 0 var(--peach); }
.action-number { font-size: 3rem; font-weight: 950; color: var(--pink); }.action-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.045em; }.action-panel p:not(.eyebrow) { color: #d8d8df; line-height: 1.55; }
.weekly-task { display: grid; gap: 5px; margin-top: 22px; border-top: 1px solid #55565e; padding-top: 18px; }.weekly-task span { color: var(--pink); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }.weekly-task strong { line-height: 1.45; }
.risk-panel { margin-top: 28px; border-top: 2px solid var(--ink); padding-top: 22px; }.risk-panel > div { display: flex; flex-wrap: wrap; gap: 10px; }.risk-item { border: 1px solid #e2a3ad; border-radius: 10px; padding: 10px 12px; background: #fff5f6; }.risk-item b { display: block; margin-bottom: 2px; }.risk-item span { color: var(--muted); font-size: .84rem; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }.result-status { min-height: 24px; margin: 12px 0 0; font-weight: 700; }

.method-section { padding: 82px 0; background: #fff; border-bottom: 2px solid var(--ink); }.method-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }.method-grid h2, .faq-section > h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: -.055em; line-height: .98; }.method-grid > div:last-child { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.score-methods { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border: 2px solid var(--ink); }.score-methods article { min-width: 0; padding: 20px; border-right: 1px solid var(--ink); }.score-methods article:last-child { border-right: 0; }.score-methods span { font-weight: 900; color: var(--violet); }.score-methods h3 { margin: 22px 0 8px; }.score-methods p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.safety-note { display: grid; grid-template-columns: 75px 1fr; gap: 24px; align-items: center; margin-block: 60px; border: 2px solid var(--ink); border-radius: 18px; padding: 25px 30px; background: #fff1f4; }.heart-outline { font: 700 4.8rem/1 Georgia, serif; color: #c83256; }.safety-note h2 { margin: 0 0 7px; }.safety-note p { margin: 0; color: var(--muted); line-height: 1.5; }
.faq-section { padding-block: 36px 82px; }.faq-list { margin-top: 36px; border-top: 2px solid var(--ink); }.faq-list details { border-bottom: 1px solid #cfcbd6; padding: 18px 0; }.faq-list summary { cursor: pointer; font-weight: 850; }.faq-list p { max-width: 850px; color: var(--muted); line-height: 1.6; }.related-tools { margin-top: 46px; border-top: 2px solid var(--ink); padding-top: 25px; }.related-tools h2 { font-size: 1.2rem; }.related-tools a { display: inline-block; margin: 5px 20px 5px 0; color: var(--ink); font-weight: 750; }

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 720px); }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-block: 34px 26px; }
  .hero h1 { font-size: clamp(3rem, 11.5vw, 5.2rem); }
  .hero-visual { min-height: 270px; }
  .hero-visual img { height: 270px; }
  .progress b { display: none; }.progress li::after { left: 34px; }
  .question-grid.two-up, .result-grid, .method-grid { grid-template-columns: 1fr; }
  .result-lead { padding-right: 0; }.overall-score { position: static; margin-top: 24px; justify-content: flex-start; }
  .score-methods { grid-template-columns: repeat(2, 1fr); }.score-methods article:nth-child(2) { border-right: 0; }.score-methods article:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 24px); }
  .nav-links > a:not(.nav-pill) { display: none; }
  .hero { gap: 14px; padding-block: 28px 20px; }.hero-copy { display: flex; flex-direction: column; }.hero h1 { font-size: clamp(2.65rem, 13vw, 4.25rem); letter-spacing: -.065em; }.hero-lead { margin-block: 16px 14px; font-size: 1rem; }.hero-points { display: grid; gap: 6px; margin-bottom: 16px; }.hero .primary-button { width: 100%; }
  .hero-visual { min-height: 220px; }.hero-visual img { height: 220px; }
  .trust-strip { width: calc(100% - 24px); padding: 15px; }.trust-strip p { font-size: .94rem; }
  .calculator-section { margin-top: 28px; padding-block: 34px 0; }.wizard-top { align-items: start; }.step-count { font-size: .78rem; }.wizard-top h2 { font-size: 1.8rem; }.progress { margin-block: 24px 32px; }.progress li { justify-content: flex-start; }.progress li::after { left: 34px; }
  .step-intro { margin-bottom: 25px; }.step-intro h3 { font-size: 1.7rem; }.choice-grid { grid-template-columns: 1fr; }.choice-grid label > span { min-height: 50px; }.choice-grid.chips { gap: 8px; }.choice-grid.chips label > span { min-height: 44px; padding: 9px 12px; }.number-field > input, .input-suffix { min-height: 54px; }
  .wizard-actions { margin-inline: -12px; padding-inline: 12px; }.wizard-actions button { flex: 1; padding-inline: 10px; }.wizard-actions .primary-button { max-width: 70%; }
  .results-section { padding-block: 52px 65px; }.result-lead h2 { font-size: 2.7rem; }.overall-score strong { font-size: 3.8rem; }.result-card { padding: 20px; border-radius: 15px; }.action-panel { grid-template-columns: 1fr; gap: 10px; padding: 24px 20px; }.action-number { font-size: 2rem; }.action-panel h2 { font-size: 2.1rem; }.result-actions { display: grid; grid-template-columns: 1fr 1fr; }.result-actions .primary-button, .result-actions .secondary-button { width: 100%; }.result-actions .text-button { min-height: 44px; }
  .method-section { padding-block: 58px; }.score-methods { grid-template-columns: 1fr; }.score-methods article { border-right: 0; border-bottom: 1px solid var(--ink); }.score-methods article:last-child { border-bottom: 0; }.safety-note { grid-template-columns: 1fr; margin-block: 38px; padding: 22px; }.heart-outline { font-size: 3.5rem; }.faq-section { padding-bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
