/* tablegray.academy — Schulungs-Site (Tech-Editorial)
   Inherits tablegray brand DNA (orange #D86B2C, editorial), layers in tech accents.
*/

/* No external font imports — DSGVO-clean. System font stack only. */

:root {
  /* Light surfaces */
  --bg: #F2F3F5;
  --bg-alt: #E8E9EC;
  --surface: #FFFFFF;

  /* Dark surfaces */
  --bg-deep: #131418;
  --ink-deep: #131418;
  --ink-near: #1B1D22;
  --ink-far: #16181C;
  --ink-line: #2D2F35;
  --ink-edge: #23252A;
  --ink-mute-light: #80838A;
  --ink-soft-light: #ABAEB4;
  --ink-bright: #C3C5CB;

  /* Inks */
  --ink: #131418;
  --ink-soft: #3A3C42;
  --ink-muted: #65686E;
  --line: #DCDEE2;
  --line-soft: #E5E7EA;

  /* Brand orange (tablegray family) */
  --accent: #D86B2C;
  --accent-soft: #F2C8AB;
  --accent-deep: #A8501F;
  --accent-tint: #FAE8D9;

  /* Tech green — used sparingly for "verify", "live" and code accents */
  --tech: #4A8F76;
  --tech-soft: #BED6CC;
  --tech-bg: #DDE8DD;
  --tech-deep: #2F5536;

  /* Tech blue — for code/inline highlights */
  --code: #3B6EA5;
  --code-soft: #D1DEEC;

  --warn: #B8643F;
  --warn-soft: #F5E4D8;

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

  --container: 1200px;
  --column: 740px;
  --radius-sm: 2px;
  --radius: 4px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: var(--ink); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- LAYOUT ---------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.col { max-width: var(--column); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* ---------- TOPBAR ---------- */

.topbar {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
}
.topbar a { color: var(--bg); }
.topbar .pulse::before {
  content: "●";
  color: var(--tech-soft);
  margin-right: 6px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.topbar .domain-badge {
  font-family: var(--mono);
  color: var(--accent-soft);
}

/* ---------- HEADER ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(242, 243, 245, 0.86);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo .logo-img {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo .domain {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  font-weight: 400;
  position: relative;
  top: 6px;
}
.logo.alt-light { color: var(--bg); }
.logo.alt-light .logo-img {
  filter: invert(1) brightness(1.08);
}
.logo.alt-light .domain { color: var(--ink-bright); }
@media (max-width: 560px) {
  .logo .logo-img { height: 24px; }
  .logo .domain { font-size: 10px; top: 4px; }
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
.nav a {
  color: var(--ink-soft);
  position: relative;
}
.nav a:hover { color: var(--ink); }
.nav .btn { margin-left: 8px; color: var(--bg); }
.nav .btn:hover { color: var(--bg); }
.nav .btn-ghost { color: var(--ink); }

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
}
.hamburger span {
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 80ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
  background: var(--ink);
  color: var(--bg);
  text-align: left;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--ink-soft); }
.btn-accent {
  background: var(--accent);
  color: var(--bg);
}
.btn-accent:hover { background: var(--accent-deep); }
.btn-large {
  padding: 16px 28px;
  font-size: 16px;
}

/* ---------- TYPE ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h3 { font-size: 1.4rem; line-height: 1.25; }

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
}

p { margin: 0 0 1em; }
.muted { color: var(--ink-muted); }
em { font-style: italic; color: var(--accent); font-weight: 500; }

/* ---------- HERO (Terminal-Style) ---------- */

.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 2;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at top right, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 65%);
  opacity: 0.55;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}
.hero-headline {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-top: 28px;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.hero-tag {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--mono);
}

/* Terminal card on hero right column */
.terminal {
  background: var(--ink-deep);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-bright);
  box-shadow: 0 24px 60px rgba(20, 20, 24, 0.18);
  overflow: hidden;
}
.terminal .tm-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0E0F12;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-line);
}
.terminal .tm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-line);
}
.terminal .tm-dot.r { background: #E16153; }
.terminal .tm-dot.y { background: #E6B453; }
.terminal .tm-dot.g { background: #5BB17E; }
.terminal .tm-title {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-mute-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.terminal .tm-body {
  padding: 20px 22px 24px;
  line-height: 1.62;
}
.terminal .tm-prompt {
  color: var(--tech-soft);
  margin-right: 8px;
}
.terminal .tm-prompt::before { content: "$ "; color: var(--accent); }
.terminal .tm-out {
  color: var(--ink-soft-light);
  display: block;
  margin: 2px 0 12px;
}
.terminal .tm-ok { color: var(--tech-soft); }
.terminal .tm-warn { color: var(--accent-soft); }
.terminal .tm-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--bg);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Hero meta strip (replaces dl from initiative-35, more tech) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stat {
  padding: 24px 18px 22px 0;
  border-right: 1px solid var(--line);
}
.hero-stat:last-child { border-right: none; }
.hero-stat:not(:first-child) { padding-left: 18px; }
.hero-stat .k {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.hero-stat .v {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero-stat .v small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

/* ---------- SECTION ---------- */

.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}
.section.no-rule { border-top: none; }
.section.dark {
  background: var(--ink);
  color: var(--bg);
  border-top: none;
}
.section.dark .eyebrow { color: var(--ink-soft-light); }
.section.dark h2,
.section.dark h3 { color: var(--bg); }
.section.dark .muted { color: var(--ink-soft-light); }
.section.tint {
  background: var(--bg-alt);
  border-top: none;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 60px;
  margin-bottom: 60px;
  align-items: start;
}
.section-head .label { position: sticky; top: 90px; }
.section-head h2 { max-width: 760px; }

/* ---------- HAUPTPRODUKT CARDS (flagship row, top of homepage) ---------- */

.flagship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 12px;
}
.flagship {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  transition: transform 200ms ease, border-color 200ms ease;
}
.flagship::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  position: absolute;
  top: 0;
  left: 36px;
}
.flagship.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.flagship.featured h3 { color: var(--bg); }
.flagship.featured .flag-num,
.flagship.featured .flag-stack { color: var(--ink-soft-light); }
.flagship.featured .flag-desc { color: var(--ink-bright); }
.flagship.featured .flag-line { background: var(--ink-line); }
.flagship.featured .btn { background: var(--bg); color: var(--ink); }
.flagship:hover { transform: translateY(-2px); border-color: var(--accent); }

.flag-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.flagship h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 6px 0 4px;
}
.flag-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.flag-stack {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.55;
}
.flag-line {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}
.flag-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.flag-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flag-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.flagship.featured .flag-meta dt { color: var(--ink-soft-light); }
.flag-meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.flag-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.flagship.featured .flag-price { border-top-color: var(--ink-line); }
.flag-price .v {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.flag-price .v small {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 400;
  margin-left: 6px;
}
.flagship.featured .flag-price .v small { color: var(--ink-soft-light); }
.flag-foerder {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  background: var(--tech-bg);
  color: var(--tech-deep);
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: 500;
}
.flag-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.flag-cta-row .btn { flex: 1; justify-content: space-between; }

@media (max-width: 980px) {
  .flagship-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .flagship { padding: 28px 26px 28px; }
  .flag-meta { grid-template-columns: 1fr 1fr; }
}

/* ---------- FFG FUNDING BAR ---------- */

.foerderung-bar {
  background: var(--tech-bg);
  border-top: 1px solid var(--tech-soft);
  border-bottom: 1px solid var(--tech-soft);
  padding: 24px 0;
}
.foerderung-bar .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.foerderung-bar .badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tech-deep);
  background: var(--bg);
  border: 1px solid var(--tech-soft);
  padding: 6px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.foerderung-bar p {
  margin: 0;
  font-size: 14.5px;
  color: var(--tech-deep);
  line-height: 1.5;
}
.foerderung-bar p strong { color: var(--ink); }
.foerderung-bar a { text-decoration: underline; color: var(--tech-deep); }
.foerderung-bar .more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tech-deep);
  text-decoration: underline;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .foerderung-bar .wrap { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- COURSE MATRIX (tech grid) ---------- */

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.course-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 30px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 140ms ease, transform 200ms ease;
  position: relative;
  text-decoration: none;
}
.course-card:hover { background: var(--bg-alt); }
.course-card:hover .course-arrow { transform: translate(4px, -4px); }
.course-card.featured { background: var(--ink); color: var(--bg); }
.course-card.featured .course-title { color: var(--bg); }
.course-card.featured .course-num { color: var(--ink-soft-light); }
.course-card.featured .course-desc { color: var(--ink-bright); }
.course-card.featured .course-price { color: var(--bg); }
.course-card.featured:hover { background: var(--ink-near); }
.course-card.free .course-price-tag {
  background: var(--tech-bg);
  color: var(--tech-deep);
}

