:root{
    --bg: #0b0f14;
    --panel: #111826;
    --panel2: #0f1724;
    --text: #e8eef7;
    --muted: #b8c2d3;
    --border: rgba(232, 238, 247, 0.12);
    --shadow: 0 10px 30px rgba(0,0,0,0.25);
    --radius: 14px;

    --green: #22c55e;
    --yellow:#fbbf24;
    --red:   #ef4444;

    --accent: #a78bfa;
    --accent-soft: rgba(167,139,250,.12);
    --accent-border: rgba(167,139,250,.32);

    --focus: #c4b5fd;
    --anchor-offset: 80px;
}

html{
    scroll-padding-top: var(--anchor-offset);
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*{ box-sizing:border-box; }

body{
    margin:0;
    position:relative;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    /* Brighter purple glows (first glow: top-left) */
    background:
            radial-gradient(980px 980px at 8% -10%, rgba(167,139,250,.30), transparent 58%),
            radial-gradient(820px 820px at 84% 14%, rgba(167,139,250,.18), transparent 62%),
            radial-gradient(920px 920px at 14% 52%, rgba(167,139,250,.14), transparent 66%),
            radial-gradient(980px 980px at 78% 78%, rgba(167,139,250,.12), transparent 68%),
            radial-gradient(980px 980px at 20% 92%, rgba(167,139,250,.10), transparent 70%),
            var(--bg);

    color:var(--text);
    line-height:1.5;
}

/* Seamless "dot field" on long pages (repeats with the document, not fixed) */
body::before{
    display:none;
}

a{ color:inherit; text-decoration:none; }
a:focus{ outline:none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible{
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-soft);
    border-color: var(--accent-border);
}
button:focus{ outline:none; }

.container{ width:min(1100px, calc(100% - 40px)); margin:0 auto; }

.site-header{
    position:sticky; top:0; z-index:100;
    background: rgba(11, 15, 20, 0.35);
    backdrop-filter: blur(8px);
    border-bottom:1px solid rgba(232,238,247,0.05);
    box-shadow: none;
}

.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; gap:18px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.brand-mark{
    width:36px; height:36px; border-radius:10px;
    background: linear-gradient(135deg, rgba(147,197,253,.95), rgba(239,68,68,.75));
    box-shadow: var(--shadow);
}
.brand-title{ font-weight:700; }
.brand-subtitle{ font-size:0.9rem; color:var(--muted); }
.brand:hover .brand-title{
    text-decoration: underline;
    text-decoration-color: rgba(232,238,247,0.25);
    text-underline-offset: 4px;
}

.nav, .site-nav{
    display:flex;
    gap:22px;
    justify-content:flex-end;
    align-items:center;
    white-space:nowrap;
}

.nav a, .site-nav a{
    color:var(--muted);
    text-decoration:none;
    padding:8px 12px;
    border:1px solid transparent;
    border-radius:999px;
    transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.nav a:hover, .site-nav a:hover{
    color:var(--text);
    border-color: var(--accent-border);
    background: var(--accent-soft);
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.nav a:active, .site-nav a:active{ box-shadow:none; }
.nav a:focus:not(:focus-visible), .site-nav a:focus:not(:focus-visible){ box-shadow:none; border-color: transparent; }

.skip-link{ position:absolute; left:-999px; top:-999px; }
.skip-link:focus{ left:16px; top:16px; background:var(--panel); border:1px solid var(--border); padding:10px 12px; border-radius:10px; z-index:1000; }

.hero{ padding:60px 0 36px; }
.hero-inner{ display:grid; grid-template-columns: 1.25fr 0.75fr; gap:24px; align-items:stretch; }
.hero-copy h1{ letter-spacing:-0.02em; }
@media (max-width: 920px){ .hero-inner{ grid-template-columns:1fr; } .nav, .site-nav{ display:none; } }

h1{ font-size: clamp(1.9rem, 3.4vw, 3rem); margin:0 0 12px; }
h2{ font-size: clamp(1.5rem, 2.2vw, 2rem); margin:0 0 12px; }
h3{ margin:0 0 8px; }
h4{ margin: 0 0 10px; }
.lead{ color:var(--muted); font-size:1.05rem; margin:0 0 16px; max-width:70ch; }
.micro-note{ color:var(--muted); font-size:0.95rem; margin:10px 0 0; }
.section{ padding:44px 0; }

.section-accent{
    background: transparent; /* no divider lines */
}

.section-intro{ color:var(--muted); margin:0 0 16px; max-width:80ch; }

.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:stretch; }
.grid-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; align-items:stretch; }
.why-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:14px; align-items:stretch; }
@media (max-width: 920px){ .grid-2, .grid-3{ grid-template-columns:1fr; } }

