/* ============================================================
   NeuraLearn — AI Course Marketplace
   Dark editorial design system
   Palette: warm charcoal / terracotta / gold · Playfair Display + Inter
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --primary:       #d97757;
  --primary-dark:  #e58a6c;   /* hover — lifts on dark rather than deepening */
  --primary-light: #efa588;
  --secondary:     #c98a6a;
  --gold:          #e0a85e;
  --gold-light:    #f0c184;
  --success:       #5fbd82;

  /* Surfaces, darkest to lightest */
  --bg:        #100e0d;
  --bg-alt:    #171412;
  --surface:   #1c1815;
  --surface-2: #241e1a;
  --accent:    #2a221d;   /* warm tint, replaces the old cream fill */

  /* Type */
  --text-dark:  #f6f1ec;  /* headings — the "strongest" text */
  --text-mid:   #c2b7ae;  /* body copy */
  --text-light: #8d8078;  /* muted / meta */
  --on-primary: #1a0f09;  /* text sitting on terracotta or gold */
  --white:      #ffffff;

  --border:        rgba(255, 255, 255, .10);
  --border-strong: rgba(217, 119, 87, .48);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .38);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, .48);
  --shadow-lg: 0 16px 46px rgba(0, 0, 0, .60);
  --glow:      0 0 0 1px rgba(217, 119, 87, .28), 0 12px 40px -12px rgba(217, 119, 87, .45);

  --r-btn:   8px;
  --r-input: 8px;
  --r-card:  12px;
  --r-lg:    16px;

  --ff-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1180px;
  --nav-h: 76px;
  --transition: .25s ease;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft terracotta bloom so the page is not a flat slab of charcoal */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 460px at 12% -8%, rgba(217, 119, 87, .16), transparent 62%),
    radial-gradient(680px 420px at 88% 4%, rgba(224, 168, 94, .09), transparent 60%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

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

::selection { background: rgba(217, 119, 87, .32); color: var(--text-dark); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section--cream { background: var(--accent); border-block: 1px solid var(--border); }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

.h-display { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.18; }
.h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
.h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; }
.h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }

.grad-text {
  background: linear-gradient(100deg, var(--primary) 0%, var(--primary-light) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.serif-accent { font-family: var(--ff-heading); font-style: italic; color: var(--primary); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-mid);
  max-width: 62ch;
  line-height: 1.75;
}
.lede.center-x { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(217, 119, 87, .10);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 168, 94, .22);
}

.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head.center-x { margin-inline: auto; text-align: center; }
.section-head .h2 { margin: 18px 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-btn);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--ff-body);
}

/* Dark ink on terracotta reaches ~6:1; white would only reach 3.1:1 */
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  font-weight: 700;
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 87, .38);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  color: var(--on-primary);
  border-color: var(--gold);
  font-weight: 700;
}
.btn--gold:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 168, 94, .35);
}

