/* Draft 3. Diagnostic. Layout on top of ../../assets/css/tokens.css. Token classes are extended, never redefined. */

/* ---------- Navigation ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--c360-paper); border-bottom: 1px solid transparent; transition: border-color 160ms ease; }
.site-nav.is-scrolled { border-bottom-color: var(--c360-line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: var(--s-8); }
.nav-logo { display: block; flex: none; margin-right: auto; }
.nav-logo img { width: 160px; height: auto; }
.nav-links ul { display: flex; gap: var(--s-8); }
.nav-links a { font-weight: 500; font-size: 15px; line-height: 1; color: var(--c360-navy); text-decoration: none; padding: var(--s-2) 0; border-bottom: 1px solid transparent; transition: border-color 160ms ease; }
.nav-links a:hover { border-bottom-color: var(--c360-teal-ink); }
.nav-cta { flex: none; }
.menu-toggle, .menu-close { display: none; background: none; border: 0; padding: var(--s-3) 0; min-height: 44px; font-weight: 600; font-size: 16px; color: var(--c360-navy); cursor: pointer; }

.menu-panel { position: fixed; inset: 0; z-index: 60; background: var(--c360-paper); overflow-y: auto; }
.menu-panel[hidden] { display: none; }
.menu-top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.menu-top .nav-logo img { width: 132px; }
.menu-close { display: block; }
.menu-links { margin-top: var(--s-8); border-top: 1px solid var(--c360-line); }
.menu-links li { border-bottom: 1px solid var(--c360-line); }
.menu-links a { display: block; padding: var(--s-4) 0; font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; color: var(--c360-ink); text-decoration: none; }
.menu-cta { margin-top: var(--s-8); display: grid; gap: var(--s-3); }

@media (max-width: 1023px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 639px) {
  .nav-logo img { width: 132px; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero and the Bottleneck Check ---------- */
.hero { padding-top: var(--s-24); padding-bottom: var(--s-32); }
.hero-copy { max-width: 920px; margin: 0 auto; text-align: center; }
.hero-copy .eyebrow + h1 { margin-top: var(--s-6); }
.hero-copy .lead { max-width: 720px; margin: var(--s-6) auto 0; }

.check { max-width: 720px; margin: var(--s-12) auto 0; padding: var(--s-8); text-align: left; scroll-margin-top: calc(var(--nav-h) + var(--s-6)); }
.check:hover { box-shadow: none; }
.check-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-6); }
.check-title { font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--c360-ink); max-width: 44ch; }
.check-count { flex: none; font-variant-numeric: tabular-nums; }

.progress { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--s-1); margin-top: var(--s-4); }
.progress span { height: 4px; border-radius: 999px; background: var(--c360-line); transition: background-color 160ms ease; }
.progress span.is-done { background: var(--c360-teal); }

.check-body { margin-top: var(--s-8); }
.check-body:focus { outline: none; }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: var(--s-6); }
.q legend:focus { outline: none; }
.answers { display: grid; gap: var(--s-3); }
.answer { position: relative; display: flex; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-3) var(--s-6) var(--s-3) var(--s-4); border: 1px solid var(--c360-line); border-radius: var(--radius); background: var(--c360-white); color: var(--c360-ink); font-weight: 500; font-size: 17px; line-height: 1.35; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.answer:hover { border-color: var(--c360-steel); }
.answer input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.answer .mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--c360-steel); display: grid; place-items: center; transition: border-color 160ms ease; }
.answer .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c360-navy); transform: scale(0); transition: transform 160ms ease; }
.answer:has(input:checked) { border-color: var(--c360-navy); background: var(--c360-paper); }
.answer:has(input:checked) .mark { border-color: var(--c360-navy); }
.answer:has(input:checked) .mark::after { transform: scale(1); }
.answer:has(input:focus-visible) { outline: 2px solid var(--c360-teal); outline-offset: 3px; }

