:root {
  --ibs-blue-a: #2B4C8C;
  --ibs-blue-b: #3D63AE;
  --ibs-purple-a: #67469B;
  --ibs-purple-b: #9B4B9E;
  --grad-l1: linear-gradient(100deg, #2B4C8C, #3D63AE);
  --grad-l2: linear-gradient(100deg, #67469B, #9B4B9E);
  --grad-brand: linear-gradient(100deg, #2B4C8C 0%, #3D63AE 45%, #67469B 90%);
  --grad-c1: linear-gradient(100deg, #2B4C8C, #3D63AE);
  --grad-c2: linear-gradient(100deg, #5B4FC0, #67469B);
  --grad-c3: linear-gradient(100deg, #8A4FA8, #9B4B9E);
  --grad-dark: linear-gradient(120deg, #14284B, #3B2D6B);
  --ink: #14213D;
  --ink-soft: #55607A;
  --ink-mute: #7A8399;
  --line: rgba(24, 49, 83, 0.10);
  --line-soft: rgba(24, 49, 83, 0.06);
  --bg: #F7F8FB;
  --bg-alt: #EEF0F7;
  --card: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --shadow-card: 0 8px 24px -14px rgba(20, 33, 61, 0.18);
  --shadow-lift: 0 24px 60px -30px rgba(20, 33, 61, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ibs-purple-a); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }

p { margin: 0 0 12px; color: var(--ink-soft); }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 680px; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.container-sm { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 248, 251, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-img { height: 44px; width: auto; display: block; }
.brand-wordmark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 44px;
  display: inline-block;
}
.brand-wordmark .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex; align-items: center; gap: 22px;
}
.nav a { color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .btn { color: white; }

/* Dropdown menu (About IBS → About / Team / Partners) */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-drop-caret { font-size: 10px; opacity: 0.7; transition: transform .15s; }
.nav-drop-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 180px; padding: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  z-index: 30;
}
.nav-drop-menu a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); font-weight: 500;
}
.nav-drop-menu a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop:hover .nav-drop-caret,
.nav-drop:focus-within .nav-drop-caret { transform: rotate(180deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700; font-size: 14px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--grad-brand); color: white; box-shadow: 0 10px 24px -14px rgba(43, 76, 140, 0.6); }
.btn-secondary { background: white; color: var(--ink); border-color: var(--line); }
.btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.35); }
.btn-tier1 { background: var(--grad-l1); color: white; }
.btn-tier2 { background: var(--grad-l2); color: white; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-top: 32px;
  padding: 72px 48px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #F0F3FB 100%);
  border: 1px solid var(--line-soft);
}
.hero-media {
  position: absolute; inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  opacity: var(--hero-opacity, 0.12);
  pointer-events: none;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(30px); pointer-events: none;
}
.hero-orb.a { top: -160px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(123,79,181,0.35), transparent 65%); }
.hero-orb.b { bottom: -220px; left: 22%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(61,99,174,0.32), transparent 65%); }
.hero-inner { position: relative; max-width: 720px; }
.hero .kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 12px; font-weight: 700; color: var(--ibs-purple-a);
  padding: 6px 12px; background: rgba(103, 70, 155, 0.10);
  border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 16px; }