.btn--light {
  background: var(--text-dark);
  color: var(--on-primary);
  border-color: var(--text-dark);
  font-weight: 700;
}
.btn--light:hover { background: #fff; border-color: #fff; transform: translateY(-1px); }

.btn--onDark {
  background: transparent;
  color: var(--text-dark);
  border-color: rgba(255, 255, 255, .30);
}
.btn--onDark:hover { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .55); }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 20px; font-size: .84rem; }
.btn--lg { padding: 15px 34px; font-size: .98rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(16, 14, 13, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.nav.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-dark);
  flex-shrink: 0;
}
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--primary);
  display: grid; place-items: center;
  color: var(--on-primary);
  font-size: 1rem;
  font-weight: 800;
}
.logo span.thin { color: var(--gold); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--primary); }
.nav__links a.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--gold);
}

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--surface);
  place-items: center;
}
.nav__toggle span { display: block; width: 17px; height: 2px; background: var(--primary); border-radius: 2px; position: relative; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 17px; height: 2px; background: var(--primary); border-radius: 2px;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 84px) 0 80px; position: relative; }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { margin: 22px 0 20px; }
.hero .lede { margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero__proof { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  margin-left: -12px;
  display: grid; place-items: center;
  font-size: .76rem; font-weight: 700; color: var(--on-primary);
}
.avatars span:first-child { margin-left: 0; }
.hero__proof p { font-size: .88rem; color: var(--text-light); }
.hero__proof strong { color: var(--text-dark); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .92rem; }

/* Hero visual — lesson preview card */
.mock {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--primary);
  color: var(--on-primary);
}
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; display: block; background: rgba(26, 15, 9, .32); }
.mock__bar i:nth-child(3) { background: rgba(26, 15, 9, .55); }
.mock__bar span {
  margin-left: 10px;
  font-family: var(--ff-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.mock__body { padding: 24px; font-family: var(--ff-mono); font-size: .8rem; line-height: 2; background: #16120f; }
.mock__body .c-mute { color: var(--text-light); }
.mock__body .c-acc  { color: var(--primary-light); font-weight: 500; }
.mock__body .c-cy   { color: var(--gold); }
.mock__body .c-ok   { color: var(--success); font-weight: 500; }
.caret {
  display: inline-block; width: 7px; height: 14px;
  background: var(--gold); vertical-align: -2px;
  animation: blink 1.15s steps(2) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.mock__foot {
  border-top: 1px solid var(--border);
  padding: 15px 20px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--accent);
  font-size: .8rem;
  color: var(--text-mid);
  font-weight: 500;
}
.mock__foot .tag { font-family: var(--ff-mono); font-size: .72rem; color: var(--gold); }

.float-card {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface-2);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  animation: bob 5.5s ease-in-out infinite;
}
.float-card b { font-size: .9rem; display: block; color: var(--text-dark); font-weight: 600; }
.float-card small { color: var(--text-light); font-size: .76rem; }
.float-card .ic {
  width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center; font-size: 1.05rem;
  background: var(--accent);
}
.float-card--a { bottom: -22px; left: -28px; }
.float-card--b { top: -20px; right: -14px; animation-delay: -2.6s; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  padding: 24px 0;
  overflow: hidden;
  background: var(--bg-alt);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-size: .98rem; font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  display: flex; align-items: center; gap: 9px;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 30px 24px;
  background: var(--surface);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.stat:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.stat b {
  display: block;
  font-family: var(--ff-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat span { font-size: .85rem; color: var(--text-light); }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

/* ---------- Course cards ---------- */
.course {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.course:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.course__thumb {
  height: 180px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.course__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.course:hover .course__thumb img { transform: scale(1.05); }

/* Just enough shading at the base to seat bright artwork on the dark card.
   Deliberately no colour wash — that is what dulled an earlier image set. */
.course__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(16, 14, 13, .55) 100%);
  pointer-events: none;
}

/* The illustration carries the card; the emoji is redundant over it. */
.course__glyph { display: none; }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 14, 13, .82);
  backdrop-filter: blur(6px);
  color: var(--text-dark);
  z-index: 2;
}
.badge--hot  { background: var(--gold); color: var(--on-primary); }
.badge--new  { background: var(--success); color: var(--on-primary); }
.badge--best { background: var(--primary); color: var(--on-primary); }

.course__body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 11px; }

.course__meta {
  display: flex; align-items: center; gap: 9px;
  font-size: .72rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
.course__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-light); }

.course__title {
  font-family: var(--ff-heading);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.course__desc { font-size: .89rem; color: var(--text-mid); flex: 1; line-height: 1.65; }

.course__stats {
  display: flex; align-items: center; gap: 13px;
  font-size: .78rem; color: var(--text-light);
  padding-top: 2px;
}
.course__stats i { font-style: normal; margin-right: 4px; }
.course__rating { color: var(--gold); font-weight: 600; }

.course__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.price { display: flex; align-items: baseline; gap: 7px; }
.price b { font-family: var(--ff-heading); font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.price s { font-size: .82rem; color: var(--text-light); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--surface);
  transition: all var(--transition);
}
.chip:hover { border-color: var(--border-strong); color: var(--primary); }
.chip.is-active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  font-weight: 700;
}

.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.search { flex: 1; min-width: 240px; position: relative; }
.search input {
  width: 100%;
  padding: 13px 18px 13px 46px;
  border-radius: var(--r-input);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dark);
  font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search input::placeholder { color: var(--text-light); }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217, 119, 87, .18); }