.course-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.course-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.18;
  color: var(--ink);
  margin: 8px 0 4px;
}
.course-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 380px;
}
.course-meta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.course-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}
.course-card.featured .course-pill {
  background: transparent;
  color: var(--ink-soft-light);
  border-color: var(--ink-line);
}
.course-price-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--accent-tint);
  color: var(--accent-deep);
  padding: 5px 10px;
  border-radius: 2px;
}
.course-card.featured .course-price-tag {
  background: var(--accent);
  color: var(--bg);
}
.course-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-muted);
  transition: transform 200ms ease;
}
.course-card.featured .course-arrow { color: var(--ink-soft-light); }

/* ---------- USP / PILLARS ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 40px 36px 44px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 36px; }
.pillar .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}
.pillar h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}
.pillar p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---------- FACT ROW (trust signals) ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 60px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: none; }
.fact .num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.fact .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.45;
  display: block;
}

/* ---------- TESTIMONIAL ---------- */

.testimonial {
  border-left: 2px solid var(--accent);
  padding: 16px 0 16px 28px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.testimonial cite {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  color: var(--ink-muted);
  margin-top: 16px;
  letter-spacing: 0;
}

/* ---------- TEAM ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.member {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.member-mark {
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-alt);
}
.member-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.member h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 4px;
}
.member .title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.member p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.member .creds {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 10px;
  display: block;
}

/* ---------- SYLLABUS / TIMELINE (Code-Style) ---------- */

.syllabus {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}
.syllabus li {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.syllabus .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.syllabus .t {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
}
.syllabus .t small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.55;
  letter-spacing: 0;
}
.syllabus .dur {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------- PRICE BLOCK (Code-style invoice) ---------- */

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.price-card::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  background: var(--accent);
  position: absolute;
  top: 0;
  left: 32px;
}
.price-card .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 10px;
}
.price-card .amount {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-card .amount small {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  margin-left: 6px;
  font-weight: 400;
}
.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.price-card ul li {
  padding: 12px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: baseline;
}
.price-card ul li::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 500;
}
.price-card .btn {
  width: 100%;
  justify-content: space-between;
  margin-top: 8px;
}

