/* iCRR demo, styled to the ILLAFTrain colour system: warm neutrals, ink buttons,
   red kept as a thin signature line, report colours following the score band. */

:root {
  /* ILLAFTrain colour system v0.1. Proportions: 60 cloud/linen, 27 ink/graphite, 10 red, 3 brass. */
  --sig: #D4000D;      /* ILLAF red: signature lines only, never a text or button background */
  --sig-d: #FF6B70;    /* red for lines and text on dark */
  --deep: #8A1116;     /* large red blocks */
  --mahogany: #5C0B0F;
  --blush: #FBEDEC;
  --ink: #1E1B1A;
  --ink-2: #2C2927;
  --graphite: #3B3735;
  --text-2: #544E4B;
  --stone: #6E6762;
  --sand: #D8D1C9;
  --line: #E7E1DA;
  --linen: #EEE9E3;
  --cloud: #F7F5F0;
  --white: #FFFFFF;
  --brass: #B08A45;    /* achievement moments only */
  --slate: #2F5D7C;
  --ok: #1F7A52; --ok-bg: #E6F2EC; --ok-d: #6FC59B;
  --warn: #9A5C00; --warn-bg: #FBF0E0;
  --err: #C2410C; --err-bg: #FCEDE6; --err-d: #FF8A5C;
  --info: #2F5D7C; --info-bg: #E8EFF5; --info-d: #8FAAC0;
  --shadow: 0 1px 3px rgba(30, 27, 26, .08), 0 1px 2px rgba(30, 27, 26, .04);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Alexandria', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cloud);
  overflow-x: hidden;
}
body.in-demo { background: var(--cloud) url('../img/ascent-light.svg') center bottom / cover no-repeat fixed; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.brand-mark sup, .cv-mark sup { font-size: .55em; }
sup { line-height: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 11px 26px; border-radius: 8px;
  font-weight: 700; font-size: 16px; white-space: nowrap; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn-light { background: var(--linen); color: var(--ink); }
.btn-line { border: 1.5px solid var(--linen); color: var(--linen); }
.btn-line:hover { background: rgba(238, 233, 227, .1); }
.btn-ink { background: var(--ink); color: var(--cloud); }
.btn-ink:hover:not(:disabled) { background: var(--graphite); }
.link-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--sig); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link-btn:hover { color: var(--text-2); }

/* ---- Section header (eyebrow + Latin overline + title with crimson bars) ---- */
.sec-head { margin-bottom: clamp(22px, 3.4vw, 40px); }
.sec-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--stone); font-size: 14px; font-weight: 600; }
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--sig); flex: none; }
.overline { color: var(--stone); font-size: 14px; font-weight: 300; letter-spacing: .02em; }
.sec-title { font-size: clamp(26px, 3.7vw, 42px); line-height: 1.35; font-weight: 700; }
.sec-title .bar { font-style: normal; color: var(--sig); font-weight: 400; margin-inline: .08em; }
.sec { padding-block: clamp(52px, 7vw, 92px); position: relative; }
.sec-white { background: var(--white); }
.tabbed::before {
  content: ''; position: absolute; inset-inline-start: 0; top: clamp(52px, 7vw, 92px);
  width: 10px; height: 90px; background: var(--sig);
}
.sec-foot { margin-top: 34px; text-align: center; color: var(--ink); font-weight: 600; font-size: 17px; }
.sec-note { margin-top: 16px; color: var(--stone); font-size: 14px; text-align: center; }
.lead { font-size: clamp(17px, 1.7vw, 20px); font-weight: 500; line-height: 1.8; color: var(--ink); }
.lead.narrow { max-width: 780px; margin-bottom: 30px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 64px); align-items: start; }
.split-text > * + * { margin-top: 14px; }
.split-text p:not(.lead) { color: var(--text-2); }
.mini-h { font-size: 17px; font-weight: 700; margin-block: 24px 12px; }
.split-vis .mini-h:first-child { margin-top: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding-block: 6px; color: var(--text-2); }
.checks .ic { color: var(--ink); margin-top: 3px; }