.hero .lede { margin-bottom: 28px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Photo-dominant hero variant — used on the homepage. Full-bleed,
   viewport-width photo shown at full brightness. A soft white scrim on
   the left keeps the dark headline text readable over the sky area,
   while the right half of the photo (city, faces, water) reads
   naturally. Vertical position biased toward the top so faces stay in
   the visible band as the image is scaled to cover. */
.hero.hero-photo {
  margin-top: 0;
  border-radius: 0;
  border: none;
  padding: 0;
  background-color: #E7EEF6;
  background-image:
    linear-gradient(rgba(247, 248, 251, 0.7), rgba(247, 248, 251, 0.7)),
    var(--hero-bg, none);
  background-size: auto, cover;
  background-position: center, center 30%;
  background-repeat: no-repeat, no-repeat;
  color: var(--ink);
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero.hero-photo .hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}
.hero.hero-photo .hero-inner > * { max-width: 620px; }
.hero.hero-photo h1 {
  color: var(--ink);
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero.hero-photo h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero.hero-photo .lede { color: var(--ink-soft); font-size: 18px; }
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.95); }
.btn-audience {
  background: var(--grad-brand);
  color: white;
  border: 1px solid transparent;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px -12px rgba(43, 76, 140, 0.7);
}
.btn-audience:hover {
  box-shadow: 0 14px 32px -12px rgba(43, 76, 140, 0.85);
  text-decoration: none;
}
@media (max-width: 720px) {
  .hero.hero-photo { min-height: 460px; }
  .hero.hero-photo .hero-inner { padding: 64px 0; }
  .hero.hero-photo h1 { font-size: 40px; }
}

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-alt); }
section.block.dark { background: var(--grad-dark); color: #ffffff; }
section.block.dark h2, section.block.dark h3 { color: #ffffff; }
section.block.dark p { color: rgba(255,255,255,0.85); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; font-weight: 700; color: var(--ibs-purple-a); margin-bottom: 10px;
}
.section-head { max-width: 720px; margin-bottom: 32px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- video gallery (homepage) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px 20px;
  padding: 4px 0 8px;
}
.video-card {
  display: flex; flex-direction: column;
  min-width: 0;
}
.video-thumb {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  background-color: #14213D;
  background-size: cover; background-position: center;
  border: 0; padding: 0; margin: 0;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-thumb:hover, .video-thumb:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(20, 33, 61, 0.5);
  outline: none;
}
.video-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
  transition: background 0.15s ease;
}
.video-thumb:hover::after { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%); }
.video-thumb .video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.94); color: var(--ibs-purple-a);
  box-shadow: 0 12px 30px -12px rgba(20, 33, 61, 0.6);
  z-index: 1;
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-thumb:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-title {
  margin: 14px 4px 0; font-size: 15px; line-height: 1.4;
  color: var(--ink); font-weight: 700;
}
.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0; border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-card);
}

.pillar { position: relative; padding-top: 30px; }
.pillar .num {
  position: absolute; top: 20px; right: 22px;
  font-weight: 800; color: var(--ibs-purple-a);
  letter-spacing: 0.08em; font-size: 13px;
}

/* ---------- product tiles ---------- */
.tile {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.tile .tag {
  align-self: flex-start;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 700; color: var(--ibs-blue-a);
  background: rgba(43, 76, 140, 0.10);
  padding: 4px 10px; border-radius: 999px; margin-top: auto;
}

/* ---------- membership / tiers ---------- */
.tier {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.tier.featured { border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    var(--grad-l2) border-box;
  box-shadow: var(--shadow-lift);
}
.tier .badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--grad-l2); color: white;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.tier .level { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; font-size: 12px; color: var(--ibs-purple-a); }
.tier .price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.tier .price small { display: block; color: var(--ibs-purple-a); font-size: 12px; font-weight: 600; margin-top: 4px; }
.tier ul { list-style: none; padding: 0; margin: 6px 0; }
.tier ul li { padding: 8px 0 8px 26px; position: relative; color: var(--ink-soft); font-size: 15px; }
.tier ul li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--ibs-blue-b); font-weight: 800;
}
.tier.featured ul li::before { color: var(--ibs-purple-a); }

/* ---------- comparison table ---------- */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); background: white;
}
.compare th, .compare td {
  padding: 14px 18px; text-align: left; font-size: 15px;
  border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
.compare thead th {
  background: var(--grad-dark); color: white; font-weight: 700;
  border-bottom: 0;
}
.compare tbody tr:nth-child(even) { background: var(--bg-alt); }
.compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- form ---------- */
.form-card { background: white; border-radius: var(--radius); border: 1px solid var(--line-soft); padding: 24px; box-shadow: var(--shadow-card); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field textarea {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line);
  background: white; color: var(--ink);
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--ibs-purple-a); box-shadow: 0 0 0 3px rgba(103, 70, 155, 0.15); }
.help { font-size: 12px; color: var(--ink-mute); }

/* ---------- blog list ---------- */
.post-card { display: flex; flex-direction: column; gap: 6px; }
.post-card .meta { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.12em; }
.post-card h3 a { color: var(--ink); }

.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { margin-bottom: 20px; }
.prose h2 { margin-top: 32px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 22px; }
.prose blockquote {
  border-left: 3px solid var(--ibs-purple-a);
  margin: 20px 0; padding: 4px 16px; color: var(--ink);
  background: var(--bg-alt); border-radius: 6px;
}