/* ---------- DETAIL META BAR (course landing pages) ---------- */

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.detail-meta > div {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.detail-meta > div:last-child { border-right: none; }
.detail-meta > div + div { padding-left: 18px; }
.detail-meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.detail-meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ---------- LEAD MAGNET / CTA BAND ---------- */

.leadmag {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.leadmag::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.leadmag .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.leadmag h2 { color: var(--bg); max-width: 520px; }
.leadmag .body {
  color: var(--ink-bright);
  font-size: 16px;
  line-height: 1.6;
}
.leadmag-card {
  background: linear-gradient(180deg, var(--ink-near) 0%, var(--ink-far) 100%);
  border: 1px solid var(--ink-line);
  padding: 36px;
  position: relative;
}
.leadmag-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: var(--accent);
}
.leadmag-card .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
.leadmag-card h3 {
  color: var(--bg);
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.leadmag-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-line);
  margin-top: 12px;
}
.leadmag-card li {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-line);
  font-size: 14px;
  color: var(--ink-bright);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.leadmag-card li::before {
  content: "→";
  color: var(--tech-soft);
  font-family: var(--mono);
  flex-shrink: 0;
}
.leadmag-card .btn {
  margin-top: 28px;
  width: 100%;
  justify-content: space-between;
  background: var(--bg);
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-muted);
  margin-left: 16px;
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 720px;
}

