/* ==========================================================================
   Repurposing Masterclass — design system v5 "Meridian"
   Palette: professional violet (#8474f4) on structured near-white neutrals
   Modern layout: flat top bar, hairline borders, asymmetric editorial grids
   ========================================================================== */

:root {
  --accent-800: #574aad;
  --accent-700: #6d5cd9;
  --accent-600: #8474f4;
  --accent-500: #9a8cf6;
  --accent-100: #e8e5fd;
  --accent-50:  #f5f3fe;

  --ink-950: #14121f;
  --ink-800: #2b2740;
  --ink-600: #55506e;
  --ink-400: #8985a0;
  --ink-200: #d4d1e2;
  --ink-100: #e7e5f0;

  --paper: #fbfaff;
  --paper-alt: #f2f0fa;
  --white: #ffffff;
  --line: #dedbec;

  --ok-600: #2f8f5b;
  --ok-100: #e2f3ea;
  --warn-600: #b6552f;
  --warn-100: #f7e6dd;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 18, 31, 0.06), 0 8px 24px rgba(20, 18, 31, 0.05);
  --container: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-950);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font-family: inherit; cursor: pointer; }
main { flex: 1; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.eyebrow::before {
  content: "//";
  color: var(--accent-600);
  font-weight: 700;
}
.eyebrow.blue, .eyebrow.green { color: var(--accent-700); }
.eyebrow.red { color: var(--warn-600); }
.eyebrow.red::before { color: var(--warn-600); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  color: var(--ink-950);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.25rem);
  color: var(--ink-950);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink-950);
}
.lede {
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--ink-600);
}
.text-muted { color: var(--ink-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.002em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color .15s ease, border-color .15s ease;
}
.btn-gold, .btn-orange {
  background: var(--accent-600);
  color: var(--white);
}
.btn-gold:hover, .btn-orange:hover { background: var(--accent-700); }
.btn-navy, .btn-blue {
  background: var(--ink-950);
  color: var(--white);
}
.btn-navy:hover, .btn-blue:hover { background: var(--ink-800); }
.btn-green { background: var(--ok-600); color: var(--white); }
.btn-green:hover { background: #256e46; }
.btn-outline-light {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
.btn-outline-navy {
  border-color: var(--ink-200);
  color: var(--ink-950);
  background: var(--white);
}
.btn-outline-navy:hover { border-color: var(--accent-600); color: var(--accent-700); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header — flat full-width bar, bottom hairline, inline underline nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-950);
  letter-spacing: -0.01em;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--ink-400);
  margin-top: 3px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.primary-nav a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink-600);
  padding-block: 0.3rem;
  position: relative;
  transition: color 0.15s ease;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover { color: var(--ink-950); border-bottom-color: var(--accent-600); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--ink-950);
}
#mobile-nav { display: none; }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  #mobile-nav.is-open {
    display: block;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  #mobile-nav ul { list-style: none; display: flex; flex-direction: column; }
  #mobile-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--ink-600);
    font-weight: 500;
    font-size: 0.92rem;
    border-top: 1px solid var(--line);
  }
  #mobile-nav .btn { margin: 1rem 1.5rem 1.5rem; }
}

/* ==========================================================================
   Inner-page hero — left-aligned, index rule, plain
   ========================================================================== */
.page-hero {
  background: var(--paper-alt);
  color: var(--ink-950);
  border-bottom: 1px solid var(--line);
  padding-block: 3.5rem;
}
.page-hero-inner { max-width: 720px; display: flex; flex-direction: column; gap: 1.1rem; }
.page-hero h1 { color: var(--ink-950); }
.page-hero .lede { color: var(--ink-600); max-width: 620px; }
.page-hero .eyebrow { order: -1; }

.crumb-trail {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-400);
  order: -2;
}
.crumb-trail a { color: var(--ink-600); }
.crumb-trail a:hover { color: var(--accent-700); }

/* ==========================================================================
   Home hero — split layout: copy left, framed visual panel right
   ========================================================================== */
.home-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  padding-block: 4rem;
}
.hero-copy { display: flex; flex-direction: column; gap: 1.3rem; }
.hero-copy .lede { max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 0.3rem; flex-wrap: wrap; }