/* ---------- intro deck ---------- */
.slide {
  aspect-ratio: 16/9; background: white;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 56px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  box-shadow: var(--shadow-card);
}
.slide.dark { background: var(--grad-dark); color: white; border: none; }
.slide.dark h2 { color: white; }
.slide.dark p { color: rgba(255,255,255,0.9); }
.slide .eyebrow { color: var(--ibs-blue-b); }
.slide.dark .eyebrow { color: rgba(255,255,255,0.7); }
.slide h2 { font-size: clamp(24px, 3.6vw, 40px); }
.deck-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; gap: 12px;
}
.dots { display: flex; gap: 8px; }
.dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots .dot.on { background: var(--ibs-purple-a); }
.progress { height: 4px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.progress > span { display: block; height: 100%; background: var(--grad-brand); }

/* ---------- footer ---------- */
.site-footer {
  background: white; border-top: 1px solid var(--line-soft);
  padding: 40px 0 24px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--ink-mute); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--ink-soft); font-size: 14px; }
.footer-grid a:hover { color: var(--ink); text-decoration: none; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-alt); color: var(--ibs-purple-a);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
}
.socials a:hover { background: rgba(103, 70, 155, 0.15); color: var(--ibs-purple-a); }
.copyline { border-top: 1px solid var(--line-soft); padding-top: 20px; margin-top: 32px; font-size: 13px; color: var(--ink-mute); }