/* ---- Hero ---- */
.hero { background: var(--ink); color: var(--linen); position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
#ascent { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-top { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; }
.logo-m { height: 52px; width: auto; }
.logo-i { height: 44px; width: auto; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(24px, 4vw, 48px) clamp(56px, 7vw, 92px); }
.pill { display: inline-block; border: 1px solid var(--text-2); color: var(--sand); font-size: 14px; font-weight: 600; padding: 7px 22px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.4; font-weight: 800; }
.hero-latin { text-align: end; margin-top: 12px; font-size: clamp(15px, 1.6vw, 20px); font-weight: 300; color: var(--sand); }
.hero-latin b { font-weight: 600; color: var(--cloud); }
.hero-sub { margin-top: 18px; max-width: 590px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.95; color: var(--sand); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 14px; color: #B3ACA5; }
.hero-art { max-width: 480px; margin-inline: auto; width: 100%; }
.hero-art figcaption { text-align: center; color: #B3ACA5; font-size: 14px; margin-top: 8px; }
.sunburst .sb-c { fill: var(--linen); font: 700 15px 'Alexandria', sans-serif; direction: ltr; }
.sunburst .sb-n { fill: var(--sand); font: 500 12px 'Alexandria', sans-serif; direction: ltr; }
.sunburst .sb-w { transform-origin: 0 0; animation: grow .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes grow { from { transform: scale(.25); opacity: 0; } }

/* ---- Stats ---- */
.stats { background: var(--ink); color: var(--linen); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 26px 16px; display: flex; align-items: center; justify-content: center; gap: 14px; border-inline-end: 1px solid var(--graphite); }
.stats-grid > div:last-child { border: 0; }
.stats-grid b { font-size: clamp(34px, 4.4vw, 52px); line-height: 1; color: var(--linen); font-weight: 800; }
.stats-grid span { font-size: 14px; line-height: 1.5; }

/* ---- Journey ---- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.journey::before { content: ''; position: absolute; top: 46px; inset-inline: 12.5%; border-top: 2px solid var(--sig); }
.j-node { position: relative; text-align: center; }
.j-dot { width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: var(--cloud); display: grid; place-items: center; margin: 0 auto 16px; position: relative; font-size: 26px; }
.j-node.alt .j-dot { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--sand); }
.j-node h3 { font-size: 20px; font-weight: 700; }
.j-node p { color: var(--stone); font-size: 14px; line-height: 1.7; max-width: 220px; margin-inline: auto; }

/* ---- Assessment explainer ---- */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pipe li { background: var(--linen); padding: 14px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pipe-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--cloud); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.pipe b { font-size: 14px; line-height: 1.5; }
.pipe small { font-size: 12px; line-height: 1.5; color: var(--text-2); }
.lv-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.lv { padding: 10px 4px; text-align: center; }
.lv b { display: block; font-size: 14px; }
.lv span { font-size: 12px; }
.lv-beginner { background: var(--deep); color: var(--white); }
.lv-developing { background: #FF9694; color: var(--ink); }
.lv-professional { background: var(--sand); color: var(--ink); }
.lv-advanced { background: #8FAAC0; color: var(--ink); }
.lv-expert { background: var(--slate); color: var(--white); }

/* ---- Domain map ---- */
.dm-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.dm-col { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dm-head { padding: 14px 16px; background: var(--white); border-top: 6px solid var(--sand); }
.dm-head small { display: block; font-size: 12px; color: var(--stone); }
.dm-head h3 { font-size: 20px; font-weight: 700; line-height: 1.5; }
.dm-head span { font-size: 14px; color: var(--text-2); }
.dm-col ul { padding: 8px 14px; }
.dm-col li { display: flex; align-items: center; gap: 10px; padding-block: 9px; font-size: 14px; font-weight: 600; line-height: 1.5; border-bottom: 1px solid var(--linen); }
.dm-col li:last-child { border: 0; }
.num-n { background: var(--linen); color: var(--ink); }
.num { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.factors-band { background: var(--ink); color: var(--linen); padding: 22px clamp(16px, 3vw, 32px); margin-top: 18px; text-align: center; }
.factors-band h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill-f { border: 1px solid var(--text-2); padding: 7px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.pill-f.alt { background: var(--graphite); border-color: var(--graphite); }

/* ---- Simulator preview ---- */
.branch { background: var(--cloud); border: 1px solid var(--line); padding: 20px; }
.branch figcaption { font-weight: 700; margin-bottom: 14px; }
.branch-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.br-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.br-col small { color: var(--stone); font-size: 12px; }
.br-n { width: 22px; height: 22px; border-radius: 50%; background: var(--linen); box-shadow: inset 0 0 0 1px var(--sand); }
.br-n.on { background: var(--sig); box-shadow: 0 0 0 4px var(--blush); }
.fb-mini li, .fb-list li { display: flex; gap: 12px; padding: 11px 14px; align-items: flex-start; }
.fb-mini li + li, .fb-list li + li { margin-top: 6px; }
.fb-mini b, .fb-list b { display: block; font-size: 14px; }
.fb-mini span, .fb-list span { font-size: 14px; color: var(--text-2); line-height: 1.75; }
.fb-right { background: var(--ok-bg); }
.fb-right .ic { color: var(--ok); margin-top: 3px; }
.fb-watch { background: var(--warn-bg); }
.fb-watch .ic { color: var(--warn); margin-top: 3px; }
.fb-weak { background: var(--info-bg); }
.fb-weak .ic { color: var(--info); margin-top: 3px; }

/* ---- Path tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px 10px; text-align: center; }
.tile-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--linen); color: var(--ink); display: grid; place-items: center; margin: 0 auto 12px; font-size: 22px; }
.tile b { font-size: 16px; font-weight: 700; }
.tile.featured { background: var(--ink); border-color: var(--ink); color: var(--linen); }
.tile.featured .tile-ic { background: var(--linen); }

/* ---- Coach explainer ---- */
.sec-dark { background: var(--ink); color: var(--linen); }
.sec-dark .eyebrow { color: #B3ACA5; }
.sec-dark .eyebrow::before { background: var(--sig-d); }
.sec-dark .overline { color: #B3ACA5; }
.sec-dark .sec-title .bar { color: var(--sig-d); }
.sec-dark .lead { color: var(--linen); }
.kwts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px !important; }
.kw { background: var(--ink-2); padding: 16px 6px; text-align: center; border: 1px solid var(--graphite); }
.kw.alt { background: var(--graphite); }
.kw span { display: block; font-size: 38px; font-weight: 800; color: var(--sig-d); line-height: 1.3; }
.kw.alt span { color: var(--sig-d); }
.kw b { font-size: 13px; font-weight: 600; line-height: 1.5; display: block; }
.chat-mini { background: var(--ink-2); border: 1px solid var(--graphite); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.cm-bot, .cm-me { padding: 12px 16px; font-size: 14px; line-height: 1.85; max-width: 88%; }
.cm-bot { background: var(--cloud); color: var(--ink); align-self: flex-start; }
.cm-me { background: var(--graphite); color: var(--linen); align-self: flex-end; }

/* ---- CTA + footer ---- */
.cta-band { background: linear-gradient(to left, var(--deep), var(--mahogany)); color: var(--white); text-align: center; padding-block: clamp(44px, 6vw, 72px); }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; line-height: 1.5; }
.cta-band p { margin-block: 8px 24px; color: #FEDCDA; }
.foot { background: var(--white); padding-block: 22px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.foot p { color: var(--stone); font-size: 14px; text-align: center; }
.logo-s { height: 48px; width: auto; }
.logo-d { height: 42px; width: auto; }

/* ---- Demo top bar + stepper ---- */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; }
.tb-logo img { height: 36px; width: auto; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper li > a, .stepper li > span { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; }
.stepper a:hover { background: var(--cloud); }
.st-c { width: 26px; height: 26px; border-radius: 50%; background: var(--linen); color: var(--text-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.st-c .ic { width: 15px; height: 15px; }
.st-t { font-size: 14px; font-weight: 600; color: var(--text-2); }
.stepper li.done .st-c { background: var(--ok); color: var(--white); }
.stepper li.now .st-c { background: var(--ink); color: var(--cloud); }
.stepper li.now .st-t { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sig); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.stepper li.locked { opacity: .5; }
.tb-restart { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--text-2); padding: 8px 10px; }
.tb-restart:hover { color: var(--ink); }
#main { padding-block: clamp(20px, 3vw, 36px) 64px; }

/* ---- Assessment ---- */
.as { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.as-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.as-count { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.as-count b { color: var(--ink); }
.prog { flex: 1; height: 8px; background: var(--linen); }
.prog i { display: block; height: 100%; background: var(--sig); transition: width .25s ease; }
.q-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); min-height: 400px; display: flex; flex-direction: column; animation: fade .24s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } }
.q-tag { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--stone); }
.q-tag b { color: var(--ink); background: var(--cloud); padding: 2px 14px; border-radius: 999px; font-weight: 600; }
.q-text { font-size: clamp(21px, 2.7vw, 30px); font-weight: 600; line-height: 1.7; margin-block: 22px 30px; }
.likert { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.lk { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 6px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 500; line-height: 1.5; transition: background .12s ease, border-color .12s ease, color .12s ease; }
.lk:hover { border-color: var(--ink); background: var(--cloud); }
.lk-dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--sand); background: var(--white); }
.lk.on { background: var(--ink); border-color: var(--ink); color: var(--cloud); }
.lk.on .lk-dot { box-shadow: inset 0 0 0 5px var(--cloud); background: var(--ink); }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.q-foot small { color: var(--stone); font-size: 13px; }
.as-side { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; }
.as-side h2 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.sm-d + .sm-d { margin-top: 10px; }
.sm-d h3 { font-size: 13px; font-weight: 700; }
.sm-s { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.85; color: var(--stone); }
.sm-s span { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--sand); flex: none; }
.sm-s.done { color: var(--ink); }
.sm-s.done span { background: var(--ink); box-shadow: none; }
.sm-s.now { color: var(--ink); font-weight: 700; }
.sm-s.now span { box-shadow: 0 0 0 3px var(--blush), inset 0 0 0 3px var(--sig); }
.an-wrap { display: grid; place-items: center; min-height: 60vh; }
.an-card { background: var(--ink); color: var(--linen); padding: clamp(28px, 5vw, 48px); width: min(100%, 460px); }
.an-card h1 { font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.an-list li { display: flex; align-items: center; gap: 12px; padding-block: 9px; opacity: .35; transition: opacity .3s ease; }
.an-list li.on { opacity: 1; }
.an-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--graphite); display: grid; place-items: center; }
.an-dot .ic { width: 15px; height: 15px; }
.an-list li.on .an-dot { background: var(--linen); color: var(--ink); }

/* ---- Report ---- */
.report { max-width: 1060px; }
.report-note { color: var(--stone); font-size: 14px; text-align: center; margin-bottom: 14px; }
.sheet { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 48px); padding-block-end: 16px; margin-bottom: 20px; position: relative; }
.sheet:not(.cover)::before { content: ''; position: absolute; inset-inline-start: 0; top: clamp(22px, 4vw, 48px); width: 8px; height: 72px; background: var(--sig); }
.sheet-foot { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.sheet-foot img { height: 34px; width: auto; }
.sheet-foot b { color: var(--text-2); font-size: 14px; }
.sheet-foot span { flex: 1; }
.sheet-foot .sf-m { height: 30px; }
.cover { background: linear-gradient(to left, var(--graphite), var(--ink)); color: var(--linen); border: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.cv-text { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 28px; }
.cv-logo { height: 44px; width: auto; align-self: flex-start; }
.cv-title h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.3; }
.cv-title p { font-size: 18px; font-weight: 300; text-align: end; }
.cv-title .cv-mark { color: var(--sig-d); font-weight: 700; font-size: 26px; }
.cv-meta { font-size: 14px; }
.cv-meta div { display: flex; gap: 8px; padding-block: 3px; }
.cv-meta dt { color: #B3ACA5; }
.cv-meta dt::after { content: ':'; }
.cv-illaf { height: 36px; width: auto; align-self: flex-start; margin-top: auto; }
.cv-art { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 28px; }
.cv-art .sunburst { width: min(100%, 440px); }
.cv-art p { color: #B3ACA5; font-size: 13px; margin-top: 8px; }
.cv-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 14px; font-size: 12px; color: var(--sand); }
.cv-legend li { display: flex; align-items: center; gap: 6px; }
.cv-legend i { width: 11px; height: 11px; flex: none; }
.ring { position: relative; width: 170px; height: 170px; flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.ring-in b { font-size: 44px; font-weight: 800; }
.ring-in small { font-size: 13px; }
.sum-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
.sum-score { background: var(--ink); color: var(--linen); padding: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.sum-level b { color: var(--cloud); }
.sum-rec { background: var(--blush); padding: 16px 18px; display: flex; gap: 12px; }
.sum-rec .ic { color: var(--sig); margin-top: 5px; }
.sum-rec p { font-weight: 500; }
.sum-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.sum-list h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.sum-list.good h3 { color: var(--ink); }
.sum-list.prio h3 { color: var(--ink); }
.sum-list li + li { margin-top: 10px; }
.mini-r { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.7; }
.mini-r b { font-weight: 700; }
.bar-t { display: block; height: 7px; background: var(--cloud); box-shadow: inset 0 0 0 1px var(--sand); overflow: hidden; }
.bar-f { display: block; height: 100%; background: var(--stone); }
.dr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dr-col { border: 1px solid var(--line); display: flex; flex-direction: column; }
.dr-col header { padding: 14px; border-top: 6px solid var(--sand); }
.dr-col header small { font-size: 12px; display: block; color: var(--stone); }
.dr-col h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.dr-p { font-size: 32px; font-weight: 800; line-height: 1.3; display: block; }
.dr-col header .lv-chip { display: inline-block; margin-top: 4px; }
.dr-col ul { padding: 12px; }
.dr-col li + li { margin-top: 10px; }
.dr-col li .mini-r { font-size: 13px; }
.dr-col p { padding: 0 12px 14px; color: var(--stone); font-size: 13px; line-height: 1.75; margin-top: auto; }
.fx-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.radar { width: 100%; direction: ltr; }
.radar .rd-l { font: 600 14px 'Alexandria', sans-serif; fill: var(--text-2); }
.radar .rd-v { font: 700 14px 'Alexandria', sans-serif; fill: var(--ink); }
.fx-list li + li { margin-top: 12px; }
.fx-list small { display: block; color: var(--stone); font-size: 12.5px; line-height: 1.7; margin-top: 4px; }
.tag { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; margin-inline-start: 8px; }
.tag-good { background: var(--info-bg); color: var(--info); }
.tag-prio { background: var(--blush); color: var(--deep); }
.sk-list { border-top: 1px solid var(--line); }
.sk { border-bottom: 1px solid var(--line); }
.sk summary { display: grid; grid-template-columns: auto minmax(0, 1.2fr) auto minmax(80px, 1fr) 48px 20px; gap: 12px; align-items: center; padding-block: 13px; cursor: pointer; list-style: none; }
.sk summary::-webkit-details-marker, .st-row summary::-webkit-details-marker { display: none; }
.sk-name { font-weight: 600; font-size: 15px; }
.sk-p { font-size: 15px; text-align: end; }
.sk-chev { color: var(--stone); transition: transform .2s ease; }
details[open] > summary .sk-chev { transform: rotate(180deg); }
.lv-chip { font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; text-align: center; }
.sk-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 4px 38px 18px 0; }
.sk-body h4 { font-size: 13px; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.sk-body p { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pr { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.pr-n { color: var(--sand); font-size: 34px; font-weight: 800; line-height: 1; }
.pr h3 { font-size: 19px; font-weight: 700; }
.pr-state { color: var(--text-2); font-size: 14px; font-weight: 600; }
.pr p { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.pr .pr-state { color: var(--text-2); }
.pr-ws { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--linen); color: var(--ink) !important; font-weight: 600; }
.pr-ws .ic { margin-top: 3px; }
.next-band { background: linear-gradient(to left, var(--graphite), var(--ink)); color: var(--linen); padding: 22px clamp(18px, 3vw, 30px); margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.next-band.achv { border-top: 3px solid var(--brass); }
.next-band h3 { font-size: 20px; font-weight: 700; }
.next-band p { font-size: 14px; color: var(--sand); }

/* ---- Path ---- */
.path { max-width: 960px; }
.path-hero { background: var(--ink) url('../img/ascent-dark.svg') center / cover no-repeat; color: var(--linen); padding: clamp(24px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.eyebrow-w { color: #B3ACA5; font-size: 14px; font-weight: 600; }
.path-hero h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; line-height: 1.4; }
.path-hero p { margin-top: 8px; color: var(--sand); max-width: 620px; font-size: 15px; }
.path-hero b { color: var(--cloud); }
.ph-ring .ring { width: 124px; height: 124px; }
.ph-ring .ring-in b { font-size: 30px; }
.unit { margin-bottom: 22px; }
.unit h2 { font-size: 20px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.unit h2 small { color: var(--stone); font-size: 13px; font-weight: 600; }
.item { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.item + .item { margin-top: 8px; }
.item > a, .item > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 18px; }
.item > a:hover { background: var(--cloud); }
.i-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--linen); color: var(--ink); display: grid; place-items: center; font-size: 17px; }
.i-t small { display: block; color: var(--stone); font-size: 13px; font-weight: 600; }
.i-t b { font-weight: 600; font-size: 16px; line-height: 1.5; }
.i-meta { color: var(--stone); font-size: 13px; white-space: nowrap; }
.i-st { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--linen); color: var(--text-2); }
.item.open .i-st { background: var(--ink); color: var(--cloud); }
.item.done .i-st { background: var(--ok); color: var(--white); }
.item.locked { opacity: .58; }
.item.feat:not(.locked) { border-inline-start: 5px solid var(--sig); }

.item-page { max-width: 960px; }
.narrow-page { max-width: 800px; }
.it-nav { display: flex; justify-content: space-between; align-items: center; color: var(--stone); font-size: 14px; margin-bottom: 14px; }
.it-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.it-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--cloud); display: grid; place-items: center; font-size: 20px; flex: none; }
.it-head small { color: var(--stone); font-size: 14px; font-weight: 600; }
.it-head h1 { font-size: clamp(23px, 3.3vw, 34px); font-weight: 700; line-height: 1.45; }
.it-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.hint { color: var(--stone); font-size: 14px; }

.read-bar { position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 40; }
.read-bar i { display: block; height: 100%; width: 0; background: var(--sig); }
.article-body { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); font-size: 17px; line-height: 2; }
.article-body h2 { font-size: 22px; font-weight: 700; margin-block: 26px 10px; }
.ar-lead { font-size: 19px; font-weight: 500; }
.traps li { display: flex; gap: 14px; padding-block: 12px; }
.traps span { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--cloud); display: grid; place-items: center; font-weight: 700; flex: none; margin-top: 4px; }
.traps b { font-size: 18px; font-weight: 700; }
.traps p { color: var(--text-2); }
.article-body blockquote { background: var(--linen); border-inline-start: 4px solid var(--sig); padding: 16px 20px; font-weight: 600; font-size: 19px; color: var(--ink); margin-block: 20px; }

.player { background: var(--ink); }
.stage { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--ink) url('../img/ascent-dark.svg') center / cover no-repeat; color: var(--linen); display: grid; place-items: center; text-align: center; }
.scene { width: 100%; padding: 20px; }
.sc-in { animation: sceneIn .5s ease; }
@keyframes sceneIn { from { opacity: 0; transform: scale(.96); } }
.sc-step { display: inline-grid; place-items: center; width: clamp(48px, 7vw, 76px); height: clamp(48px, 7vw, 76px); border-radius: 50%; background: var(--linen); color: var(--ink); font-size: clamp(22px, 3.4vw, 36px); font-weight: 800; margin-bottom: 8px; }
.sc-rule { display: block; width: 72px; height: 5px; background: var(--sig); margin: 0 auto 16px; }
.scene h2 { font-size: clamp(34px, 7vw, 76px); font-weight: 800; line-height: 1.3; }
.scene p { font-size: clamp(15px, 2.4vw, 25px); font-weight: 300; }
.big-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--linen); color: var(--ink); display: grid; place-items: center; font-size: 26px; }
.big-play .ic { fill: currentColor; }
.is-playing .big-play { display: none; }
.caption { color: var(--linen); background: var(--ink-2); padding: 12px 18px; text-align: center; min-height: 56px; font-size: 15px; }
.controls { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--linen); }
.c-btn { min-width: 36px; height: 36px; display: grid; place-items: center; font-size: 14px; }
.c-btn .ic { fill: currentColor; }
.c-speed { font-weight: 700; }
.time { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scrub { flex: 1; height: 18px; position: relative; cursor: pointer; }
.seg { position: absolute; top: 6px; inset-inline: 0; display: grid; grid-template-columns: repeat(40, 1fr); gap: 1px; height: 6px; }
.seg span { background: var(--text-2); }
.seg span.on { background: var(--sig-d); }
.scrub > i { position: absolute; top: 0; width: 3px; height: 18px; background: var(--linen); transform: translateX(-50%); }
.video-note { color: var(--stone); font-size: 13px; margin-top: 8px; }

.case-card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(20px, 3.4vw, 34px); }
.case-card p + p { margin-top: 10px; color: var(--text-2); }
.tbl-wrap { overflow-x: auto; margin-top: 16px; }
.case-t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.case-t th, .case-t td { padding: 10px 12px; border: 1px solid var(--line); text-align: start; }
.case-t thead th { background: var(--ink); color: #fff; font-weight: 600; }
.case-t tbody th { background: var(--cloud); font-weight: 600; }
.opt-block { margin-top: 22px; }
.opt-block h2 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; line-height: 1.6; }
.q-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--cloud); display: grid; place-items: center; font-size: 14px; flex: none; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; gap: 14px; align-items: flex-start; text-align: start; background: var(--white); border: 1px solid var(--line); padding: 14px 16px; line-height: 1.8; transition: background .12s ease, border-color .12s ease; }
.opt:hover:not(:disabled) { border-color: var(--ink); background: var(--cloud); }
.opt:disabled { cursor: default; }
.opt-l { width: 30px; height: 30px; border-radius: 50%; background: var(--linen); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.opt.on { border-color: var(--ink); background: var(--linen); }
.opt.on .opt-l { background: var(--ink); color: var(--cloud); }
.opt.right { background: var(--ok-bg); border-color: var(--ok); }
.opt.right .opt-l { background: var(--ok); color: var(--white); }
.opt.wrong { background: var(--err-bg); border-color: var(--err); }
.opt.wrong .opt-l { background: var(--err); color: var(--white); }
.opt.dim { opacity: .55; }
.analysis { background: var(--ink); color: var(--linen); padding: 20px 22px; margin-top: 12px; }
.analysis h3 { display: flex; gap: 8px; align-items: center; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.analysis .ic { color: var(--sig-d); }
.quiz-res { display: flex; align-items: center; gap: 22px; background: var(--white); border: 1px solid var(--line); padding: 20px; margin-top: 22px; font-weight: 600; }
.quiz-res .ring { width: 104px; height: 104px; }
.quiz-res .ring-in b { font-size: 26px; }

/* ---- Scenario ---- */
.scn-intro { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.scn-intro .checks { margin-block: 16px 22px; }
.stage-dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.stage-dots li { background: var(--linen); padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.stage-dots span { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.stage-dots small { font-size: 13px; font-weight: 600; line-height: 1.4; }
.stage-dots li.now { background: var(--ink); color: var(--cloud); }
.stage-dots li.now span { color: var(--ink); }
.stage-dots li.done { background: var(--graphite); color: var(--linen); }
.stage-dots li.done span { color: var(--ink); }
.scn-card { background: var(--ink); color: var(--linen); padding: clamp(20px, 3.5vw, 36px); animation: fade .24s ease; }
.scn-label { color: #B3ACA5; font-size: 14px; font-weight: 600; }
.scn-text { font-size: clamp(18px, 2.3vw, 23px); font-weight: 500; line-height: 1.9; margin-top: 6px; }
.scn-note { display: flex; gap: 8px; color: var(--sand); font-size: 14px; margin-top: 12px; }
.scn-note .ic { margin-top: 3px; }
.fb-card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px); animation: fade .24s ease; }
.fb-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.fb-badge { padding: 4px 16px; border-radius: 999px; color: var(--white); font-size: 14px; font-weight: 700; background: var(--text-2); }
.fb-strong .fb-badge { background: var(--ok); }
.fb-good .fb-badge { background: var(--info); }
.fb-weak.fb-card .fb-badge, .fb-very_weak .fb-badge { background: var(--err); }
.fb-weak.fb-card .fb-badge { background: var(--warn); }
.fb-weak.fb-card { background: var(--white); }
.fb-score { font-weight: 800; font-size: 19px; }
.fb-choice { font-weight: 600; margin-bottom: 12px; line-height: 1.85; }
.scn-hero { background: var(--ink); color: var(--linen); padding: clamp(20px, 3.5vw, 36px); display: flex; align-items: center; gap: 26px; }
.scn-hero .ring { width: 150px; height: 150px; }
.scn-hero h2 { font-size: 23px; font-weight: 700; }
.scn-hero p { color: var(--sand); font-size: 15px; }
.route { display: flex; gap: clamp(14px, 3vw, 30px); margin-top: 14px; }
.rt-col small { color: #B3ACA5; font-size: 12px; }
.rt-nodes { display: flex; gap: 7px; margin-top: 4px; }
.rt-n { width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); }
.rt-n.on.excellent { background: var(--ok-d); }
.rt-n.on.good { background: var(--info-d); }
.rt-n.on.weak { background: var(--err-d); }
.stage-list { margin-top: 22px; }
.stage-list h2, .lessons h2 { font-size: 19px; font-weight: 700; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.st-row { background: var(--white); border: 1px solid var(--line); }
.st-row + .st-row { margin-top: 8px; }
.st-row summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.st-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--cloud); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.st-l { flex: 1; font-weight: 600; }
.rate { font-style: normal; font-size: 13px; font-weight: 700; padding: 2px 14px; border-radius: 999px; }
.rate-excellent { background: var(--ok-bg); color: var(--ok); }
.rate-good { background: var(--info-bg); color: var(--info); }
.rate-weak { background: var(--err-bg); color: var(--err); }
.st-b { padding: 0 16px 16px; }
.lessons { margin-top: 22px; background: var(--linen); padding: 20px 22px; }
.lessons .ic { color: var(--sig); }
.lessons li { padding-block: 5px; font-weight: 500; }

/* ---- Coach ---- */
.coach { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.chat { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 560px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ink); color: var(--linen); }
.chat-head h1 { font-size: 19px; font-weight: 700; line-height: 1.4; }
.chat-head p { font-size: 12.5px; color: var(--sand); line-height: 1.5; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--cloud); display: grid; place-items: center; flex: none; font-size: 13px; }
.av.lg { width: 46px; height: 46px; font-size: 17px; background: var(--linen); color: var(--ink); }
.kw-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.kw-steps li { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; color: var(--stone); }
.kw-steps span { font-weight: 800; font-size: 17px; line-height: 1; }
.kw-steps small { font-size: 12px; line-height: 1.4; }
.kw-steps li.now { background: var(--ink); color: var(--cloud); }
.kw-steps li.done { color: var(--ok); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--cloud); scroll-behavior: smooth; }
.msg { display: flex; gap: 8px; max-width: 86%; animation: fade .22s ease; }
.msg.me { align-self: flex-end; }
.msg.bot { align-self: flex-start; }
.bub { background: var(--white); border: 1px solid var(--line); padding: 11px 15px; font-size: 15px; line-height: 1.9; }
.msg.me .bub { background: var(--ink); border-color: var(--ink); color: var(--cloud); }
.typing .bub { display: flex; gap: 5px; padding-block: 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.facts { min-width: min(320px, 58vw); }
.facts li { display: flex; justify-content: space-between; gap: 18px; padding-block: 5px; border-bottom: 1px solid var(--linen); font-size: 14px; }
.facts li:last-child { border: 0; }
.facts span { color: var(--stone); }
.goal-card { border-inline-start: 4px solid var(--sig); padding-inline-start: 12px; }
.goal-card small { color: var(--stone); font-weight: 700; }
.goal-card p { font-weight: 600; }
.plan-card li { padding-block: 7px; border-bottom: 1px solid var(--linen); font-size: 14px; }
.plan-card li:last-child { border: 0; }
.plan-card small { display: block; color: var(--stone); font-weight: 700; font-size: 12.5px; }
.chat-foot { border-top: 1px solid var(--line); padding: 12px 16px; min-height: 66px; }
.chip-q { font-size: 13px; color: var(--stone); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--ink); color: var(--ink); padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; text-align: start; line-height: 1.6; transition: background .12s ease, color .12s ease; }
.chip:hover { background: var(--ink); color: var(--cloud); }
.end-card { background: var(--ink); color: var(--linen); border-top: 3px solid var(--brass); padding: 24px; text-align: center; margin-top: 8px; animation: fade .3s ease; }
.end-card h2 { font-size: 22px; font-weight: 700; }
.end-card p { color: var(--sand); font-size: 14px; margin-bottom: 14px; }
.end-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ctx { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; position: sticky; top: 92px; }
.ctx h2 { font-size: 17px; font-weight: 700; }
.ctx > p { color: var(--stone); font-size: 13px; line-height: 1.7; margin-bottom: 8px; }
.ctx-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px; border-bottom: 1px solid var(--linen); }
.ctx-list li:last-child { border: 0; }
.ctx-list small { display: block; color: var(--stone); font-size: 12px; line-height: 1.5; }
.ctx-list b { font-size: 14px; font-weight: 600; line-height: 1.5; }
.ctx-list em { font-style: normal; font-size: 11.5px; color: var(--text-2); background: var(--linen); padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.pulse { animation: pulse 1.5s ease; }
@keyframes pulse { 0%, 60% { background: var(--blush); } 100% { background: transparent; } }

/* ---- Tablet (≤900px) ---- */
@media (max-width: 900px) {
  body.in-demo { background-image: none; }
  .hero-grid, .split, .fx-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 340px; }
  .dm-grid, .dr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .as, .coach { grid-template-columns: minmax(0, 1fr); }
  .as-side { order: 2; }
  .as-side .sm-d { display: inline-block; vertical-align: top; width: 49%; }
  .sum-grid { grid-template-columns: minmax(0, 1fr); }
  .pr-grid { grid-template-columns: minmax(0, 1fr); }
  .cover { grid-template-columns: minmax(0, 1fr); }
  .cv-art { order: -1; }
  .chat { height: 76vh; min-height: 480px; }
  .ctx { position: static; }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
  .tabbed::before, .sheet:not(.cover)::before { width: 6px; height: 54px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div { flex-direction: column; gap: 6px; text-align: center; padding: 18px 8px; border: 0; }
  .journey { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .journey::before { top: 14px; bottom: 14px; inset-inline: auto; inset-inline-start: 31px; border-top: 0; border-inline-start: 2px solid var(--sig); }
  .j-node { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; text-align: start; }
  .j-dot { width: 64px; height: 64px; margin: 0; grid-row: span 2; font-size: 20px; }
  .j-node p { margin: 0; max-width: none; }
  .pipe { grid-template-columns: minmax(0, 1fr); }
  .pipe li { flex-direction: row; text-align: start; padding: 9px 12px; gap: 10px; }
  .pipe small { margin-inline-start: auto; }
  .lv b { font-size: 12px; }
  .lv span { font-size: 11px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-row { flex-wrap: wrap; justify-content: center; }
  .foot p { order: 3; width: 100%; }
  .kw span { font-size: 28px; }
  .kw b { font-size: 12px; }
  .topbar-in { min-height: 58px; gap: 6px; }
  .tb-logo img { height: 26px; }
  .stepper { gap: 0; }
  .stepper li > a, .stepper li > span { padding: 5px 6px; gap: 5px; }
  .stepper li:not(.now) .st-t { display: none; }
  .st-t { font-size: 13px; }
  .tb-restart span { display: none; }
  .q-card { min-height: 0; }
  .likert { grid-template-columns: minmax(0, 1fr); }
  .lk { flex-direction: row; padding: 13px 14px; }
  .q-foot small { width: 100%; order: 3; }
  .as-side .sm-d { width: 100%; display: block; }
  .sum-lists { grid-template-columns: minmax(0, 1fr); }
  .sk summary { grid-template-columns: auto minmax(0, 1fr) auto 20px; row-gap: 6px; }
  .sk-name { grid-column: 2 / 3; }
  .lv-chip { grid-column: 3 / 5; grid-row: 1; }
  .sk-bar { grid-column: 2 / 3; grid-row: 2; }
  .sk-p { grid-column: 3 / 4; grid-row: 2; }
  .sk-chev { grid-column: 4 / 5; grid-row: 2; }
  .sk-body { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .path-hero { flex-direction: column; align-items: flex-start; }
  .item > a, .item > div { grid-template-columns: auto minmax(0, 1fr) auto; }
  .i-meta { display: none; }
  .scn-hero, .quiz-res { flex-direction: column; text-align: center; }
  .route { justify-content: center; }
  .stage-dots small { display: none; }
  .stage-dots li { justify-content: center; }
  .msg { max-width: 94%; }
  .chips { flex-direction: column; }
  .chip { width: 100%; }
  .kw-steps small { display: none; }
  .btn { width: 100%; }
  .hero-cta .btn { width: auto; flex: 1 1 200px; }
  .controls { gap: 6px; padding-inline: 8px; }
  .time { font-size: 12px; }
}

@media (max-width: 460px) {
  .dm-grid, .dr-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-m { height: 40px; }
  .logo-i { height: 32px; }
}

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