.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-right: 1.8rem;
  margin-right: 1.8rem;
  border-right: 1px solid var(--line);
}
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent-700);
}
.hero-stat p { font-size: 0.78rem; color: var(--ink-400); max-width: 130px; line-height: 1.4; }

.hero-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 0.6rem;
}
.hero-panel-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.hero-panel-frame img { width: 100%; height: 380px; object-fit: cover; }
.hero-panel-tag {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: var(--ink-950);
  color: var(--white);
  border-radius: var(--radius-xs);
  padding: 0.85rem 1.1rem;
  max-width: 300px;
}
.hero-panel-tag span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-500);
}
.hero-panel-tag p { color: var(--ink-100); margin-top: 0.4rem; font-size: 0.82rem; line-height: 1.55; }

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3rem; }
  .hero-panel-frame img { height: 280px; }
}
@media (max-width: 560px) {
  .hero-stat-row { flex-direction: column; gap: 1rem; }
  .hero-stat { border-right: none; margin-right: 0; padding-right: 0; }
}

/* ==========================================================================
   Split feature — asymmetric: dark stat panel + hairline-divided rows
   ========================================================================== */
.split-feature { padding-block: 6rem; border-bottom: 1px solid var(--line); }
.split-feature-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.25rem;
  margin-top: 3.25rem;
  align-items: stretch;
}
.split-feature-panel {
  background: var(--ink-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.split-feature-panel .tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-500); letter-spacing: 0.06em; text-transform: uppercase; }
.split-feature-panel h3 { color: var(--white); font-size: 1.5rem; margin-top: 1rem; line-height: 1.3; }
.split-feature-panel p { color: var(--ink-200); font-size: 0.9rem; line-height: 1.7; margin-top: 1.2rem; }

.split-feature-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.feature-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  padding: 1.9rem 2rem;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .idx { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-600); }
.feature-row h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink-950); }
.feature-row p { font-size: 0.88rem; line-height: 1.65; color: var(--ink-600); margin-top: 0.5rem; }

@media (max-width: 900px) {
  .split-feature-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Media split — asymmetric image panel + copy (replaces zigzag)
   ========================================================================== */
.media-split { padding-block: 6rem; border-bottom: 1px solid var(--line); }
.media-split-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: center;
}
.media-split-row.flip { grid-template-columns: 7fr 5fr; }
.media-split-row.flip .media-split-media { order: 2; }
.media-split-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.media-split-copy h3 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.media-split-copy p { color: var(--ink-600); line-height: 1.75; }
.media-split-copy p + p { margin-top: 1rem; }
.media-split-copy ul { margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.media-split-copy ul li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--ink-800);
  align-items: flex-start;
}
.media-split-copy ul li::before {
  content: "→";
  color: var(--accent-600);
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .media-split-row, .media-split-row.flip { grid-template-columns: 1fr; }
  .media-split-row.flip .media-split-media { order: 0; }
}

/* ==========================================================================
   Process rail — numbered vertical list, hairline dividers
   ========================================================================== */
