/* ============================================================
   Learnix — custom layer over Bootstrap 5
   Blueprint / wayfinding identity
   ============================================================ */
:root {
  --ink:      #0E1B2E;
  --ink-2:    #16273F;
  --ink-3:    #21395C;
  --paper:    #F3F6FB;
  --line:     #DBE3EF;
  --route:    #284B73;
  --accent:   #F5A623;
  --accent-d: #9c5a00;
  --text:     #18222F;
  --muted:    #56657C;
  --d-text:   #EAF1FB;
  --d-muted:  #A6B9D4;

  --c-data:   #2563A8;
  --c-prog:   #5B53C9;
  --c-design: #D6336C;
  --c-mkt:    #1FA97A;
  --c-infra:  #E8590C;

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --bs-body-font-family: var(--body);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--paper);
}

body { font-family: var(--body); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5 { font-family: var(--display); letter-spacing: -.02em; color: var(--ink); font-weight: 600; }
h1 { font-weight: 700; letter-spacing: -.03em; }
.display-hero { font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: 1.05; }
a { color: var(--accent-d); text-decoration: none; }
a:hover { text-decoration: underline; }
.text-mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-d); }
.section { padding: 5rem 0; }
.lede { font-size: 1.15rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn-accent { background: var(--accent); color: #1c1303; font-weight: 600; border: none; }
.btn-accent:hover { background: #ffb838; color: #1c1303; transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; font-weight: 600; border: none; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-outline-light-2 { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn-outline-light-2:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn { border-radius: 999px; transition: transform .15s ease, background .2s ease; }
.btn-lg { padding: .7rem 1.5rem; }

/* ---- Navbar ---- */
.navbar { background: rgba(243,246,251,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.navbar-brand { font-family: var(--display); font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; }
.navbar-brand img { width: 30px; height: 30px; }
.navbar .nav-link { color: var(--text); font-weight: 500; }
.navbar .nav-link:hover { color: var(--accent-d); }

/* ============================================================
   Blueprint surfaces & overlays
   ============================================================ */
.blueprint { position: relative; background: var(--ink); color: var(--d-text); overflow: hidden; }
.blueprint::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 75% 15%, #000 35%, transparent 100%);
  pointer-events: none;
}
.blueprint > * { position: relative; z-index: 1; }
.blueprint h1, .blueprint h2, .blueprint h3 { color: #fff; }
.blueprint .lede { color: var(--d-muted); }
.blueprint .eyebrow { color: var(--accent); }

/* photo hero with navy duotone overlay + graceful fallback */
.photo-band {
  position: relative; background-color: var(--ink); color: var(--d-text);
  background-size: cover; background-position: center; overflow: hidden;
}
.photo-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(14,27,46,.95) 0%, rgba(14,27,46,.82) 45%, rgba(33,57,92,.7) 100%);
}
.photo-band > * { position: relative; z-index: 1; }
.photo-band h1, .photo-band h2 { color: #fff; }
.photo-band .lede { color: var(--d-muted); }

/* hero route SVG */
.route-art svg { width: 100%; height: auto; max-width: 380px; }

.hero-stats .stat b { font-family: var(--display); font-size: 1.7rem; color: #fff; display: block; }
.hero-stats .stat span { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--d-muted); }

/* ============================================================
   Path Finder
   ============================================================ */
.finder-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px rgba(14,27,46,.10); }
.finder .q-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.opt {
  font-size: .9rem; padding: .5rem .9rem; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--text); cursor: pointer; transition: .15s;
}
.opt:hover { border-color: var(--accent); }
.opt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.finder-result a { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 600; }
.finder-result a:hover { border-color: var(--accent); text-decoration: none; transform: translateX(4px); transition: .15s; }
.finder-result .arrow { font-family: var(--mono); color: var(--accent-d); font-size: .85rem; }

/* ============================================================
   Filters + roadmap cards
   ============================================================ */
.search-input { border: 1.5px solid var(--line); border-radius: 10px; padding: .6rem .9rem; font-size: .95rem; }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: none; }
.chip { font-size: .85rem; padding: .4rem .85rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--ink-3); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.rcard {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s; color: var(--text);
}
.rcard:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(14,27,46,.13); border-color: #C7D3E4; text-decoration: none; }
.rcard .rcard-bar { height: 6px; width: 100%; }
.rcard .rcard-body { padding: 1.25rem 1.3rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.rcard .rcard-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; }
.rcard .cat { font-family: var(--mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rcard h3 { font-size: 1.15rem; margin: 0; }
.rcard p { font-size: .9rem; color: var(--muted); margin: 0; flex: 1; }
.rcard .meta { display: flex; gap: 1rem; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
.rcard .stations { display: flex; gap: 5px; }
.rcard .stations i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lvl-badge { font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; background: var(--ink); color: #fff; padding: .2rem .5rem; border-radius: 6px; }
.is-hidden { display: none !important; }

.cat-data   { background: var(--c-data); }
.cat-programming { background: var(--c-prog); }
.cat-design { background: var(--c-design); }
.cat-marketing { background: var(--c-mkt); }
.cat-infra  { background: var(--c-infra); }

/* ============================================================
   Roadmap detail — the route (signature)
   ============================================================ */
.crumb { font-family: var(--mono); font-size: .76rem; color: var(--d-muted); }
.crumb a { color: var(--d-muted); }
.crumb a:hover { color: var(--accent); }
.detail-tags .badge { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; background: var(--ink-3) !important; color: var(--d-text); padding: .5rem .8rem; border-radius: 8px; }

.route { position: relative; }
.route::before { content: ""; position: absolute; left: 18px; top: 14px; bottom: 14px; width: 3px; background: linear-gradient(var(--route), #B9C6DA); border-radius: 2px; }
.station { position: relative; padding: 0 0 2.4rem 56px; }
.station:last-child { padding-bottom: 0; }
.station .dot { position: absolute; left: 6px; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--accent); display: grid; place-items: center; font-family: var(--mono); font-size: .78rem; font-weight: 700; color: #1c1303; }
.station h3 { font-size: 1.18rem; margin-bottom: .25rem; }
.station .weeks { font-family: var(--mono); font-size: .7rem; color: var(--accent-d); background: #FCF4E3; padding: .12rem .5rem; border-radius: 6px; }
.station p { color: var(--muted); font-size: .96rem; }
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: .5rem 0 .9rem; list-style: none; }
.skill-list li { font-family: var(--mono); font-size: .73rem; color: var(--ink-3); background: #EDF1F8; border: 1px solid var(--line); border-radius: 6px; padding: .2rem .5rem; }
.res-item { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; margin-bottom: .5rem; }
.res-item.is-rec { border-color: #F2DDB0; background: #FFFBF2; }
.res-item a { font-weight: 600; color: var(--text); }
.res-item a:hover { color: var(--accent-d); }
.res-note { font-size: .82rem; color: var(--muted); width: 100%; }
.kind { font-family: var(--mono); font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 6px; border: 1px solid var(--line); }
.kind.free  { color: var(--c-mkt); border-color: #BFE6D6; background: #EAF8F2; }
.kind.paid  { color: var(--c-prog); border-color: #D6D3F2; background: #F0EFFB; }
.kind.mixed { color: var(--accent-d); border-color: #F2DDB0; background: #FCF4E3; }
.kind.cert  { color: var(--c-data); border-color: #C5DBF2; background: #EAF2FB; }
.rec-badge { font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: #1c1303; background: var(--accent); padding: .14rem .45rem; border-radius: 5px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.panel h4 { font-family: var(--display); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.panel .who { list-style: none; padding: 0; margin: 0; }
.panel .who li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; font-size: .94rem; }
.panel .who li::before { content: "→"; position: absolute; left: 0; color: var(--accent-d); font-family: var(--mono); }
.aside-sticky { position: sticky; top: 90px; }

/* ============================================================
   Blog
   ============================================================ */
.pcard { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: .18s; color: var(--text); }
.pcard:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(14,27,46,.13); text-decoration: none; }
.pcard .pcard-img { height: 168px; background-size: cover; background-position: center; background-color: var(--ink-2); position: relative; }
.pcard .pcard-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,27,46,.15), rgba(14,27,46,.55)); }
.pcard .pcard-cat { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(14,27,46,.6); padding: .25rem .55rem; border-radius: 6px; }
.pcard .pcard-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pcard .pmeta { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.pcard h3 { font-size: 1.18rem; margin: 0; }
.pcard p { font-size: .92rem; color: var(--muted); margin: 0; }

.article { max-width: 720px; }
.article .pmeta { font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.article h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.article p, .article li { font-size: 1.07rem; line-height: 1.78; }
.article ul { padding-left: 1.3rem; }
.article ul li { margin-bottom: .5rem; }
.article .callout { border-left: 4px solid var(--accent); background: #FFFBF2; padding: 1.1rem 1.3rem; border-radius: 0 12px 12px 0; margin: 1.8rem 0; color: #4a3a18; }
.article .callout a { color: var(--accent-d); font-weight: 600; }

/* ============================================================
   Category group header (home)
   ============================================================ */
.cat-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.cat-head .cat-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; }
.cat-head h3 { margin: 0; font-size: 1.35rem; }
.cat-head .count { font-family: var(--mono); font-size: .74rem; color: var(--muted); }

/* ============================================================
   CTA + footer
   ============================================================ */
.cta-band { border-radius: 20px; padding: 3rem; }
footer .foot { border-top: 1px solid var(--line); background: #fff; }
footer h5 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
footer a.foot-link { display: block; color: var(--text); font-size: .92rem; margin-bottom: .4rem; }
footer a.foot-link:hover { color: var(--accent-d); text-decoration: none; }
.foot-bottom { font-family: var(--mono); font-size: .76rem; color: var(--muted); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- Comparison table ---- */
.compare-table { border-color: var(--line); }
.compare-table thead th { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); white-space: nowrap; }
.compare-table td, .compare-table th { padding: .85rem .9rem; font-size: .9rem; vertical-align: top; }
.compare-table tbody tr { border-bottom: 1px solid var(--line); }
.compare-table .opt-name { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: .98rem; }
.compare-table .opt-eg { display: block; font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.compare-table .row-dti { background: #FFFBF2; }
.compare-table .row-dti td, .compare-table .row-dti th { border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.ours-tag { font-family: var(--mono); font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: #1c1303; background: var(--accent); padding: .12rem .4rem; border-radius: 5px; vertical-align: middle; }
