/* ===================================================================
   Northbeam — landing page styles
   A reusable one-page template for a beginner finance & investing course.
   Light, airy, pastel-seafoam. Edit the tokens in :root to re-skin.
   =================================================================== */

:root {
  /* ---- Color system (edit these to re-brand) ---- */
  --paper:       #FFFFFF;             /* main page background */
  --paper-soft:  #F0FAF7;            /* alt sections — palest seafoam */
  --band:        #DCF3EC;            /* tinted bands (hero, stats, final) */
  --ink:         #13302A;            /* headings — deep teal-green */
  --ink-soft:    #39544C;            /* body copy on light */
  --muted:       #6B807A;            /* large captions / labels only */
  --accent:      #97DBC6;            /* pale pastel — tints, borders, icons */
  --accent-ink:  #2A8174;            /* primary buttons, links, footer bg */
  --accent-soft: #E6F7F1;            /* tinted fill for chips & icon wells */
  --line:        rgba(19, 48, 42, 0.10);

  /* derived helpers built from the system */
  --accent-ink-deep: #1F6357;        /* hover/emphasis of the primary accent */
  --line-strong:     rgba(19, 48, 42, 0.20);
  --footer-pale:     #DFF5EE;        /* large pale text on the dark footer */

  /* ---- Typography ---- */
  --font-display: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ---- Layout ---- */
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -34px rgba(19, 48, 42, 0.40);
  --shadow-soft: 0 16px 40px -28px rgba(19, 48, 42, 0.35);
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
figure { margin: 0; }
section[id] { scroll-margin-top: 96px; }

/* ---- Skip link (accessibility) ---- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--accent-ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s ease;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---- Shared utilities ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-ink);
}
.eyebrow.center { justify-content: center; }

/* Visually-hidden text (for table captions, etc.) */
.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;
}

.section-head { max-width: 660px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin: 1.05rem 0 0.85rem;
}
.section-head h2 em { font-style: italic; color: var(--accent-ink); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.block { padding: clamp(4rem, 9vw, 7rem) 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  line-height: 1.1;
}
.btn-primary { background: var(--accent-ink); color: #fff; }
.btn-primary:hover { background: var(--accent-ink-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(31, 99, 87, 0.7); }
.btn-ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink-deep); background: var(--accent-soft); transform: translateY(-2px); }

/* Focus visibility everywhere */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===================================================================
   Announcement bar
   =================================================================== */
.topbar {
  background: var(--accent-ink);
  color: #fff;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  text-align: center;
}
.topbar strong { color: #fff; font-weight: 700; }
.topbar .dot { color: var(--accent); }
.topbar a {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.topbar a:hover { border-color: #fff; }

/* ===================================================================
   Navigation
   =================================================================== */
nav.main {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent-ink);
  transition: width 0.25s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--accent-ink); }
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links .btn { padding: 0.6rem 1.3rem; min-height: 44px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.25rem;
    box-shadow: var(--shadow);
  }
  .nav-links[hidden] { display: none; }
  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .btn { margin-top: 0.9rem; }
  .nav-links a:not(.btn)::after { display: none; }
}

/* ===================================================================
   Hero (light, tinted band)
   =================================================================== */
.hero {
  background: var(--band);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 6.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(44rem 28rem at 78% 12%, rgba(151, 219, 198, 0.55), transparent 62%),
    radial-gradient(38rem 24rem at 8% 100%, rgba(151, 219, 198, 0.30), transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.hero-badge .pulse,
.next-note .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-ink);
  flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(42, 129, 116, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(42, 129, 116, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(42, 129, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 129, 116, 0); }
}
.hero h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 2.2rem;
}
.hero .btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero .next-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.hero .next-note strong { color: var(--ink); font-weight: 700; }

/* Hero visual — a framed, layered placeholder */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--accent);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(151, 219, 198, 0.5)),
    repeating-linear-gradient(135deg, rgba(42, 129, 116, 0.05) 0 2px, transparent 2px 11px);
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .frame-note {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--accent-ink);
  text-align: center;
  padding: 2rem;
}
.hero-visual .frame-note .glyph {
  width: 70px; height: 70px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--accent);
  position: relative;
}
.hero-visual .frame-note .glyph::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 18px; top: 18px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
}
.hero-visual .frame-note .glyph::after {
  content: "";
  position: absolute;
  left: 18px; bottom: 20px;
  width: 30px; height: 22px;
  border-top: 2px solid var(--accent-ink);
  transform: rotate(-26deg);
  transform-origin: left bottom;
}
.hero-visual .frame-note span { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.hero-visual .corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--accent);
}
.hero-visual .corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hero-visual .corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 11; max-width: 460px; }
}

