:root {
  --ink: #111214; --ink-2: #1c1d20; --ink-3: #2a2c30;
  --teal: #017089; --teal-2: #0b8aa6; --teal-soft: #e3f2f5;
  --red: #ef3115; --red-2: #d42a10;
  --paper: #f3f6f8; --card: #ffffff; --text: #132233; --muted: #5a6b7d; --line: #d9e1e8;
  --radius: 14px; --shadow: 0 1px 2px rgba(11, 22, 34, .06), 0 8px 24px rgba(11, 22, 34, .06);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--paper); line-height: 1.5; }
a { color: var(--teal); }
button { font: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.preview-ribbon { background: var(--ink); color: #a7acb2; font-size: 12px; text-align: center; padding: 6px 16px; letter-spacing: .02em; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-emblem { height: 48px; width: auto; display: block; }
.a-top .brand-emblem, .ad-top .brand-emblem { height: 36px; }
.closer-mark { height: 70px; width: auto; display: block; margin: 0 auto 18px; }
.site-foot { background: var(--ink); color: #9ba1a7; text-align: center; padding: 34px 0 40px; margin-top: 56px; font-size: 13px; }
.site-foot.with-nav { margin-top: 0; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.site-foot .foot-mark { height: 46px; width: auto; display: block; margin: 0 auto 14px; }
.site-foot p { margin: 4px 0; }
.site-foot .powered a { color: #d2d5d9; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.site-foot .powered a:hover { color: #fff; border-color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%); display: grid; place-items: center; color: #fff; font: 800 15px/1 var(--display); letter-spacing: .04em; }
.brand-name { font: 700 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.brand-name small { display: block; font: 500 11px/1.2 var(--body); letter-spacing: .02em; text-transform: none; opacity: .7; margin-top: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 28px; font: 700 16px/1 var(--body); cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; min-height: 50px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(239, 49, 21, .28); }
.btn-primary:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--muted); padding: 15px 18px; }
.btn-ghost:hover { color: var(--text); }
.btn-dark { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(110% 85% at 88% 0%, #0d4d5c 0%, var(--ink) 58%); color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 64px); pointer-events: none; }
.hero-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.hero-body { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 48px 0 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #8fd3e2; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); }
.hero h1 { font: 800 clamp(46px, 7.4vw, 86px)/.92 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: #5fd0e6; }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: #d2d5d9; max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: #a7acb2; font-size: 14px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: #5fd0e6; }

.scorecard { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 26px; backdrop-filter: none; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); animation: rise .7s ease both .1s; }
.scorecard-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.scorecard-head .lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9ba1a7; }
.scorecard-head .num { font: 800 64px/.9 var(--display); }
.scorecard-head .num small { font-size: 22px; color: #9ba1a7; }
.sc-row { display: grid; grid-template-columns: 1fr 42px; gap: 4px 12px; align-items: center; margin: 11px 0; font-size: 13.5px; color: #d4e0ea; }
.sc-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.sc-row .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--teal-2), #5fd0e6); }
.sc-row b { text-align: right; font-weight: 600; }
.scorecard-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #a7acb2; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.areas { padding: 72px 0 24px; }
.section-title { font: 800 clamp(30px, 4vw, 42px)/1 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.section-sub { color: var(--muted); max-width: 620px; margin: 0 0 32px; font-size: 17px; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.area-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; }
.area-card .n { font: 700 13px/1 var(--display); color: var(--red); letter-spacing: .08em; }
.area-card h3 { font: 700 21px/1.1 var(--display); text-transform: uppercase; margin: 8px 0 6px; letter-spacing: .01em; }
.area-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.how { padding: 56px 0 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font: 800 17px/1 var(--display); margin-bottom: 12px; }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.closer { margin: 56px 0 0; background: var(--ink); color: #fff; border-radius: 22px; padding: 44px 32px; text-align: center; position: relative; overflow: hidden; }
.closer::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 64px); }
.closer > * { position: relative; }
.closer h2 { font: 800 clamp(32px, 4.6vw, 50px)/1 var(--display); text-transform: uppercase; margin: 0 0 12px; }
.closer p { color: #d2d5d9; margin: 0 0 26px; }
footer.site { padding: 36px 0 44px; color: var(--muted); font-size: 13px; text-align: center; }
footer.site a { color: var(--muted); }

/* ---------- assessment ---------- */
.a-top { position: sticky; top: 0; z-index: 10; background: rgba(243, 246, 248, .96); border-bottom: 1px solid var(--line); }
.a-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; max-width: 760px; margin: 0 auto; }
.a-top .brand-name { font-size: 16px; }
.a-progress { flex: 1; max-width: 300px; }
.a-progress .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.a-progress .track { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.a-progress .track i { display: block; height: 100%; background: var(--teal); border-radius: 6px; transition: width .35s ease; }
.a-main { max-width: 760px; margin: 0 auto; padding: 28px 20px 120px; }
.a-head { margin: 8px 0 22px; }
.a-head .kicker { font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.a-head h1 { font: 800 clamp(32px, 5vw, 44px)/1 var(--display); text-transform: uppercase; margin: 8px 0 8px; }
.a-head p { color: var(--muted); margin: 0; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; margin: 0 0 14px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.q.err { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 49, 21, .12); }
.q-text { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.q-text .opt { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
.q-help { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.q-err { display: none; color: var(--red-2); font-size: 13px; font-weight: 600; margin-top: 8px; }
.q.err .q-err { display: block; }
.choices { display: grid; gap: 8px; margin-top: 12px; }
.choices.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer; transition: border-color .12s, background .12s; font-size: 15px; line-height: 1.35; user-select: none; }
.choice:hover { border-color: #b4c3d0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .dot { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 2px solid #aebdca; border-radius: 50%; display: grid; place-items: center; transition: all .12s; }
.choice.multi .dot { border-radius: 6px; }
.choice .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .12s; }
.choice.multi .dot::after { width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; }
.choice.on { border-color: var(--teal); background: var(--teal-soft); }
.choice.on .dot { border-color: var(--teal); background: var(--teal); }
.choice.on .dot::after { transform: scale(1); }
.choice.multi.on .dot::after { transform: rotate(-45deg) scale(1); }
.choice input:focus-visible + .dot { outline: 3px solid rgba(1, 112, 137, .35); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.input, textarea.input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px; font: 16px var(--body); color: var(--text); background: #fff; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1, 112, 137, .15); }
textarea.input { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.term-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 10px; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; max-height: 230px; overflow-y: auto; padding: 2px; border-radius: 10px; }
.year-grid .choice { justify-content: center; padding: 10px 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.year-grid .choice .dot { display: none; }
.consent { font-size: 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; max-height: 190px; overflow-y: auto; margin: 4px 0 10px; }
.consent p { margin: 0 0 8px; }
.a-nav { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); z-index: 10; }
.a-nav-inner { max-width: 760px; margin: 0 auto; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-nav .save-state { font-size: 12.5px; color: var(--muted); }
.banner { padding: 12px 14px; border-radius: 11px; background: #fdecea; color: #8c1d0c; font-size: 14px; margin: 0 0 14px; display: none; }
.banner.show { display: block; }
.stop { text-align: center; padding: 60px 0; }

/* results */
.r-hero { background: var(--ink); color: #fff; border-radius: 22px; padding: 30px 26px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.r-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 64px); }
.r-hero > * { position: relative; }
.ring { width: 168px; height: 168px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font: 800 60px/.9 var(--display); display: block; }
.ring .val span { font-size: 12px; color: #9ba1a7; letter-spacing: .06em; text-transform: uppercase; }
.r-hero .tier { font: 800 34px/1 var(--display); text-transform: uppercase; margin: 6px 0 8px; color: #5fd0e6; }
.r-hero p { margin: 0; color: #d2d5d9; }
.r-hero .gap { margin-top: 12px; font-size: 14px; color: #a7acb2; }
.r-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 16px; box-shadow: var(--shadow); }
.r-block h2 { font: 800 26px/1 var(--display); text-transform: uppercase; margin: 0 0 4px; }
.r-block > p.sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.abar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0; }
.abar .nm { font-weight: 600; font-size: 15px; }
.abar .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.abar .v { font: 700 22px/1 var(--display); align-self: end; font-variant-numeric: tabular-nums; }
.abar .track { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: #e6ecf1; overflow: hidden; }
.abar .track i { display: block; height: 100%; border-radius: 8px; background: var(--teal); }
.abar.focus .track i { background: var(--red); }
.plan-area { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.plan-area:first-of-type { border-top: 0; padding-top: 4px; }
.plan-area h3 { margin: 0 0 8px; font: 700 21px/1.1 var(--display); text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; }
.plan-area h3 span { color: var(--red); }
.plan-area ol { margin: 0; padding-left: 20px; }
.plan-area li { margin: 0 0 8px; }
.save-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.save-link code { background: var(--paper); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; font-size: 13px; word-break: break-all; }

@media (max-width: 820px) {
  .hero-body { grid-template-columns: 1fr; padding: 24px 0 64px; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .form-grid, .choices.grid2 { grid-template-columns: 1fr; }
  .a-top .brand-name small { display: none; }
  .r-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .a-nav .btn { width: auto; flex: 1; }
  .a-main, .a-top-inner { padding-left: 16px; padding-right: 16px; }
  .closer { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
