/* GHTrade — Premium Financial Education Design System
   Editorial · Dark · Photography-led · Restrained */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  /* Core surfaces */
  --bg: #080D16;
  --bg-elevated: #0C121E;
  --surface: #101827;
  --surface-2: #162033;
  --surface-3: #1A2538;

  /* Borders */
  --border: #1E2A3C;
  --border-light: #2A3A52;
  --border-subtle: rgba(255,255,255,0.06);

  /* Text */
  --text: #F4F6F8;
  --text-secondary: #A7B0BE;
  --text-muted: #7A8498;

  /* Accent — restrained financial green */
  --accent: #6d8cff;
  --accent-hover: #8ba3ff;
  --accent-soft: rgba(109, 140, 255, 0.12);
  --accent-glow: rgba(109, 140, 255, 0.25);
  --accent-text: #070b14;

  /* Market direction */
  --up: #34d399;
  --down: #f87171;

  /* Typography */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;

  /* Radii — restrained */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Elevation */
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.25);

  /* Layout */
  --header-h: 68px;
  --wrap: 1180px;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }

/* ========== Layout ========== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.prose { max-width: 680px; }

/* ========== Typography ========== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.35rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); margin-bottom: 0.85rem; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.55rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.935rem;
  line-height: 1.35;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 22, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

.nav-main {
  display: none;
  align-items: center;
  gap: 0.1rem;
}
.nav-main a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-actions .btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
}

.menu-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  position: relative;
  z-index: 110;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.menu-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border-light);
}
.menu-toggle[aria-expanded="true"] {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }


/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  animation: mobileNavIn 0.2s ease;
}
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav.is-open { display: flex !important; }
.mobile-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}
.mobile-nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.mobile-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}
.mobile-nav-cta {
  margin-top: 0.75rem;
  text-align: center;
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .nav-main { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .hide-mobile { display: inline-flex !important; }
}
@media (max-width: 899px) {
  .hide-mobile { display: none !important; }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: auto;
}
.hero-content {
  padding: 3.25rem 0 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero h1 {
  margin-bottom: 1.15rem;
  max-width: 14ch;
}
.hero h1 span { display: block; }
.hero-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  height: 200px;
  max-height: 42vw;
  background: var(--surface);
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,13,22,0.65) 0%, transparent 50%);
  pointer-events: none;
}

@media (min-width: 600px) {
  .hero-visual {
    height: 280px;
    max-height: none;
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 520px;
  }
  .hero-content {
    padding: 4rem 2.5rem 4rem 0;
  }
  .hero-visual {
    height: auto;
    min-height: 520px;
    max-height: none;
  }
  .hero-visual img {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 520px;
  }
  .hero-visual::after {
    background: linear-gradient(to right, rgba(8,13,22,0.75) 0%, transparent 35%);
  }
}

/* ========== Market section ========== */
.section-market {
  padding: 3.5rem 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.section-header {
  margin-bottom: 2rem;
}
.section-header p {
  max-width: 480px;
  margin-top: 0.6rem;
  font-size: 1rem;
}
.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

/* Ticker */
.tickers {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ticker-track-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
  padding: 0.9rem 0;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0 1.5rem;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.ticker-item .sym {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.ticker-item .price {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.ticker-item .chg {
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}
.ticker-item .chg.up {
  color: var(--up);
  background: rgba(57, 201, 138, 0.12);
}
.ticker-item .chg.down {
  color: var(--down);
  background: rgba(240, 113, 120, 0.12);
}
.tk-note {
  margin: 0;
  padding: 0.4rem 1.25rem 0.5rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

/* Market panel table-style */
.market-panel {
  margin-top: 1.5rem;
}
.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.market-table th,
.market-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.market-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
}
.market-table td {
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
.market-table tr:last-child td { border-bottom: none; }
.market-table .sym {
  font-weight: 600;
  color: var(--text);
}
.market-table .chg.up { color: var(--up); }
.market-table .chg.down { color: var(--down); }

/* ========== Educational pathways ========== */
.section-pathways {
  padding: 4.5rem 0;
}
.pathways-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .pathways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .pathways-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pathway {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pathway:hover {
  border-color: var(--border-light);
  background: var(--surface-2);
}
.pathway-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.pathway h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}
.pathway p {
  font-size: 0.935rem;
  flex-grow: 1;
  margin-bottom: 0;
}

/* ========== Featured learning ========== */
.section-featured {
  padding: 4.5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.featured-layout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .featured-layout {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 3.5rem;
  }
}
.featured-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  max-height: 220px;
}
.featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 600px) {
  .featured-photo {
    aspect-ratio: 4/3;
    max-height: none;
  }
}
.featured-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.featured-item {
  display: block;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.featured-item:first-child { padding-top: 0; }
.featured-item:last-child { border-bottom: none; padding-bottom: 0; }
.featured-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.featured-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--text);
  transition: color 0.15s;
}
.featured-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}
.featured-item:hover h3 { color: var(--accent); }

/* ========== Learning approach ========== */
.section-approach {
  padding: 4.5rem 0;
}
.approach-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .approach-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
  }
}
.approach-copy h2 { margin-bottom: 1rem; }
.approach-copy p {
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}
.approach-points {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.approach-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.approach-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.approach-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  max-height: 220px;
}
.approach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 600px) {
  .approach-photo {
    aspect-ratio: 5/4;
    max-height: none;
  }
}