/* ---- Trust / stat band — sits directly under the hero ---- */
.trustband {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.25rem, 3vw, 2.2rem);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.trust-stat .stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  color: var(--accent-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.trust-stat p {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 720px) {
  .trustband { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
}

/* ===================================================================
   Who this is for (3-up)
   =================================================================== */
.audience { background: var(--paper); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.audience-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.audience-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.audience-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.audience-card h3 { font-size: 1.18rem; margin-bottom: 0.55rem; color: var(--ink); }
.audience-card p { color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 880px) { .audience-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   The plan (numbered vertical timeline + side rail)
   =================================================================== */
.plan { background: var(--paper-soft); }
.plan-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.plan-rail .rail-card {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink-soft);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  position: sticky;
  top: 96px;
}
.rail-card .rail-title { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.45rem; margin-bottom: 0.8rem; letter-spacing: -0.02em; }
.rail-card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.6rem; }
.rail-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.rail-list li .tick { color: var(--accent-ink); flex: 0 0 auto; font-weight: 800; }
.rail-card .btn { margin-top: 1.6rem; width: 100%; }

/* Timeline — a single continuous spine with numbered nodes */
.timeline {
  position: relative;
  margin: 0;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.3rem;
  padding-bottom: 2.2rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  position: relative;
  z-index: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.tl-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tl-item:hover .tl-body { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--accent); }
.tl-week {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.tl-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.tl-body p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tl-tags span {
  font-size: 0.76rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .plan-layout { grid-template-columns: 1fr; }
  .plan-rail .rail-card { position: static; }
}

/* ===================================================================
   Stories (auto-scrolling marquee — pure CSS)
   =================================================================== */
.stories { background: var(--paper); }
.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  padding: 0.5rem var(--pad);
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee .story-card {
  width: 360px;
  max-width: 80vw;
  flex: 0 0 auto;
}
.story-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}
.story-stars { color: var(--accent-ink); letter-spacing: 0.1em; font-size: 0.95rem; margin-bottom: 0.9rem; }
.story-card blockquote { font-size: 1rem; color: var(--ink); line-height: 1.6; margin-bottom: 1.4rem; }
.story-person { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.avatar {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.avatar.a { background: linear-gradient(135deg, #2A8174, #1F6357); }
.avatar.b { background: linear-gradient(135deg, #3C8AA0, #285c6c); }
.avatar.c { background: linear-gradient(135deg, #6E7CB0, #474f78); }
.avatar.d { background: linear-gradient(135deg, #4F9B7E, #336350); }
.avatar.e { background: linear-gradient(135deg, #B07F62, #7a543f); }
.avatar.f { background: linear-gradient(135deg, #2E8C8C, #1d5a5a); }
.story-person .name { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.story-person .role { font-size: 0.84rem; color: var(--muted); }

/* ===================================================================
   Your guide
   =================================================================== */
.guide { background: var(--paper-soft); }
.guide-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.guide-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--accent) -5%, var(--paper-soft) 95%),
    repeating-linear-gradient(135deg, rgba(42, 129, 116, 0.06) 0 2px, transparent 2px 12px);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow);
}
.guide-portrait img { width: 100%; height: 100%; object-fit: cover; }
.guide-portrait .portrait-note {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.7rem;
  color: var(--accent-ink); text-align: center; padding: 2rem;
}
.guide-portrait .portrait-note .mono {
  font-size: 2.6rem; font-family: var(--font-display); font-weight: 800; color: #fff;
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-ink);
}
.guide-portrait .portrait-note span:not(.mono) { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.guide-content h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 1rem 0; }
.guide-content h2 em { font-style: italic; color: var(--accent-ink); }
.guide-content p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.guide-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.6rem 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.guide-credits .credit .credit-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--accent-ink); letter-spacing: -0.02em; }
.guide-credits .credit p { font-size: 0.82rem; color: var(--muted); margin: 0; font-weight: 600; }
.guide-social { display: flex; gap: 0.8rem; }
.guide-social a {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent-ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.guide-social a:hover { background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); transform: translateY(-2px); }
@media (max-width: 860px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-portrait { max-width: 420px; }
}

/* ===================================================================
   Tuition (comparison table)
   =================================================================== */
.tuition { background: var(--paper); }
.toggle-wrap { display: flex; justify-content: center; margin-bottom: 2.8rem; }
.toggle {
  display: inline-flex;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem;
  position: relative;
}
.toggle button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}
.toggle button.active { color: var(--accent-ink); }   /* legible fallback if JS is off */
.js .toggle button.active { color: #fff; }             /* JS draws the slider behind */
.toggle .slider {
  position: absolute;
  top: 0.35rem; bottom: 0.35rem;
  border-radius: 999px;
  background: var(--accent-ink);
  transition: transform 0.28s ease, width 0.28s ease;
  z-index: 0;
}
.toggle .save {
  margin-left: 0.4rem;
  font-size: 0.7rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}
.js .toggle button.active .save { background: rgba(255, 255, 255, 0.85); color: var(--accent-ink); }

/* Comparison table — scrolls within its own container on narrow screens */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare th,
.compare td {
  text-align: center;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare thead th { vertical-align: top; border-bottom: 1px solid var(--line-strong); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .feat-col,
.compare tbody th[scope="row"] {
  text-align: left;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  width: 42%;
}
.compare thead .feat-col {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  vertical-align: bottom;
}
.compare .plan-col {
  width: 29%;
  padding: 1.6rem 1.1rem 1.4rem;
  background: var(--paper);
}
.compare .plan-col.featured {
  background: var(--accent-soft);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  position: relative;
}
.compare .plan-flag {
  display: inline-block;
  background: var(--accent-ink);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.compare .plan-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.compare .plan-sub { display: block; color: var(--muted); font-size: 0.84rem; margin: 0.3rem 0 0.9rem; font-weight: 500; }
.compare .price-amount { display: flex; align-items: flex-end; justify-content: center; gap: 0.35rem; }
.compare .price-amount .money { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.4rem); color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.compare .price-amount .per { color: var(--muted); font-size: 0.82rem; padding-bottom: 0.3rem; font-weight: 600; }
.compare .billed { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.compare td .yes { color: var(--accent-ink); font-weight: 800; font-size: 1.1rem; }
.compare td .no { color: var(--muted); font-weight: 700; font-size: 1.1rem; }
.compare td.featured { background: rgba(151, 219, 198, 0.16); }
.compare tfoot td { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.compare tfoot .btn { width: 100%; }
.price-foot { text-align: center; margin-top: 2rem; color: var(--ink-soft); font-size: 0.9rem; }

/* ===================================================================
   Why Northbeam (feature grid)
   =================================================================== */
.why { background: var(--paper-soft); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.why-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.why-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.why-card h3 { font-size: 1.2rem; margin-bottom: 0.55rem; color: var(--ink); }
.why-card p { color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   FAQ
   =================================================================== */
.faq { background: var(--paper); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 1.2rem 1.4rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq-trigger:hover { color: var(--accent-ink); }
.faq-chevron {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  position: relative;
  transition: transform 0.25s ease;
}
.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  top: 50%; width: 11px; height: 2px;
  border-radius: 2px;
  background: var(--accent-ink);
}
.faq-chevron::before { left: 1px; transform: rotate(45deg); }
.faq-chevron::after { right: 1px; transform: rotate(-45deg); }
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-panel { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.faq-panel-inner { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }

/* ===================================================================
   Final CTA (light, tinted band)
   =================================================================== */
.final {
  background: var(--band);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.final::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40rem 22rem at 50% 0%, rgba(151, 219, 198, 0.6), transparent 65%);
  pointer-events: none;
}
.final .container { position: relative; }
.final h2 { color: var(--ink); font-size: clamp(2.1rem, 5vw, 3.3rem); max-width: 20ch; margin: 1.05rem auto 1.1rem; }
.final h2 em { font-style: italic; color: var(--accent-ink); }
.final p { color: var(--ink-soft); max-width: 54ch; margin: 0 auto 2.2rem; font-size: 1.05rem; }
.final .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.guarantees {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  max-width: 880px;
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--accent);
}
.guarantee { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.guarantee .g-icon {
  color: var(--accent-ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--accent);
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
}
.guarantee p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; max-width: 18ch; font-weight: 600; }
@media (max-width: 720px) { .guarantees { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* ===================================================================
   Footer (dark — accent-ink, grounds the page)
   =================================================================== */
footer {
  background: var(--accent-ink);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.foot-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; margin-bottom: 1rem; letter-spacing: -0.01em; }
.foot-about { font-size: 0.94rem; max-width: 36ch; color: #fff; }
.foot-grid h3 { color: var(--footer-pale); font-family: var(--font-body); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.foot-grid li { margin-bottom: 0.55rem; }
.foot-grid a { font-size: 0.94rem; color: #fff; transition: color 0.2s ease, border-color 0.2s ease; border-bottom: 1px solid transparent; }
.foot-grid a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.foot-disclaimer {
  font-size: 0.8rem;
  color: var(--footer-pale);
  max-width: 70ch;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.6rem;
  margin-bottom: 1.6rem;
}
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--footer-pale);
}
.foot-bottom .legal a { margin-left: 1.2rem; color: #fff; border-bottom: 1px solid transparent; }
.foot-bottom .legal a:first-child { margin-left: 0; }
.foot-bottom .legal a:hover { border-color: rgba(255, 255, 255, 0.7); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ===================================================================
   Scroll reveal + reduced motion
   =================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  /* Stop the marquee and let it wrap so every card is reachable */
  .marquee-track { animation: none !important; transform: none !important; flex-wrap: wrap; width: 100%; justify-content: center; }
}
