/* ───────── CueBrief design tokens ───────── */
:root {
  --bg: #0B0F1A;
  --bg-side: #080C16;
  --card: #111827;
  --blue: #6391FF;
  --blue-hi: #8BB0FF;
  --orange: #FF6B3D;
  --green: #34D399;
  --yellow: #FBBF24;
  --text: #E2E6EF;
  --white: #FFFFFF;
  --line: rgba(255,255,255,.04);
  --line-2: rgba(255,255,255,.06);
  --f-display: 'Outfit', sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-hi); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
svg { flex-shrink: 0; }

.mono { font-family: var(--f-mono); }
.display { font-family: var(--f-display); }
.eyebrow { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--blue); letter-spacing: 2.5px; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Logo ───────── */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.logo:hover { color: var(--white); }
.logo-word { display: flex; align-items: baseline; gap: 1px; font-family: var(--f-display); font-size: 20px; letter-spacing: -.3px; }
.logo-word b { font-weight: 700; color: var(--white); }
.logo-word span { font-weight: 300; color: var(--blue); }
.logo--sm { gap: 10px; }
.logo--sm .logo-word { font-size: 17px; }

/* ───────── Buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: var(--white); border: 0; border-radius: 6px; padding: 14px 28px; font-size: 15px; font-weight: 600; letter-spacing: .2px; transition: background .15s, transform .15s; }
.btn:hover { background: var(--blue-hi); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--ghost { background: rgba(255,255,255,.03); border: 1px solid var(--line-2); color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.06); color: var(--white); }

/* ───────── Shared bits ───────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.dot--lg { width: 7px; height: 7px; }
.c-blue { --c: var(--blue); } .c-green { --c: var(--green); } .c-yellow { --c: var(--yellow); } .c-orange { --c: var(--orange); }
.dot[class*="c-"], .tag-dot { background: var(--c); }
.tag { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; font-weight: 500; color: rgba(255,255,255,.3); letter-spacing: 1px; text-transform: uppercase; }
.label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.35); letter-spacing: .5px; text-transform: uppercase; }
.didyouknow { background: rgba(255,107,61,.06); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.didyouknow .label { color: var(--orange); text-transform: none; letter-spacing: .3px; gap: 6px; }
.didyouknow p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); }

/* ═════════ LANDING ═════════ */
.landing { position: relative; overflow: hidden; min-height: 100vh; }
.glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(99,145,255,.07) 0%, transparent 70%); top: 120px; right: 8%; pointer-events: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 48px; padding-right: 48px; position: relative; z-index: 1; }

.nav { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.5); }
.nav-links a:not(.btn):hover { color: var(--white); }

.hero { padding-top: 72px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.hero-copy { flex: 999 1 440px; min-width: 0; padding-top: 24px; }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 56px); line-height: 1.08; letter-spacing: -2px; color: var(--white); margin-bottom: 28px; }
.hero h1 span { color: var(--blue); }
.hero-copy > p { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,.5); max-width: 460px; margin-bottom: 36px; }
.hero-note { font-size: 12px; color: rgba(255,255,255,.25); margin-top: 16px; }

.preview { flex: 1 1 380px; min-width: 0; max-width: 440px; padding: 28px; display: flex; flex-direction: column; gap: 20px; border-radius: 12px; border-color: var(--line-2); }
.preview-head { display: flex; align-items: center; justify-content: space-between; }
.preview-head .tag { font-size: 11px; color: rgba(255,255,255,.4); gap: 8px; }
.preview-head .mono.meta { font-size: 11px; color: rgba(255,255,255,.25); }
.preview h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.35; letter-spacing: -.3px; color: var(--white); }
.preview > p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.45); }
.thread-list { display: flex; flex-direction: column; padding-left: 6px; border-left: 1.5px solid rgba(99,145,255,.15); }
.thread-list li { list-style: none; padding: 6px 0 6px 14px; font-size: 13px; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 8px; }
.thread-list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); opacity: .6; flex-shrink: 0; }
.thread-list { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.pulse { margin-top: 48px; }
.pulse svg { width: 100%; height: 32px; display: block; }

.stats { padding-top: 32px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 48px; }
.stat { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--f-mono); font-size: 28px; font-weight: 500; color: var(--white); letter-spacing: -1px; }
.stat span { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.5; }
.stat small { font-family: var(--f-mono); font-size: 10px; color: rgba(255,255,255,.15); }