.search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--text-light); }

.result-count { font-size: .86rem; color: var(--text-light); margin-bottom: 22px; }

.empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-card);
  padding: 70px 24px;
  text-align: center;
  color: var(--text-light);
  background: var(--surface);
}
.empty b { display: block; color: var(--text-dark); font-size: 1.1rem; margin-bottom: 8px; font-family: var(--ff-heading); }

/* ---------- Feature cards ---------- */
.feature {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 30px 26px;
  background: var(--surface);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature__ic {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  background: var(--accent);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { font-size: .9rem; color: var(--text-mid); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { position: relative; }
.step__n {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ff-heading);
  font-weight: 700; font-size: 1.15rem;
  background: var(--primary);
  color: var(--on-primary);
  margin-bottom: 20px;
  box-shadow: 0 8px 24px -8px rgba(217, 119, 87, .6);
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { font-size: .91rem; color: var(--text-mid); }

/* ---------- Testimonials ---------- */
.quote {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 26px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.quote:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.quote p { font-size: .93rem; color: var(--text-mid); flex: 1; line-height: 1.75; }
.quote p::before {
  content: "\201C";
  font-family: var(--ff-heading);
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 0;
  vertical-align: -10px;
  margin-right: 5px;
}
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__av {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .86rem; color: var(--on-primary);
  flex-shrink: 0;
}
.quote__who b { display: block; font-size: .92rem; font-weight: 600; color: var(--text-dark); }
.quote__who small { color: var(--text-light); font-size: .79rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.plan {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 34px 28px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.plan:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.plan--featured {
  border: 1px solid var(--primary);
  background: linear-gradient(170deg, rgba(217, 119, 87, .10), var(--surface) 55%);
  box-shadow: var(--glow);
}
.plan__tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--on-primary);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.3rem; }
.plan__price { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.plan__price b { font-family: var(--ff-heading); font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.plan__price s { color: var(--text-light); font-size: 1rem; }
.plan__price span { color: var(--text-light); font-size: .86rem; }
.plan > p { font-size: .9rem; color: var(--text-mid); }
.plan ul { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 11px; font-size: .9rem; color: var(--text-mid); align-items: flex-start; }
.plan li svg { flex-shrink: 0; margin-top: 5px; color: var(--success); }
.plan li b { color: var(--text-dark); font-weight: 600; }
.plan li.off { color: var(--text-light); opacity: .65; }
.plan li.off svg { color: var(--text-light); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
.faq__item.is-open { border-color: var(--border-strong); background: var(--surface-2); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
}
.faq__q i {
  font-style: normal;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 1.1rem;
  color: var(--primary);
  font-family: var(--ff-body);
  transition: transform .3s ease, background var(--transition), color var(--transition);
}
.faq__item.is-open .faq__q i { transform: rotate(45deg); background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq__a p { padding: 0 24px 22px; font-size: .92rem; color: var(--text-mid); }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(217, 119, 87, .22), transparent 70%),
    linear-gradient(170deg, var(--surface-2), var(--surface));
  color: var(--text-mid);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band > * { position: relative; }
.cta-band .h2 { color: var(--text-dark); margin-bottom: 16px; }
.cta-band .lede { color: var(--text-mid); margin: 0 auto 30px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band__note { margin-top: 20px; font-size: .83rem; color: var(--text-light); }

/* ---------- Course detail ---------- */
.detail-hero { padding: 48px 0 60px; }
.detail-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 48px; align-items: start; }

.crumbs { display: flex; align-items: center; gap: 9px; font-size: .83rem; color: var(--text-light); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--primary); }

.detail-hero h1 { margin: 18px 0 16px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  font-size: .8rem;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-mid);
}

/* Sticky buy card */
.buy {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.buy__top { height: 170px; display: grid; place-items: center; position: relative; overflow: hidden; }
.buy__top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buy__top::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(16, 14, 13, .5) 100%);
  pointer-events: none;
}
/* Bundle checkout has no artwork, so the glyph stands in there only. */
.buy__top:not(:has(img)) .course__glyph {
  display: grid;
  font-size: 2.8rem;
  color: var(--on-primary);
  position: relative;
  z-index: 1;
}
.buy__body { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.buy__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy__price b { font-family: var(--ff-heading); font-size: 2.3rem; font-weight: 700; color: var(--primary); line-height: 1; }
.buy__price s { color: var(--text-light); font-size: 1rem; }
.buy__save {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--on-primary); background: var(--gold);
  padding: 4px 10px; border-radius: 999px;
}
.buy__timer {
  display: flex; align-items: center; gap: 9px;
  font-size: .84rem; color: var(--gold-light);
  padding: 11px 14px;
  border-radius: var(--r-input);
  background: rgba(224, 168, 94, .10);
  border: 1px solid rgba(224, 168, 94, .28);
}
.buy__timer b { font-variant-numeric: tabular-nums; color: var(--gold-light); }
.buy ul { display: flex; flex-direction: column; gap: 11px; }
.buy li { display: flex; gap: 11px; font-size: .88rem; color: var(--text-mid); align-items: flex-start; }
.buy li svg { flex-shrink: 0; margin-top: 5px; color: var(--success); }
.buy__note { text-align: center; font-size: .79rem; color: var(--text-light); }

/* Curriculum */
.curriculum { display: flex; flex-direction: column; gap: 12px; }
.module {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}
.module.is-open { border-color: var(--border-strong); }
.module__head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 22px; text-align: left; }
.module__n {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ff-heading);
  font-size: .85rem; font-weight: 700;
  background: var(--accent);
  border: 1px solid var(--border);
  color: var(--primary);
}
.module.is-open .module__n { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.module__head b { font-family: var(--ff-heading); font-size: 1.02rem; font-weight: 600; color: var(--text-dark); display: block; line-height: 1.35; }
.module__head small { color: var(--text-light); font-size: .79rem; }
.module__head .chev { margin-left: auto; flex-shrink: 0; color: var(--text-light); transition: transform .3s ease; }
.module.is-open .chev { transform: rotate(180deg); color: var(--primary); }
.module__body { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.module__body ul { padding: 0 22px 20px 74px; display: flex; flex-direction: column; gap: 10px; }
.module__body li { font-size: .89rem; color: var(--text-mid); display: flex; align-items: center; gap: 10px; }
.module__body li::before { content: "\25B8"; color: var(--gold); font-size: .8rem; }

/* Outcomes list */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: .92rem; color: var(--text-mid); align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 5px; color: var(--success); }

.block { margin-bottom: 48px; }
.block > .h3 { margin-bottom: 20px; }

/* ---------- Instructor ---------- */
.instructor {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 40px;
  background: var(--surface);
}
.instructor__photo {
  aspect-ratio: 1;
  border-radius: var(--r-card);
  background: linear-gradient(150deg, var(--primary), #a8492c);
  display: grid; place-items: center;
  font-family: var(--ff-heading);
  font-size: 4.4rem; font-weight: 700; color: var(--on-primary);
  box-shadow: var(--shadow-md);
}
.instructor h3 { font-size: 1.6rem; margin-bottom: 6px; }
.instructor__role { color: var(--gold); font-size: .9rem; font-weight: 600; margin-bottom: 16px; letter-spacing: .04em; }
.instructor p { color: var(--text-mid); font-size: .94rem; margin-bottom: 22px; }
.instructor__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.instructor__stats b { display: block; font-family: var(--ff-heading); font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.instructor__stats span { font-size: .8rem; color: var(--text-light); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text-dark); }
.field input, .field textarea, .field select {
  padding: 13px 16px;
  border-radius: var(--r-input);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dark);
  font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; font-family: var(--ff-body); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217, 119, 87, .18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-light); }
.field select option { background: var(--surface-2); color: var(--text-dark); }

.form-note {
  padding: 14px 16px;
  border-radius: var(--r-input);
  font-size: .89rem;
  border: 1px solid rgba(95, 189, 130, .38);
  background: rgba(95, 189, 130, .10);
  color: var(--success);
  margin-bottom: 20px;
}
.form-note[hidden] { display: none; }

.notice {
  padding: 14px 16px;
  border-radius: var(--r-input);
  font-size: .88rem;
  border: 1px solid rgba(224, 168, 94, .38);
  background: rgba(224, 168, 94, .10);
  color: var(--gold-light);
}
.notice b { color: var(--gold); }

/* ---------- Legal / prose pages ---------- */
.legal-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.legal-hero .updated { font-size: .85rem; color: var(--text-light); margin-top: 12px; }

.legal-grid { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; padding: 64px 0 90px; }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 22px;
}
.toc h4 {
  font-family: var(--ff-body);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-light); margin-bottom: 14px; font-weight: 700;
}
.toc a {
  display: block;
  font-size: .86rem;
  color: var(--text-mid);
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: all var(--transition);
}
.toc a:hover { color: var(--primary); border-left-color: var(--gold); }