/* ---------- TRUST / PARTNER BAR ---------- */

.partner-bar {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.partner-bar .wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}
.partner-head .eyebrow { margin-bottom: 14px; }
.partner-head h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.partner-head p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: center;
}
.partner-grid .partner-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.partner-grid .partner-cell img {
  max-width: 130px;
  height: auto;
  margin: 0 auto;
  filter: grayscale(0.6) contrast(0.9);
  opacity: 0.85;
}
.partner-grid .partner-cell strong {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-transform: none;
  font-weight: 500;
}

/* ---------- BIG CTA ---------- */

.bigcta {
  padding: 110px 0;
}
.bigcta h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  letter-spacing: -0.025em;
  max-width: 900px;
}
.bigcta .row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.bigcta .or {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- FORM ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px;
  position: sticky;
  top: 100px;
}
.form-card::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 18px;
}
.form-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.form-card .small {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}
form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 100ms ease, background 100ms ease;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-top: 4px;
}
.consent input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  cursor: pointer;
  position: relative;
}
.consent input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.consent input[type="checkbox"]:checked::before {
  content: "✓";
  color: var(--bg);
  font-size: 11px;
  position: absolute;
  top: 0;
  left: 3px;
}
.form-card .btn {
  width: 100%;
  justify-content: space-between;
  margin-top: 8px;
}
.form-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-foot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tech);
}
.form-error {
  margin-top: 16px;
  padding: 14px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 13.5px;
  border-radius: 2px;
}

/* ---------- DETAIL PAGE HERO ---------- */

.lp-hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--line);
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
.lp-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin-bottom: 28px;
}

/* ---------- FOOTER ---------- */

footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 40px;
}
footer a { color: var(--bg); }
footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft-light);
  margin: 0 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.footer-brand .logo { color: var(--bg); }
.footer-brand p {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-soft-light);
  max-width: 320px;
  line-height: 1.55;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-list a { color: var(--ink-bright); }
.footer-list a:hover { color: var(--bg); }
.footer-list .addr {
  color: var(--ink-bright);
  font-style: normal;
  line-height: 1.6;
}
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-edge);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-bottom a { color: var(--ink-soft-light); margin-left: 16px; }

/* ---------- LEGAL PAGES ---------- */

