/* ==========================================================================
   LatestCrypto.xyz — prototype stylesheet
   Clean "fintech" aesthetic, light + dark, fully responsive.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --font-display: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-softer: #eef2f9;
  --surface: #ffffff;
  --border: #e3e8f0;
  --ink: #0d152b;
  --ink-2: #3f4a63;
  --muted: #66718a;

  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --primary-ink: #ffffff;
  --primary-soft: #eef0ff;
  --accent: #f59e0b;
  --green: #10b981;
  --green-soft: #e7f8f1;
  --red: #ef4444;
  --red-soft: #fdecec;

  --btc: #f7931a;
  --eth: #627eea;
  --sol: #14f195;
  --usdt: #26a17b;
  --bnb: #f0b90b;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(13,21,43,.06), 0 1px 3px rgba(13,21,43,.04);
  --shadow: 0 4px 16px rgba(13,21,43,.07), 0 2px 6px rgba(13,21,43,.04);
  --shadow-lg: 0 18px 50px rgba(13,21,43,.14), 0 6px 18px rgba(13,21,43,.08);

  --container: 1180px;
  --gap: clamp(16px, 3vw, 28px);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

html[data-theme="dark"] {
  --bg: #0a0f1f;
  --bg-soft: #0f1730;
  --bg-softer: #131c38;
  --surface: #121b34;
  --border: #25304f;
  --ink: #eef2fb;
  --ink-2: #c3ccdf;
  --muted: #8d99b5;
  --primary: #7c83ff;
  --primary-2: #a78bfa;
  --primary-soft: #1b2347;
  --green-soft: #0f2a22;
  --red-soft: #2c1718;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 6px 20px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
  background: var(--primary-soft); padding: 6px 12px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section__head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.section__head p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; }
.grid { display: grid; gap: var(--gap); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 12px 20px; border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--primary-ink); box-shadow: 0 8px 20px rgba(79,70,229,.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79,70,229,.36); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.26); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-pill);
}
.badge--beginner { background: var(--green-soft); color: var(--green); }
.badge--intermediate { background: #fef3e2; color: #d97706; }
.badge--advanced { background: var(--red-soft); color: var(--red); }
.badge--sponsored { background: var(--bg-softer); color: var(--muted); }
.badge--news { background: var(--primary-soft); color: var(--primary); }
html[data-theme="dark"] .badge--intermediate { background: #2a2110; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #cfd6e6; font-size: .8rem; }
html[data-theme="dark"] .topbar { background: #060a16; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__disc { color: #8e98b0; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.header__inner {
  display: flex; align-items: center; gap: 18px;
  height: 70px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .header__inner { width: 100%; max-width: none; padding-inline: max(20px, calc((100% - var(--container)) / 2 + 20px)); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--ink-2);
  padding: 8px 11px; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition);
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.active { color: var(--primary); background: var(--primary-soft); }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); transition: var(--transition);
}
.icon-btn:hover { color: var(--ink); box-shadow: var(--shadow-sm); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 12% 8%, rgba(124,58,237,.16), transparent 60%),
    radial-gradient(55% 55% at 92% 14%, rgba(79,70,229,.18), transparent 60%),
    radial-gradient(50% 60% at 70% 100%, rgba(245,158,11,.10), transparent 55%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 92px); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); margin-top: 18px; max-width: 540px; }
.hero__search { display: flex; gap: 8px; margin-top: 28px; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 7px 7px 7px 18px; box-shadow: var(--shadow); }
.hero__search input { flex: 1; border: none; background: none; outline: none; color: var(--ink); font-size: 1rem; }
.hero__search input::placeholder { color: var(--muted); }
.hero__cta { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.hero__trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.hero__trust b { color: var(--ink-2); font-weight: 600; }

/* hero visual — learning path card */
.pathcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.pathcard__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pathcard__head h3 { font-size: 1.05rem; }
.pathcard__head span { font-size: .8rem; color: var(--muted); }
.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); transition: var(--transition); }
.step:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.step__num { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; }
.step--1 .step__num { background: linear-gradient(135deg, #10b981, #059669); }
.step--2 .step__num { background: linear-gradient(135deg, #f59e0b, #d97706); }
.step--3 .step__num { background: linear-gradient(135deg, #ef4444, #dc2626); }
.step__body strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.step__body span { font-size: .84rem; color: var(--muted); }
.step__pct { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--muted); }
.coin-chip { position: absolute; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.5rem; color: #fff; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.coin-chip--btc { background: var(--btc); top: -22px; right: 38px; }
.coin-chip--eth { background: var(--eth); bottom: -20px; left: -22px; animation-delay: -2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Logo strip ---------- */
.logos { border-block: 1px solid var(--border); background: var(--bg-soft); }
.logos__inner { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 54px); flex-wrap: wrap; padding-block: 22px; }
.logos__label { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.logos__item { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--muted); opacity: .8; }

/* ---------- Learning path (full) ---------- */
.tiers { grid-template-columns: repeat(3, 1fr); }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; overflow: hidden; }
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; }
.tier--1::before { background: linear-gradient(90deg, #10b981, #34d399); }
.tier--2::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.tier--3::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.tier__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tier h3 { font-size: 1.3rem; }
.tier__meta { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.tier ul { display: grid; gap: 10px; }
.tier li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.tier li svg { width: 18px; height: 18px; flex: none; color: var(--primary); }
.tier__foot { margin-top: 22px; }

/* ---------- Silo grid ---------- */
.silos { grid-template-columns: repeat(3, 1fr); }
.silo { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.silo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.silo__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.silo__icon svg { width: 24px; height: 24px; }
.silo h3 { font-size: 1.12rem; margin-bottom: 6px; }
.silo p { font-size: .9rem; color: var(--muted); }
.silo__count { display: inline-block; margin-top: 14px; font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--primary); }
.c-indigo { background: linear-gradient(135deg,#4f46e5,#6366f1); }
.c-violet { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.c-teal { background: linear-gradient(135deg,#0d9488,#14b8a6); }
.c-amber { background: linear-gradient(135deg,#d97706,#f59e0b); }
.c-rose { background: linear-gradient(135deg,#e11d48,#fb7185); }
.c-sky { background: linear-gradient(135deg,#0284c7,#38bdf8); }
.c-green { background: linear-gradient(135deg,#059669,#34d399); }
.c-slate { background: linear-gradient(135deg,#475569,#94a3b8); }
.c-purple { background: linear-gradient(135deg,#6d28d9,#8b5cf6); }

/* ---------- Cards: articles / news ---------- */
.cards { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { height: 168px; position: relative; display: grid; place-items: center; }
.card__media .glyph { font-size: 3rem; font-weight: 700; color: rgba(255,255,255,.92); font-family: var(--font-display); }
.card__media .badge { position: absolute; top: 12px; left: 12px; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-family: var(--font-display); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); margin-bottom: 8px; }
.card h3 { font-size: 1.08rem; line-height: 1.3; }
.card p { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.card__meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-size: .82rem; color: var(--muted); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 700; font-family: var(--font-display); }
.media-grad-1 { background: linear-gradient(135deg,#4f46e5,#7c3aed); }
.media-grad-2 { background: linear-gradient(135deg,#0ea5e9,#6366f1); }
.media-grad-3 { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.media-grad-4 { background: linear-gradient(135deg,#10b981,#0d9488); }
.media-grad-5 { background: linear-gradient(135deg,#8b5cf6,#ec4899); }
.media-grad-6 { background: linear-gradient(135deg,#0d9488,#22d3ee); }

/* news list variant */
.news-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: var(--transition); }
.news-row:hover { box-shadow: var(--shadow); transform: translateX(3px); }
.news-row__thumb { width: 84px; height: 84px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.6rem; }
.news-row__src { font-size: .78rem; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.news-row__src b { color: var(--primary); font-weight: 600; }
.news-row h4 { font-family: var(--font-display); font-size: 1rem; line-height: 1.35; }
.news-row time { font-size: .78rem; color: var(--muted); }

/* ---------- Stars / ratings ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; }
.stars--sm svg { width: 15px; height: 15px; }
.rating-num { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* review card */
.review-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-card__top { display: flex; align-items: center; gap: 14px; }
.review-card__logo { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.5rem; flex: none; }
.review-card__score { margin-left: auto; text-align: right; }
.review-card__score .big { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.review-card__score small { font-size: .75rem; color: var(--muted); }
.review-card ul { display: grid; gap: 8px; }
.review-card li { font-size: .88rem; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.review-card li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.li-pro svg { color: var(--green); }
.li-con svg { color: var(--red); }

/* ---------- Ad + affiliate ---------- */
.ad-slot { border: 1.5px dashed var(--border); border-radius: var(--radius); background: var(--bg-soft); display: grid; place-items: center; text-align: center; padding: 26px; color: var(--muted); }
.ad-slot small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.ad-slot strong { font-family: var(--font-display); color: var(--ink-2); }
.ad-slot--leaderboard { min-height: 110px; }
.affiliate-box { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--primary-soft), var(--surface)); padding: 22px; box-shadow: var(--shadow-sm); }
.affiliate-box__label { display: flex; justify-content: space-between; align-items: center; font-size: .76rem; color: var(--muted); margin-bottom: 14px; }
.affiliate-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--border); }
.affiliate-item:first-of-type { border-top: none; }
.affiliate-item__logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.affiliate-item h4 { font-family: var(--font-display); font-size: .96rem; }
.affiliate-item .stars { margin-top: 2px; }
.affiliate-item .btn { margin-left: auto; padding: 9px 16px; font-size: .85rem; }

/* ---------- E-E-A-T / authors ---------- */
.authors { grid-template-columns: repeat(4, 1fr); }
.author-card { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.author-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.author-card .avatar { width: 72px; height: 72px; font-size: 1.5rem; margin: 0 auto 14px; }
.author-card h4 { font-family: var(--font-display); font-size: 1.05rem; }
.author-card .role { font-size: .84rem; color: var(--primary); font-weight: 600; margin-top: 2px; }
.author-card p { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.author-card .creds { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.chip { font-size: .72rem; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--bg-softer); color: var(--ink-2); font-weight: 600; }

/* ---------- Newsletter ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); color: #fff; text-align: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed 60%, #db2777); box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255,255,255,.18), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 10px; max-width: 520px; margin-inline: auto; }
.cta-band form { display: flex; gap: 10px; max-width: 460px; margin: 26px auto 0; }
.cta-band input { flex: 1; padding: 14px 18px; border-radius: var(--radius-pill); border: none; outline: none; font-size: 1rem; }
.cta-band small { display: block; margin-top: 14px; color: rgba(255,255,255,.75); font-size: .8rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aeb7cc; padding-block: clamp(40px, 6vw, 64px) 28px; }
html[data-theme="dark"] .footer { background: #060a16; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer__brand .brand { color: #fff; margin-bottom: 14px; }
.footer__brand p { font-size: .9rem; max-width: 280px; }
.footer__brand .socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__brand .socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfd6e6; transition: var(--transition); }
.footer__brand .socials a:hover { background: var(--primary); color: #fff; }
.footer__col h5 { font-family: var(--font-display); color: #fff; font-size: .92rem; margin-bottom: 14px; }
.footer__col a { display: block; font-size: .88rem; padding: 5px 0; color: #aeb7cc; transition: color var(--transition); }
.footer__col a:hover { color: #fff; }
.footer__disc { margin-top: 36px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255,255,255,.05); font-size: .8rem; color: #8e98b0; }
.footer__disc strong { color: #cfd6e6; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: #8e98b0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); padding-block: 18px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

/* ---------- Article page ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr minmax(0, 720px) 300px; gap: 40px; align-items: start; padding-block: 10px 64px; }
@media (max-width: 1080px){
  .article-wrap { grid-template-columns: 1fr; }
  /* stacked layout: the sticky TOC would float over the article — hide it, and unstick the sidebar */
  .toc { display: none; }
  .aside-sticky { position: static; }
}
.toc { position: sticky; top: 92px; font-size: .88rem; }
.toc h5 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--border); color: var(--muted); }
.toc a:hover, .toc a.active { color: var(--primary); border-color: var(--primary); }
.article-main { min-width: 0; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 10px 0 16px; }
.article-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--border); margin-bottom: 24px; }
.article-byline .avatar { width: 44px; height: 44px; }
.article-byline .who strong { font-family: var(--font-display); }
.article-byline .who span { display: block; font-size: .82rem; color: var(--muted); }
.article-byline .meta { margin-left: auto; display: flex; gap: 16px; font-size: .84rem; color: var(--muted); text-align: right; }
.article-hero { height: clamp(220px, 34vw, 360px); border-radius: var(--radius-lg); display: grid; place-items: center; margin-bottom: 32px; color: rgba(255,255,255,.9); font-size: 4rem; font-weight: 700; font-family: var(--font-display); }
.prose { font-size: 1.06rem; color: var(--ink-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 1.6rem; margin-top: 40px; color: var(--ink); scroll-margin-top: 90px; }
.prose h3 { font-size: 1.25rem; margin-top: 28px; color: var(--ink); }
.prose p { line-height: 1.75; }
.prose ul.bul { display: grid; gap: 10px; padding-left: 4px; }
.prose ul.bul li { position: relative; padding-left: 28px; }
.prose ul.bul li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.prose a.inline { color: var(--primary); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.callout { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--border); background: var(--bg-soft); display: flex; gap: 14px; }
.callout .ico { font-size: 1.4rem; }
.callout--key { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.callout--warn { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.callout h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }
.callout p { font-size: .92rem; margin: 0; color: var(--ink-2); }

/* affiliate inline CTA */
.aff-cta { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.aff-cta__logo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.6rem; flex: none; }
.aff-cta__body { flex: 1; min-width: 180px; }
.aff-cta__body strong { font-family: var(--font-display); font-size: 1.05rem; }
.aff-cta__body p { font-size: .86rem; color: var(--muted); margin: 4px 0 0; }
.aff-cta small.disc { display: block; width: 100%; font-size: .72rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-family: var(--font-display); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform var(--transition); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); font-size: .96rem; }

/* takeaways */
.takeaways { border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); background: var(--bg-soft); padding: 22px 24px; }
.takeaways h3 { font-size: 1.1rem; margin-bottom: 12px; }
.takeaways ul { display: grid; gap: 10px; }
.takeaways li { display: flex; gap: 10px; font-size: .96rem; }
.takeaways li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }

/* author bio */
.author-bio { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.author-bio .avatar { width: 64px; height: 64px; font-size: 1.4rem; flex: none; }
.author-bio h4 { font-family: var(--font-display); }
.author-bio .role { color: var(--primary); font-size: .85rem; font-weight: 600; }
.author-bio p { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* article sidebar */
.aside-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px; box-shadow: var(--shadow-sm); }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h5 { font-family: var(--font-display); font-size: .92rem; margin-bottom: 14px; }
.aside-list a { display: block; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; color: var(--ink-2); }
.aside-list a:last-child { border-bottom: none; }
.aside-list a:hover { color: var(--primary); }
.aside-sticky { position: sticky; top: 92px; }

/* ---------- Hub / archive ---------- */
.hub-hero { padding-block: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hub-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 10%, rgba(79,70,229,.14), transparent 60%); }
.hub-hero__inner { position: relative; }
.hub-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 720px; }
.hub-hero p { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin-top: 14px; }
.subtopics { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.subtopic { padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: .88rem; transition: var(--transition); }
.subtopic:hover, .subtopic.active { background: var(--primary); color: #fff; border-color: transparent; }
.layout-2col { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media (max-width: 980px){ .layout-2col { grid-template-columns: 1fr; } }

/* ---------- Glossary ---------- */
.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.az-nav a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: .9rem; transition: var(--transition); }
.az-nav a:hover { background: var(--primary); color: #fff; border-color: transparent; transform: translateY(-2px); }
.glossary-group { margin-bottom: 40px; }
.glossary-group__letter { font-family: var(--font-display); font-size: 2rem; color: var(--primary); border-bottom: 2px solid var(--border); padding-bottom: 8px; margin-bottom: 18px; }
.term { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; transition: var(--transition); }
.term:hover { box-shadow: var(--shadow); }
.term h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.term h3 .badge { font-size: .65rem; }
.term p { font-size: .94rem; color: var(--ink-2); margin-top: 8px; }
.term a.more { font-size: .85rem; color: var(--primary); font-weight: 600; margin-top: 8px; display: inline-block; }

/* ---------- Comparison table ---------- */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--bg-soft); font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp td:first-child { font-weight: 600; color: var(--ink); }
.cmp .yes { color: var(--green); font-weight: 700; }
.cmp .no { color: var(--red); }

/* rating breakdown bars */
.rbreak { display: grid; gap: 12px; }
.rbreak__row { display: grid; grid-template-columns: 140px 1fr 40px; gap: 12px; align-items: center; font-size: .88rem; }
.rbreak__bar { height: 8px; border-radius: 999px; background: var(--bg-softer); overflow: hidden; }
.rbreak__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--border); border: none; margin-block: 0; }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .tiers, .silos, .cards, .authors { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .topbar__disc { display: none; }
}
@media (max-width: 600px){
  .tiers, .silos, .cards, .authors, .footer__top { grid-template-columns: 1fr; }
  .article-byline .meta { margin-left: 0; width: 100%; text-align: left; justify-content: flex-start; }
  .cta-band form, .hero__search { flex-direction: column; }
  .hero__search { border-radius: var(--radius); }
  /* Mobile header: drop the wide "Start Here" button so the hamburger never overflows (it's in the menu + hero). */
  .header__actions .btn--primary { display: none; }
  .header__inner { gap: 8px; }
}
/* Smallest phones (iPhone SE etc.): also drop the manual theme toggle so brand + search + menu always fit. */
@media (max-width: 360px){
  .header__actions .theme-toggle { display: none; }
}

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); transform: translateX(100%); transition: transform var(--transition); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { padding: 14px 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
.mobile-menu__close { align-self: flex-end; font-size: 1.6rem; padding: 8px; }

/* ==========================================================================
   Generated-site components (build.py) — courses, lessons, search, hero art
   ========================================================================== */

/* hero art (SVG) fills the article hero block */
.article-hero { overflow: hidden; padding: 0; }
.article-hero .hero-art, .article-hero svg { width: 100%; height: 100%; }
.hero-art { width: 100%; height: 100%; }

/* intro paragraph emphasis */
.prose .lead-p { font-size: 1.16rem; color: var(--ink); font-weight: 500; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--bg-softer); padding: 2px 6px; border-radius: 6px; }
.prose ol.steps { display: grid; gap: 14px; counter-reset: step; padding-left: 0; }
.prose ol.steps li { position: relative; padding-left: 44px; line-height: 1.7; }
.prose ol.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.pullquote { border-left: 4px solid var(--primary); padding: 4px 0 4px 20px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--ink); font-style: italic; }
.table-wrap { overflow-x: auto; }

/* course grid + cards */
.course-grid { grid-template-columns: repeat(3, 1fr); }
.course-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-card__art { height: 132px; display: grid; place-items: center; }
.course-card__art span { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; color: rgba(255,255,255,.96); }
.course-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.course-card__body h3 { font-size: 1.16rem; line-height: 1.25; margin: 2px 0 6px; }
.course-card__body p { font-size: .9rem; color: var(--muted); flex: 1; }
.course-card__body .silo__count { margin-top: 14px; }

/* course lesson list */
.course-list { display: grid; gap: 12px; }
.lesson-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: var(--transition); }
.lesson-row:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.lesson-row__num { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.lesson-row__body { flex: 1; min-width: 0; }
.lesson-row__body strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.lesson-row__body span { font-size: .85rem; color: var(--muted); }
.lesson-row__meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); flex: none; }

/* prev/next pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.pager__btn { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: var(--transition); }
.pager__btn:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.pager__btn span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.pager__btn b { font-family: var(--font-display); font-size: .98rem; color: var(--ink); }
.pager__btn--next { text-align: right; }

/* search */
.search-results { min-height: 200px; }
.search-h { font-family: var(--font-display); font-size: 1.15rem; margin: 28px 0 14px; display: flex; align-items: center; gap: 10px; }
.search-h span { font-size: .8rem; color: var(--muted); background: var(--bg-softer); padding: 2px 9px; border-radius: var(--radius-pill); }
.search-list { display: grid; gap: 10px; }
.search-item { display: block; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: var(--transition); }
.search-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.search-item strong { font-family: var(--font-display); font-size: 1rem; display: block; }
.search-item span { font-size: .86rem; color: var(--muted); display: block; margin-top: 2px; }
.az-nav a.dis { opacity: .35; pointer-events: none; }

/* footer attribution */
.footer__built a { color: #cfd6e6; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer__built a:hover { color: #fff; }

@media (max-width: 960px){ .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .course-grid { grid-template-columns: 1fr; } .pager { grid-template-columns: 1fr; } .lesson-row__meta { display: none; } }

/* cluster-grouped hub sections (scales to hundreds of articles) */
.cluster { margin-bottom: 44px; scroll-margin-top: 90px; }
.cluster__head { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.cluster__head span { font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--bg-softer); padding: 2px 10px; border-radius: var(--radius-pill); }
@media (max-width: 900px){ .cluster .cards { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 560px){ .cluster .cards { grid-template-columns: 1fr !important; } }

/* ==========================================================================
   Live prices, news, share (price.js / news.js / share.js)
   ========================================================================== */
.lc-ticker { background: var(--ink); color: #fff; overflow: hidden; border-bottom: 1px solid var(--border); }
html[data-theme="dark"] .lc-ticker { background: #060a16; }
.lc-ticker__track { display: inline-flex; gap: 26px; white-space: nowrap; padding: 8px 0; animation: lc-scroll 60s linear infinite; }
.lc-ticker:hover .lc-ticker__track { animation-play-state: paused; }
@keyframes lc-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lc-tick { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; color: #cfd6e6; }
.lc-tick img { width: 16px; height: 16px; border-radius: 50%; }
.lc-tick b { color: #fff; font-family: var(--font-display); }
.lc-chg { font-size: .76rem; font-weight: 600; }
.lc-up { color: #34d399; } .lc-down { color: #f87171; }

.lc-price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lc-price-card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: var(--transition); }
.lc-price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lc-price-card img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.lc-price-card__id strong { display: block; font-family: var(--font-display); font-size: .92rem; }
.lc-price-card__id span { font-size: .74rem; color: var(--muted); }
.lc-price-card__p { margin-left: auto; text-align: right; }
.lc-price-card__p b { display: block; font-family: var(--font-display); font-size: .96rem; }
@media (max-width: 900px){ .lc-price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .lc-price-grid { grid-template-columns: 1fr; } }

.lc-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.lc-share__label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.lc-share__btn { font-family: var(--font-display); font-weight: 600; font-size: .82rem; padding: 7px 13px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: var(--transition); }
.lc-share__btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.article-hero--img { background-size: cover; background-position: center; }
.article-hero__credit { font-size: .72rem; color: var(--muted); margin: -24px 0 28px; text-align: right; }
.article-hero__credit a { color: var(--muted); text-decoration: underline; }

/* ==========================================================================
   Astra page + homepage band, capability cards, keep-reading, reading progress
   ========================================================================== */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 55; pointer-events: none; }
.reading-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }

.astra-band { display: flex; align-items: center; gap: clamp(20px,4vw,48px); border-radius: var(--radius-lg); padding: clamp(26px,4vw,44px); color: #fff; background: linear-gradient(135deg,#4f46e5,#7c3aed 55%,#db2777); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.astra-band::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 80% at 85% 10%, rgba(255,255,255,.18), transparent 60%); }
.astra-band > * { position: relative; z-index: 1; }
.astra-band__mark { width: 92px; height: 92px; flex: none; border-radius: 24px; background: rgba(255,255,255,.14); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.astra-band__mark svg { width: 54px; height: 54px; }
.astra-band__mascot { width: 132px; flex: none; filter: drop-shadow(0 12px 26px rgba(0,0,0,.3)); animation: astraFloat 5s ease-in-out infinite; }
.astra-band__mascot svg { width: 100%; height: auto; display: block; }
.astra-band__copy h2 { color:#fff; font-size: clamp(1.5rem,3vw,2.1rem); }
.astra-band__copy p { color: rgba(255,255,255,.92); margin-top: 10px; max-width: 580px; }
.astra-band .hero__cta { margin-top: 20px; }
@media (max-width:680px){ .astra-band { flex-direction: column; text-align: center; } .astra-band .hero__cta{justify-content:center} }

.astra-page-hero { text-align: center; color:#fff; padding: clamp(48px,7vw,84px) 0; background: linear-gradient(135deg,#4f46e5,#7c3aed 55%,#db2777); position: relative; overflow: hidden; }
.astra-page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(50% 60% at 50% 0%, rgba(255,255,255,.18), transparent 60%); }
.astra-page-hero .container { position: relative; z-index: 1; }
.astra-page-hero__mark { width: 108px; height: 108px; margin: 0 auto 22px; border-radius: 28px; background: rgba(255,255,255,.14); display: grid; place-items: center; box-shadow: 0 16px 40px rgba(0,0,0,.3); animation: astraFloat 5s ease-in-out infinite; }
.astra-page-hero__mark svg { width: 62px; height: 62px; }
.astra-page-hero__mascot { width: 200px; max-width: 56vw; margin: 0 auto 14px; filter: drop-shadow(0 18px 40px rgba(0,0,0,.34)); animation: astraFloat 5s ease-in-out infinite; }
.astra-page-hero__mascot svg { width: 100%; height: auto; display: block; }
@keyframes astraFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.astra-page-hero h1 { color:#fff; font-size: clamp(2.3rem,6vw,3.6rem); }
.astra-page-hero h1 span { background: linear-gradient(90deg,#fff,#c7d2fe); -webkit-background-clip:text; background-clip:text; color:transparent; }
.astra-page-hero p { color: rgba(255,255,255,.92); max-width: 640px; margin: 16px auto 24px; font-size: 1.08rem; }

.acaps { grid-template-columns: repeat(3,1fr); }
.acap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.acap:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.acap__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; color:#fff; background: linear-gradient(135deg,var(--primary),var(--primary-2)); margin-bottom: 14px; }
.acap h3 { font-size: 1.08rem; margin-bottom: 6px; }
.acap p { font-size: .92rem; color: var(--muted); }
@media (max-width:900px){ .acaps{grid-template-columns:repeat(2,1fr)} }
@media (max-width:600px){ .acaps{grid-template-columns:1fr} }

.keep-reading { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.keep-reading h2 { font-size: 1.4rem; margin-bottom: 18px; }
@media (max-width:700px){ .keep-reading .cards{grid-template-columns:1fr !important} }

/* team byline + founding-story band (no fake authors) */
.avatar--team { background: linear-gradient(135deg,#4f46e5,#7c3aed); }
.story-band { max-width: 760px; margin-inline: auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px,4vw,44px); box-shadow: var(--shadow-sm); }
.story-band p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.7; }
.story-band p + p { margin-top: 14px; }
.story-band__tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0; }
.story-band__tags span { font-size: .84rem; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; }

/* ==========================================================================
   Quizzes, back-to-top, cookie consent  (all z-index BELOW Astra: 9998/9999)
   ========================================================================== */
.quiz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px,3vw,32px); box-shadow: var(--shadow-sm); }
.quiz__head { margin-bottom: 20px; }
.quiz__head h3 { font-size: 1.3rem; }
.quiz__head span { font-size: .84rem; color: var(--muted); }
.quiz__q { padding: 18px 0; border-top: 1px solid var(--border); }
.quiz__q:first-of-type { border-top: none; padding-top: 0; }
.quiz__qtext { font-weight: 500; margin-bottom: 12px; }
.quiz__opts { display: grid; gap: 8px; }
.quiz__opt { text-align: left; padding: 11px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-soft); font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; transition: var(--transition); }
.quiz__opt:hover:not(:disabled) { border-color: var(--primary); }
.quiz__opt.sel { border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.quiz__opt.correct { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 600; }
.quiz__opt.wrong { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.quiz__explain { font-size: .88rem; color: var(--ink-2); margin-top: 10px; padding: 10px 14px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.quiz__foot { margin-top: 24px; text-align: center; }
.quiz__score { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.quiz__score span { font-size: 1rem; color: var(--muted); }
.quiz__result p { margin-top: 6px; font-size: 1.05rem; }

.back-to-top { position: fixed; left: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s, transform .25s; z-index: 40; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { color: var(--primary); border-color: var(--primary); }
.back-to-top svg { width: 20px; height: 20px; }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9990; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px; max-width: 720px; margin-inline: auto; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner h4 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 6px; }
.cookie-banner p { font-size: .88rem; color: var(--muted); }
.cookie-banner p a { color: var(--primary); }
.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cookie-prefs { display: none; margin-top: 14px; border-top: 1px solid var(--border); padding-top: 8px; }
.cookie-prefs.show { display: block; }
.cookie-pref { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.cookie-pref:last-child { border-bottom: none; }
.cookie-pref strong { font-size: .9rem; display: block; }
.cookie-pref span { font-size: .8rem; color: var(--muted); }
.cookie-switch { position: relative; width: 42px; height: 24px; flex: none; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.cookie-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--bg-softer); transition: .2s; pointer-events: none; }
.cookie-switch i::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: var(--shadow-sm); }
.cookie-switch input:checked + i { background: var(--primary); }
.cookie-switch input:checked + i::before { transform: translateX(18px); }
.cookie-switch input:disabled + i { opacity: .55; }

/* richer news cards (multi-source + on-site cross-link) */
.news-grid { grid-template-columns: 1fr 1fr; }
.news-row--rich { flex-direction: column; align-items: stretch; gap: 10px; }
.news-row__main { display: flex; gap: 16px; align-items: flex-start; }
.news-row__learn { font-size: .8rem; font-weight: 600; color: var(--primary); align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); transition: var(--transition); }
.news-row__learn:hover { background: var(--primary); color: #fff; }
@media (max-width:760px){ .news-grid { grid-template-columns: 1fr; } }

/* ── Quiz navigation: surfaced so quizzes never get missed ───────────────── */
.quiz-cta { display:flex; align-items:center; gap:14px; margin-top:22px; padding:15px 18px; border-radius:var(--radius);
  text-decoration:none; color:#fff; background:linear-gradient(120deg,#4f46e5,#7c3aed); box-shadow:0 10px 26px rgba(79,70,229,.28); transition:var(--transition); }
.quiz-cta:hover { transform:translateY(-2px); box-shadow:0 16px 34px rgba(79,70,229,.38); }
.quiz-cta__ico { font-size:1.7rem; line-height:1; flex:none; }
.quiz-cta__body { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.quiz-cta__body strong { font-family:var(--font-display); font-size:1.02rem; }
.quiz-cta__body span { font-size:.82rem; opacity:.92; }
.quiz-cta__go { flex:none; font-weight:600; font-size:.88rem; background:rgba(255,255,255,.18); padding:9px 14px; border-radius:999px; white-space:nowrap; }

/* Quiz row inside the course lesson list */
.lesson-row--quiz { background:linear-gradient(120deg, color-mix(in srgb,var(--primary) 12%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb,var(--primary) 42%, transparent); border-style:dashed; }
.lesson-row--quiz .lesson-row__num { background:linear-gradient(135deg,#4f46e5,#7c3aed); color:#fff; display:grid; place-items:center; font-size:1.05rem; }
.lesson-row--quiz .lesson-row__meta { color:var(--primary); font-weight:700; }

/* Aside quiz card on the course hub */
.aside-card--quiz { background:linear-gradient(160deg, color-mix(in srgb,var(--primary) 14%, var(--surface)), var(--surface));
  border:1px solid color-mix(in srgb,var(--primary) 32%, transparent); }
.aside-card--quiz h5 { margin-bottom:6px; }

/* Homepage quiz band */
.quiz-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.quiz-card { position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:18px; min-height:142px;
  padding:20px; border-radius:var(--radius); text-decoration:none; color:#fff; overflow:hidden;
  background:linear-gradient(150deg,#4f46e5,#7c3aed); box-shadow:0 10px 26px rgba(79,70,229,.26); transition:var(--transition); }
.quiz-card:hover { transform:translateY(-4px); box-shadow:0 18px 38px rgba(79,70,229,.38); }
.quiz-card h3 { font-family:var(--font-display); font-size:1.06rem; line-height:1.25; color:#fff; }
.quiz-card__badge { align-self:flex-start; font-size:.72rem; font-weight:700; letter-spacing:.02em; background:rgba(255,255,255,.2); padding:4px 10px; border-radius:999px; }
.quiz-card__go { font-weight:600; font-size:.9rem; }

/* Real 3D Astra render (images/astra-mascot.png) with SVG fallback */
.astra-render { width:100%; height:auto; display:block; }
.astra-fallback { display:block; }
.astra-fallback svg { width:100%; height:auto; display:block; }
.astra-page-hero__mascot, .astra-band__mascot { position:relative; }