.process-rail-section { padding-block: 6rem; background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.process-rail { margin-top: 3.5rem; border-top: 1px solid var(--line); }
.process-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process-row .step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent-600);
  line-height: 1;
}
.process-row h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-row p { font-size: 0.9rem; color: var(--ink-600); line-height: 1.65; max-width: 640px; }
@media (max-width: 640px) {
  .process-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ==========================================================================
   Section shell
   ========================================================================== */
.section { padding-block: 6rem; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section-head { max-width: 680px; margin-bottom: 3.5rem; display: flex; flex-direction: column; gap: 1rem; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.section-head h2 { margin-top: 0; }

/* ---------- Index list — single-column numbered rows ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.index-row .idx-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-600); padding-top: 0.2rem; }
.index-row h3 { margin-bottom: 0.45rem; font-size: 1.05rem; }
.index-row p { color: var(--ink-600); font-size: 0.9rem; line-height: 1.6; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 2rem; }
.info-card .icon-badge { width: 42px; height: 42px; border-radius: var(--radius-xs); background: var(--accent-100); color: var(--accent-700); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.info-card h3 { margin-bottom: 0.6rem; font-size: 1.02rem; }
.info-card p { color: var(--ink-600); font-size: 0.9rem; line-height: 1.6; }

/* ==========================================================================
   Split panel — one bordered box, vertical rule down the middle
   ========================================================================== */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.split-panel-col { padding: 2.75rem; }
.split-panel-col:first-child { border-right: 1px solid var(--line); }
.split-panel-col h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.4rem; font-size: 1rem; }
.split-panel-col.yes h3 { color: var(--ok-600); }
.split-panel-col.no h3 { color: var(--warn-600); }
.split-panel-col ul { display: flex; flex-direction: column; gap: 1rem; }
.split-panel-col li { display: flex; gap: 0.75rem; font-size: 0.9rem; color: var(--ink-800); align-items: flex-start; }
.split-panel-col.yes li::before { content: "✓"; color: var(--ok-600); font-weight: 700; font-family: var(--font-mono); }
.split-panel-col.no li::before { content: "✕"; color: var(--warn-600); font-weight: 700; font-family: var(--font-mono); }
@media (max-width: 720px) {
  .split-panel { grid-template-columns: 1fr; }
  .split-panel-col:first-child { border-right: none; border-bottom: 1px solid var(--line); }
}

.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.compare-col { padding: 2.25rem; }

.callout {
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-left: 3px solid var(--accent-600);
  border-radius: var(--radius-sm);
  padding: 1.75rem 2rem;
}
.callout h2 { font-size: 0.95rem; color: var(--accent-800); }
.callout p { margin-top: 0.6rem; }

/* ==========================================================================
   CTA — full-bleed flat band, no card, no blobs
   ========================================================================== */
.cta-flat {
  background: var(--ink-950);
  color: var(--white);
  padding-block: 4rem;
  border-bottom: 1px solid var(--line);
}
.cta-flat-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-flat h2 { color: var(--white); }
.cta-flat p { color: var(--ink-200); margin-top: 0.6rem; }
.cta-flat .actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-flat .btn-orange { background: var(--accent-600); color: var(--white); }
.cta-flat .btn-orange:hover { background: var(--accent-500); }

/* ==========================================================================
   Contact split — two full-height panels
   ========================================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; }
}

.contact-info-panel {
  background: var(--ink-950);
  color: var(--white);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-info-panel h2 { color: var(--white); font-size: 1.4rem; }
.contact-info-panel > p { color: var(--ink-200); font-size: 0.92rem; line-height: 1.7; }
.contact-info-block h3 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-500); margin-bottom: 0.85rem; font-weight: 400; }
.contact-info-block address { font-style: normal; font-size: 0.88rem; color: var(--ink-100); line-height: 1.85; }
.contact-info-block ul { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-info-block a { font-size: 0.88rem; color: var(--white); font-weight: 500; }
.contact-info-block a:hover { color: var(--accent-500); }
.contact-info-block + .contact-info-block { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.8rem; }

.contact-form-panel { background: var(--white); padding: 3rem 2.75rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 0.8rem; font-weight: 500; color: var(--ink-950); }
.field input, .field textarea {
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid var(--ink-200);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink-950);
  background: transparent;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-600); }
.field-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-800); }
.field-consent input { margin-top: 0.2rem; accent-color: var(--accent-600); }
.required { color: var(--warn-600); }

.form-alert {
  gap: 0.65rem;
  align-items: flex-start;
  background: var(--warn-100);
  border: 1px solid #e0bfa8;
  border-left: 3px solid var(--warn-600);
  color: var(--warn-600);
  border-radius: var(--radius-xs);
  padding: 0.9rem 1.05rem;
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1.3rem;
}
.form-alert:not([hidden]) { display: flex; }
.form-alert svg { flex-shrink: 0; margin-top: 0.1rem; }

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}
.form-success .icon-badge {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--ink-600); font-size: 0.92rem; line-height: 1.6; max-width: 380px; margin-inline: auto; }
.form-success .btn { margin-top: 1.5rem; }

/* legacy side-card (kept for any residual references) */
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.75rem; margin-bottom: 1.25rem; }
.side-card:last-child { margin-bottom: 0; }
.side-card h3 { margin-bottom: 0.85rem; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-700); }
.side-card address { font-style: normal; font-size: 0.9rem; color: var(--ink-800); line-height: 1.8; }
.side-card ul { display: flex; flex-direction: column; gap: 0.6rem; }
.side-card a { font-size: 0.9rem; color: var(--ink-950); font-weight: 600; }
.side-card a:hover { color: var(--accent-700); }

