/* ============================================================
   TOKENS - single light theme, painted explicitly.
   ============================================================ */
:root {
  --bg:        #EEF3F5;
  --surface:   #FFFFFF;
  --surface-2: #E4ECEF;
  --ink:       #071620;
  --ink-2:     #46585F;
  --ink-3:     #6C7D85;
  --line:      #D2DEE3;
  --line-2:    #BDCDD4;
  --accent:    #22C2F6;
  --accent-tx: #06617F;
  --accent-sf: #E2F6FE;
  --gold:      #B7810F;
  --grid:      rgba(7, 22, 32, .055);
  --shadow:    0 1px 2px rgba(7,22,32,.05), 0 12px 28px -14px rgba(7,22,32,.22);
  --shadow-lg: 0 2px 4px rgba(7,22,32,.06), 0 28px 60px -26px rgba(7,22,32,.34);

  /* the one inverted slab, at the end of the page */
  --slab:      #071620;
  --slab-tx:   #E6EFF3;
  --slab-tx-2: #A7BEC9;
  --slab-tx-3: #7E96A2;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;

  --wrap: 1120px;
  --r: 14px;
  color-scheme: light;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id], [id="top"] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
  line-height: 1.08;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent-tx); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.num { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 243, 245, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-head[data-stuck="true"] { border-bottom-color: var(--line); }

.head-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  flex-shrink: 0;
}
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-name {
  font-weight: 800;
  letter-spacing: -.025em;
  font-size: 19px;
  line-height: 1;
}

.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: color .18s ease;
}
.nav a:hover { color: var(--ink); }