.prose { max-width: 72ch; }
.prose h2 {
  font-size: 1.5rem;
  margin: 44px 0 16px;
  padding-top: 10px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 28px 0 12px; }
.prose p { margin-bottom: 16px; color: var(--text-mid); font-size: .96rem; }
.prose ul, .prose ol { margin: 0 0 18px 0; display: flex; flex-direction: column; gap: 10px; }
.prose li {
  position: relative;
  padding-left: 22px;
  color: var(--text-mid);
  font-size: .95rem;
}
.prose li::before {
  content: "\25B8";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-size: .8rem;
}
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n) "."; color: var(--primary); font-weight: 600; font-size: .9rem; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.prose strong { color: var(--text-dark); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.callout {
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--r-input) var(--r-input) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p { margin: 0; font-size: .93rem; }
.callout p + p { margin-top: 10px; }

.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: .9rem; }
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: var(--accent); color: var(--text-dark); font-weight: 600; font-size: .85rem; }
.legal-table td { color: var(--text-mid); }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
.footer {
  background: #0b0a09;
  border-top: 1px solid var(--border);
  color: var(--text-mid);
  padding: 64px 0 30px;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 44px; margin-bottom: 44px; }
.footer .logo { color: var(--text-dark); }
.footer .logo__mark { background: var(--primary); color: var(--on-primary); }
.footer__brand p { font-size: .89rem; margin: 16px 0 20px; max-width: 34ch; color: var(--text-light); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-mid);
  transition: all var(--transition);
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: translateY(-2px); }

.footer__col h4 {
  font-family: var(--ff-body);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dark); margin-bottom: 16px; font-weight: 700;
}
.footer__col a { display: block; font-size: .88rem; color: var(--text-light); padding: 6px 0; transition: color var(--transition); }
.footer__col a:hover { color: var(--primary); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--text-light);
}
.footer__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--primary); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .float-card--a { left: 0; bottom: -18px; }
  .float-card--b { right: 0; }
  .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .buy { position: static; }
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .toc a { display: inline-block; margin-right: 14px; }
  .grid-3, .steps, .plans { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .instructor { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .instructor__photo { max-width: 170px; margin-inline: auto; }
  .instructor__stats { justify-content: center; }
}

@media (max-width: 820px) {
  .nav__links, .nav__actions .btn--ghost { display: none; }
  .nav__toggle { display: grid; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav.is-open .nav__links a.is-active::after { display: none; }
  .section { padding: 68px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .checks { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .grid-3, .grid-2, .steps, .plans { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .float-card { display: none; }
  .module__body ul { padding-left: 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .instructor__stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .footer, .cta-band, .toc, .socials { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  h1, h2, h3, h4, h5, .prose strong { color: #000; }
  .prose p, .prose li { color: #222; }
  .prose { max-width: none; }
}