/* ==========================================================================
   FAQ layout — sticky category rail + flat accordion list
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-rail { position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.faq-rail a {
  font-size: 0.85rem;
  color: var(--ink-600);
  padding: 0.6rem 0;
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}
.faq-rail a:hover { color: var(--accent-700); border-left-color: var(--accent-600); }

.accordion-group + .accordion-group { margin-top: 2.75rem; }
.accordion-group h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 0.5rem; scroll-margin-top: 6.5rem; }
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ink-950);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent-600);
  flex-shrink: 0;
}
.accordion-item[open] summary::after { content: "\2212"; }
.accordion-item .accordion-body {
  padding: 0 0 1.5rem;
  color: var(--ink-600);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 640px;
}

/* ==========================================================================
   Docs layout — sticky TOC + plain typographic column (legal pages)
   ========================================================================== */
.legal-hero {
  background: var(--paper-alt);
  color: var(--ink-950);
  padding-block: 3.25rem;
  border-bottom: 1px solid var(--line);
}
.legal-hero .eyebrow { margin-inline: 0; }
.legal-hero h1 { color: var(--ink-950); font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.3rem); font-family: var(--font-display); margin-top: 1rem; }
.legal-hero p { color: var(--ink-600); margin-top: 0.7rem; font-size: 0.92rem; max-width: 560px; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding-block: 4rem;
  align-items: start;
}
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc {
  order: 1;
  position: sticky;
  top: 6.5rem;
}
.legal-toc p.label { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 1rem; }
.legal-toc ul { display: flex; flex-direction: column; gap: 0.15rem; }
.legal-toc ul li { position: relative; padding: 0.5rem 0 0.5rem 1rem; border-left: 2px solid var(--line); }
.legal-toc a { font-size: 0.84rem; color: var(--ink-600); }
.legal-toc a:hover { color: var(--accent-700); }
.legal-toc .divider { height: 1px; background: var(--line); margin: 1.1rem 0; }

.legal-body {
  order: 2;
  max-width: 720px;
}
.legal-body section { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.legal-body section:first-of-type { padding-top: 0; }
.legal-body section:last-of-type { border-bottom: none; padding-bottom: 0; }
.legal-body h2 { font-size: 1.1rem; margin-bottom: 0.85rem; scroll-margin-top: 6.5rem; }
.legal-body p { color: var(--ink-600); font-size: 0.94rem; line-height: 1.8; }
.legal-body ul { margin-top: 0.65rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.legal-body li { color: var(--ink-600); font-size: 0.92rem; line-height: 1.65; }
.legal-body address { font-style: normal; background: var(--paper-alt); border-radius: var(--radius-sm); padding: 1.15rem 1.35rem; font-size: 0.9rem; color: var(--ink-800); line-height: 1.85; margin-top: 0.6rem; }
.legal-body table { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: 0.82rem; }
.legal-body th, .legal-body td { text-align: left; padding: 0.7rem 0.8rem; border: 1px solid var(--line); }
.legal-body th { background: var(--paper-alt); color: var(--ink-950); font-weight: 600; }
.consent-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.consent-toggle:last-child { border-bottom: none; }
.consent-toggle .switch {
  width: 38px; height: 22px;
  border-radius: 999px;
  background: var(--ink-200);
  border: none;
  position: relative;
  flex-shrink: 0;
}
.consent-toggle .switch::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
}
.consent-toggle .switch.on { background: var(--accent-600); }
.consent-toggle .switch.on::before { left: 19px; }
.tag-pill { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; color: var(--accent-700); background: var(--accent-100); padding: 0.28rem 0.6rem; border-radius: var(--radius-xs); }

/* ==========================================================================
   Spec table (program.php) — full-width numbered rows
   ========================================================================== */
.spec-table { border-top: 1px solid var(--line); margin-top: 3.5rem; }
.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.spec-num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--accent-600);
  line-height: 1;
}
.spec-row h3 { font-size: 1.25rem; margin-bottom: 0.85rem; }
.spec-row > div > p.lede { font-size: 0.95rem; margin-bottom: 1.2rem; }
.spec-row .outcomes { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 0.65rem; }
.spec-row ul { display: flex; flex-direction: column; gap: 0.55rem; }
.spec-row li { font-size: 0.88rem; color: var(--ink-800); display: flex; gap: 0.6rem; }
.spec-row li::before { content: "→"; color: var(--accent-600); font-weight: 700; }
@media (max-width: 640px) { .spec-row { grid-template-columns: 1fr; padding-block: 1.75rem; } .spec-num { font-size: 1.7rem; } }