.head-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.head-tel {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.head-tel:hover { color: var(--accent-tx); }

@media (max-width: 1000px) { .nav { display: none; } }
@media (max-width: 620px)  { .head-tel { display: none; } .head-in { height: 60px; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .14s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn svg { flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  color: #052430;
  box-shadow: 0 10px 26px -14px var(--accent);
}
.btn-accent:hover { filter: brightness(1.07); }

.btn-dark {
  background: var(--ink);
  color: #F2F8FA;
  box-shadow: var(--shadow);
}
.btn-dark:hover { background: var(--accent-tx); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 92px) 0 clamp(44px, 6vw, 72px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 760px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 78% at 22% 8%, #000 12%, transparent 76%);
  mask-image: radial-gradient(120% 78% at 22% 8%, #000 12%, transparent 76%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 194, 246, .22);
}

h1.hero-title {
  font-size: clamp(2.15rem, 6vw, 4.15rem);
  letter-spacing: -.038em;
  margin-bottom: 22px;
}
.hero-title .hl { color: var(--accent-tx); }

.hero-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-lead strong { color: var(--ink); font-weight: 650; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
@media (max-width: 520px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof-item { display: flex; align-items: center; gap: 10px; }
.proof-num {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.proof-lab { font-size: 13.5px; color: var(--ink-2); line-height: 1.3; max-width: 17ch; }
.stars { display: inline-flex; gap: 1.5px; color: var(--gold); }

/* ---- spec card ---- */
.spec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.spec-body { padding: 6px 20px 18px; }
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.spec-row:last-child { border-bottom: 0; }
.spec-k { font-size: 14px; color: var(--ink-2); }
.spec-v {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  text-align: right;
}
.spec-v .u { color: var(--ink-3); font-weight: 500; }

.spec-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  background: var(--accent-sf);
}
.spec-foot p { font-size: 13.5px; color: var(--ink-2); }
.spec-foot a { font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.spec-foot a:hover { text-decoration: underline; }

/* ============================================================
   COMPARISON - the small-group selling point
   ============================================================ */
.compare-sec { padding: clamp(50px, 7vw, 82px) 0; background: var(--surface); border-block: 1px solid var(--line); }

.compare-head { max-width: 60ch; margin-bottom: 34px; }
.compare-head .tag { display: block; margin-bottom: 14px; }
.compare-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); margin-bottom: 14px; }
.compare-head h2 em { font-style: normal; color: var(--accent-tx); }
.compare-head p { color: var(--ink-2); max-width: 56ch; }

.cmp-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px 28px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.cmp-row:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .cmp-row { grid-template-columns: 1fr; gap: 12px; } }

.cmp-lab b { display: block; font-size: 15.5px; letter-spacing: -.015em; }
.cmp-lab span {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.cmp-row.is-us .cmp-lab span { color: var(--accent-tx); font-weight: 650; }

.dots { display: flex; flex-wrap: wrap; gap: 7px; }
.dots i {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--line-2);
  display: block;
}
.cmp-row.is-us .dots i { background: var(--accent); }
.dots .more {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  align-self: center;
  margin-left: 5px;
  letter-spacing: .06em;
}

.cmp-note {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 68ch;
  font-size: 15px;
  color: var(--ink-2);
}
.cmp-note svg { flex-shrink: 0; margin-top: 4px; color: var(--accent-tx); }

/* ============================================================
   SECTIONS
   ============================================================ */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-tight { padding-top: clamp(20px, 3vw, 32px); }
.sec-alt { background: var(--surface); border-block: 1px solid var(--line); }

.sec-head { margin-bottom: clamp(30px, 4vw, 46px); max-width: 62ch; }
.sec-head .tag { display: block; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.sec-head p { color: var(--ink-2); font-size: 1.0625rem; max-width: 58ch; }

/* ---- included-once block ---- */
.included {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px var(--r) var(--r) 4px;
  background: var(--surface);
  padding: 24px clamp(20px, 3vw, 30px);
  margin-bottom: 26px;
}
.included h3 { font-size: 1rem; margin-bottom: 16px; letter-spacing: -.01em; }
.inc-list { display: flex; flex-direction: column; }
.inc-list li {
  display: grid;
  grid-template-columns: auto minmax(170px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 6px 24px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  line-height: 1.4;
}
.inc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.inc-list b { font-size: 15px; font-weight: 650; color: var(--ink); letter-spacing: -.012em; }
.inc-list li > span { font-size: 14px; color: var(--ink-2); }
.inc-list .check { margin-top: 0; }
@media (max-width: 760px) {
  .inc-list li { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .inc-list .check { margin-top: 4px; }
  .inc-list li > span { grid-column: 2; }
}
.check { flex-shrink: 0; margin-top: 3px; color: var(--accent-tx); }

/* ---- price cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 860px) { .cards { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-feat {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.card-feat:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }

.card-flag {
  position: absolute;
  top: -10px; left: 22px;
  background: var(--accent);
  color: #052430;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.card-note { font-size: 13.5px; color: var(--ink-3); margin-bottom: 20px; min-height: 20px; }

.price { display: flex; align-items: baseline; gap: 8px; padding-bottom: 6px; }
.price b {
  font-family: var(--mono);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}
.price s { color: var(--ink-3); font-size: 15px; font-family: var(--mono); }

.price-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 18px;
}
.card-points { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.card-points li { font-size: 14px; color: var(--ink-2); display: flex; gap: 9px; line-height: 1.45; }
.card .btn { margin-top: auto; width: 100%; }

/* ---- bundle row ---- */
.bundle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 16px;
  padding: 26px clamp(22px, 3vw, 30px);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent-sf);
}
@media (max-width: 820px) { .bundle { grid-template-columns: 1fr; align-items: start; } }
.bundle h3 { font-size: 1.3rem; margin-bottom: 6px; }
.bundle p { font-size: 14.5px; color: var(--ink-2); max-width: 48ch; }
.bundle-flag {
  display: inline-block;
  background: var(--accent);
  color: #052430;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.bundle-price { text-align: right; }
@media (max-width: 820px) { .bundle-price { text-align: left; } }
.bundle-price b {
  display: block;
  font-family: var(--mono);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--ink);
}
.bundle-price s { font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.bundle-price > span { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }

/* cijena po satu je najjači argument za paket, pa se čita odmah nakon iznosa */
.bundle-price .bundle-rate {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--accent-tx);
  white-space: nowrap;
}
.bundle-price .bundle-rate em {
  font-style: normal;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: 0;
}
.bundle-price .bundle-hours {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 6px;
}

.fineprint {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 70ch;
}

/* ---- format ---- */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.fmt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sec-alt .fmt { background: var(--bg); }
.fmt-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fmt h3 { font-size: 1.2rem; }
.fmt-cap {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-tx);
  background: var(--accent-sf);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
.fmt p { font-size: 14.5px; color: var(--ink-2); }
.fmt-list { display: flex; flex-direction: column; gap: 8px; }
.fmt-list li { font-size: 14px; color: var(--ink-2); display: flex; gap: 9px; }

/* ---- materials ---- */
.mat-list {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.mat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .18s ease;
}
.mat:last-child { border-bottom: 0; }
.mat:hover { background: var(--accent-sf); }
.mat-ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-sf);
  color: var(--accent-tx);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mat:hover .mat-ic { background: var(--surface); }
.mat-txt b { display: block; font-size: 15.5px; letter-spacing: -.015em; line-height: 1.3; }
.mat-txt span {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .04em;
  margin-top: 2px;
}
.mat-go {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-tx);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .mat { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .mat-go { grid-column: 2; }
}

/* ---- professor ---- */
.prof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 860px) { .prof { grid-template-columns: 1fr; } }
.prof-body p + p { margin-top: 16px; }
.prof-body p { color: var(--ink-2); font-size: 1.03rem; max-width: 58ch; }
.prof-body strong { color: var(--ink); font-weight: 650; }

.cv {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.sec-alt .cv { background: var(--bg); }
.cv-item { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.cv-item:last-child { border-bottom: 0; }
.cv-item b { display: block; font-size: 14.5px; letter-spacing: -.01em; }
.cv-item span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }

/* ---- reviews ---- */
.rev-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px clamp(24px, 4vw, 44px);
  padding: clamp(26px, 4vw, 38px) clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  box-shadow: var(--shadow);
}
@media (max-width: 820px) {
  .rev-panel { grid-template-columns: auto minmax(0, 1fr); }
  .rev-panel .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 460px) {
  .rev-panel { grid-template-columns: 1fr; }
}

.rev-score {
  font-family: var(--mono);
  font-size: clamp(3rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .9;
  color: var(--ink);
}
.rev-meta .stars { font-size: 20px; letter-spacing: 1px; }
.rev-meta b { display: block; font-size: 1.05rem; letter-spacing: -.015em; margin-top: 6px; }
.rev-meta p { font-size: 14px; color: var(--ink-2); margin-top: 3px; }

/* ============================================================
   CONTACT - the one dark slab
   ============================================================ */
.contact { background: var(--slab); color: var(--slab-tx); padding: clamp(56px, 8vw, 96px) 0; }
.contact h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 14px; }
.contact .tag { color: var(--slab-tx-3); display: block; margin-bottom: 14px; }
.contact-lead { color: var(--slab-tx-2); max-width: 46ch; margin-bottom: 28px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.ch-list { display: flex; flex-direction: column; gap: 10px; }
.ch {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  text-decoration: none;
  color: var(--slab-tx);
  background: rgba(255,255,255,.035);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ch:hover { border-color: var(--accent); background: rgba(34,194,246,.08); transform: translateX(3px); }
.ch-ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(34,194,246,.13);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ch-txt b { display: block; font-family: var(--mono); font-size: 15px; letter-spacing: -.01em; }
.ch-txt span { display: block; font-size: 12.5px; color: var(--slab-tx-3); margin-top: 1px; }
.ch-go { margin-left: auto; color: var(--slab-tx-3); }

.info-panel {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r);
  overflow: hidden;
}
.info-item { padding: 17px 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-item:last-child { border-bottom: 0; }
.info-item .tag { color: var(--slab-tx-3); display: block; margin-bottom: 5px; }
.info-item b { font-size: 15px; font-weight: 650; color: #fff; letter-spacing: -.01em; }
.info-item p { font-size: 13.5px; color: var(--slab-tx-2); margin-top: 3px; }

/* ============================================================
   FOOTER + MOBILE BAR
   ============================================================ */
.site-foot {
  background: var(--slab);
  color: var(--slab-tx-3);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 26px 0 34px;
  font-size: 13.5px;
}
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.foot-in p { margin-right: auto; }
.foot-in a { color: var(--slab-tx-2); text-decoration: none; }
.foot-in a:hover { color: var(--accent); }

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(238, 243, 245, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; }
@media (max-width: 620px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ============================================================
   MOTION
   ============================================================ */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rise { opacity: 1; transform: none; }
}

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* breadcrumb */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent-tx); text-decoration: underline; }
.crumbs span { color: var(--ink-3); }
.crumbs b { color: var(--ink-2); font-weight: 600; }

/* page header */
.page-head {
  position: relative;
  padding: clamp(34px, 5vw, 56px) 0 clamp(30px, 4vw, 46px);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 520px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(110% 80% at 18% 0%, #000 8%, transparent 72%);
  mask-image: radial-gradient(110% 80% at 18% 0%, #000 8%, transparent 72%);
  pointer-events: none;
}
.page-head > .wrap { position: relative; }
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  letter-spacing: -.035em;
  margin-bottom: 18px;
  max-width: 20ch;
}
.page-head .lead {
  font-size: clamp(1.03rem, 1.5vw, 1.15rem);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.55;
}
.page-head .lead strong { color: var(--ink); font-weight: 650; }
.page-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.fact { background: var(--surface); padding: 18px 20px; }
.fact b {
  display: block;
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--ink);
}
.fact span { font-size: 13px; color: var(--ink-2); line-height: 1.35; display: block; margin-top: 4px; }

/* syllabus topics */
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.topic {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.4;
}
.sec-alt .topic { background: var(--bg); }
.topic > span:last-child { min-width: 0; }
.topic em { font-style: normal; color: var(--ink-3); }
.topic .n {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-tx);
  background: var(--accent-sf);
  border-radius: 5px;
  padding: 2px 6px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* level split (A vs B) */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.level {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sec-alt .level { background: var(--bg); }
.level-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.level h3 { font-size: 1.25rem; }
.level-price { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; letter-spacing: -.04em; }
.level p { font-size: 14.5px; color: var(--ink-2); }
.level ul { display: flex; flex-direction: column; gap: 8px; }
.level li { font-size: 14px; color: var(--ink-2); display: flex; gap: 9px; }
.level .btn { margin-top: auto; }

/* prose */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); font-size: 1.03rem; }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 34px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.prose li { font-size: 15px; color: var(--ink-2); display: flex; gap: 10px; }

/* download panel on post pages */
.dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  margin: 28px 0;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent-sf);
  text-decoration: none;
  color: inherit;
}
.dl:hover { filter: brightness(.985); }
.dl-ic { color: var(--accent-tx); flex-shrink: 0; }
.dl-txt b { display: block; font-size: 16px; letter-spacing: -.015em; }
.dl-txt span { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 620px) {
  .dl { grid-template-columns: auto minmax(0, 1fr); }
  .dl .btn { grid-column: 1 / -1; }
}

/* closing CTA band */
.cta-band { background: var(--slab); color: var(--slab-tx); padding: clamp(40px, 6vw, 66px) 0; }
.cta-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
}
@media (max-width: 780px) { .cta-in { grid-template-columns: 1fr; } }
.cta-in h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-in p { color: var(--slab-tx-2); max-width: 52ch; font-size: 15.5px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { color: var(--slab-tx); border-color: rgba(255,255,255,.28); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* related links */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.related-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .related-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .related-4 { grid-template-columns: 1fr; } }
.rel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.sec-alt .rel { background: var(--bg); }
.rel:hover { border-color: var(--accent); transform: translateY(-2px); }
.rel b { font-size: 1.02rem; letter-spacing: -.015em; }
.rel p { font-size: 14px; color: var(--ink-2); }
.rel span {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-tx);
  font-weight: 650;
}