.q-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: var(--s-8); }
.btn-text { background: none; border: 0; padding: var(--s-3) 0; min-height: 44px; font-weight: 600; font-size: 16px; color: var(--c360-navy); text-decoration: underline; text-decoration-color: var(--c360-teal-ink); text-underline-offset: 4px; cursor: pointer; }
.btn-text[hidden] { display: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary:disabled:hover { background: transparent; color: var(--c360-navy); }

.check-privacy { text-align: center; margin-top: var(--s-4); }

/* Result screen */
.result-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-3); color: var(--c360-ink); }
.result-label { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.result-of { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--c360-muted); font-variant-numeric: tabular-nums; }
.result-band { margin-top: var(--s-6); font-weight: 600; color: var(--c360-ink); }
.result-read { margin-top: var(--s-2); max-width: 56ch; }
.result-look { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--c360-line); }
.result-look h2 { font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 1.5; letter-spacing: 0; color: var(--c360-ink); }
.look-list { margin-top: var(--s-3); display: grid; gap: var(--s-2); counter-reset: look; }
.look-list li { display: flex; gap: var(--s-4); align-items: baseline; font-size: 17px; line-height: 1.5; color: var(--c360-text); }
.look-list li::before { counter-increment: look; content: "0" counter(look); flex: none; font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--c360-steel); font-variant-numeric: tabular-nums; }
.result-actions { margin-top: var(--s-8); padding-top: var(--s-8); border-top: 1px solid var(--c360-line); display: grid; gap: var(--s-6); }
.result-primary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.email-form label { display: block; font-size: 15px; font-weight: 500; color: var(--c360-ink); }
.email-row { display: flex; gap: var(--s-3); margin-top: var(--s-2); }
.email-row input { flex: 1; min-width: 0; min-height: 50px; padding: 0 var(--s-4); border: 1px solid var(--c360-line); border-radius: 999px; background: var(--c360-white); font-size: 16px; color: var(--c360-ink); }
.email-row input::placeholder { color: var(--c360-muted); }
.email-row input:focus-visible { border-color: var(--c360-navy); }
.demo-note { margin-top: var(--s-2); }
.result-restart { margin-top: var(--s-2); }

/* ---------- Stakes ---------- */
.stakes-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.stakes-intro { grid-column: 1 / span 5; }
.stakes-photo { grid-column: 7 / span 6; aspect-ratio: 3 / 2; }
.stakes-top + * { margin-top: var(--s-12); }
.stakes-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stake { display: flex; flex-direction: column; gap: var(--s-8); min-height: 264px; }
.stake-num { font-family: var(--font-display); font-weight: 500; font-size: 64px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--c360-steel); }
.stake .h3 { margin-top: auto; }
.stakes-intro .section-head + .stakes-close { margin-top: var(--s-6); }
.stakes-close { max-width: 64ch; color: var(--c360-text); }

/* ---------- Capacity calculator ---------- */
.calc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.calc-inputs { grid-column: 1 / span 6; display: grid; gap: var(--s-8); }
.calc-output { grid-column: 8 / span 5; position: sticky; top: calc(var(--nav-h) + var(--s-6)); }
.calc-output:hover { box-shadow: none; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.field-row label { font-weight: 500; font-size: 17px; color: var(--c360-ink); }
.field-value { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--c360-ink); font-variant-numeric: tabular-nums; }
.field-ends { display: flex; justify-content: space-between; margin-top: var(--s-1); font-variant-numeric: tabular-nums; }

input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: var(--s-2) 0 0; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(var(--c360-navy), var(--c360-navy)) 0 0 / var(--fill) 100% no-repeat, var(--c360-line); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--c360-line); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--c360-navy); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--c360-white); border: 2px solid var(--c360-navy); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--c360-white); border: 2px solid var(--c360-navy); }

.assumptions { padding-top: var(--s-6); border-top: 1px solid var(--c360-line); }
.assumptions-title { font-weight: 600; color: var(--c360-ink); }
.assumptions ul { margin-top: var(--s-2); display: grid; gap: var(--s-1); }
.assumptions li { padding-left: var(--s-4); position: relative; }
.assumptions li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--c360-steel); }

.calc-output .stat { margin-top: var(--s-3); }
.calc-per { margin-top: var(--s-4); color: var(--c360-ink); }
.calc-output .hairline { margin: var(--s-6) 0; }
.calc-formula { font-variant-numeric: tabular-nums; }
.calc-label { margin-top: var(--s-3); font-weight: 600; color: var(--c360-ink); }