/* ---------- responsive ---------- */
/* Hamburger toggle button — hidden on desktop, shown on mobile. */
.site-header { position: relative; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 780px) {
  .hero { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    z-index: 40;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .nav .btn {
    margin-top: 10px;
    text-align: center;
    padding: 12px 16px;
  }

  /* About IBS dropdown flattens: parent + children stacked in the drawer. */
  .nav-drop { position: static; }
  .nav-drop-btn { display: block; }
  .nav-drop-caret { display: none; }
  .nav-drop-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .nav-drop-menu a {
    padding: 10px 0;
    font-size: 14px;
    color: var(--ink-soft);
  }
}
@media (max-width: 480px) {
  section.block { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- course blocks (Plan A) ---------- */
.block { margin: 24px 0; }
.block-hero-image img { width: 100%; height: auto; border-radius: var(--radius); }
.block-core-truth {
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 4px solid var(--ibs-purple-a);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
}
.block-lesson p { margin-bottom: 12px; }
.block-distinction {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.block-distinction-col {
  padding: 16px; background: var(--bg-alt);
  border-radius: var(--radius);
}
.block-distinction-col h3 { margin-bottom: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.block-distinction-col ul { list-style: none; padding: 0; }
.block-distinction-col li { padding: 4px 0; }
.block-insight blockquote {
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-style: italic;
  margin-bottom: 12px;
}
.block-story h3, .block-principles h3, .block-exercise h3 { margin-bottom: 12px; }
.block-principles ol, .block-exercise ol { padding-left: 20px; }
.block-principles li, .block-exercise li { padding: 6px 0; }
.block-reflection {
  padding: 20px 24px; background: var(--bg-alt);
  border-radius: var(--radius); margin-top: 32px;
}
.block-reflection-banner { font-weight: 700; margin-bottom: 16px; }
.block-reflection-item { margin-bottom: 20px; }
.block-reflection-item label { display: block; font-weight: 600; margin-bottom: 6px; }
.block-reflection-item textarea {
  width: 100%; min-height: 80px; padding: 10px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 14px;
  background: rgba(255,255,255,0.5);
}
.block-check {
  padding: 16px 20px; background: white;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.block-check-stem { font-weight: 600; margin-bottom: 12px; }
.block-check-options { list-style: none; padding: 0; }
.block-check-option { padding: 6px 0; }
.block-check-option .option-id { font-weight: 700; color: var(--ibs-purple-a); margin-right: 4px; }

/* ---------- interactive course styles (Plan B) ---------- */
.state-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.state-badge.state-not_started { background: var(--bg-alt); color: var(--ink-mute); }
.state-badge.state-understood  { background: rgba(103,70,155,0.12); color: var(--ibs-purple-a); }
.state-badge.state-completed   { background: rgba(43,124,86,0.15); color: #1f6b48; }

.check-option {
  display: block; width: 100%; text-align: left;
  padding: 10px 14px; margin: 4px 0;
  background: white; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 14px;
}
.check-option:hover { border-color: var(--ibs-purple-a); }
.check-option.is-chosen { border-color: var(--ibs-purple-a); background: rgba(103,70,155,0.06); }
.check-feedback {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px;
  background: var(--bg-alt); font-size: 14px;
}
.check-feedback.is-correct { background: rgba(43,124,86,0.10); color: #1f6b48; }
.check-feedback.is-incorrect { background: rgba(179,54,54,0.08); color: #8f2727; }
.check-feedback.is-error { background: rgba(179,54,54,0.08); color: #8f2727; }

.reflection-status {
  display: inline-block; margin-top: 6px;
  font-size: 12px; color: var(--ink-mute);
}
.reflection-status.is-saving { color: var(--ibs-purple-a); }
.reflection-status.is-saved  { color: #1f6b48; }
.reflection-status.is-error  { color: #8f2727; }

.widget-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.widget-chip {
  padding: 4px 12px; border-radius: 999px;
  background: var(--bg-alt); border: 1px dashed var(--line);
  font-size: 13px; cursor: pointer;
}
.widget-chip:hover { border-color: var(--ibs-purple-a); }
.widget-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.widget-table th, .widget-table td {
  padding: 6px 8px; border-bottom: 1px solid var(--line);
  font-size: 13px; text-align: left;
}
.widget-table input { width: 100%; padding: 6px; font-family: inherit; font-size: 13px;
  border: 1px solid var(--line); border-radius: 6px; }
.widget-cell-rating { max-width: 60px; text-align: center; }
.widget-row-remove { background: none; border: 0; color: var(--ink-mute); cursor: pointer; }
.widget-status { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--ink-mute); }
.widget-status.is-saving { color: var(--ibs-purple-a); }
.widget-status.is-saved  { color: #1f6b48; }
.widget-status.is-error  { color: #8f2727; }
.compare-list { display: flex; flex-direction: column; gap: 16px; margin: 12px 0; }
.compare-prompt-row {
  padding: 12px; background: var(--bg-alt);
  border-radius: 10px;
}
.compare-prompt { font-weight: 600; margin-bottom: 8px; }
.compare-pair {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end;
}
.compare-pair label { display: flex; flex-direction: column; font-size: 12px; gap: 4px; }
.compare-pair textarea {
  width: 100%; min-height: 48px; padding: 6px;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 13px;
}
.compare-tag {
  padding: 6px; border: 1px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 13px;
}
.widget-rows-prompt { font-weight: 600; margin: 8px 0; }

/* Screen-reader-only utility. Any element that carries state a sighted
   user gets from an icon (checkmark, moon, lock) should include one of
   these so assistive tech reaches the same signal. Standard clip-path
   variant — visible to AT, invisible to layout. */
.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;
}

/* ============================================================
   Roadmap page — course-rollout §5.
   Mobile-first vertical spine. Right rail appears at ≥1100px;
   collapses ABOVE the spine at 900–1100px so "Next up" never
   ends up as something you have to scroll for.
   Palette pinned to the four spec colors + existing tokens.
   ============================================================ */

:root {
  --rm-ok: #2E9B72;
  --rm-warn: #E8A33D;
  --rm-line-hot: rgba(103, 70, 155, 0.24);
}

.rm-page { padding: 32px 0 80px; }
.rm-container {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
}
.rm-back { margin: 0 0 12px; }
.rm-back a { color: var(--ink-mute); font-size: 14px; text-decoration: none; }
.rm-back a:hover { color: var(--ink); text-decoration: underline; }

/* -------- header -------- */
.rm-header { margin-bottom: 24px; }
.rm-header__eyebrow { display: inline-block; margin-bottom: 6px; }
.rm-header__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rm-stats {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .rm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rm-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.rm-stat__num {
  font-weight: 800; font-size: 22px; letter-spacing: -0.01em;
  color: var(--ink);
}
.rm-stat__of { font-weight: 500; color: var(--ink-mute); font-size: 15px; }
.rm-stat__label {
  color: var(--ink-mute);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* -------- layout -------- */
.rm-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
/* 900–1100px: rail collapses ABOVE the spine so "Next up" stays visible. */
@media (min-width: 900px) and (max-width: 1099px) {
  .rm-layout { grid-template-columns: 1fr; }
  .rm-rail  { order: -1; }
}
/* ≥1100px: modules as 4-up spine + 320px rail on the right. */
@media (min-width: 1100px) {
  .rm-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
  }
  .rm-rail { position: sticky; top: 88px; }
}

/* -------- rail cards -------- */
.rm-rail { display: flex; flex-direction: column; gap: 14px; }
.rm-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.rm-card__title {
  font-size: 18px;
  margin: 6px 0 8px;
  color: var(--ink);
  line-height: 1.3;
}
.rm-card__key {
  display: inline-block;
  color: var(--ibs-purple-a);
  font-weight: 800;
  margin-right: 4px;
}
.rm-card__teaser {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 10px;
}
.rm-card__meta {
  color: var(--ink-mute);
  font-size: 12px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.rm-card--next {
  border-color: var(--rm-line-hot);
  background: linear-gradient(180deg, #FBFAFF 0%, var(--card) 60%);
}
.rm-card--due {
  border-left: 3px solid var(--rm-warn);
}
.rm-card--done {
  border-color: rgba(46, 155, 114, 0.35);
  background: linear-gradient(180deg, #F6FBF8 0%, var(--card) 60%);
}
.rm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.rm-btn--primary {
  background: var(--grad-brand);
  color: white;
  width: 100%;
}
.rm-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.rm-card__cta--spent {
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
}
.rm-card__spent-label {
  display: block; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.rm-card__spent-note {
  margin: 0; color: var(--ink-mute); font-size: 13px;
}

.rm-haul {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.rm-haul__item {
  display: flex; gap: 12px; align-items: flex-start;
}
.rm-haul__num {
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ibs-purple-a);
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.rm-haul__text { display: flex; flex-direction: column; }
.rm-haul__label { font-weight: 700; color: var(--ink); font-size: 14px; }
.rm-haul__detail { color: var(--ink-mute); font-size: 12px; }

/* -------- spine -------- */
.rm-spine { display: flex; flex-direction: column; gap: 22px; }
.rm-module {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow-card);
}
.rm-module.is-locked {
  opacity: 0.7;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}
.rm-module__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rm-module__title-row { display: flex; flex-direction: column; gap: 2px; }
.rm-module__index {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.rm-module__title {
  margin: 0;
  font-size: 20px;
  color: var(--ink);
}
.rm-module__count {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rm-module__count--soon { color: var(--rm-warn); }

/* -------- day rows: mobile vertical spine, desktop 4-up -------- */
.rm-days {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Desktop 4-up grid — modules as horizontal tracks. */
@media (min-width: 1100px) {
  .rm-days {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.rm-day {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: 12px;
  position: relative;
}
/* The connecting spine line on mobile — a vertical rule down the rail
   column so the day nodes read as a sequence, not a stack of disconnected
   cards. Hidden on the desktop grid. */
@media (max-width: 1099px) {
  .rm-days .rm-day:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: -14px;
    width: 2px;
    background: var(--line);
  }
  .rm-days .rm-day--completed:not(:last-child)::before {
    background: var(--rm-ok);
    opacity: 0.6;
  }
}
@media (min-width: 1100px) {
  .rm-day { grid-template-columns: 32px 1fr; }
}

.rm-node {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink-mute);
  position: relative;
  z-index: 1;
  transition: transform .12s ease;
}
.rm-node--completed {
  background: var(--rm-ok);
  border-color: var(--rm-ok);
  color: white;
}
.rm-node--understood {
  background: var(--card);
  border-color: var(--rm-warn);
  color: var(--rm-warn);
}
.rm-node--today {
  background: var(--ibs-purple-a);
  border-color: var(--ibs-purple-a);
  color: white;
  transform: scale(1.14);
  box-shadow: 0 0 0 3px rgba(103, 70, 155, 0.22);
}
.rm-node--spent {
  background: var(--ink-mute);
  border-color: var(--ink-mute);
  color: white;
}
.rm-node--available {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink-mute);
}
.rm-node--locked {
  background: transparent;
  border-style: dashed;
  border-color: var(--line);
  color: var(--ink-mute);
  opacity: 0.85;
}
.rm-node__num { font-size: 11px; font-weight: 800; }

.rm-day__body {
  display: block;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
a.rm-day__body:hover {
  border-color: var(--ibs-blue-b);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}
.rm-day__body--done {
  background: var(--bg-alt);
}
.rm-day__body--done .rm-day__title { color: var(--ink-soft); }
.rm-day__key {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.rm-day__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}
.rm-day__meta {
  margin: 0;
  color: var(--ink-mute);
  font-size: 12px;
}
.rm-day__note { color: var(--rm-warn); font-weight: 600; }

/* Today's day card — border ring to match its node's emphasis. Only ever
   one of these per page (§5 acceptance criterion). */
.rm-day--today .rm-day__body {
  border-color: var(--ibs-purple-a);
  box-shadow: 0 0 0 3px rgba(103, 70, 155, 0.18);
}
.rm-day--spent .rm-day__body {
  border-color: var(--ink-mute);
  background: var(--bg-alt);
}
.rm-day--locked .rm-day__body {
  background: transparent;
  border-style: dashed;
  color: var(--ink-mute);
  cursor: not-allowed;
}
.rm-day--locked .rm-day__title { color: var(--ink-mute); font-weight: 600; }


.grid.tier-3up {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .grid.tier-3up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.btn-tier-free {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-tier-free:hover { background: var(--line-soft); text-decoration: none; }