/* Enforce equal-height cards in the grids */
.grid-2 > .card, .grid-3 > .card{ height:100%; display:flex; flex-direction:column; }

.card{
    background: rgba(17,24,38,.70);
    border:1px solid var(--border);
    border-radius: var(--radius);
    padding:16px;
    box-shadow: var(--shadow);
}

.callout{
    margin-top:16px;
    background: var(--accent-soft);
    border:1px solid var(--accent-border);
    border-radius: var(--radius);
    padding:14px 16px;
}

.btn{
    appearance:none;
    border:1px solid var(--border);
    border-radius:999px;
    padding:10px 14px;
    cursor:pointer;
    background: transparent;
    color:var(--text);
    font-weight:600;
    text-decoration:none;
    display:inline-flex; align-items:center; justify-content:center;
}
.btn-primary{ background: rgba(147,197,253,.18); border-color: rgba(147,197,253,.35); }
.btn-secondary{ background: rgba(232,238,247,.06); }
.btn:disabled{ opacity:0.55; cursor:not-allowed; }
.btn:hover{ border-color: var(--accent-border); box-shadow: 0 0 0 2px var(--accent-soft) inset; }
.btn:active{ transform: translateY(0); }
.btn:focus-visible{ box-shadow: 0 0 0 2px var(--accent-soft); border-color: var(--accent-border); }
.btn:focus:not(:focus-visible){ box-shadow:none; border-color: var(--border); }

button.is-ready { transform: translateY(-1px); filter: brightness(1.1); }
button[data-ready="false"] { opacity: .6; }

.link-btn{ appearance:none; border:0; background:none; color:var(--muted); cursor:pointer; text-decoration:underline; padding:0; }
.link-btn:hover{ color:var(--text); }

.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

.hero-panel{
    background: rgba(17,24,38,.75);
    border:1px solid var(--border);
    border-radius: var(--radius);
    padding:16px;
    box-shadow: var(--shadow);
    display:flex;
    flex-direction:column;
    gap:12px;
}

.panel-head{ padding:2px 2px 6px; }
.panel-title{ font-weight:800; letter-spacing:-0.01em; margin:0 0 6px; }
.panel-subtitle{ color:var(--muted); font-size:0.95rem; line-height:1.45; margin:0; }
.panel-subtitle:empty{ display:none; }

.panel-row{ display:flex; gap:10px; align-items:stretch; flex-wrap:nowrap; }
.panel-row-kpis .panel-kpi{ flex:1; }

.panel-kpi{
    background: rgba(15,23,36,.75);
    border:1px solid var(--border);
    border-radius:12px;
    padding:12px;
    min-width:0;
}

.kpi-value{ font-size:1.6rem; font-weight:800; line-height:1.1; }
.kpi-label{ color:var(--muted); font-size:0.95rem; margin-top:4px; }

.panel-pills{ display:grid; grid-template-columns: 1fr; gap:10px; margin-top:2px; }

.pill{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    padding:8px 12px;
    border-radius:999px;
    font-weight:700;
    font-size:0.95rem;
    border:1px solid var(--border);
    background: rgba(232,238,247,.05);
}