/* ---------- Plan ---------- */
.plan-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan-steps li { padding-top: var(--s-6); border-top: 1px solid var(--c360-line); }
.step-num { font-family: var(--font-display); font-weight: 500; font-size: 15px; line-height: 1; color: var(--c360-steel); font-variant-numeric: tabular-nums; }
.plan-steps .h3 { margin-top: var(--s-6); }
.plan-steps .h3 + p { margin-top: var(--s-3); max-width: 36ch; }
.plan-close { margin-top: var(--s-16); display: grid; gap: var(--s-4); justify-items: start; }
.plan-close-line { font-weight: 500; color: var(--c360-ink); max-width: 48ch; }

/* ---------- See it work ---------- */
.walk-label { margin-top: var(--s-4); }
.walk-intro { margin-top: var(--s-4); }
.toggle { display: inline-flex; padding: var(--s-1); border: 1px solid var(--c360-line); border-radius: 999px; background: var(--c360-white); }
.toggle-btn { min-height: 44px; padding: 0 var(--s-6); border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; color: var(--c360-muted); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.toggle-btn[aria-pressed="true"] { background: var(--c360-navy); color: #fff; }

.stages { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: var(--s-12); }
.stages::before { content: ""; position: absolute; left: 7px; right: 7px; top: 6px; height: 1px; background: var(--c360-line); }
.stage { position: relative; }
.node { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c360-steel); position: relative; transition: background-color 160ms ease; }
.node::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid transparent; }
.stage-name { margin-top: var(--s-6); font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--c360-ink); }
.stage-text { margin-top: var(--s-2); font-size: 15px; line-height: 1.5; color: var(--c360-muted); }
.walk[data-state="today"] .stage-text.redesigned, .walk[data-state="redesigned"] .stage-text.today { display: none; }
.walk[data-state="redesigned"] .node { background: var(--c360-navy); }
.walk[data-state="redesigned"] .stage-text { color: var(--c360-text); }
.walk[data-state="today"] .node-outcome { background: var(--c360-white); border: 2px solid var(--c360-steel); }

.measures { margin-top: var(--s-16); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.measures-table { grid-column: 1 / span 7; border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.measures-table caption { text-align: left; caption-side: top; padding-bottom: var(--s-3); }
.measures-table th, .measures-table td { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--c360-line); text-align: left; font-weight: 400; }
.measures-table thead th { font-weight: 600; color: var(--c360-ink); border-bottom-color: var(--c360-steel); }
.measures-table tbody th { color: var(--c360-text); padding-right: var(--s-6); }
.measures-table td { width: 96px; color: var(--c360-steel); font-variant-numeric: tabular-nums; }
.measures-line { grid-column: 9 / span 4; color: var(--c360-text); }

/* ---------- Offer (navy) ---------- */
.offer-title { max-width: 22ch; }
.offer-cta { margin-top: var(--s-12); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6); }
.offer-cta .small { color: var(--c360-steel); }

/* ---------- Guide ---------- */
.guide { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.guide-photo { grid-column: 1 / span 4; }
.guide-photo .headshot { max-width: 360px; }
.guide-photo figcaption { margin-top: var(--s-4); }
.guide-text { grid-column: 6 / span 7; }
.guide-text .section-head + * { margin-top: var(--s-8); }
.guide-quote { margin: var(--s-12) 0 0; font-size: 32px; max-width: 26ch; }
.trust { margin-top: var(--s-12); letter-spacing: 0.02em; }
.guide-text .link { display: inline-block; margin-top: var(--s-6); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.faq-wrap .section-head { grid-column: 1 / span 4; }
.faq-wrap .faq { grid-column: 6 / span 7; margin-top: 0; }
.faq details > div p { color: var(--c360-text); }

/* ---------- Final CTA ---------- */
.final-inner { max-width: 760px; }
.final-inner .lead { margin-top: var(--s-6); }
.final-actions { margin-top: var(--s-12); display: flex; flex-wrap: wrap; gap: var(--s-8); }
.final-action { display: grid; gap: var(--s-3); justify-items: start; align-content: start; max-width: 320px; }

/* ---------- Footer ---------- */
.site-footer { padding: var(--s-24) 0 var(--s-12); }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.footer-brand { grid-column: 1 / span 5; }
.footer-brand img { width: 240px; height: auto; margin: 0; }
.footer-desc { margin-top: var(--s-8); color: var(--c360-steel); max-width: 44ch; }
.footer-col:nth-child(2) { grid-column: 7 / span 2; }
.footer-col:nth-child(3) { grid-column: 9 / span 2; }
.footer-col:nth-child(4) { grid-column: 11 / span 2; }
.footer-head { font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c360-steel); }
.footer-col ul { margin-top: var(--s-4); display: grid; gap: var(--s-2); color: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--c360-teal); text-underline-offset: 4px; }
.footer-bottom { margin-top: var(--s-24); padding-top: var(--s-6); border-top: 1px solid rgb(255 255 255 / 16%); display: flex; justify-content: space-between; gap: var(--s-6); color: var(--c360-steel); }
.footer-bottom ul { display: flex; gap: var(--s-6); }
.footer-bottom a { color: var(--c360-steel); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .stakes-intro { grid-column: 1 / -1; }
  .stakes-photo { grid-column: 1 / -1; }
  .stakes-cards { grid-template-columns: 1fr; }
  .stake { min-height: 0; }
  .calc-inputs, .calc-output { grid-column: 1 / -1; position: static; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-8); }
  .stages::before { display: none; }
  .measures-table, .measures-line { grid-column: 1 / -1; }
  .guide-photo { grid-column: 1 / span 3; }
  .guide-text { grid-column: 4 / -1; }
  .faq-wrap .section-head, .faq-wrap .faq { grid-column: 1 / -1; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:nth-child(2) { grid-column: 1 / span 3; }
  .footer-col:nth-child(3) { grid-column: 4 / span 2; }
  .footer-col:nth-child(4) { grid-column: 6 / span 3; }
}