.section { padding-top: 88px; padding-bottom: 8px; scroll-margin-top: 16px; }
.section-head { max-width: 560px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -1px; color: var(--white); margin-bottom: 14px; }
.section-head p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.45); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.step, .feature { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step-n { font-family: var(--f-mono); font-size: 12px; color: var(--blue); letter-spacing: 1.5px; }
.step h3, .feature h3 { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.3px; color: var(--white); }
.step p, .feature p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.42); }
.feature .tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.feature .tri div { background: rgba(255,255,255,.025); border-radius: 6px; padding: 10px; font-size: 11px; color: rgba(255,255,255,.4); line-height: 1.4; }
.feature .tri b { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; font-weight: 500; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.sides div { border-radius: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.5); }
.sides .a { background: rgba(99,145,255,.07); } .sides .b { background: rgba(255,107,61,.07); }

.pricing { align-items: stretch; }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.plan--pro { border-color: rgba(99,145,255,.35); background: linear-gradient(180deg, rgba(99,145,255,.06), var(--card) 60%); }
.plan h3 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); font-weight: 500; display: flex; justify-content: space-between; }
.plan h3 em { font-style: normal; color: var(--blue); }
.price { font-family: var(--f-display); font-weight: 700; font-size: 34px; letter-spacing: -1px; color: var(--white); }
.price small { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: rgba(255,255,255,.35); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.plan li { list-style: none; font-size: 13px; color: rgba(255,255,255,.5); display: flex; gap: 10px; line-height: 1.5; }
.plan li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin-top: 7px; flex-shrink: 0; opacity: .7; }

.cta { margin-top: 96px; padding: 56px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; border-radius: 14px; background: radial-gradient(ellipse at top, rgba(99,145,255,.1), transparent 65%), var(--card); }
.cta h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); letter-spacing: -1.2px; color: var(--white); line-height: 1.1; }
.cta p { color: rgba(255,255,255,.45); max-width: 440px; font-size: 15px; line-height: 1.7; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; max-width: 460px; }
.signup input { flex: 1 1 220px; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); border-radius: 6px; padding: 14px 16px; color: var(--white); font: inherit; font-size: 14px; }
.signup input::placeholder { color: rgba(255,255,255,.3); }
.signup input:focus { outline: 0; border-color: var(--blue); }
.signup-msg { font-size: 12px; color: var(--green); min-height: 16px; }

.footer { margin-top: 72px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.25); }
.footer .mono { letter-spacing: .5px; }

.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px; color: rgba(255,255,255,.7); }

/* ═════════ APP SHELL (dashboard + brief) ═════════ */
.app { display: flex; min-height: 100vh; }
.side { width: 260px; flex-shrink: 0; background: var(--bg-side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; transition: transform .25s; z-index: 30; }
.side-logo { padding: 0 24px 32px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,.45); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.side-nav a:hover { color: var(--white); background: rgba(255,255,255,.03); }
.side-nav a.active { background: rgba(99,145,255,.08); color: var(--white); }
.side-nav a.active svg { color: var(--blue); }
.badge { margin-left: auto; background: var(--orange); color: var(--white); font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.side-div { margin: 20px 24px; height: 1px; background: var(--line); }
.topics { padding: 0 24px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.topics h4 { margin: 0; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.25); letter-spacing: 1.5px; text-transform: uppercase; }
.topic-list { display: flex; flex-direction: column; gap: 4px; }
.topic { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: rgba(255,255,255,.7); background: none; border: 0; width: 100%; text-align: left; transition: color .15s; }
.topic i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--blue)); flex-shrink: 0; box-sizing: border-box; }
.topic.off { color: rgba(255,255,255,.25); }
.topic.off i { background: none; border: 1.5px solid rgba(255,255,255,.15); }
.topic .plus { margin-left: auto; opacity: 0; color: rgba(255,255,255,.3); transition: opacity .15s; }
.topic:hover .plus { opacity: 1; }
.topic.filter-on { color: var(--white); font-weight: 600; }
.side-foot { padding: 0 12px; margin-top: auto; }
.side-foot a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,.35); font-size: 13px; }
.side-foot a:hover { color: var(--white); }

/* collapsed rail (brief page) */
.side--rail { width: 64px; align-items: center; gap: 24px; }
.side--rail .side-logo { padding: 0; margin-bottom: 12px; }
.side--rail .side-nav { padding: 0; gap: 20px; align-items: center; }
.side--rail .side-nav a { width: 36px; height: 36px; padding: 0; justify-content: center; }

.main { flex-grow: 1; min-width: 0; padding: 32px 48px; display: flex; flex-direction: column; gap: 32px; }
.topbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.topbar h1 { font-family: var(--f-display); font-weight: 700; font-size: 28px; color: var(--white); letter-spacing: -.5px; }
.topbar .sub { font-size: 14px; color: rgba(255,255,255,.35); }
.topbar-r { display: flex; align-items: center; gap: 16px; }
.streak { display: flex; align-items: center; gap: 8px; background: rgba(255,107,61,.08); border: 1px solid rgba(255,107,61,.12); border-radius: 8px; padding: 8px 14px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--orange); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #1E2A4A, #2A3F6F); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--blue); border: 0; }