/* ==========================================================================
   Timeline (learning-path.php) — vertical spine, node circles
   ========================================================================== */
.timeline { margin-top: 3.5rem; display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.75rem;
  position: relative;
}
.timeline-item .spine {
  position: relative;
  display: flex;
  justify-content: center;
}
.timeline-item .spine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -2.5rem;
  width: 1px;
  background: var(--line);
}
.timeline-item:last-child .spine::before { display: none; }
.timeline-item .node {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent-600);
  background: var(--white);
  color: var(--accent-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-content { padding-bottom: 2.75rem; }
.timeline-item:last-child .timeline-content { padding-bottom: 0; }
.timeline-meta { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.85rem; }
.timeline-duration { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.28rem 0.65rem; border-radius: var(--radius-xs); background: var(--accent-100); color: var(--accent-700); }
.timeline-content h3 { color: var(--ink-950); margin-bottom: 1rem; }
.timeline-content ol { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.timeline-content li { font-size: 0.87rem; display: flex; gap: 0.6rem; color: var(--ink-800); }
.timeline-content li span.n { font-weight: 600; font-family: var(--font-mono); color: var(--accent-600); }

.media-banner { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; max-width: 640px; margin-inline: auto; }

/* ==========================================================================
   Showcase grid (practice-projects.php) — asymmetric, flat tag header
   ========================================================================== */
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.showcase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.showcase-card:first-child { grid-column: span 2; }
@media (min-width: 720px) {
  .showcase-card:first-child { display: grid; grid-template-columns: 1fr 1fr; }
}
.showcase-card-head {
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.showcase-card:first-child .showcase-card-head { border-bottom: none; border-right: 1px solid var(--line); flex-direction: column; align-items: flex-start; justify-content: center; }
.showcase-card-head .code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-700);
}
.showcase-card-body { padding: 1.5rem 1.75rem 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 1.15rem; }
.showcase-card-body p { font-size: 0.9rem; color: var(--ink-600); line-height: 1.65; }
.showcase-card-body h4 { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 0.65rem; }
.showcase-card-body ul { display: flex; flex-direction: column; gap: 0.45rem; }
.showcase-card-body li { font-size: 0.85rem; color: var(--ink-800); display: flex; gap: 0.5rem; }
.showcase-card-body li::before { content: "→"; color: var(--accent-600); font-weight: 700; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; background: var(--accent-50); color: var(--accent-700); padding: 0.3rem 0.65rem; border-radius: var(--radius-xs); border: 1px solid var(--accent-100); }
@media (max-width: 720px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-card:first-child { grid-column: span 1; }
}

/* ==========================================================================
   Footer — flat, square corners, hairline top border
   ========================================================================== */
.site-footer { background: var(--ink-950); color: var(--ink-200); border-top: 1px solid var(--line); }
.footer-top { padding-block: 4.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand .brand::before { background: var(--accent-600); }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; color: var(--ink-200); max-width: 280px; }
.footer-brand address {
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--ink-200);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 280px;
}
.footer-brand address strong { color: var(--white); }
.footer-col h3 { color: var(--accent-500); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.87rem; color: var(--ink-200); }
.footer-col a:hover { color: var(--white); }
.footer-disclaimer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--accent-600);
  border-radius: var(--radius-xs);
  padding: 1.3rem 1.5rem;
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--ink-200);
}
.footer-disclaimer a { color: var(--accent-500); text-decoration: underline; text-underline-offset: 3px; }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 2rem + 4vw, 6rem);
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.06);
  padding-block: 1.5rem 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.footer-bottom {
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-400);
}
.footer-bottom strong { color: var(--ink-200); }

/* ==========================================================================
   Utility
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-lg { margin-top: 3rem; }
.center-text { text-align: center; }
.max-w-prose { max-width: 640px; }
.mx-auto { margin-inline: auto; }