/* ---------- Phone ---------- */
@media (max-width: 639px) {
  .hero { padding-top: var(--s-12); padding-bottom: var(--s-16); }
  .hero-copy { text-align: left; }
  .hero-copy .eyebrow + h1 { margin-top: var(--s-4); }
  .hero-copy .lead { margin-left: 0; }
  .check { margin-top: var(--s-8); padding: var(--s-6) var(--s-4); }
  .check-head { flex-direction: column; gap: var(--s-2); }
  .check-body { margin-top: var(--s-6); }
  .q-actions { flex-direction: column-reverse; align-items: stretch; }
  .q-actions .btn-text { align-self: flex-start; }
  .check-privacy { text-align: left; }
  .result-label, .result-of { font-size: 22px; }
  .result-primary { display: grid; }
  .email-row { flex-direction: column; }

  .stakes-top { gap: 16px; }
  .stake-num { font-size: 44px; }

  .calc { gap: var(--s-8); }

  .plan-steps { grid-template-columns: 1fr; gap: var(--s-8); }
  .plan-close { margin-top: var(--s-12); }

  .toggle { display: flex; }
  .toggle-btn { flex: 1; }
  .stages { grid-template-columns: 1fr; gap: 0; margin-top: var(--s-8); }
  .stages::before { display: block; left: 6px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .stage { display: grid; grid-template-columns: 14px 1fr; column-gap: var(--s-4); padding-bottom: var(--s-6); }
  .stage .node { grid-row: 1 / span 2; margin-top: 3px; }
  .stage-name { margin-top: 0; grid-column: 2; }
  .stage-text { grid-column: 2; }
  .measures { margin-top: var(--s-8); }
  .measures-table td { width: 72px; }
  .measures-table th, .measures-table td { padding-right: var(--s-3); }

  .offer-cta { display: grid; gap: var(--s-3); }

  .guide-photo, .guide-text { grid-column: 1 / -1; }
  .guide-text { margin-top: var(--s-6); }
  .guide-photo .headshot { max-width: 220px; }
  .guide-quote { font-size: 26px; margin-top: var(--s-8); }
  .trust { margin-top: var(--s-8); }

  .final-actions { display: grid; gap: var(--s-6); }
  .final-action { max-width: none; justify-items: stretch; }

  .site-footer { padding-top: var(--s-16); }
  .footer-grid { row-gap: var(--s-8); }
  .footer-col:nth-child(2), .footer-col:nth-child(3), .footer-col:nth-child(4) { grid-column: 1 / -1; }
  .offer-title { max-width: none; }
  .footer-bottom { margin-top: var(--s-12); flex-direction: column; gap: var(--s-3); }
}

html { scroll-padding-top: calc(var(--nav-h) + var(--s-4)); }
.nowrap { white-space: nowrap; }
