@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Quicksand:wght@400;500;600;700&family=Architects+Daughter&family=Permanent+Marker&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   AnalyticLancer Guides - design system
   Conforms to BRAND-GUIDELINES.md (dark, Poppins, accent purple,
   discipline colours: Design green / Analyze blue / Engineer red)
   ============================================================ */

:root {
    --bg: #0c0c0c;
    --accent: #8c5cdd;
    --accent-deep: #4c2882;
    --analyze: #64B5F6;
    --design: #81C784;
    --engineer: #FF5252;
    --gold: #F7C64A;
    --txt: rgba(255,255,255,0.9);
    --txt-2: rgba(255,255,255,0.65);
    --txt-3: rgba(255,255,255,0.45);
    --glass-bg: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.1);
    --maxw: 72rem;
    --readw: 46rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
    background: var(--bg);
    font-family: 'Poppins', sans-serif;
    color: var(--txt);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
a { color: inherit; }

.font-analyze  { font-family: 'Quicksand', sans-serif; }
.font-design   { font-family: 'Architects Daughter', cursive; }
.font-design-h { font-family: 'Permanent Marker', cursive; }
.font-engineer { font-family: 'Space Mono', monospace; }
.tri-text {
    background: linear-gradient(90deg,#81C784 0%,#64B5F6 50%,#FF5252 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-text { color: var(--accent); }

/* Brand background stack: parallax halo + stars (behind all content) */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    opacity: 0.55;
    background:
        radial-gradient(circle at center, rgba(140,92,221,0.15), rgba(0,0,0,0) 70%),
        radial-gradient(circle at 20% 80%, rgba(100,181,246,0.10), rgba(0,0,0,0) 70%),
        radial-gradient(circle at 80% 20%, rgba(129,199,132,0.10), rgba(0,0,0,0) 70%),
        radial-gradient(circle at 60% 40%, rgba(255,82,82,0.10), rgba(0,0,0,0) 70%);
}
body::after {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0.18;
    background-image:
        radial-gradient(1px 1px at 25% 25%, #fff 100%, transparent 0),
        radial-gradient(1px 1px at 50% 50%, #fff 100%, transparent 0),
        radial-gradient(2px 2px at 75% 75%, #fff 100%, transparent 0),
        radial-gradient(1px 1px at 10% 90%, #fff 100%, transparent 0),
        radial-gradient(1px 1px at 90% 10%, #fff 100%, transparent 0);
    background-size: 550px 550px;
}

.hidden { display: none !important; }
body.guide-wizard-active { height: 100vh; overflow: hidden; }
body.guide-wizard-done { overflow: auto; height: auto; min-height: 100%; }
body.guide-page-scroll { overflow: auto; height: auto; min-height: 100%; }

.glass { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; }
.engineer-motif { border: 1px solid rgba(255,82,82,0.4); background: rgba(255,82,82,0.05); border-radius: 16px; }
.design-motif   { border: 1px solid rgba(129,199,132,0.4); background: rgba(129,199,132,0.05); border-radius: 16px; }
.analyze-motif  { border: 1px solid rgba(100,181,246,0.35); background: rgba(100,181,246,0.05); border-radius: 16px; }

/* ============================================================
   GLOBAL NAV (brand) - injected by guides.js
   ============================================================ */
.al-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12,12,12,0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}
.al-nav-inner {
    max-width: var(--maxw); margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.al-logo {
    font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
    color: #fff; text-decoration: none; flex-shrink: 0;
    transition: transform 0.2s;
}
.al-logo:hover { transform: scale(1.04); }
.al-logo span { color: var(--accent); }
.al-nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.al-nav-link {
    padding: 0.45rem 0.85rem; border-radius: 999px;
    font-size: 0.85rem; font-weight: 500; color: var(--txt-2);
    text-decoration: none; border: 1px solid transparent; transition: all 0.18s;
    white-space: nowrap;
}
.al-nav-link:hover { color: #fff; background: rgba(140,92,221,0.12); border-color: rgba(140,92,221,0.35); }
.al-nav-link.is-active { color: #fff; background: rgba(140,92,221,0.15); border-color: rgba(140,92,221,0.4); }
.al-cta {
    padding: 0.5rem 1.15rem; border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
    color: #fff; font-size: 0.85rem; font-weight: 600; text-decoration: none;
    box-shadow: 0 4px 18px rgba(140,92,221,0.3); white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s; flex-shrink: 0;
}
.al-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(140,92,221,0.45); }
.al-burger {
    display: none; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 999px;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05);
    color: #fff; cursor: pointer; flex-shrink: 0; transition: all 0.18s;
}
.al-burger:hover { background: rgba(140,92,221,0.15); border-color: rgba(140,92,221,0.4); }
.al-mobile {
    display: none; flex-direction: column; gap: 0.25rem;
    padding: 0.5rem 1.5rem 1rem; border-top: 1px solid var(--glass-border);
}
.al-mobile .al-nav-link { padding: 0.7rem 0.85rem; }
.al-mobile.open { display: flex; }

@media (max-width: 820px) {
    .al-nav-links { display: none; }
    .al-burger { display: inline-flex; }
    .al-cta { padding: 0.45rem 0.9rem; }
}
@media (max-width: 380px) {
    .al-cta { display: none; }
}

/* ============================================================
   GLOBAL FOOTER (brand) - injected by guides.js
   ============================================================ */
.al-footer {
    position: relative; margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(12,12,12,0.6); backdrop-filter: blur(8px);
}
.al-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 2rem; }
.al-footer-top {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
    margin-bottom: 2.5rem;
}
.al-footer-brand .al-logo { font-size: 1.4rem; }
.al-footer-tag { margin-top: 0.75rem; font-size: 0.85rem; color: var(--txt-3); max-width: 18rem; }
.al-footer-disc { margin-top: 1rem; font-size: 0.85rem; font-weight: 600; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.al-footer-disc .d { padding: 0.1rem 0; }
.al-footer-disc .dot { color: rgba(255,255,255,0.25); }
.al-footer-col h4 {
    font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--txt-3); font-weight: 600; margin-bottom: 0.85rem;
}
.al-footer-col a {
    display: block; font-size: 0.88rem; color: var(--txt-2);
    text-decoration: none; padding: 0.3rem 0; transition: color 0.18s;
}
.al-footer-col a:hover { color: var(--accent); }
.al-footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--glass-border);
}
.al-footer-copy { font-size: 0.8rem; color: var(--txt-3); }
.al-social { display: flex; gap: 0.65rem; }
.al-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,0.04);
    color: var(--txt-2); transition: all 0.18s;
}
.al-social a:hover { color: #fff; border-color: rgba(140,92,221,0.45); background: rgba(140,92,221,0.12); }

@media (max-width: 720px) {
    .al-footer-top { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
    .al-footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   ARTICLE: blog on top, interactive guide at bottom
   ============================================================ */
.guide-article-main {
    max-width: var(--readw); margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    display: flex; flex-direction: column; gap: 0;
}
.guide-path-main { max-width: var(--readw); }

/* Blog column */
.guide-blog { min-width: 0; }
.blog-back {
    display: inline-block; font-size: 0.82rem; color: var(--txt-3);
    text-decoration: none; margin-bottom: 1.25rem; transition: color 0.18s;
}
.blog-back:hover { color: var(--accent); }
.blog-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.1; margin: 0.75rem 0 0.6rem;
}
.blog-meta { font-size: 0.82rem; color: var(--txt-3); margin-bottom: 1.25rem; line-height: 1.6; }
.blog-path-link { color: var(--accent); text-decoration: none; }
.blog-path-link:hover { text-decoration: underline; }
.blog-intro, .blog-lead {
    font-size: 1.05rem; color: var(--txt-2); line-height: 1.65; margin-bottom: 1.75rem;
}
.blog-body { margin-bottom: 2rem; }
.blog-block { margin-bottom: 1.75rem; }
.blog-block h2 {
    font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em;
    margin-bottom: 0.65rem; color: rgba(255,255,255,0.92);
}
.blog-block p { font-size: 0.95rem; color: var(--txt-2); line-height: 1.65; }
.blog-list {
    list-style: none; display: grid; gap: 0.45rem; margin-top: 0.5rem;
}
.blog-list li {
    font-size: 0.92rem; color: var(--txt-2); line-height: 1.5;
    padding-left: 1.1rem; position: relative;
}
.blog-list li::before {
    content: ''; position: absolute; left: 0; top: 0.55em;
    width: 5px; height: 5px; border-radius: 999px; background: var(--accent); opacity: 0.7;
}
.blog-list-path { margin-bottom: 2rem; }
.blog-faq { margin: 2rem 0; }
.blog-faq > h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.85rem; }
.blog-faq .faq-item { margin-bottom: 0.5rem; }
.guide-blog { margin-bottom: 0; }

/* Interactive guide (below article) */
.guide-interactive {
    position: relative; top: auto;
    margin-top: 3rem;
    border-radius: 18px; overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(12,12,12,0.75); backdrop-filter: blur(12px);
}
.guide-interactive-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--glass-border); }
.guide-interactive-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-bottom: 0.65rem;
}
.guide-interactive-eyebrow {
    font-family: 'Space Mono', monospace; font-size: 0.62rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); margin: 0;
}
.guide-interactive-progress { height: 3px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.guide-interactive-step { font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--txt-3); flex-shrink: 0; }
.guide-wizard-shell { padding: 0 0 0.5rem; }
body[data-discipline="analyze"] .guide-interactive-head .guide-interactive-eyebrow { color: var(--analyze); }
body[data-discipline="design"]  .guide-interactive-head .guide-interactive-eyebrow { color: var(--design); }
body[data-discipline="engineer"] .guide-interactive-head .guide-interactive-eyebrow { color: var(--engineer); }