.qstats { display: flex; flex-wrap: wrap; gap: 16px; }
.qstat { flex: 1 1 180px; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.qstat b { font-family: var(--f-mono); font-size: 24px; font-weight: 500; color: var(--white); }
.qstat span { font-size: 12px; color: rgba(255,255,255,.3); }

.sec { display: flex; flex-direction: column; gap: 20px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-head h2 { font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--white); letter-spacing: -.2px; }
.sec-head a, .sec-head > span { font-size: 12px; color: rgba(255,255,255,.3); }
.sec-head a:hover { color: var(--white); }
.progress { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,.35); }
.progress-bar { width: 80px; height: 4px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 4px; transition: width .4s; }

.briefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bcard { padding: 24px; display: flex; flex-direction: column; gap: 16px; color: inherit; transition: border-color .2s, transform .2s, background .2s; position: relative; }
.bcard:hover { border-color: rgba(255,255,255,.12); transform: translateY(-2px); color: inherit; }
.bcard[hidden] { display: none; }
.bcard-head { display: flex; align-items: center; justify-content: space-between; }
.bcard h3 { font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.35; letter-spacing: -.2px; color: var(--white); }
.bcard p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.35); }
.bcard-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 11px; color: rgba(255,255,255,.2); }
.bcard .mono.min { font-size: 10px; color: rgba(255,255,255,.2); }
.bcard.read { opacity: .6; }
.bcard.read::after { content: "Read ✓"; position: absolute; right: 24px; bottom: 24px; font-family: var(--f-mono); font-size: 10px; color: var(--green); letter-spacing: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 16px; font-size: 13px; color: rgba(255,255,255,.5); transition: all .15s; }
.chip:hover { background: rgba(255,255,255,.05); color: var(--white); }
.chip.added { background: rgba(99,145,255,.08); border-color: rgba(99,145,255,.25); color: var(--blue); }
.hint { font-size: 14px; color: rgba(255,255,255,.3); }

/* trending + quiz row on dashboard */
.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.trend { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.trend ol { margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.trend li { list-style: none; display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: rgba(255,255,255,.65); }
.trend li:first-child { border-top: 0; }
.trend li b { font-family: var(--f-mono); font-size: 11px; color: var(--blue); font-weight: 500; }
.trend li small { margin-left: auto; font-family: var(--f-mono); font-size: 10px; color: rgba(255,255,255,.2); white-space: nowrap; }

/* quiz */
.quiz { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.quiz q { quotes: none; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.75); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { text-align: left; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 14px; font-size: 13px; color: rgba(255,255,255,.55); transition: all .15s; display: flex; gap: 10px; }
.opt b { font-family: var(--f-mono); font-weight: 500; color: rgba(255,255,255,.25); }
.opt:hover:not(:disabled) { background: rgba(255,255,255,.06); color: var(--white); }
.opt:disabled { cursor: default; }
.opt.right { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.4); color: var(--green); }
.opt.wrong { background: rgba(255,107,61,.08); border-color: rgba(255,107,61,.35); color: var(--orange); }
.explain { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); padding: 12px 14px; background: rgba(255,255,255,.025); border-radius: 6px; }
.explain[hidden] { display: none; }

/* ═════════ BRIEF PAGE ═════════ */
.reader { flex-grow: 1; min-width: 0; display: flex; justify-content: center; padding: 40px 48px; }
.article { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 36px; }
.crumbs { display: flex; align-items: center; gap: 12px; }
.crumbs a { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.35); }
.crumbs a:hover { color: var(--white); }
.crumbs .sep { color: rgba(255,255,255,.1); }
.crumbs .mono { font-size: 11px; color: rgba(255,255,255,.2); }
.a-head { display: flex; flex-direction: column; gap: 16px; }
.a-cat { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--blue); letter-spacing: 1.5px; text-transform: uppercase; }
.a-head h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -1px; color: var(--white); }
.a-head time { font-size: 13px; color: rgba(255,255,255,.25); }
.callout { border-radius: 0 8px 8px 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; background: color-mix(in srgb, var(--c) 4%, transparent); border-left: 2px solid color-mix(in srgb, var(--c) 20%, transparent); }
.callout .k { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; font-weight: 500; color: var(--c); letter-spacing: 1px; text-transform: uppercase; }
.callout p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.45); }
.body { display: flex; flex-direction: column; gap: 24px; font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.65); }
.dyk-lg { background: rgba(255,107,61,.05); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.dyk-lg .label { color: var(--orange); letter-spacing: .3px; text-transform: none; font-size: 12px; }
.dyk-lg p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.5); }
.dyk-lg em { color: rgba(255,255,255,.6); }