.pill-green{ border-color: rgba(34,197,94,.40); background: rgba(34,197,94,.10); }
.pill-yellow{ border-color: rgba(251,191,36,.40); background: rgba(251,191,36,.10); }
.pill-red{ border-color: rgba(239,68,68,.40); background: rgba(239,68,68,.10); }

.panel-note{ color:var(--muted); font-size:0.95rem; margin-top:2px; }

.panel-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }
.panel-actions .btn{ flex:1; min-width: 160px; }

.details{ background: rgba(17,24,38,.50); border:1px solid var(--border); border-radius: var(--radius); padding:12px 14px; margin-top:14px; }
.details summary{ cursor:pointer; font-weight:700; }

.bullets{ margin:10px 0 0; padding-left:18px; color:var(--muted); }
.bullets li{ margin:6px 0; }

.wizard{
    border:1px solid var(--border);
    background: rgba(17,24,38,.55);
    border-radius: var(--radius);
    overflow:hidden;
    box-shadow: var(--shadow);
}

.wizard-header{ padding:12px 14px; border-bottom:1px solid var(--border); display:flex; flex-direction:column; gap:10px; }
.progress{ height:10px; background: rgba(232,238,247,.06); border:1px solid var(--border); border-radius:999px; overflow:hidden; margin-top:8px; }
.progress-bar{ height:100%; width:0%; background: linear-gradient(90deg, rgba(147,197,253,.85), rgba(167,139,250,.80)); transition: width 180ms ease-out; }
.progress-meta{ display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:0.95rem; }

.wizard-body{ padding:14px; display:flex; flex-direction:column; gap:16px; }
.wizard-footer{ padding:12px 14px; border-top:1px solid var(--border); display:flex; justify-content:space-between; gap:12px; }

.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; align-items:stretch; }
@media (max-width: 920px){ .form-grid{ grid-template-columns:1fr; } }

.field label{ display:block; font-weight:700; margin-bottom:6px; }
.field .hint{ color:var(--muted); font-size:0.95rem; margin-top:4px; }

select, textarea{
    width:100%;
    padding:10px 12px;
    border-radius:12px;
    border:1px solid var(--border);
    background: rgba(15,23,36,.75);
    color:var(--text);
}

.choice-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
.choice{
    flex:1; min-width:150px;
    border:1px solid var(--border);
    background: rgba(15,23,36,.65);
    border-radius:12px;
    padding:10px 12px;
    cursor:pointer;
}
.choice input{ margin-right:8px; }
.choice:hover{ border-color: rgba(147,197,253,.35); }

.q-card{
    border:1px solid var(--border);
    background: rgba(15,23,36,.70);
    border-radius:12px;
    padding:12px;
}
.block-card > .q-card + .q-card{ margin-top:12px; }

.q-title{ font-weight:800; margin:0; }
.q-title-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.q-help{ color:var(--muted); margin:8px 0 0; display:none; }
.q-help.is-visible{ display:block; }
.info-btn{
    appearance:none;
    border:1px solid var(--border);
    background: rgba(232,238,247,.06);
    color:var(--text);
    width:28px; height:28px;
    border-radius:50%;
    cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
    font-weight:700;
    font-size:0.85rem;
}
.info-btn:hover{ border-color: rgba(147,197,253,.45); }

.result-grid{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap:14px; }
@media (max-width: 920px){ .result-grid{ grid-template-columns:1fr; } }