/* Path checklist section */
.guide-path-checklist { margin-top: 0.5rem; }
.guide-path-checklist-head { margin-bottom: 1.25rem; }
.guide-path-checklist-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.guide-path-checklist-sub { font-size: 0.88rem; color: var(--txt-3); }


/* ============================================================
   HUB (blog index)
   ============================================================ */
.guide-hub-main { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 1rem; }

.hub-hero { max-width: var(--readw); margin-bottom: 2.5rem; }
.hub-eyebrow {
    font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--accent); font-weight: 500; margin-bottom: 0.9rem;
}
.hub-title {
    font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1rem;
}
.hub-lead { color: var(--txt-2); font-size: 1.05rem; line-height: 1.6; max-width: 36rem; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.hub-stat {
    display: inline-flex; align-items: baseline; gap: 0.4rem;
    padding: 0.5rem 0.9rem; border-radius: 999px;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    font-size: 0.8rem; color: var(--txt-2);
}
.hub-stat b { font-family: 'Space Mono', monospace; font-size: 0.95rem; color: #fff; }

.hub-section { margin: 0 0 3rem; }
.hub-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.hub-section-label {
    font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--txt-3); font-weight: 600;
}
.hub-section-label strong { color: var(--txt-2); font-weight: 600; }
.hub-section-hint { font-size: 0.8rem; color: var(--txt-3); }

.hub-panel { padding: 1.5rem; }
.hub-quick-label { font-weight: 600; font-size: 1rem; margin-bottom: 0.35rem; }
.hub-quick-sub { font-size: 0.85rem; color: var(--txt-3); margin-bottom: 1.1rem; }
.hub-resume { margin-top: 1rem; font-size: 0.85rem; color: var(--accent); display: none; }
.hub-resume a { font-weight: 600; }

/* Discipline filter */
.hub-discipline-bar { margin-bottom: 2rem; }
.hub-discipline-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txt-3); font-weight: 600; margin-bottom: 0.7rem; }
.discipline-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.discipline-chip {
    padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    color: var(--txt-2); cursor: pointer; transition: all 0.18s;
}
.discipline-chip:hover { border-color: rgba(255,255,255,0.25); color: #fff; }
.discipline-chip.active { color: #fff; border-color: rgba(140,92,221,0.5); background: rgba(140,92,221,0.14); }
.discipline-chip.discipline-analyze.active  { border-color: rgba(100,181,246,0.55); background: rgba(100,181,246,0.14); color: var(--analyze); }
.discipline-chip.discipline-design.active   { border-color: rgba(129,199,132,0.55); background: rgba(129,199,132,0.14); color: var(--design); }
.discipline-chip.discipline-engineer.active { border-color: rgba(255,82,82,0.55); background: rgba(255,82,82,0.14); color: var(--engineer); }

/* Pathfinder "doors" (interactive entry) */
.chip-grid { display: grid; gap: 0.6rem; }
.hub-panel .chip-grid { grid-template-columns: repeat(2, 1fr); }
.pf-door {
    display: flex; align-items: center; gap: 0.85rem; text-align: left;
    padding: 1rem 1.1rem; border-radius: 14px; cursor: pointer; width: 100%;
    color: inherit; font: inherit; transition: transform 0.18s, border-color 0.18s;
}
.pf-door:hover { transform: translateY(-2px); }
.pf-door:disabled { cursor: default; opacity: 0.5; transform: none; }
.pf-door-arrow { margin-left: auto; color: var(--txt-3); font-family: 'Space Mono', monospace; }
.pf-door .chip-title { font-size: 0.92rem; font-weight: 600; display: block; }
.pf-door .chip-sub { font-size: 0.74rem; color: var(--txt-3); margin-top: 2px; display: block; }

/* Path + guide cards */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.path-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 1.4rem; transition: transform 0.2s, border-color 0.2s; }
.path-card:hover { transform: translateY(-3px); }
.path-card-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin: 0.55rem 0 0.35rem; }
.path-card-door { font-size: 0.88rem; color: var(--txt-2); line-height: 1.5; }
.path-card-foot { margin-top: auto; padding-top: 0.9rem; font-family: 'Space Mono', monospace; font-size: 0.74rem; opacity: 0.75; }
.path-card-meta { font-family: 'Space Mono', monospace; font-size: 0.72rem; color: var(--txt-3); }

