/* OpSec for Dummies — dark cybersecurity theme. No frameworks. */
:root {
  --bg: #0a0e17;
  --card: #111827;
  --card-2: #0f1623;
  --border: #1f2a3c;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --cyan: #00f0ff;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --violet: #a78bfa;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0, 240, 255, 0.07), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(16, 185, 129, 0.06), transparent 60%), var(--bg);
  color: var(--text); font: 16px/1.6 var(--sans);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); background: #0b1220; padding: 0.1em 0.35em; border-radius: 4px; color: var(--cyan); word-break: break-all; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.9em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--cyan); color: #000; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 23, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cyan); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
.brand em { color: var(--text); font-style: normal; font-weight: 500; }
.brand:hover { text-decoration: none; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links > a:not(.btn) { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav-links > a:not(.btn):hover, .nav-links > a.active { color: var(--text); background: var(--card); text-decoration: none; }
.nav-links .nav-admin { color: var(--violet) !important; }
.nav-user { color: var(--muted); font-size: 0.9rem; padding: 0 6px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 20px; }
  .nav-links.open { display: flex; }
}

/* ---------- Layout ---------- */
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px 20px 48px; outline: none; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid.two-one { grid-template-columns: 2fr 1fr; }
.grid.one-two { grid-template-columns: 1fr 2fr; }
.grid.tight { gap: 12px; margin-bottom: 0; }
@media (max-width: 900px) { .grid.two-one, .grid.one-two { grid-template-columns: 1fr; } }

.card { background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.grid > .card { margin-bottom: 0; }
.card.narrow { max-width: 520px; margin: 40px auto; }
.page-head { margin-bottom: 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.hint { color: var(--muted); font-size: 0.85rem; }
.ok-text { color: var(--green); }

/* ---------- Buttons / badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: #162033; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: transform 0.08s, border-color 0.15s, background 0.15s; text-decoration: none !important; }
.btn:hover { border-color: var(--cyan); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--cyan), #00b3d6); color: #001018; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ok { background: rgba(16, 185, 129, 0.15); border-color: var(--green); color: var(--green); }
.btn.danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; }
.btn.small { padding: 6px 12px; font-size: 0.85rem; }
.btn.block { width: 100%; }
.link-btn { background: none; border: none; color: var(--cyan); cursor: pointer; font: inherit; padding: 4px 0; text-align: left; }
.link-btn.danger { color: #fca5a5; font-size: 0.85rem; }

.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #1e293b; color: var(--muted); vertical-align: middle; }
.badge.beginner { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.badge.intermediate { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.badge.advanced { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.badge.admin { background: rgba(167, 139, 250, 0.18); color: var(--violet); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; padding: 2px 9px; border-radius: 999px; background: #1e293b; color: var(--muted); white-space: nowrap; }
.pill.ok { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.pill.warn { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.pill.bad { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 14px; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; background: #0b1220; color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; font: inherit; font-weight: 400;
}
textarea { resize: vertical; min-height: 90px; font-size: 0.92rem; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15); }
.form-error { color: #fca5a5; min-height: 1.2em; font-size: 0.9rem; }
input[type=checkbox], input[type=radio] { accent-color: var(--cyan); width: 18px; height: 18px; flex: none; margin: 2px 0 0; }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin: 0 0 14px; }
legend { padding: 0 6px; font-weight: 700; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.tabs > * { background: none; border: none; color: var(--muted); padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs > .active { color: var(--cyan); border-bottom-color: var(--cyan); }
.tabs > *:hover { color: var(--text); text-decoration: none; }

/* ---------- Loading / toast ---------- */
.loading { display: grid; place-items: center; gap: 12px; padding: 60px 0; color: var(--muted); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--cyan); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #162033; border: 1px solid var(--border); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); transition: all 0.25s; z-index: 200; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

/* ---------- Landing ---------- */
.hero { text-align: center; padding: 40px 0 30px; }
.hero-icon { color: var(--cyan); display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.3); margin-bottom: 16px; box-shadow: 0 0 40px rgba(0, 240, 255, 0.15); }
.hero-icon svg { width: 38px; height: 38px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.accent { background: linear-gradient(90deg, var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.motto { font-family: var(--mono); color: var(--green); max-width: 760px; margin: 0 auto 16px; font-size: 1.02rem; }
.lead { max-width: 680px; margin: 0 auto 24px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.feature h3 { display: flex; align-items: center; gap: 10px; color: var(--cyan); }
.feature h3 svg { width: 22px; height: 22px; }
.roadmap-list { padding-left: 1.2em; }
.roadmap-list li { margin: 8px 0; }

/* ---------- Auth ---------- */
.auth .tabs a { flex: 1; text-align: center; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-head h1 { margin: 0; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--cyan); font-family: var(--mono); }
.stat-num small { font-size: 1rem; color: var(--muted); }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.progress { height: 10px; background: #0b1220; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress.thin { height: 6px; margin-bottom: 14px; }
.progress.inline { display: inline-block; width: 70px; vertical-align: middle; margin: 0 6px 0 0; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width 0.6s ease; }


.tip { border-left: 4px solid var(--green); }
.tip-label { display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.tip p { margin: 0; font-size: 1.05rem; }

.acc-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #0b1220; }
.acc-item h3 { margin: 0; }
.acc-head { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: none; color: var(--text); padding: 14px 16px; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.acc-head:hover { background: #111a2b; }
.mod-num { font-family: var(--mono); color: var(--cyan); font-weight: 800; }
.mod-title { flex: 1; }
.mod-count { font-family: var(--mono); color: var(--muted); font-size: 0.85rem; }
.chev { transition: transform 0.2s; color: var(--muted); }
.acc-head[aria-expanded=true] .chev { transform: rotate(180deg); }
.acc-body { padding: 4px 16px 14px; }
.lesson-list { margin: 0; padding-left: 1.3em; }
.lesson-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.lesson-list li:last-child { border-bottom: none; }
.lesson-list { list-style: decimal; }
.lesson-list li { display: list-item; }
.lesson-list li .pill { float: right; margin-left: 8px; }

.check-group { padding: 10px 12px; }
.check-group legend { color: var(--cyan); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.check-item { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; padding: 7px 0; cursor: pointer; }
.check-item input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ---------- Lesson ---------- */
.crumbs { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.lesson { max-width: 860px; margin: 0 auto; }
.lesson-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.lesson-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.lesson-steps a { display: inline-block; font-size: 0.82rem; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.lesson-steps a:hover { color: var(--cyan); border-color: var(--cyan); text-decoration: none; }
.lesson-sec h2 { display: flex; align-items: center; gap: 10px; }
.sec-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(0, 240, 255, 0.12); color: var(--cyan); font-family: var(--mono); font-size: 0.95rem; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--cyan); font-weight: 600; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.quiz .q { background: #0b1220; }
.q-num { color: var(--cyan); font-family: var(--mono); }
.opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.opt:hover { border-color: #334155; }
.opt.inline { display: inline-flex; margin-right: 10px; }
.opt.right { border-color: var(--green); background: rgba(16, 185, 129, 0.08); }
.opt.wrong { border-color: var(--red); background: rgba(239, 68, 68, 0.08); }
.q-feedback { font-size: 0.92rem; margin-top: 6px; }
.q-feedback.ok { color: #6ee7b7; }
.q-feedback.bad { color: #fca5a5; }
.quiz-score { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px; border-radius: 10px; border: 1px solid var(--border); margin-top: 14px; }
.quiz-score.ok { border-color: var(--green); }
.quiz-score.bad { border-color: var(--amber); }
.quiz-score .big { font-size: 2.2rem; font-weight: 800; font-family: var(--mono); color: var(--cyan); }

/* ---------- Labs ---------- */
.lab-card { display: block; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.lab-card:hover { border-color: var(--cyan); transform: translateY(-2px); text-decoration: none; }
.lab-icon { color: var(--cyan); margin-bottom: 8px; }
.lab-card p { color: var(--muted); }
.link { color: var(--cyan); font-weight: 600; }

.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; }
.notice.privacy { border-color: var(--green); background: rgba(16, 185, 129, 0.08); }

/* Phishing */
.inbox { display: grid; grid-template-columns: 320px 1fr; padding: 0; overflow: hidden; }
@media (max-width: 820px) { .inbox { grid-template-columns: 1fr; } }
.inbox-list { border-right: 1px solid var(--border); background: #0b1220; }
.inbox-list ul { list-style: none; margin: 0; padding: 0; }
.inbox-score { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.mail-item { display: grid; width: 100%; text-align: left; gap: 2px; background: none; border: none; border-bottom: 1px solid var(--border); color: var(--text); padding: 12px 14px; font: inherit; cursor: pointer; }
.mail-item:hover, .mail-item.active { background: #111a2b; }
.mail-item.active { box-shadow: 3px 0 0 var(--cyan) inset; }
.mail-from { font-weight: 700; }
.mail-subj { font-size: 0.88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-date { font-size: 0.75rem; color: #64748b; }
.inbox-reader { padding: 22px; min-width: 0; }
.mail-headers { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 0.88rem; background: #0b1220; border: 1px solid var(--border); padding: 12px; border-radius: 8px; font-family: var(--mono); word-break: break-all; }
.mail-headers dt { color: var(--muted); }
.mail-headers dd { margin: 0; }
.mail-body { margin: 18px 0; padding: 16px; background: #f8fafc; color: #0f172a; border-radius: 8px; }
.mail-body .sim-link { color: #1d4ed8; text-decoration: underline; }
.verdict-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.feedback { margin-top: 14px; padding: 14px; border-radius: 10px; border: 1px solid; }
.feedback.ok { border-color: var(--green); background: rgba(16, 185, 129, 0.08); }
.feedback.bad { border-color: var(--red); background: rgba(239, 68, 68, 0.08); }
.statusbar { position: sticky; bottom: 0; margin-top: 10px; padding: 8px 14px; background: #0b1220; border: 1px solid var(--border); border-radius: 8px; font-size: 0.88rem; color: var(--muted); transition: border-color 0.2s; }
.statusbar.flash { border-color: var(--amber); }

/* Password */
.label-lg { font-size: 1.05rem; }
.pw-row { display: flex; gap: 10px; align-items: flex-end; }
.pw-row input { font-family: var(--mono); font-size: 1.1rem; }
.meter { height: 10px; border-radius: 999px; background: #0b1220; border: 1px solid var(--border); margin: 14px 0 8px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; transition: width 0.25s, background 0.25s; }
.m-very-weak { background: var(--red); }
.m-weak { background: #f97316; }
.m-fair { background: var(--amber); }
.m-strong { background: var(--green); }
.m-very-strong { background: var(--cyan); }
.rating { font-weight: 700; min-height: 1.4em; }
.math { padding-left: 1.2em; font-size: 0.92rem; }
.math li { margin: 6px 0; }
.flags { list-style: none; padding: 0; }
.flags li { padding: 6px 10px; margin: 4px 0; border-radius: 6px; }
.flags li.bad { background: rgba(239, 68, 68, 0.1); color: #fca5a5; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table thead th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Threat model */
.wizard-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.wizard-steps li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.wizard-steps li.current { border-color: var(--cyan); color: var(--cyan); }
.wizard-steps li.done { border-color: var(--green); color: var(--green); }
.choice-grid { margin: 0; }
.choice { display: grid; gap: 6px; text-align: left; padding: 16px; border-radius: 10px; border: 1px solid var(--border); background: #0b1220; color: var(--text); font: inherit; cursor: pointer; }
.choice span { color: var(--muted); font-size: 0.88rem; }
.choice:hover { border-color: var(--cyan); }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.prio.high { color: #fca5a5; }
.plan li { margin: 8px 0; }

/* Spot the risk */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.scene-item { display: grid; gap: 8px; text-align: left; padding: 14px; border-radius: 10px; border: 1px dashed #334155; background: #0b1220; color: var(--text); font: inherit; cursor: pointer; transition: border-color 0.15s; }
.scene-item:hover { border-color: var(--cyan); }
.scene-item.risk { border: 1px solid var(--red); background: rgba(239, 68, 68, 0.08); }
.scene-item.safe { border: 1px solid var(--green); background: rgba(16, 185, 129, 0.07); }
.scene-item .why { font-size: 0.88rem; color: var(--muted); }
.score-line { font-size: 1.05rem; }

/* Reference */
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.filters label { flex: 1; min-width: 200px; margin-bottom: 0; }
.myth-label { color: #fca5a5; font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; margin: 0; }
.fact-label { color: var(--green); font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; margin: 0; }
.myth h3 { text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, 0.6); }

/* Admin */
.admin-lessons { padding-left: 0; list-style: none; max-height: 420px; overflow: auto; }
.admin-lessons li { border-bottom: 1px solid var(--border); padding: 4px 0; }
.q-edit { background: #0b1220; }
.opt-edit { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.opt-edit input[type=radio] { margin: 0; }
.opt-edit input:not([type=radio]) { margin-top: 0; }

/* ---------- Shared ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn.subtle { background: none; margin-top: 10px; font-weight: 500; color: var(--muted); }
.btn.subtle:hover { color: var(--text); }

/* ---------- Auth: password toggle ---------- */
.auth label[for] { margin-bottom: 0; }
.pw-field { position: relative; margin: 6px 0 14px; }
.pw-field input { margin-top: 0 !important; padding-right: 48px !important; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: none; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed=true] { color: var(--cyan); background: rgba(0, 240, 255, 0.08); }
.auth-links { margin: -4px 0 10px; font-size: 0.88rem; text-align: right; }

/* ---------- Checklist journey ---------- */
.banner { border-left: 4px solid var(--cyan); }
.banner h2 { display: flex; align-items: center; gap: 10px; }
.banner.start { border-left-color: var(--cyan); background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), var(--card-2) 60%); }
.banner.celebrate { border-left-color: var(--green); background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(0, 240, 255, 0.06) 50%, var(--card-2)); }
.banner.done { border-left-color: var(--green); }
.banner.slim { padding: 14px 22px; }
.banner.slim p { margin: 0; }
.banner .progress { margin: 8px 0 6px; }
.notice.start { border-color: var(--cyan); background: rgba(0, 240, 255, 0.06); }

.journey { display: flex; align-items: center; gap: 12px; list-style: none; padding: 0; margin: 0 0 18px; }
.journey li:not(.journey-line) { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.journey li div { display: grid; line-height: 1.3; }
.journey small { font-size: 0.8rem; }
.journey-dot { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--border); font-family: var(--mono); font-weight: 800; }
.journey .current { color: var(--text); }
.journey .current .journey-dot { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px rgba(0, 240, 255, 0.4); }
.journey .done .journey-dot { background: var(--green); border-color: var(--green); color: #001018; }
.journey-line { flex: 1; height: 2px; background: var(--border); min-width: 24px; }
.journey-line.done { background: var(--green); }
@media (max-width: 560px) { .journey { flex-direction: column; align-items: flex-start; } .journey-line { display: none; } }

.check-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.locked { opacity: 0.85; }
.locked h2 { display: flex; align-items: center; gap: 10px; }
.check-item input:disabled + span { cursor: default; }
.compare { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
.compare .arrow { font-size: 1.6rem; color: var(--muted); }

/* ---------- Mythbusters ---------- */
.myth-tag { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.myth-link { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px dashed rgba(239, 68, 68, 0.45); border-radius: 8px; color: var(--text); }
.myth-link:hover { border-color: #fca5a5; text-decoration: none; background: rgba(239, 68, 68, 0.05); }
.myth h2 { font-size: 1.15rem; margin-top: 4px; }
.fact { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.fact p:last-child { margin: 0; }

/* ---------- Case studies ---------- */
.case-links { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.case-links-label { color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.case-links ul { list-style: none; padding: 0; margin: 0; }
.case-links li { margin: 6px 0; font-size: 0.92rem; }
.case-links .ext { margin-left: 4px; font-size: 0.8em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; text-align: center; padding: 20px; }
.site-footer p { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