.legal h2 {
  margin-top: 48px;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.legal h3 {
  margin-top: 28px;
  font-size: 1.15rem;
}
.legal p, .legal li {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.legal a { text-decoration: underline; }
.legal ul { padding-left: 20px; }

/* ---------- THANKS PAGE ---------- */

.thanks {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.thanks-grid {
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  gap: 60px;
  align-items: start;
}
.thanks .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 8px;
}
.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
}
.steps li .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.steps li b {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.steps li p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ---------- COMPARE TABLE (tech matrix) ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  font-size: 14.5px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.compare th,
.compare td {
  text-align: left;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  vertical-align: top;
}
.compare th:last-child,
.compare td:last-child { border-right: none; }
.compare th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.compare tbody tr { border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child { border-bottom: none; }
.compare td.lbl {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  width: 28%;
}
.compare .ok { color: var(--tech-deep); }
.compare .no { color: var(--warn); }
.compare .ok::before { content: "✓ "; }
.compare .no::before { content: "× "; }

/* ---------- KLARO CONSENT ---------- */

.tg-consent-corner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  opacity: 0.85;
  transition: opacity 150ms ease, transform 150ms ease;
}
.tg-consent-corner:hover { opacity: 1; transform: scale(1.05); }

.tg-consent-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 110;
  max-width: 420px;
  background: var(--ink);
  color: var(--bg);
  padding: 24px 26px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  border-top: 3px solid var(--accent);
}
.tg-consent-banner h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--bg);
}
.tg-consent-banner p {
  font-size: 13px;
  color: var(--ink-bright);
  margin: 0 0 16px;
  line-height: 1.55;
}
.tg-consent-banner .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tg-consent-banner button {
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--ink-bright);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  border-radius: 2px;
}
.tg-consent-banner button:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.tg-consent-banner button.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.tg-consent-banner button.primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.tg-consent-banner .small-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute-light);
  text-decoration: underline;
}

.tg-consent-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tg-consent-modal {
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow: auto;
  padding: 36px;
  border-top: 4px solid var(--accent);
  position: relative;
}
.tg-consent-modal h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.tg-consent-modal .lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.55;
}
.tg-consent-modal .service {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.tg-consent-modal .service:last-of-type { border-bottom: 1px solid var(--line); }
.tg-consent-modal .service h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 4px;
}
.tg-consent-modal .service p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.tg-consent-modal .service .badge {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 10px;
  border-radius: 2px;
}
.tg-consent-modal .toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  background: var(--line);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 150ms ease;
}
.tg-consent-modal .toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  transition: transform 150ms ease;
}
.tg-consent-modal .toggle:checked { background: var(--accent); }
.tg-consent-modal .toggle:checked::after { transform: translateX(20px); }
.tg-consent-modal .toggle:disabled { opacity: 0.5; cursor: not-allowed; }
.tg-consent-modal .actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tg-consent-modal .actions button {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
  transition: background 120ms ease;
}
.tg-consent-modal .actions button:hover { background: var(--bg-alt); }
.tg-consent-modal .actions button.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tg-consent-modal .actions button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.tg-consent-modal .close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tg-consent-modal .close:hover { color: var(--ink); }

/* ---------- SCROLL-REVEAL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- UTIL ---------- */

.divider { height: 1px; background: var(--line); margin: 60px 0; }
.spacer-sm { height: 24px; }
.spacer-md { height: 48px; }
.arrow::after { content: "→"; }

.kbd {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 3px;
  color: var(--ink);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .lp-hero-grid,
  .leadmag .wrap,
  .partner-bar .wrap,
  .thanks-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .pillar:last-child { border-bottom: none; }
  .pillar:not(:first-child) { padding-left: 0; }
  .course-grid { grid-template-columns: 1fr; border-left: none; }
  .course-card { border-right: none; padding: 26px 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .label { position: static; }
  .form-card { position: static; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 50;
    padding: 80px 24px 24px;
    gap: 8px;
    align-items: stretch;
  }
  .nav.open a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav.open .btn { margin-top: 24px; justify-content: space-between; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .detail-meta { grid-template-columns: repeat(2, 1fr); }
  .detail-meta > div:nth-child(2) { border-right: none; }
  .detail-meta > div:nth-child(1), .detail-meta > div:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
}

@media (max-width: 560px) {
  .hero { padding: 50px 0 70px; }
  .section { padding: 60px 0; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .hero-stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .wrap { font-size: 10px; gap: 8px; }
  .topbar .topbar-right { display: none; }
  .form-card { padding: 24px; }
  .leadmag-card { padding: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: 1fr; }
  .detail-meta > div { border-right: none; border-bottom: 1px solid var(--line); padding: 14px 0 !important; }
  .detail-meta > div:last-child { border-bottom: none; }
}