.result-panel{ border:1px solid var(--border); border-radius: var(--radius); background: rgba(15,23,36,.70); padding:14px; }
.result-heading{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.result-kpi{ font-size:1.4rem; font-weight:900; }

.block-list{ margin:10px 0 0; padding-left:18px; color:var(--muted); }
.block-list li{ margin:6px 0; }
.reco-list{ margin:10px 0 0; padding-left:18px; }

.badge{
    display:inline-flex; align-items:center;
    padding:6px 10px;
    border-radius:999px;
    font-weight:800;
    border:1px solid var(--border);
}
.badge-large{ font-size:1rem; padding:8px 12px; }
.result-summary{ color:var(--muted); }
.badge[data-level="green"]{ border-color: rgba(34,197,94,.40); background: rgba(34,197,94,.10); }
.badge[data-level="yellow"]{ border-color: rgba(251,191,36,.40); background: rgba(251,191,36,.10); }
.badge[data-level="red"]{ border-color: rgba(239,68,68,.40); background: rgba(239,68,68,.10); }

/* Consistent vertical rhythm to avoid “touching/overlap” feel */
.stack > * + *{ margin-top:16px; }

.report-text{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.action-status{
    margin-top:10px;
    font-size:0.95rem;
    color: rgba(232,238,247,0.85);
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 140ms ease, transform 140ms ease;
}
.action-status.is-visible{ opacity: 1; transform: translateY(0); }
.action-status[data-state="ok"]{ color: rgba(232,238,247,0.85); }
.action-status[data-state="err"]{ color: rgba(239,68,68,0.9); }

.site-footer{ padding:26px 0; background: rgba(11,15,20,.75); }
.site-footer{ background: transparent; border-top:1px solid rgba(232,238,247,0.05); }
.footer-grid{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:16px; align-items:start; }
@media (max-width: 920px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-col{ display:flex; flex-direction:column; gap:6px; }
.footer-title{ font-weight:800; margin-bottom:2px; }
.footer-note{ color:var(--muted); }
.footer-links{ margin:4px 0 0; padding-left:18px; color:var(--muted); }
.footer-links a{ color:var(--muted); text-decoration: underline; text-decoration-color: rgba(232,238,247,0.35); }
.footer-links a:hover{ color:var(--text); text-decoration-color: rgba(232,238,247,0.55); }

.spacer{ height: 8px; }

.assessment-head{ display:flex; flex-direction:column; gap:10px; border:1px solid var(--border); border-radius: var(--radius); padding:14px; background: rgba(17,24,38,.60); box-shadow: var(--shadow); margin-bottom:14px; }
.assessment-shell{
    display:flex;
    flex-direction:column;
    gap:12px;
    border:1px solid var(--border);
    border-radius: var(--radius);
    padding:12px;
    background: rgba(11,15,20,.65);
    box-shadow: var(--shadow);
}
.assessment-body{ display:flex; flex-direction:column; gap:12px; }
.assessment-nav{ display:flex; justify-content:space-between; gap:12px; margin-top:4px; align-items:center; flex-wrap:wrap; }
.assessment-nav-left{ display:flex; gap:10px; flex-wrap:wrap; }
.assessment-title{ font-size:1.2rem; font-weight:800; }
.assessment-meta{ color:var(--muted); }
.head-copy{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }

.assessment-grid{ display:grid; grid-template-columns: 1.15fr 0.85fr; gap:12px; align-items:start; }
@media (max-width: 920px){ .assessment-grid{ grid-template-columns:1fr; } }
.assessment-grid > .card, .assessment-grid > .helper-card{ height:100%; }
.helper-card{
    border:1px solid var(--accent-border);
    background: rgba(167,139,250,.12);
    border-radius: var(--radius);
    padding:12px;
    box-shadow: var(--shadow);
    display:flex;
    flex-direction:column;
    gap:10px;
    height:100%;
}
.helper-card h4{ margin:0 0 6px; }

.meaning-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:14px; }
.meaning-card{
    border:1px solid var(--border);
    border-radius: var(--radius);
    padding:14px;
    box-shadow: var(--shadow);
    background: rgba(17,24,38,.65);
}
.meaning-card[data-level="green"]{ border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.08); }
.meaning-card[data-level="yellow"]{ border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.08); }
.meaning-card[data-level="red"]{ border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.08); }