.two-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side-opt { text-align: left; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); transition: all .15s; }
.side-opt:hover { border-color: rgba(255,255,255,.12); }
.side-opt .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--c); }
.side-opt p { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.55); }
.side-opt[aria-pressed="true"] { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 7%, var(--card)); }
.side-opt[aria-pressed="true"] p { color: rgba(255,255,255,.8); }
.side-note { font-size: 12px; color: rgba(255,255,255,.25); margin-top: -20px; }

.thread { display: flex; flex-direction: column; gap: 20px; }
.story { display: flex; gap: 16px; align-items: flex-start; padding: 20px; color: inherit; transition: border-color .2s; }
.story:hover { border-color: rgba(255,255,255,.12); color: inherit; }
.story > svg { margin-top: 4px; }
.story-ic { width: 42px; display: flex; justify-content: center; flex-shrink: 0; padding-top: 4px; }
.story-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.story-t b { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--white); letter-spacing: -.2px; }
.story-t span { font-size: 13px; color: rgba(255,255,255,.3); line-height: 1.5; }
.story-t em { font-style: normal; font-size: 12px; color: rgba(99,145,255,.7); line-height: 1.5; }

.starters { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.starter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.starter { text-align: left; background: rgba(99,145,255,.06); border: 1px solid rgba(99,145,255,.1); border-radius: 6px; padding: 10px 16px; font-size: 13px; color: rgba(255,255,255,.5); transition: all .15s; }
.starter:hover { background: rgba(99,145,255,.1); color: var(--white); }
.starter.copied { border-color: rgba(52,211,153,.4); color: var(--green); background: rgba(52,211,153,.07); }

.a-nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 48px; border-top: 1px solid var(--line); }
.a-nav a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.3); }
.a-nav a:hover { color: var(--white); }

.toc { width: 220px; flex-shrink: 0; padding: 40px 24px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; }
.toc h4 { margin: 0; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.2); letter-spacing: 1.5px; text-transform: uppercase; }
.toc nav { display: flex; flex-direction: column; border-left: 1px solid var(--line-2); padding-left: 16px; }
.toc nav a { display: block; padding: 8px 0; font-size: 12px; color: rgba(255,255,255,.35); margin-left: -17px; padding-left: 16px; border-left: 2px solid transparent; transition: color .15s; }
.toc nav a:hover { color: var(--white); }
.toc nav a.on { color: var(--blue); border-left-color: var(--blue); }
.toc-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.toc-actions button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; color: rgba(255,255,255,.4); text-align: left; transition: all .15s; }
.toc-actions button:hover { color: var(--white); background: rgba(255,255,255,.06); }
.ready-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 10px; background: rgba(52,211,153,.05); border: 1px solid rgba(52,211,153,.15); }
.ready-card p { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.5; }
.ready-card button { background: rgba(52,211,153,.12); border: 0; border-radius: 6px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--green); }
.ready-card button:disabled { opacity: .6; cursor: default; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #1b2438; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 18px; font-size: 13px; color: var(--white); opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.scrim { display: none; }
.app-bar { display: none; }

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 1180px) { .toc { display: none; } }
@media (max-width: 1080px) {
  .briefs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .menu-btn { display: inline-flex; }
  .nav-links { position: absolute; top: 72px; left: 24px; right: 24px; flex-direction: column; align-items: stretch; gap: 4px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; display: none; z-index: 20; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 12px; }
  .hero { padding-top: 40px; gap: 40px; }
  .preview { max-width: none; }
  .grid-2 { grid-template-columns: 1fr; }

  .app { flex-direction: column; }
  .app-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--bg-side); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .app-bar button { background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 7px; color: rgba(255,255,255,.7); display: flex; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); width: 260px; }
  .side.open { transform: none; }
  .side--rail { width: 260px; align-items: stretch; gap: 0; }
  .side--rail .side-logo { padding: 0 24px 32px; margin: 0; }
  .side--rail .side-nav { padding: 0 12px; gap: 2px; align-items: stretch; }
  .side--rail .side-nav a { width: auto; height: auto; padding: 10px 12px; justify-content: flex-start; }
  .rail-label { display: inline !important; }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 25; }
  .main, .reader { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .briefs, .two-sides, .opts { grid-template-columns: 1fr; }
  .feature .tri { grid-template-columns: 1fr; }
  .sides { grid-template-columns: 1fr; }
  .cta { padding: 40px 24px; }
  .hero h1 { letter-spacing: -1.2px; }
  .streak { padding: 6px 10px; font-size: 12px; }
  .topbar h1 { font-size: 24px; }
}
.rail-label { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* data-driven bits */
.dyk-lg .src { font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,.25); }
.bcard .dot, .tag .dot { background: var(--c, var(--blue)); }
