:root {
  --blue: #1ba1e2;
  --blue-dark: #0877ae;
  --blue-pale: #eaf7fd;
  --ink: #060d0d;
  --muted: #58666c;
  --line: #dce6ea;
  --soft: #f4f8fa;
  --warm: #fff8ef;
  --orange: #d66b2c;
  --white: #fff;
  --container: 1140px;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(16, 67, 91, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Montserrat, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid rgba(220, 230, 234, .75); }
.header-inner { width: min(calc(100% - 40px), var(--container)); min-height: 118px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.wordmark { position: relative; display: inline-flex; align-items: baseline; text-decoration: none; font-size: 27px; font-weight: 500; letter-spacing: -1.6px; line-height: 1; }
.wordmark-wise { color: var(--blue); }
.wordmark-reach { color: #a6a9aa; font-weight: 400; }
.wordmark small { position: absolute; top: 30px; left: 1px; width: 180px; color: #9a9fa1; font-size: 7px; font-weight: 400; letter-spacing: 0; }
.header-link { color: #253238; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; text-decoration: none; }
.header-link .app-label { display: none; }
.header-link .icon { width: 15px; height: 15px; transition: transform .18s ease; }
.header-link:hover .icon { transform: translate(2px, -2px); }
.is-app-mode .site-header { border-bottom-color: var(--line); }
.is-app-mode .header-inner { min-height: 64px; }
.is-app-mode .wordmark { font-size: 23px; }
.is-app-mode .wordmark small { display: none; }
.is-app-mode .header-link .default-label { display: none; }
.is-app-mode .header-link .app-label { display: inline; }
.header-link:hover, .header-link:focus-visible { color: var(--blue-dark); }

.screen { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.screen[hidden] { display: none !important; }
.eyebrow, .section-kicker { margin: 0 0 15px; color: var(--blue-dark); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Saira, sans-serif; font-weight: 400; }
[tabindex="-1"]:focus { outline: none; }

.landing { min-height: calc(100vh - 119px); padding: clamp(62px, 8vw, 100px) 0 72px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; position: relative; }
.landing-copy { align-self: center; max-width: 680px; }
.landing h1 { margin-bottom: 20px; font-size: clamp(46px, 4.5vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.landing h1 span { color: var(--blue); }
.landing .lead { max-width: 650px; margin-bottom: 15px; font-size: clamp(17px, 1.65vw, 20px); line-height: 1.5; }
.landing-copy > p:not(.eyebrow):not(.lead) { max-width: 650px; color: var(--muted); }
.landing .result-promise { margin-bottom: 12px; color: var(--blue-dark) !important; font-size: 17px; }
.landing .result-promise strong { font-weight: 600; }
.landing .diagnostic-note { margin-bottom: 0; font-size: 13px; line-height: 1.62; }
.landing-actions { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.button { min-height: 52px; padding: 13px 23px; border: 1px solid transparent; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .option:focus-within, .text-button:focus-visible, .text-link:focus-visible { outline: 3px solid rgba(27, 161, 226, .3); outline-offset: 3px; }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--blue-dark); }
.button-primary:disabled { background: #bdc8cc; cursor: not-allowed; transform: none; }
.time-note { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.time-note .icon { width: 16px; height: 16px; color: var(--blue-dark); }

.landing-visual { width: min(100%, 500px); position: relative; justify-self: end; }
.sample-profile { position: relative; padding: 28px 30px 22px; border: 1px solid #dbe7ec; background: rgba(255,255,255,.97); box-shadow: 0 28px 70px rgba(16,67,91,.13); }
.sample-profile::before { content: ''; position: absolute; inset: 8px -8px -8px 8px; z-index: -1; border: 1px solid rgba(27,161,226,.13); background: var(--blue-pale); }
.sample-profile-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sample-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 11px; color: #9b4c1d; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sample-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ed9858; box-shadow: 0 0 0 4px #fff0e4; }
.sample-profile h2 { margin-bottom: 3px; color: var(--ink); font-size: 25px; line-height: 1.2; }
.sample-profile-head p { margin: 0; color: var(--muted); font-size: 10px; }
.sample-scale { margin: 18px 0 13px 45%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: #7a878c; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.sample-scale i { height: 3px; background: linear-gradient(90deg, #ef9c5d, #f4c571 30%, #73c6e9 68%, var(--blue)); }
.sample-chart { display: grid; gap: 15px; }
.sample-row { display: grid; grid-template-columns: 43% 1fr; align-items: end; gap: 12px; }
.sample-row > div { min-width: 0; }
.sample-row strong, .sample-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-row strong { color: #243840; font-size: 9px; font-weight: 600; }
.sample-row span { margin-top: 1px; color: #7a878c; font-size: 8px; }
.sample-row > i { height: 9px; overflow: visible; position: relative; background: #edf1f2; }
.sample-row > i b { display: block; width: var(--sample-value); height: 100%; position: relative; background: linear-gradient(90deg, #ef9c5d, #f4c571 35%, #73c6e9 72%, var(--blue)); }
.sample-row > i b::after { content: ''; position: absolute; top: 50%; right: -4px; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: var(--blue-dark); box-shadow: 0 1px 5px rgba(8,119,174,.3); transform: translateY(-50%); }
.sample-profile-foot { margin-top: 21px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; color: var(--blue-dark); font-size: 9px; font-weight: 600; }
.sample-profile-foot i { width: 17px; height: 17px; border: 1px solid rgba(27,161,226,.38); border-radius: 50%; position: relative; }
.sample-profile-foot i::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--blue); }

.is-assessment-flow { overflow: hidden; }
.is-assessment-flow .assessment-footer { display: none; }
.assessment { height: calc(100dvh - 64px); min-height: 0; padding: clamp(14px, 2.4vh, 24px) 0 clamp(10px, 2vh, 20px); }
.assessment-shell { width: min(100%, 820px); height: 100%; margin: auto; display: flex; flex-direction: column; min-height: 0; }
.progress-head { display: flex; justify-content: space-between; gap: 20px; }
.progress-count { color: var(--muted); font-size: 12px; }
.progress-track { flex: 0 0 auto; height: 4px; margin-bottom: clamp(16px, 3vh, 28px); overflow: hidden; background: #e8eef0; }
.progress-track span { display: block; width: 4.16%; height: 100%; background: var(--blue); transition: width .25s ease; }
.assessment form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
fieldset { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; }
legend { flex: 0 0 auto; width: 100%; margin-bottom: clamp(12px, 2.2vh, 22px); font-family: Saira, sans-serif; font-size: clamp(27px, 3.2vw, 38px); line-height: 1.14; }
.options { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: clamp(7px, 1.2vh, 11px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.option { min-height: 0; position: relative; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 14px; padding: clamp(9px, 1.6vh, 15px) 18px; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: border .15s ease, background .15s ease, transform .15s ease; }
.option:hover { border-color: #8dcfec; transform: translateX(3px); }
.option.is-selected { border-color: var(--blue); background: var(--blue-pale); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-letter { width: 32px; height: 32px; border: 1px solid #b9c8ce; display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 700; transition: all .15s ease; }
.option.is-selected .option-letter { border-color: var(--blue); background: var(--blue); color: var(--white); }
.option-copy { line-height: 1.38; font-size: 14px; }
.answer-prompt { flex: 0 0 auto; min-height: 18px; margin: clamp(6px, 1.2vh, 12px) 0 clamp(7px, 1.4vh, 14px); color: var(--muted); font-size: 11px; }
.question-actions { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; }
.question-actions .button { min-height: 44px; padding-block: 10px; }
.button-back { padding-left: 0; background: transparent; color: var(--muted); }
.button-back:hover { color: var(--ink); transform: none; }

.results { padding: clamp(62px, 8vw, 100px) 0 70px; }
.results-intro { max-width: 790px; margin-bottom: 55px; }
.results-intro h1 { margin-bottom: 18px; color: var(--blue); font-size: clamp(45px, 6vw, 68px); line-height: 1.03; }
.results-intro > p:last-child { max-width: 680px; color: var(--muted); font-size: 18px; }
.profile-card { margin-bottom: 28px; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.profile-card-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 38px; }
.profile-card h2, .narrative-card h2, .implication-section h2, .first-steps h2, .results-cta h2 { margin-bottom: 8px; font-size: clamp(27px, 3vw, 36px); line-height: 1.2; }
.profile-key { min-width: 260px; display: grid; grid-template-columns: auto 80px auto; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.profile-key i { height: 5px; background: linear-gradient(90deg, #f2c39f, var(--blue)); }
.profile-chart { display: grid; gap: 24px; }
.profile-row { display: grid; grid-template-columns: minmax(170px, .85fr) 2fr minmax(110px, auto); align-items: center; gap: 20px; }
.profile-name { font-size: 13px; font-weight: 600; }
.profile-track { height: 12px; overflow: hidden; background: #edf1f2; }
.profile-fill { display: block; height: 100%; min-width: 8%; background: linear-gradient(90deg, #ef9c5d, #f4c571 30%, #73c6e9 68%, var(--blue)); transform-origin: left; animation: grow .7s ease both; }
.profile-state { color: var(--muted); font-size: 11px; text-align: right; }
@keyframes grow { from { transform: scaleX(0); } }

.narrative-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.narrative-card { min-height: 310px; padding: clamp(28px, 4vw, 42px); border: 1px solid var(--line); }
.flow-card { background: var(--blue-pale); }
.stuck-card { background: var(--warm); }
.card-icon { width: 48px; height: 48px; margin-bottom: 50px; display: grid; place-items: center; border: 1px solid rgba(27,161,226,.2); border-radius: 50%; background: var(--white); color: var(--blue-dark); box-shadow: 0 8px 22px rgba(16,67,91,.08); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.stuck-card .card-icon { color: var(--orange); }
.narrative-card p:last-child, .implication-section > p:last-child, .first-steps-intro > p:last-child { color: var(--muted); }
.implication-section { margin: 28px 0; padding: clamp(32px, 5vw, 60px); background: #0c354b; color: var(--white); }
.implication-section .section-kicker { color: #7ed1f3; }
.implication-section > p:last-child { max-width: 890px; margin-bottom: 0; color: #d9e8ef; font-size: 18px; }
.first-steps { padding: clamp(35px, 5vw, 60px) 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.first-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.first-steps li { counter-increment: steps; padding: 22px 0 22px 58px; border-top: 1px solid var(--line); position: relative; }
.first-steps li:last-child { border-bottom: 1px solid var(--line); }
.first-steps li::before { content: '0' counter(steps); position: absolute; left: 0; top: 20px; color: var(--blue); font-family: Saira, sans-serif; font-size: 18px; }
.first-steps li strong { display: block; margin-bottom: 5px; font-family: Saira, sans-serif; font-size: 20px; font-weight: 500; }
.first-steps li span { color: var(--muted); font-size: 14px; }
.results-cta { margin-top: 25px; padding: clamp(35px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 50px; background: var(--blue); color: var(--white); }
.results-cta .section-kicker { color: rgba(255,255,255,.78); }
.results-cta p:last-child { max-width: 730px; margin-bottom: 0; }
.button-light { flex: 0 0 auto; background: var(--white); color: var(--blue-dark); }
.button-light:hover { background: #eaf7fd; }
.result-actions { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; }
.text-button { padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.text-link { color: var(--blue-dark); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.text-button .icon, .text-link .icon { width: 17px; height: 17px; }

.assessment-footer { width: min(calc(100% - 40px), var(--container)); margin: auto; padding: 30px 0 42px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.assessment-footer p { margin: 0; }
.assessment-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-button { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; text-decoration: underline; cursor: pointer; }
.footer-button:focus-visible, .analytics-consent button:focus-visible { outline: 3px solid rgba(27, 161, 226, .3); outline-offset: 3px; }
.analytics-consent[hidden] { display: none; }
.analytics-consent { position: fixed; z-index: 30; right: 20px; bottom: 20px; width: min(440px, calc(100% - 40px)); padding: 21px 22px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 16px 50px rgba(16, 67, 91, .2); }
.analytics-consent p { margin-bottom: 14px; color: #253238; font-size: 12px; line-height: 1.55; }
.analytics-consent a { color: var(--blue-dark); }
.analytics-consent-actions { display: flex; justify-content: flex-end; gap: 9px; }
.analytics-consent button { min-height: 36px; padding: 7px 12px; border: 1px solid var(--blue); background: var(--white); color: var(--blue-dark); font-size: 11px; font-weight: 700; cursor: pointer; }
.analytics-consent #analytics-allow { background: var(--blue); color: var(--white); }
.is-assessment-flow .analytics-consent { display: none; }
.noscript { padding: 18px; background: #fff3cd; text-align: center; }

@media (max-width: 820px) {
  .header-inner { min-height: 88px; }
  .is-app-mode .header-inner { min-height: 58px; }
  .landing { min-height: auto; grid-template-columns: 1fr; gap: 35px; padding-top: 55px; }
  .landing-copy { padding-bottom: 0; }
  .landing-visual { width: min(80vw, 380px); justify-self: center; }
  .narrative-grid, .first-steps { grid-template-columns: 1fr; gap: 24px; }
  .first-steps { padding-top: 30px; }
  .profile-card-head { align-items: start; flex-direction: column; }
  .results-cta { align-items: start; flex-direction: column; }
}

@media (max-width: 580px) {
  .screen, .header-inner, .assessment-footer { width: min(calc(100% - 30px), var(--container)); }
  .header-link { font-size: 12px; }
  .is-app-mode .wordmark { font-size: 21px; }
  .landing { padding-top: 42px; }
  .landing h1 { font-size: 44px; }
  .landing-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .landing-actions .button { width: 100%; }
  .landing-visual { width: min(88vw, 350px); }
  .sample-profile { padding-inline: 28px; }
  .sample-row { align-items: center; }
  .sample-row strong { white-space: normal; line-height: 1.25; }
  .assessment { height: calc(100dvh - 58px); padding: 10px 0 8px; }
  .progress-head .eyebrow, .progress-count { margin-bottom: 8px; font-size: 10px; }
  .progress-track { margin-bottom: clamp(10px, 2vh, 16px); }
  legend { margin-bottom: clamp(9px, 1.6vh, 14px); font-size: clamp(23px, 7vw, 28px); line-height: 1.12; }
  .options { gap: clamp(5px, 1vh, 8px); }
  .option { grid-template-columns: 30px 1fr; gap: 10px; padding: clamp(7px, 1.2vh, 10px) 11px; }
  .option-letter { width: 28px; height: 28px; }
  .option-copy { font-size: clamp(11.5px, 3.2vw, 13px); line-height: 1.3; }
  .answer-prompt { margin-block: 6px; min-height: 0; font-size: 9px; line-height: 1.35; }
  .question-actions .button { min-height: 42px; padding: 9px 14px; font-size: 13px; }
  .profile-card { padding: 22px 18px; }
  .profile-key { display: none; }
  .profile-row { grid-template-columns: 1fr auto; gap: 7px 12px; }
  .profile-track { grid-column: 1 / -1; grid-row: 2; }
  .profile-state { grid-column: 2; grid-row: 1; }
  .narrative-card { min-height: 0; padding: 28px 24px; }
  .card-icon { margin-bottom: 34px; }
  .implication-section { padding: 32px 24px; }
  .first-steps li { padding-left: 45px; }
  .results-cta { padding: 32px 24px; }
  .result-actions, .assessment-footer { align-items: flex-start; flex-direction: column; }
  .analytics-consent { right: 15px; bottom: 15px; width: calc(100% - 30px); padding: 17px; }
}

@media (max-height: 680px) {
  .assessment { padding-block: 7px; }
  .progress-head .eyebrow, .progress-count { margin-bottom: 5px; }
  .progress-track { margin-bottom: 8px; }
  legend { margin-bottom: 7px; font-size: clamp(21px, 5vh, 27px); }
  .options { gap: 5px; }
  .option { padding-block: 6px; }
  .answer-prompt { margin-block: 4px; font-size: 9px; }
  .question-actions .button { min-height: 38px; padding-block: 7px; }
}

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