/* ========== FAQ ========== */
.section-faq {
  padding: 4.5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.faq-list {
  max-width: 720px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  padding: 1.2rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}
.faq-item p {
  padding: 0 0 1.35rem;
  font-size: 0.975rem;
  color: var(--text-secondary);
  max-width: 60ch;
}

/* ========== Final CTA ========== */
.section-cta {
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final {
  max-width: 560px;
  margin: 0 auto;
}
.cta-final h2 {
  margin-bottom: 0.85rem;
}
.cta-final > p {
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}
.cta-fine {
  margin-top: 1.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== Footer ========== */
.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}
.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.85rem;
}
.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
  color: var(--text-muted);
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-col a:hover { color: var(--text); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 720px;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-bottom {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== Shared page styles ========== */
section { padding: 4rem 0; }

.page-hero {
  padding: 3rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.55rem; }
.page-hero .lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 540px;
}
.page-content {
  padding: 2.5rem 0 4rem;
}

/* Content blocks & path cards (lesson pages) */
.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  margin-bottom: 1.35rem;
}
.content-block h2 { margin-bottom: 0.7rem; }

.paths {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 768px) {
  .paths { grid-template-columns: repeat(3, 1fr); }
}
.path-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.path-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.path-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.path-card h3 { margin-bottom: 0.45rem; font-size: 1.1rem; }
.path-card > p {
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}
.path-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.path-card li a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.path-card li a:hover { color: var(--accent); }
.path-card li a::before {
  content: "→";
  color: var(--accent);
  font-size: 0.8rem;
  opacity: 0.8;
}

/* CTA band (legacy / lesson pages) */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-band h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.cta-band p {
  margin-bottom: 1.35rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Learn page TOC */
.learn-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 2.25rem;
  list-style: none;
}
.learn-toc a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}
.learn-toc a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Lesson body */
.lesson-body {
  max-width: 680px;
}
.lesson-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.lesson-body ul, .lesson-body ol {
  margin: 0.75rem 0 1.25rem 1.25rem;
  color: var(--text-secondary);
}
.lesson-body li { margin-bottom: 0.35rem; }
.takeaways {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.35rem;
  margin: 1.75rem 0;
}
.takeaways h3 {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  color: var(--accent);
}
.takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.takeaways li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.takeaways li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Chart illustration (kept for educational use) */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 1rem 1rem 0.85rem;
}
.chart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.chart-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.chart-svg { width: 100%; height: auto; }
.chart-grid line {
  stroke: var(--border);
  stroke-width: 1;
}
.chart-candles .wick-up { stroke: var(--up); stroke-width: 1.5; }
.chart-candles .wick-down { stroke: var(--down); stroke-width: 1.5; }
.chart-candles .body-up { fill: var(--up); }
.chart-candles .body-down { fill: var(--down); }
.level { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.level-label {
  fill: var(--accent);
  font-size: 11px;
  font-family: var(--font);
}
.chart-legend {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.key-up { background: var(--up); }
.key-down { background: var(--down); }

/* Why grid (legacy support) */
.why-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.why-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.why-card p { font-size: 0.92rem; margin: 0; }

/* Glossary */
.glossary-list {
  display: grid;
  gap: 0;
}
.glossary-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.glossary-item dt {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.glossary-item dd {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Utility */
.icon { flex-shrink: 0; }

/* Responsive refinements */
@media (max-width: 599px) {
  .hero-content { padding: 2rem 0 1.5rem; }
  .hero h1 { font-size: 1.95rem; }
  .hero-lead { font-size: 0.98rem; margin-bottom: 1.35rem; }
  .hero-cta { margin-bottom: 1.25rem; }
  section { padding: 2.75rem 0; }
  .section-pathways,
  .section-featured,
  .section-approach,
  .section-faq { padding: 2.75rem 0; }
  .section-cta { padding: 3.25rem 0; }
  .featured-layout { gap: 1.5rem; }
  .approach-grid { gap: 1.5rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .menu-toggle, .hero-cta { display: none; }
  body { background: #fff; color: #111; }
  a { color: #000; }
}

/* ========== Market data panels ========== */
.market-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .market-grid { grid-template-columns: 1fr 1fr; } }
.market-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.market-col h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.market-sub { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 0.65rem; }
.market-empty { font-size: 0.9rem; padding: 0.75rem 0; color: var(--text-muted); }
.quotes { list-style: none; }
.quote {
  display: grid;
  grid-template-columns: 1fr auto 6.2rem;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.quote:first-child { border-top: none; }
.quote-sym { font-weight: 600; color: var(--text-secondary); font-size: 0.92rem; }
.quote-price { font-weight: 700; color: var(--text); text-align: right; }
.quote .chg {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}
.quote .chg.up { color: var(--up); background: rgba(52,211,153,0.12); }
.quote .chg.down { color: var(--down); background: rgba(248,113,113,0.12); }
.quote .chg.flat { color: var(--text-muted); }
.market-note { margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); max-width: 90ch; }
.market-fallback {
  display: grid;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.market-fallback h3 { margin-bottom: 0.5rem; }
.market-fallback-chart { max-width: 420px; }
@media (min-width: 860px) { .market-fallback { grid-template-columns: 1fr 1fr; } }

/* Lesson cards */
.lessons-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .lessons-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lessons-grid { grid-template-columns: repeat(3, 1fr); } }
.lcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
}
.lcard:hover { border-color: var(--border-light); transform: translateY(-2px); }
.lcard:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.lcard h3 { font-size: 1.05rem; }
.lcard h3 a { color: var(--text); }
.lcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.lcard h3 a:focus-visible { outline: none; }
.lcard p { font-size: 0.92rem; margin: 0; }
.lcard-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.tag {
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-forex { background: rgba(57,201,138,0.1); color: var(--accent); }
.tag-shared { background: rgba(167,176,190,0.12); color: var(--text-secondary); }

/* Path extras */
.path-title { color: var(--text); }
.path-title:hover { color: var(--accent); }
.path-note { font-size: 0.8rem !important; color: var(--text-muted); margin-bottom: 1rem !important; }
.path-foot { margin-top: auto; font-weight: 600; font-size: 0.9rem; }

/* Prose refinements for content pages */
.page-content .prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.page-content .prose h2:first-child { margin-top: 0; }
.page-content .prose ul { margin: 0.75rem 0 1.25rem 1.25rem; color: var(--text-secondary); }
.page-content .prose li { margin-bottom: 0.4rem; }
.page-note { margin-top: 2rem; color: var(--text-muted); font-size: 0.9rem; }

/* Glossary */
.glossary-grid { display: grid; gap: 0; }
