/* =========================================================
   Exit Readiness Scorecard (/scorecard)
   Loaded only on scorecard.html, after styles.css. Every rule is scoped to .sc or uses an sc- name,
   and the palette maps onto the site tokens (lake teal, granite, glacier mist, larch gold).
   ========================================================= */

.sc {
  --sc-ink: var(--navy-deep);
  --sc-ink-2: var(--navy);
  --sc-granite: var(--slate-400);
  --sc-stone: var(--slate-200);
  --sc-lake: var(--steel);
  --sc-gold: #C9A272;
  --sc-gold-soft: #F4EDE2;
  --sc-measure: 68ch;
  background: var(--mist);
  color: var(--body);
}
.sc [hidden] { display: none !important; }
.sc .container.sc-narrow { max-width: calc(1080px + var(--gutter) * 2); }

/* Buttons: the site's .btn, plus a gold variant for dark panels and a quiet text button */
.btn-gold { background: var(--sc-gold); color: var(--navy-deep); }
.btn-gold:hover { background: #D7B98F; }
.sc .btn[disabled] { opacity: .45; cursor: not-allowed; }
.sc-quiet { padding-inline: 8px; color: var(--slate); background: transparent; border: 0; }
.sc-quiet:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.sc-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); }
.sc-hero .container { position: relative; z-index: 1; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px)); padding-bottom: clamp(140px, 16vw, 200px); }
.sc-hero .kicker { color: var(--slate-200); }
.sc-hero .kicker::after { color: var(--sc-gold); opacity: .8; }
.sc-hero h1 {
  max-width: 15ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--white);
}
.sc-lede { margin: 20px 0 0; max-width: 52ch; font-size: 1.1875rem; color: #D9E3E2; }
.sc-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.sc-note { max-width: 40ch; margin: 0; font-size: .875rem; color: #AFC1BF; }
.sc-range { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 0; width: 100%; height: auto; }

/* ---------- Intro: what buyers look at + levels ---------- */
.sc-block { padding: clamp(56px, 7vw, 80px) 0; }
.sc-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.sc-intro h2 { margin-bottom: 16px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 2.6vw, 2.125rem); line-height: 1.15; }
.sc-sub { max-width: var(--sc-measure); color: var(--body); }
.sc-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 24px 0 0; }
.sc-dims div { padding-top: 12px; border-top: 1px solid var(--sc-stone); }
.sc-dims dt { font-weight: 600; color: var(--ink); }
.sc-dims dd { margin: 4px 0 0; font-size: .9375rem; color: var(--slate); }
.sc-levels { display: grid; gap: 14px; margin: 24px 0 0; }
.sc-levels li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; padding: 18px; background: var(--white); border: 1px solid var(--sc-stone); }
.sc-levels .tag { font-family: var(--serif); font-size: .9375rem; color: var(--slate); }
.sc-levels .tag b { display: block; font-size: 1.875rem; font-weight: 400; line-height: 1; color: var(--navy); }
.sc-levels h3 { font-family: var(--serif); font-size: 1.25rem; }
.sc-levels p { margin: 4px 0 0; font-size: .9375rem; color: var(--slate); }

/* ---------- Quiz ---------- */
#scorecard { padding-top: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.sc-panel { max-width: 760px; margin: 0 auto; padding: 40px; background: var(--white); border: 1px solid var(--sc-stone); }
.sc-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; font-size: .875rem; color: var(--slate); }
.sc-progress .track { flex: 1; height: 6px; overflow: hidden; background: var(--mist); border-radius: 3px; }
.sc-progress .fill { width: 0; height: 100%; background: var(--sc-lake); transition: width .3s ease; }
.qdim { margin-bottom: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sc-lake); }
/* Floated so the legend follows the area label in reading order (browsers otherwise pin a legend to the top) */
.qtext { float: left; width: 100%; margin-bottom: 24px; padding: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 3.4vw, 1.75rem); line-height: 1.25; color: var(--navy); }
.sc fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.sc-opts { clear: both; display: grid; gap: 10px; }
.sc-opt { position: relative; }
.sc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sc-opt label { position: relative; display: block; padding: 16px 18px 16px 50px; border: 1px solid var(--sc-stone); background: var(--white); line-height: 1.45; color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.sc-opt label::before { content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; border: 2px solid var(--sc-granite); border-radius: 50%; background: var(--white); }
.sc-opt label:hover { border-color: var(--sc-granite); }
.sc-opt input:checked + label { border-color: var(--navy); background: #F4F7F6; box-shadow: inset 0 0 0 1px var(--navy); }
.sc-opt input:checked + label::before { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 5px, var(--white) 6px); }
.sc-opt input:focus-visible + label { outline: 2px solid var(--steel); outline-offset: 2px; }
.qnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }

/* ---------- Results ---------- */
.sc-results h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.875rem, 4.6vw, 2.75rem); line-height: 1.1; }
.r-kicker { margin: 0 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.r-summary { max-width: var(--sc-measure); margin: 14px 0 0; font-size: 1.0625rem; color: var(--body); }
.sc-summit { margin: 28px 0 8px; padding: 8px 8px 0; background: linear-gradient(#F6F8F7, var(--white)); border: 1px solid var(--sc-stone); }
.sc-summit svg { width: 100%; height: auto; }
.sc-summit text { font-family: var(--sans); font-size: 17px; fill: var(--slate); }
.sc-summit .lvl { font-family: var(--serif); font-size: 19px; fill: var(--navy); }
.sc-summit .you { font-family: var(--sans); font-size: 19px; font-weight: 600; fill: var(--navy); }
.marker { transition: transform 1.4s cubic-bezier(.25, .8, .3, 1); }
.sc-scorebox { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.sc-scorebox b { font-family: var(--serif); font-size: 3.5rem; font-weight: 300; line-height: 1; color: var(--navy); }
.sc-scorebox span { color: var(--slate); }
.sc-sec { margin: 40px 0 16px; font-family: var(--serif); font-size: 1.375rem; }
.sc-bars { display: grid; gap: 14px; }
.barrow { display: grid; grid-template-columns: 190px 1fr 48px; gap: 14px; align-items: center; font-size: .9375rem; color: var(--ink); }
.bt { height: 10px; overflow: hidden; background: var(--mist); border-radius: 5px; }
.bf { height: 100%; border-radius: 5px; background: var(--sc-lake); }
.bf.low { background: var(--sc-gold); }
.barrow .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--slate); }

/* ---------- Email gate ---------- */
.sc-gate { margin-top: 40px; padding: 32px; background: var(--navy-deep); color: var(--white); }
.sc-gate h3 { font-family: var(--serif); font-weight: 300; font-size: 1.625rem; color: var(--white); }
.g-sub { max-width: 58ch; margin: 8px 0 0; color: #C9D6D4; }
.sc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.sc-field label { display: block; margin-bottom: 6px; font-size: .875rem; color: #DCE5E4; }
.sc-field .opt-t { color: #93A8A6; }
.sc-field input,
.sc-field select { width: 100%; min-height: 48px; padding: 13px 14px; border: 1px solid #3B5C60; border-radius: 2px; background: #0E3439; font: 400 1rem var(--sans); color: var(--white); }
.sc-field select option { color: #000; }
.sc-field input::placeholder { color: #7F9896; }
.sc-field input:focus,
.sc-field select:focus { outline: 2px solid var(--sc-gold); outline-offset: 1px; }
.sc-field input[aria-invalid="true"] { border-color: #E49A8C; }
.sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sc-fine { max-width: 62ch; margin: 14px 0 0; font-size: .8125rem; color: #93A8A6; }
.sc-fine a { color: #C9D6D4; text-decoration: underline; text-underline-offset: 3px; }
.sc-err { min-height: 1em; margin: 12px 0 0; font-size: .875rem; color: #F2B3A6; }
.preview-note { margin: 16px 0 0; padding: 10px 14px; background: var(--sc-gold-soft); font-size: .875rem; color: #5B4520; }

/* ---------- Roadmap ---------- */
.sc-roadmap { margin-top: 40px; }
.sc-roadmap h3 { font-family: var(--serif); font-weight: 300; font-size: 1.75rem; }
.r-sub { max-width: var(--sc-measure); margin: 8px 0 0; color: var(--body); }
.horizons { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: h; }
.horizons > li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--sc-stone); counter-increment: h; }
.horizons > li::before { content: counter(h); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--navy); border-radius: 50%; font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--navy); }
.hz h4 { margin: 6px 0 12px; font: 600 1.0625rem var(--sans); color: var(--ink); }
.hz h4 span { display: block; font-weight: 400; font-size: .9375rem; color: var(--slate); }
.hz ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hz li { max-width: var(--sc-measure); color: var(--ink); }
.hz li em { display: block; font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sc-lake); }
.sc-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 28px; background: var(--sc-gold-soft); }
.sc-cta-row h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.375rem; color: var(--navy); }
.sc-cta-row p { max-width: 46ch; margin: 4px 0 0; font-size: .9375rem; color: #5B4520; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Disclaimer (the site footer follows) ---------- */
.sc-disclaimer { padding: 8px 0 56px; font-size: .875rem; color: var(--slate); }
.sc-disclaimer p { max-width: 80ch; margin: 0; }

/* Print-only cover page */
.print-cover { display: none; }

@media (max-width: 820px) {
  .sc-intro { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .sc-panel { padding: 24px 18px; }
  .sc-gate { padding: 24px 18px; }
}
@media (max-width: 560px) {
  .sc-dims { grid-template-columns: 1fr; }
  .sc-grid2 { grid-template-columns: 1fr; }
  .barrow { grid-template-columns: 1fr 44px; gap: 6px 12px; }
  .barrow .bt { grid-column: 1 / -1; grid-row: 2; }
  .barrow .val { grid-row: 1; grid-column: 2; }
  .horizons > li { grid-template-columns: 44px 1fr; gap: 12px; }
  .horizons > li::before { width: 38px; height: 38px; font-size: 1.375rem; }
  .qnav .btn { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .marker { transition: none; }
}

/* Print = the owner's take-away copy, with a cover page */
@media print {
  @page { margin: 18mm; }
  body { background: #fff; font-size: 12pt; }
  .site-header, .site-footer, .skip-link, .sc-hero, #intro, .qnav, .sc-gate, .cta-actions, .preview-note, .sc-disclaimer { display: none !important; }
  .sc { background: #fff; }
  .print-cover { display: flex; flex-direction: column; justify-content: space-between; min-height: 240mm; padding: 10mm 0; page-break-after: always; }
  .print-cover .brand-logo { width: auto; height: 34px; color: var(--navy); }
  .print-cover .pc-title { margin-top: 60mm; font-family: var(--serif); font-weight: 300; font-size: 34pt; color: var(--navy); }
  .print-cover p { margin-top: 8mm; font-size: 13pt; color: var(--slate); }
  .sc-panel { max-width: none; padding: 0; border: 0; }
  .sc-block { padding: 0; }
  .sc-summit, .sc-bars, .horizons > li { break-inside: avoid; }
  .marker { transition: none; }
}