.hub-card { display: flex; flex-direction: column; padding: 1.25rem; text-decoration: none; color: inherit; transition: transform 0.2s, border-color 0.2s; }
.hub-card:hover { transform: translateY(-3px); }
.hub-card-meta { font-family: 'Space Mono', monospace; font-size: 0.72rem; color: var(--txt-3); margin-bottom: 0.5rem; }
.hub-card-title { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.4rem; line-height: 1.3; }
.hub-card-teaser { font-size: 0.85rem; color: var(--txt-2); line-height: 1.5; }
.hub-card-foot { margin-top: auto; padding-top: 0.85rem; font-family: 'Space Mono', monospace; font-size: 0.74rem; opacity: 0.7; }

.hub-card-feature { padding: 1.6rem; }
.hub-card-feature .hub-card-title { font-size: 1.45rem; }
.hub-card-feature .hub-card-teaser { font-size: 0.95rem; }

/* Discipline badge */
.hub-card-disc {
    display: inline-block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
    font-weight: 700; align-self: flex-start; padding: 0.2rem 0.5rem; border-radius: 6px;
}
.hub-card-disc.disc-analyze  { color: var(--analyze); background: rgba(100,181,246,0.1); border: 1px solid rgba(100,181,246,0.25); }
.hub-card-disc.disc-design   { color: var(--design); background: rgba(129,199,132,0.1); border: 1px solid rgba(129,199,132,0.25); font-family: 'Architects Daughter', cursive; letter-spacing: 0.04em; }
.hub-card-disc.disc-engineer { color: var(--engineer); background: rgba(255,82,82,0.1); border: 1px solid rgba(255,82,82,0.25); font-family: 'Space Mono', monospace; }
.hub-card .hub-card-disc, .path-card .hub-card-disc { margin-bottom: 0.6rem; }

.hub-empty { padding: 1.25rem; font-size: 0.88rem; color: var(--txt-3); }

@media (max-width: 640px) {
    .hub-panel .chip-grid, .hub-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PATH (checklist page)
   ============================================================ */
.path-list { padding: 0; list-style: none; }
.path-step {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.1rem 1.25rem; margin-bottom: 0.65rem;
}
.path-step-num {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Mono', monospace; font-size: 0.85rem;
    border: 1px solid var(--glass-border); color: var(--txt-3);
}
.path-step.done .path-step-num { border-color: currentColor; color: inherit; }
.path-step-tag { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--txt-3); }
.path-step-title { font-weight: 600; margin: 0.2rem 0 0.4rem; }
.path-step-link { font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.path-cta-box { padding: 1.5rem; text-align: center; margin-top: 1.75rem; }
.path-cta-box p { font-size: 0.9rem; color: var(--txt-2); margin-bottom: 1rem; }

/* ============================================================
   WIZARD (interactive questioning)
   ============================================================ */

/* Inline wizard on article pages (blog + interactive split) */
body.guide-article-page .w-stage {
    position: relative; top: auto; left: auto; right: auto; bottom: auto;
    padding: 1.25rem; overflow: visible; min-height: 0;
}
body.guide-article-page .w-bar {
    position: relative; padding: 0.85rem 1.25rem 1.25rem;
    background: transparent; border-top: 1px solid var(--glass-border);
    backdrop-filter: none;
}
body.guide-article-page .w-card { max-width: none; }
body.guide-article-page .w-heading { font-size: clamp(1.2rem, 3.5vw, 1.55rem); }
body.guide-article-page .w-label { display: none; }
body.guide-article-page .w-done {
    display: none; padding: 1.5rem 1.25rem 1.75rem; text-align: center;
    border-top: 1px solid var(--glass-border);
}
body.guide-article-page.guide-wizard-done .guide-wizard-shell { display: none; }
body.guide-article-page.guide-wizard-done .guide-interactive-head { display: none; }
body.guide-article-page.guide-wizard-done .w-done { display: flex; flex-direction: column; align-items: center; }
body.guide-article-page.guide-wizard-active { height: auto; overflow: visible; }

.w-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    display: flex; align-items: center; gap: 1rem;
    padding: 0 1.25rem; height: 56px;
    background: rgba(12,12,12,0.85);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
}
.w-nav-logo { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.w-nav-logo span { color: var(--accent); }
.w-nav-sep { color: rgba(255,255,255,0.2); }
.w-nav-back { font-size: 0.82rem; color: var(--txt-3); text-decoration: none; transition: color 0.18s; }
.w-nav-back:hover { color: #fff; }
.w-nav a { text-decoration: none; }
.w-nav-step { margin-left: auto; font-family: 'Space Mono', monospace; font-size: 0.72rem; color: rgba(255,82,82,0.8); }
body[data-discipline="analyze"] .w-nav-step { color: rgba(100,181,246,0.85); }
body[data-discipline="design"]  .w-nav-step { color: rgba(129,199,132,0.85); }

.w-progress { position: fixed; top: 56px; left: 0; right: 0; z-index: 60; height: 3px; background: rgba(255,255,255,0.06); }
.w-progress-fill { height: 100%; background: var(--engineer); transition: width 0.4s cubic-bezier(.4,0,.2,1); }
body[data-discipline="analyze"] .w-progress-fill { background: var(--analyze); }
body[data-discipline="design"]  .w-progress-fill { background: var(--design); }

.w-stage {
    position: fixed; top: 59px; left: 0; right: 0; bottom: 76px;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; overflow-y: auto;
}
.w-card { width: 100%; max-width: 500px; }
.w-step { display: none; }
.w-step.active { display: block; animation: stepIn 0.32s cubic-bezier(.4,0,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.w-label {
    font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.25em;
    text-transform: uppercase; color: rgba(255,82,82,0.75); margin-bottom: 0.85rem;
}
body[data-discipline="analyze"] .w-label { color: rgba(100,181,246,0.8); }
body[data-discipline="design"]  .w-label { color: rgba(129,199,132,0.8); }
.w-heading { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.w-sub { font-size: 0.9rem; color: var(--txt-3); margin-bottom: 1.4rem; }

/* Selectable chips */
.chip {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.9rem 1.05rem; border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.03); border-radius: 14px;
    cursor: pointer; text-align: left; width: 100%;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
    color: inherit; font: inherit;
}
.chip:hover { border-color: rgba(255,82,82,0.4); transform: translateY(-1px); }
.chip.sel { border-color: rgba(255,82,82,0.7); background: rgba(255,82,82,0.1); box-shadow: 0 0 0 1px rgba(255,82,82,0.2); }
body[data-discipline="analyze"] .chip:hover { border-color: rgba(100,181,246,0.45); }
body[data-discipline="analyze"] .chip.sel { border-color: rgba(100,181,246,0.7); background: rgba(100,181,246,0.1); box-shadow: 0 0 0 1px rgba(100,181,246,0.2); }
body[data-discipline="design"] .chip:hover { border-color: rgba(129,199,132,0.45); }
body[data-discipline="design"] .chip.sel { border-color: rgba(129,199,132,0.7); background: rgba(129,199,132,0.1); box-shadow: 0 0 0 1px rgba(129,199,132,0.2); }
.chip-icon { font-size: 1.3rem; flex-shrink: 0; }
.chip-title { font-size: 0.9rem; font-weight: 600; display: block; }
.chip-sub { font-size: 0.73rem; color: var(--txt-3); margin-top: 2px; display: block; }

/* Flow rows */
.row-grid { display: grid; gap: 0.55rem; }
.row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 14px; }
.row-glass   { border: 1px solid var(--glass-border); background: rgba(255,255,255,0.04); }
.row-eng     { border: 1px solid rgba(255,82,82,0.45); background: rgba(255,82,82,0.06); }
.row-analyze { border: 1px solid rgba(100,181,246,0.45); background: rgba(100,181,246,0.06); }
.row-design  { border: 1px solid rgba(129,199,132,0.45); background: rgba(129,199,132,0.06); }
.row-icon { font-size: 1.5rem; flex-shrink: 0; }
.row-label { font-family: 'Space Mono', monospace; font-size: 0.62rem; color: var(--txt-3); margin-bottom: 2px; }
.row-body { font-size: 0.85rem; color: var(--txt-2); }
.row-connector { text-align: center; font-family: 'Space Mono', monospace; font-size: 0.68rem; color: rgba(255,82,82,0.6); padding: 0.1rem 0; }
body[data-discipline="analyze"] .row-connector { color: rgba(100,181,246,0.6); }
body[data-discipline="design"]  .row-connector { color: rgba(129,199,132,0.6); }

/* Checklists */
.check-list { display: grid; gap: 0.5rem; }
.check-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1rem; border-radius: 12px; font-family: 'Space Mono', monospace; font-size: 0.78rem; }
.check-ok   { border: 1px solid rgba(129,199,132,0.3); background: rgba(129,199,132,0.05); }
.check-ok span   { color: var(--design); }
.check-fail { border: 1px solid rgba(255,82,82,0.4); background: rgba(255,82,82,0.06); }
.check-fail span { color: var(--engineer); }
.check-note { font-size: 0.74rem; color: var(--txt-3); margin-top: 0.85rem; text-align: center; }

/* Answer boxes */
.answer-box { border-radius: 18px; padding: 1.85rem; text-align: center; }
.answer-yes   { border: 1px solid rgba(255,82,82,0.5); background: rgba(255,82,82,0.08); }
.answer-maybe { border: 1px solid rgba(100,181,246,0.4); background: rgba(100,181,246,0.06); }
.answer-big { font-family: 'Space Mono', monospace; font-size: 2.4rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1; }
.answer-big.red  { color: var(--engineer); }
.answer-big.blue { color: var(--analyze); }
.answer-big.green{ color: var(--design); }
.answer-body { font-size: 0.95rem; font-weight: 600; line-height: 1.45; }
.answer-note { font-size: 0.8rem; color: var(--txt-3); margin-top: 0.5rem; }

/* Stat rows */
.stat-grid { display: grid; gap: 0.55rem; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.05rem; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.03); }
.stat-label { font-size: 0.84rem; color: var(--txt-2); }
.stat-val { font-family: 'Space Mono', monospace; font-size: 0.92rem; font-weight: 700; color: var(--analyze); }

/* CTA cards inside wizard */
.cta-grid { display: grid; gap: 0.6rem; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.15rem; border-radius: 14px; text-decoration: none; color: inherit; transition: transform 0.18s, border-color 0.18s; }
.cta-card:hover { transform: translateY(-2px); }
.cta-glass   { border: 1px solid var(--glass-border); background: rgba(255,255,255,0.04); }
.cta-eng     { border: 1px solid rgba(255,82,82,0.45); background: rgba(255,82,82,0.06); }
.cta-analyze { border: 1px solid rgba(100,181,246,0.45); background: rgba(100,181,246,0.06); }
.cta-design  { border: 1px solid rgba(129,199,132,0.45); background: rgba(129,199,132,0.06); }
.cta-title { font-weight: 600; font-size: 0.9rem; }
.cta-sub { font-size: 0.73rem; color: var(--txt-3); margin-top: 2px; }
.cta-eng .cta-title { color: var(--engineer); }
.cta-analyze .cta-title { color: var(--analyze); }
.cta-design .cta-title { color: var(--design); }

/* Bottom action bar */
.w-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    display: flex; gap: 0.7rem; padding: 0.9rem 1.25rem;
    background: rgba(12,12,12,0.94); border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
}
.w-bar-inner { width: 100%; max-width: 500px; margin: 0 auto; display: flex; gap: 0.7rem; }
.btn-back { padding: 0.75rem 1.15rem; border-radius: 999px; border: 1px solid var(--glass-border); background: transparent; color: var(--txt-3); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.18s; }
.btn-back:hover:not(:disabled) { color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-back:disabled { opacity: 0.3; cursor: default; }
.btn-next { flex: 1; padding: 0.85rem; border-radius: 999px; border: none; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); color: #fff; font-size: 0.9rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 18px rgba(140,92,221,0.3); transition: transform 0.18s; }
.btn-next:hover:not(:disabled) { transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.35; cursor: default; box-shadow: none; }

/* Done screen */
body.guide-wizard-done .w-stage,
body.guide-wizard-done .w-bar,
body.guide-wizard-done .w-progress { display: none !important; }
.w-done { display: none; padding: 6rem 1.5rem 4rem; flex-direction: column; align-items: center; text-align: center; }
body.guide-wizard-done .w-done { display: flex; }
.done-icon {
    font-size: 1.6rem; width: 64px; height: 64px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
    background: rgba(140,92,221,0.15); border: 1px solid rgba(140,92,221,0.4); color: var(--accent);
}
.done-heading { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.done-sub { font-size: 0.92rem; color: var(--txt-2); margin-bottom: 1.75rem; max-width: 360px; line-height: 1.5; }
.done-cta { display: inline-block; padding: 0.95rem 1.85rem; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 6px 22px rgba(140,92,221,0.3); transition: transform 0.18s; margin-bottom: 0.85rem; }
.done-cta:hover { transform: translateY(-1px); }
.done-next { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 999px; border: 1px solid rgba(255,82,82,0.45); color: var(--engineer); font-family: 'Space Mono', monospace; font-size: 0.8rem; text-decoration: none; margin-bottom: 1.25rem; transition: all 0.18s; }
.done-next:hover { background: rgba(255,82,82,0.08); }
body[data-discipline="analyze"] .done-next { border-color: rgba(100,181,246,0.45); color: var(--analyze); }
body[data-discipline="analyze"] .done-next:hover { background: rgba(100,181,246,0.08); }
body[data-discipline="design"] .done-next { border-color: rgba(129,199,132,0.45); color: var(--design); }
body[data-discipline="design"] .done-next:hover { background: rgba(129,199,132,0.08); }
.done-links { font-size: 0.8rem; color: var(--txt-3); }
.done-links a { color: var(--txt-2); text-decoration: none; }
.done-links a:hover { color: var(--accent); }

.faq-list { width: 100%; max-width: 500px; margin-top: 2.5rem; text-align: left; }
.faq-item { border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; margin-bottom: 0.5rem; background: var(--glass-bg); }
.faq-q { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.35rem; }
.faq-a { font-size: 0.82rem; color: var(--txt-3); line-height: 1.5; }
