/* Munin landing — dark-first, monokrom med mint accent. */
:root {
  /* Cool steel neutrals — two-tone alternation, no warm brown */
  --bg: #13171B;
  --bg-soft: #1A1E22;
  --card: #1E2226;
  --card-hi: #262B30;
  --border: #2A2F35;
  --text: #ECEDEE;
  --text-muted: #9AA0A6;
  --text-faint: #6C7177;
  --accent: #7CFFB5;
  --accent-dark: #3DD27E;
  --accent-soft: rgba(124, 255, 181, 0.12);
  --red: #FF6B6B;
  --amber: #FFB454;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Tall decorative trees flanking everything below the hero */
.tree-side {
  position: absolute;
  top: 100vh;               /* start just below first viewport (hero) */
  bottom: 0;
  width: 150px;
  pointer-events: none;
  z-index: 5;               /* overlay above sections so it stays visible */
  opacity: 0.45;
  background: url('./tree-tall.svg') no-repeat top center;
  background-size: 100% 100%;
}
.tree-side--left  { left: 0; }
.tree-side--right { right: 0; }
@media (max-width: 1280px) {
  .tree-side { width: 110px; opacity: 0.38; }
}
@media (max-width: 1000px) {
  .tree-side { display: none; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ── Layout ───────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top nav (sticky, translucent dark, 3-zone: left links · center search · right CTA) ─────── */
nav.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 24px;
  max-width: 100%;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 24, 27, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(35, 39, 43, 0.7);
}
nav.top .nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: start;
}
nav.top .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav.top .nav-right { justify-self: end; }

/* Search bar in middle of nav */
nav.top .nav-search {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}
nav.top .nav-search:focus-within {
  border-color: rgba(124, 255, 181, 0.5);
  background: rgba(255, 255, 255, 0.06);
}
nav.top .nav-search-icon {
  color: var(--text-faint);
  flex-shrink: 0;
}
nav.top .nav-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 2px 0;
}
nav.top .nav-search input::placeholder { color: var(--text-faint); }
@media (max-width: 900px) {
  nav.top { grid-template-columns: auto 1fr auto; gap: 12px; }
  nav.top .nav-links { display: none; }
  nav.top .nav-search { max-width: none; }
}
@media (max-width: 720px) {
  nav.top { grid-template-columns: 1fr auto; gap: 12px; }
  nav.top .nav-search,
  nav.top .nav-center,
  nav.top .nav-right { display: none; }
  nav.top .nav-burger { display: inline-flex; }
  nav.top .nav-mobile.is-open { display: flex; }
}
@supports not (backdrop-filter: blur(1px)) {
  nav.top { background: rgba(21, 24, 27, 0.96); }
}
nav.top .brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
nav.top .brand img {
  width: 28px;
  height: 28px;
  display: block;
}
nav.top ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
nav.top a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
nav.top a:hover { color: var(--text); }
nav.top a.cta {
  background: var(--accent);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
}
nav.top a.cta:hover { background: var(--accent-dark); }
nav.top a.login {
  color: var(--text);
  font-weight: 600;
}
nav.top a.login:hover { color: var(--accent); }

/* ── Hamburger + mobile menu (built by nav.js, shown ≤720px) ── */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 40px;
  height: 40px;
  margin: -8px -8px -8px 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  z-index: 60;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger span + span { margin-top: 6px; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 8px 20px 22px;
  background: rgba(21, 24, 27, 0.98);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(35, 39, 43, 0.7);
  box-shadow: 0 28px 44px -26px rgba(0, 0, 0, 0.8);
}
.nav-mobile a {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(35, 39, 43, 0.7);
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile a.login { color: var(--text); font-weight: 600; }
.nav-mobile a.lang-toggle { display: inline-flex; align-items: center; gap: 8px; }
.nav-mobile a.cta {
  margin-top: 14px;
  padding: 15px 18px;
  border-bottom: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
}
.nav-mobile a.cta:hover { background: var(--accent-dark); }
@supports not (backdrop-filter: blur(1px)) {
  .nav-mobile { background: rgba(21, 24, 27, 0.99); }
}
body.nav-open { overflow: hidden; }

/* ── Hero ─────────────────────────────────────── */
section.hero {
  padding: 0 32px 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.hero-split {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
/* Centered hero — wide single column that fills horizontal space */
.hero-center {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 3vh;
}
.hero-center h1 {
  font-family: var(--display);
  /* Sized so each half of the sentence sits on one line at typical desktop
     widths — uses the horizontal space without splitting "hukommelses-problem"
     across multiple lines. Scales down on tablet/phone. */
  font-size: clamp(32px, 4.6vw, 66px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 auto 22px;
  max-width: 1200px;
}
.hero-center h1 .accent {
  /* Munin-grønn — samme tone som logoen */
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.hero-center .sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
  text-wrap: balance;
}
.hero-center .cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 4px;
}
/* Vertical stack variant — primary CTA on top, secondary link right beneath
   (tight gap). Honors the column alignment of its parent (.hero-left =
   flex-start, centered hero = center). */
.cta-stack {
  flex-direction: column;
  gap: 12px;
}
.hero-center .cta-stack { align-items: center; }
.hero-left .cta-stack { align-items: flex-start; }

.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.hero-secondary:hover {
  color: var(--accent);
  border-color: rgba(124, 255, 181, 0.5);
  transform: translateX(2px);
}

.hero-text {
  text-align: left;
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
}
.hero-text .hero-mark {
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 40px rgba(124, 255, 181, 0.25));
}
.hero-text h1 {
  text-align: center;
}
.hero-text p.sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero-text .cta-row {
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
  gap: 18px;
  flex-wrap: wrap;
}

/* Start-with — inline label + three pill buttons */
.input-tiles {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  opacity: 0;
  animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.95s;
}
.input-tiles-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-right: 4px;
}
.input-tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.input-tile svg { color: var(--accent); flex-shrink: 0; }
.input-tile:hover {
  background: rgba(124, 255, 181, 0.08);
  border-color: rgba(124, 255, 181, 0.32);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .input-tiles { opacity: 1; animation: none; }
  .input-tile:hover { transform: none; }
}

/* Flag strip — bottom-left of hero, overlaying the video */
.hero-flags {
  position: absolute;
  bottom: 28px;
  right: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
  padding: 8px 14px 8px 16px;
  background: rgba(19, 23, 27, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.hero-flags-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}
.hero-flags img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  opacity: 0.9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: opacity 200ms ease, transform 200ms ease;
}
.hero-flags img:hover { opacity: 1; transform: translateY(-2px); }
@media (max-width: 900px) {
  .hero-flags { left: 24px; right: 24px; justify-content: center; flex-wrap: wrap; bottom: 24px; }
}

/* Inline variant — sits at top-left of hero content, above the headline */
.hero-flags--inline {
  position: static;
  margin: 0 0 28px 0;
  align-self: flex-start;
}
@media (max-width: 900px) {
  .hero-flags--inline { left: auto; right: auto; bottom: auto; justify-content: flex-start; margin-bottom: 24px; }
}
.cta-flags-more {
  margin-left: 4px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(124, 255, 181, 0.08);
  border: 1px solid rgba(124, 255, 181, 0.22);
  border-radius: 999px;
  white-space: nowrap;
}
/* Subject chips — animated category icons */
.subject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px auto 32px;
  max-width: 520px;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  cursor: default;
  opacity: 0;
  transform: translateY(8px);
  animation: chip-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.9;
}
.chip:hover {
  background: rgba(124, 255, 181, 0.08);
  border-color: rgba(124, 255, 181, 0.3);
  color: var(--text);
  transform: translateY(-2px);
}
.chip:hover svg { opacity: 1; }
.chip-more {
  background: rgba(124, 255, 181, 0.06);
  border-color: rgba(124, 255, 181, 0.18);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 7px 14px;
}
.chip-more:hover {
  background: rgba(124, 255, 181, 0.12);
  border-color: rgba(124, 255, 181, 0.32);
  color: var(--accent);
}

@keyframes chip-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger entrance — each chip 80ms after the previous */
.chip:nth-child(1) { animation-delay: 0.85s; }
.chip:nth-child(2) { animation-delay: 0.93s; }
.chip:nth-child(3) { animation-delay: 1.01s; }
.chip:nth-child(4) { animation-delay: 1.09s; }
.chip:nth-child(5) { animation-delay: 1.17s; }
.chip:nth-child(6) { animation-delay: 1.25s; }
.chip:nth-child(7) { animation-delay: 1.33s; }
.chip:nth-child(8) { animation-delay: 1.41s; }
.chip:nth-child(9) { animation-delay: 1.49s; }

@media (prefers-reduced-motion: reduce) {
  .chip { opacity: 1; transform: none; animation: none; }
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 60vh;
}
/* Hand-holding-phone image — sits in the right grid cell */
.hero-demo {
  width: 100%;
  max-width: 540px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  filter: drop-shadow(-20px 40px 70px rgba(0, 0, 0, 0.55));
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.5s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-demo { opacity: 1; animation: none; }
}
@media (max-width: 900px) {
  .hero-demo {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    height: auto;
    width: 90%;
    max-width: 360px;
    margin: 20px auto 0;
  }
}

/* iPhone mockup frame — placeholder until real screenshot is dropped in */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #1E2226,
    0 0 0 3px #3A4046,
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 60px -10px rgba(124, 255, 181, 0.15);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-screen .phone-placeholder {
  color: var(--text-faint);
  text-align: center;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 24px;
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

@media (max-width: 900px) {
  section.hero { padding: 24px 24px 40px; min-height: auto; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text { max-width: 760px; margin: 0 auto; }
  .hero-text, .hero-text h1, .hero-text p.sub { text-align: center; }
  .hero-text .cta-row { justify-content: center; }
  .hero-text .input-tiles { justify-content: center; }
  .hero-text .hero-mark { margin-left: auto; margin-right: auto; }
  .phone-frame { max-width: 260px; }
}

/* ── Mode cards — Munin-coded row beneath hero ─── */
.mode-cards {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 64px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  min-height: 230px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(165deg, rgba(30, 34, 38, 0.85), rgba(19, 23, 27, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 50% 0%, rgba(124, 255, 181, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.22s ease;
}
.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 255, 181, 0.28);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 255, 181, 0.08);
}
.mode-card:hover::before { opacity: 1; }
.mode-card-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}
.mode-card-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.15;
  margin: 0;
}
.mode-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.mode-card-hint, .mode-card-footer .mode-card-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Rounds — prompt + waveform */
.mode-card-prompt {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 10px 14px;
  background: rgba(124, 255, 181, 0.06);
  border: 1px solid rgba(124, 255, 181, 0.18);
  border-radius: 12px;
  align-self: flex-start;
}
.mode-card-wave {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 26px;
  margin-top: auto;
}
.mode-card-wave span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.9;
  animation: wavePulse 1.4s ease-in-out infinite;
}
.mode-card-wave span:nth-child(1)  { height: 30%; animation-delay: 0.00s; }
.mode-card-wave span:nth-child(2)  { height: 60%; animation-delay: 0.08s; }
.mode-card-wave span:nth-child(3)  { height: 90%; animation-delay: 0.16s; }
.mode-card-wave span:nth-child(4)  { height: 50%; animation-delay: 0.24s; }
.mode-card-wave span:nth-child(5)  { height: 75%; animation-delay: 0.32s; }
.mode-card-wave span:nth-child(6)  { height: 100%; animation-delay: 0.40s; }
.mode-card-wave span:nth-child(7)  { height: 65%; animation-delay: 0.48s; }
.mode-card-wave span:nth-child(8)  { height: 40%; animation-delay: 0.56s; }
.mode-card-wave span:nth-child(9)  { height: 80%; animation-delay: 0.64s; }
.mode-card-wave span:nth-child(10) { height: 55%; animation-delay: 0.72s; }
.mode-card-wave span:nth-child(11) { height: 35%; animation-delay: 0.80s; }
.mode-card-wave span:nth-child(12) { height: 70%; animation-delay: 0.88s; }
.mode-card-wave span:nth-child(13) { height: 45%; animation-delay: 0.96s; }
.mode-card-wave span:nth-child(14) { height: 60%; animation-delay: 1.04s; }
.mode-card-wave span:nth-child(15) { height: 25%; animation-delay: 1.12s; }
.mode-card-wave span:nth-child(16) { height: 50%; animation-delay: 1.20s; }
@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.7); }
  50%      { transform: scaleY(1.1); }
}

/* Voice */
.mode-card-q {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  font-style: italic;
}
.mode-card-mic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 12px;
  margin-top: auto;
}
.mode-card-mic svg { color: var(--bg); }
.mode-card-mic .mic-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF6B6B;
  animation: micBlink 1.2s ease-in-out infinite;
}
@keyframes micBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Sources */
.mode-card-source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mode-card-source-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--text);
}
.mode-card-source-list svg { color: var(--accent); flex-shrink: 0; }

/* Progress — animated growth chart */
.mode-card-chart {
  width: 100%;
  height: 100px;
  margin-top: 6px;
  overflow: visible;
}
.growth-line {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: drawLine 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.4s;
  filter: drop-shadow(0 0 8px rgba(124, 255, 181, 0.35));
}
.growth-fill {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 1.4s;
}
.growth-dot {
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards, dotPulse 2s ease-in-out infinite;
  animation-delay: 2.0s, 2.4s;
  filter: drop-shadow(0 0 6px rgba(124, 255, 181, 0.6));
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes dotPulse {
  0%, 100% { r: 4; }
  50%      { r: 5.5; }
}
.mode-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.mode-card-stat {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.mode-card-stat small {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .mode-card-wave span,
  .mode-card-mic .mic-dot,
  .growth-line,
  .growth-fill,
  .growth-dot { animation: none; }
  .growth-line { stroke-dashoffset: 0; }
  .growth-fill, .growth-dot { opacity: 1; }
}
@media (max-width: 900px) {
  .mode-cards { grid-template-columns: repeat(2, 1fr); margin-top: 40px; gap: 12px; }
}
@media (max-width: 540px) {
  .mode-cards { grid-template-columns: 1fr; }
}

/* ── Flag belt under hero — transparent, static, centered ─── */
section.flag-belt {
  padding: 40px 24px 50px;
  background: transparent;
  position: relative;
}
.flag-belt-label {
  text-align: center;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.flag-belt-track {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.flag-belt-track img {
  width: 40px;
  height: 27px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  opacity: 0.82;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.flag-belt-track img:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.08);
}
/* Soft edge fade so flags don't feel hard-cut at the sides */
.flag-belt::before, .flag-belt::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.flag-belt::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.flag-belt::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

/* ── Animations: hero entrance + scroll reveals ────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-mark { animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.15s; }
.hero h1 { animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.35s; }
.hero p.sub { animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.55s; }
.hero .cta-row { animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.75s; }
.hero-bg-video, .hero::after { animation: fadeIn 1.6s ease-out both; }

/* Scroll-reveal class — toggled by IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark, .hero h1, .hero p.sub, .hero .cta-row,
  .hero-bg-video, .hero::after, .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* CTA hover: subtle lift + glow */
.btn-primary {
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, background 120ms ease;
  box-shadow: 0 4px 24px -8px rgba(124, 255, 181, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(124, 255, 181, 0.55);
}
.btn-primary:active { transform: translateY(0); }

/* Hero CTA — bigger, with animated arrow */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  font-size: 15px;
  letter-spacing: 0.6px;
  border-radius: 999px;
  position: relative;
  background: linear-gradient(180deg, #8FFFC4 0%, var(--accent) 100%);
  box-shadow:
    0 0 0 1px rgba(124, 255, 181, 0.4),
    0 8px 32px -10px rgba(124, 255, 181, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
.btn-hero .btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-hero:hover .btn-arrow { transform: translateX(4px); }
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(124, 255, 181, 0.55),
    0 16px 40px -12px rgba(124, 255, 181, 0.65),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
/* Subtle vignette so the headline stays legible over the video */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(19,23,27,0) 30%, rgba(19,23,27,0.55) 100%);
  z-index: 0;
  pointer-events: none;
}
section.hero > .container-narrow { position: relative; z-index: 1; }
section.hero .hero-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 0 40px rgba(124, 255, 181, 0.25));
  position: relative;
  z-index: 1;
}
section.hero > .container-narrow { position: relative; z-index: 1; }
/* ── Branches ──────────────────────────────────
   Organic, mint-tinted SVG branches placed sporadically.
   Each .branch is positioned absolutely inside its container,
   which must have position: relative + overflow: hidden if it
   shouldn't bleed out.
*/
.branch {
  position: absolute;
  pointer-events: none;
  color: var(--accent);
  z-index: 0;
}

/* Scattered across the page */
.branch.sci-1 { top: 80px;  right: -40px;  width: 200px; opacity: 0.10; transform: rotate(160deg); }
.branch.sci-2 { top: 720px; left:  -30px;  width: 180px; opacity: 0.09; transform: rotate(-15deg); }
.branch.sci-3 { top: 1180px; right: -30px; width: 220px; opacity: 0.10; transform: scaleX(-1) rotate(10deg); }
.branch.sci-4 { top: 1820px; left: -50px;  width: 200px; opacity: 0.08; transform: rotate(190deg); }
.branch.sci-5 { top: 2380px; right: -40px; width: 180px; opacity: 0.10; transform: scaleX(-1) rotate(-5deg); }

.branch.faq-side { top: 60px; left: -80px; width: 220px; opacity: 0.08; transform: rotate(95deg); }
.branch.faq-right { top: 200px; right: -60px; width: 200px; opacity: 0.09; transform: scaleX(-1) rotate(45deg); }

/* Big-stat module branches */
.branch.stat-l { top: 40px; left: -50px; width: 200px; opacity: 0.10; transform: rotate(-25deg); }
.branch.stat-r { top: 80px; right: -50px; width: 220px; opacity: 0.10; transform: scaleX(-1) rotate(-15deg); }

/* Tech-block branches */
.branch.tech-tl { top: -10px; left: -40px; width: 220px; opacity: 0.10; transform: rotate(15deg); }
.branch.tech-br { bottom: 20px; right: -50px; width: 240px; opacity: 0.09; transform: scaleX(-1) rotate(-20deg); }

/* Pullquote branches */
.branch.quote-l { top: 20px; left: -30px; width: 180px; opacity: 0.10; transform: rotate(-10deg); }
.branch.quote-r { top: -10px; right: -30px; width: 180px; opacity: 0.10; transform: scaleX(-1) rotate(-5deg); }

/* Bottom-cta branches */
.branch.cta-tl { top: -30px; left: -50px; width: 260px; opacity: 0.11; transform: rotate(5deg); }
.branch.cta-tr { top: -20px; right: -50px; width: 240px; opacity: 0.11; transform: scaleX(-1) rotate(5deg); }
.branch.cta-bl { bottom: -20px; left: -40px; width: 200px; opacity: 0.08; transform: rotate(180deg); }
.branch.cta-br { bottom: -10px; right: -40px; width: 200px; opacity: 0.08; transform: scaleX(-1) rotate(180deg); }

/* Footer branch */
.branch.foot-r { top: 30px; right: -40px; width: 200px; opacity: 0.07; transform: scaleX(-1) rotate(-30deg); }

@media (max-width: 720px) {
  .branch.sci-1, .branch.sci-2, .branch.sci-3, .branch.sci-4, .branch.sci-5 { width: 130px; opacity: 0.07; }
  .branch.faq-side { display: none; }
}

/* Stroke weights inside branch SVGs */
.branch .bough { stroke-width: 2; }
.branch .limb  { stroke-width: 1.5; }
.branch .twig  { stroke-width: 1; }
.branch .tip   { stroke-width: 0.75; }
.branch path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.branch .bud { fill: currentColor; stroke: none; opacity: 0.65; }

/* ── Science section — wrapper only, modules carry their own bg ─── */
section.science {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: transparent; /* let module ::before's paint freely */
}
section.science > .eyebrow,
section.science > h2 {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
section.science > .eyebrow { padding: 100px 24px 12px; text-align: center; }
section.science > h2       { padding: 0 24px 60px; text-align: center; }

/* Generic full-bleed background helper — applied to each module via ::before */
.fullbleed-warm,
.fullbleed-cool {
  position: relative;
  isolation: isolate;
}
.fullbleed-warm::before,
.fullbleed-cool::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
/* Two cool tones — alternating for visual rhythm */
.fullbleed-warm::before { background: var(--bg); }           /* deep cool */
.fullbleed-cool::before { background: #1F252B; }              /* lifted cool */
/* ── FAQ — WARM (so alternation with cool pullquote works) ───── */
section.faq {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 100px 0;
}
section.science .eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
section.science h2 {
  text-align: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1px;
  max-width: 18ch;
  margin: 0 auto 80px;
  line-height: 1.1;
}

/* Modules: 2-column with full-bleed bg via ::before */
.module {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.module:nth-child(even) { direction: rtl; }
.module:nth-child(even) > * { direction: ltr; }
.module .copy .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.module .copy h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.15;
}
.module .copy p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 15px;
}
.module .copy cite {
  display: block;
  color: var(--text-faint);
  font-size: 12px;
  font-style: italic;
  margin-top: 18px;
}
.module .visual { display: flex; align-items: center; justify-content: center; }
@media (max-width: 720px) {
  .module { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
  .module:nth-child(even) { direction: ltr; }
}

/* Big-stat — mint glow stays as ::after on top of section bg */
.big-stat-wrap {
  text-align: center;
  padding: 100px 24px;
  max-width: 100%;
  margin: 0;
  position: relative;
  overflow: visible;
}
.big-stat-wrap > * { position: relative; z-index: 1; }
.big-stat-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 60% at center, rgba(124, 255, 181, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.big-stat {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(120px, 22vw, 220px);
  letter-spacing: -8px;
  line-height: 0.9;
  color: var(--accent);
  display: inline-block;
  position: relative;
}
.big-stat-unit {
  display: block;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 8px;
  letter-spacing: 4px;
}
.big-stat-label {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  margin-top: 40px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
}
.big-stat-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin: 14px auto 0;
  max-width: 42ch;
}
.big-stat-cite {
  display: block;
  color: var(--text-faint);
  font-size: 12px;
  font-style: italic;
  margin-top: 24px;
}

/* Hero fineprint */
.hero-fineprint {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* Tech-stack module (Under the hood) */
.tech-block {
  max-width: 820px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
  position: relative;
}
.tech-block .eyebrow {
  margin-bottom: 12px;
}
.tech-block h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.tech-lead {
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 48px;
  font-size: 16px;
}
.tech-stack {
  text-align: left;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.tech-layer {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
/* Side-by-side variant: two layers in two columns, no horizontal borders */
.tech-stack-horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.tech-stack-horizontal .tech-layer {
  padding: 0;
  border: none;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (max-width: 720px) {
  .tech-stack-horizontal { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
}
.tech-layer-num {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}
.tech-layer-body h4 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.tech-layer-body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.tech-footnote {
  margin-top: 48px;
  color: var(--text);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 21px);
  letter-spacing: -0.2px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .tech-layer { grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; }
  .tech-layer-num { font-size: 28px; }
}

/* Bottom CTA */
section.bottom-cta {
  padding: 120px 24px 140px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 50% at top center, rgba(124, 255, 181, 0.08) 0%, transparent 65%),
    #1F252B; /* lifted cool — matches fullbleed-cool */
}
section.bottom-cta h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.1;
}
section.bottom-cta p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 16px;
}
section.bottom-cta .hero-fineprint { margin-top: 18px; }

/* Pricing page */
section.hero.pricing-hero {
  min-height: 0;
  padding: 80px 32px 8px;
}
.pricing-hero .container-narrow {
  max-width: 1100px;
}
.pricing-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 14px;
}
.pricing-hero h1 br { display: none; }
@media (max-width: 720px) {
  section.hero.pricing-hero { padding: 56px 24px 4px; }
  .pricing-hero h1 br { display: inline; }
}
section.pricing {
  padding: 20px 24px 100px;
}
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.billing-toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .15s ease, background .15s ease;
}
.billing-toggle-btn:hover { color: var(--text); }
.billing-toggle-btn.is-active {
  background: var(--text);
  color: var(--bg);
}
.billing-toggle-save {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(124, 255, 181, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
}
.billing-toggle-btn.is-active .billing-toggle-save {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.18);
}
.billing-toggle--inline {
  display: inline-flex;
  margin: 14px 0 12px;
  left: auto;
  transform: none;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}
.billing-toggle--inline .billing-toggle-btn {
  padding: 6px 12px;
  font-size: 12px;
}
.billing-toggle--inline .billing-toggle-save {
  font-size: 10px;
  padding: 1px 6px;
}

/* Pricing — feature showcase */
.pricing-features {
  padding: 64px 24px 32px;
  border-top: 1px solid var(--border);
}
.pricing-features-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
  text-align: center;
  margin: 0 auto 40px;
  max-width: 720px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1000px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}
.feature-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.feature-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 140px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Visual: Munin AI */
.feature-visual--munin { gap: 12px; }
.feature-chip {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}
.feature-arrow {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}
.feature-deck {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature-deck-row {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
}
.feature-deck-row span:nth-child(2) { color: var(--text-faint); }

/* Visual: voice */
.feature-visual--voice { flex-direction: column; gap: 12px; }
.feature-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}
.feature-waveform span {
  display: block;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.85;
  animation: featureWave 1.4s ease-in-out infinite;
}
.feature-waveform span:nth-child(1)  { height: 30%; animation-delay: 0.00s; }
.feature-waveform span:nth-child(2)  { height: 60%; animation-delay: 0.08s; }
.feature-waveform span:nth-child(3)  { height: 85%; animation-delay: 0.16s; }
.feature-waveform span:nth-child(4)  { height: 50%; animation-delay: 0.24s; }
.feature-waveform span:nth-child(5)  { height: 95%; animation-delay: 0.32s; }
.feature-waveform span:nth-child(6)  { height: 70%; animation-delay: 0.40s; }
.feature-waveform span:nth-child(7)  { height: 45%; animation-delay: 0.48s; }
.feature-waveform span:nth-child(8)  { height: 90%; animation-delay: 0.56s; }
.feature-waveform span:nth-child(9)  { height: 55%; animation-delay: 0.64s; }
.feature-waveform span:nth-child(10) { height: 75%; animation-delay: 0.72s; }
.feature-waveform span:nth-child(11) { height: 40%; animation-delay: 0.80s; }
.feature-waveform span:nth-child(12) { height: 65%; animation-delay: 0.88s; }
@keyframes featureWave {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1); }
}
.feature-fluency {
  font-family: var(--display);
  font-size: 13px;
  color: var(--text-muted);
}
.feature-fluency strong {
  color: var(--text);
  font-weight: 600;
}

/* Visual: unlimited */
.feature-visual--unlimited { gap: 14px; }
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.feature-stack div {
  width: 64px;
  height: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.feature-stack div:nth-child(1) { opacity: 1; }
.feature-stack div:nth-child(2) { opacity: 0.85; }
.feature-stack div:nth-child(3) { opacity: 0.65; }
.feature-stack div:nth-child(4) { opacity: 0.4; }
.feature-stack div:nth-child(5) { opacity: 0.2; }
.feature-infinity {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

/* Visual: sync */
.feature-visual--sync { gap: 10px; }
.feature-devices {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.feature-device {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.feature-device--phone  { width: 22px; height: 38px; border-radius: 4px; }
.feature-device--tablet { width: 38px; height: 50px; border-radius: 5px; }
.feature-device--laptop { width: 64px; height: 42px; border-radius: 4px; border-bottom: 4px solid var(--border); }
.feature-device::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(124, 255, 181, 0.35), transparent);
}

/* Visual: early access */
.feature-visual--early { flex-direction: column; gap: 8px; align-items: flex-start; padding-left: 24px; }
.feature-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 4px;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature-list li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono, monospace);
}

/* Visual: priority support */
.feature-visual--priority { padding: 16px 24px; }
.feature-support {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-support-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.feature-support-row--pro {
  border-color: var(--accent-soft);
  color: var(--text);
}
.feature-support-row--pro span:last-child {
  color: var(--accent);
  font-weight: 700;
}

/* Group / school CTA */
.group-cta {
  padding: 32px 24px 80px;
}
.group-cta-card {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.group-cta-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(124, 255, 181, 0.08);
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.group-cta-text { flex: 1; }
.group-cta-text h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.4px;
  margin: 0 0 4px;
}
.group-cta-text p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.group-cta-btn { flex-shrink: 0; }
@media (max-width: 720px) {
  .group-cta-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .group-cta-btn { align-self: stretch; text-align: center; }
}

/* Wider footer for pricing */
footer.footer-wide .footer-grid-wide {
  max-width: 1200px;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 1000px) {
  footer.footer-wide .footer-grid-wide {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 600px) {
  footer.footer-wide .footer-grid-wide {
    grid-template-columns: 1fr 1fr;
  }
}
.pricing-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.1fr;
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--accent-soft);
  background: linear-gradient(180deg, rgba(124,255,181,0.04), transparent 40%), var(--card);
}
.plan.featured ul {
  margin-bottom: 16px;
  flex: 0 0 auto;
}
.plan-perks {
  margin: 4px 0 24px;
  padding: 18px 18px 8px;
  border-radius: var(--r-lg, 14px);
  background: linear-gradient(180deg, rgba(124,255,181,0.10), rgba(124,255,181,0.03));
  border: 1px solid rgba(124,255,181,0.22);
  flex: 1;
}
.plan-perks-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.plan-perks-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plan-perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(124,255,181,0.12);
}
.plan-perks-list li:last-child { border-bottom: none; }
.plan-perks-list li::before { content: none; }
.plan-perk-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,255,181,0.12);
  color: var(--accent);
}
.plan-perks-list li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plan-perks-list li strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.plan-perks-list li span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}
.plan-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.plan-tag.accent { color: var(--accent); }
.plan h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.plan-price {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text);
}
.plan-price .plan-unit {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 6px;
}
.plan-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 10px 0 24px;
}
.plan ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}
.plan ul li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 22px;
}
.plan ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.plan ul li:last-child { border-bottom: none; }
.plan .btn-primary, .plan .btn-ghost {
  align-self: stretch;
  text-align: center;
}
.pricing-fineprint {
  max-width: 720px;
  margin: 32px auto 0;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; }
}

/* Pull quote */
.pullquote {
  max-width: 100%;
  margin: 0;
  padding: 100px 24px;
  text-align: center;
  position: relative;
}
.pullquote > * { position: relative; z-index: 1; }
.pullquote blockquote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text);
}
.pullquote .quote-mark {
  display: block;
  font-family: var(--display);
  font-size: 80px;
  line-height: 0.4;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 24px;
  height: 36px;
}
.pullquote .attribution {
  display: block;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
section.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 72px);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text);
}
section.hero h1:first-child { margin-top: 0; }
section.hero h1 .accent { color: var(--accent); }
section.hero p.sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 24px;
}
section.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  display: inline-block;
  border-bottom: 3px solid rgba(0, 0, 0, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--bg); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

/* ── Features ─────────────────────────────────── */
section.features {
  padding: 40px 0 60px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  padding: 8px 0;
}
.feature h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.feature p { color: var(--text-muted); font-size: 15px; line-height: 1.6; max-width: 32ch; }

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

/* ── How it works ─────────────────────────────── */
section.how {
  padding: 60px 0 80px;
  background: var(--bg-soft);
}
section.how h2,
section.features h2,
section.faq h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.8px;
}
section.how p.intro,
section.features p.intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  letter-spacing: -2px;
}
.step h3 { font-weight: 700; margin-bottom: 6px; color: var(--text); }
.step p { color: var(--text-muted); font-size: 15px; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── FAQ ──────────────────────────────────────── */
section.faq { padding: 80px 0; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}
.faq-item p { color: var(--text-muted); font-size: 15px; }

/* ── Footer ───────────────────────────────────── */
footer {
  padding: 60px 24px 40px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}
footer .footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
footer .brand-block .brand {
  font-family: var(--display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
footer .brand-block .brand img {
  width: 26px;
  height: 26px;
  display: block;
}

/* Store badges (Apple / Google Play) */
.store-badges {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}
.store-badge:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.store-badge svg { flex-shrink: 0; }
.store-badge .store-text { line-height: 1.1; }
.store-badge small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.85;
}
.store-badge strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-top: 1px;
}
footer .brand-block p { color: var(--text-faint); font-size: 14px; max-width: 320px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { color: var(--text-muted); font-size: 14px; }
footer ul a:hover { color: var(--text); }
footer .col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
}
footer .copyright {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 720px) {
  footer .footer-grid { grid-template-columns: 1fr; }
}

/* ── Article (personvern, vilkår) ─────────────── */
article.legal {
  padding: 60px 0 80px;
}
article.legal h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
article.legal .updated {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 40px;
}
article.legal h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}
article.legal h3 {
  font-weight: 700;
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}
article.legal p { color: var(--text-muted); margin-bottom: 16px; }
article.legal ul, article.legal ol {
  margin: 8px 0 16px 24px;
  color: var(--text-muted);
}
article.legal ul li, article.legal ol li { margin-bottom: 6px; }
article.legal strong { color: var(--text); font-weight: 700; }
article.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
article.legal table th,
article.legal table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
article.legal table th {
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 20px 0;
}
.callout p { margin-bottom: 0; color: var(--text); font-size: 15px; }

/* ─── Lang toggle (NB / EN) ─────────────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.lang-toggle-text { line-height: 1; }

/* ─── Anti-Quizlet strip ───────────────────────────────────────────── */
.anti-strip {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.anti-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.anti-strip h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text);
  letter-spacing: -0.8px;
  margin-bottom: 48px;
  max-width: 720px;
}
.anti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.anti-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.anti-col-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.anti-them .anti-col-tag {
  background: rgba(255, 107, 107, 0.12);
  color: #FF6B6B;
}
.anti-us {
  border-color: var(--accent);
}
.anti-us .anti-col-tag {
  background: rgba(124, 255, 181, 0.15);
  color: var(--accent);
}
.anti-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.anti-col li {
  padding: 10px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.anti-col li:last-child { border-bottom: none; }
.anti-col li em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 720px) {
  .anti-grid { grid-template-columns: 1fr; }
  .anti-strip { padding: 64px 0; }
}

/* ─── FEIDE band ───────────────────────────────────────────────────── */
.feide-band {
  padding: 96px 0;
  background: linear-gradient(135deg, rgba(220, 50, 50, 0.08), rgba(0, 60, 180, 0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.feide-band[hidden] { display: none; }
.feide-flag {
  font-size: 48px;
  margin-bottom: 16px;
}
.feide-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.feide-band h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.feide-band p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 560px;
}

/* ─── Lead magnet section ──────────────────────────────────────────── */
.lead-magnet {
  padding: 96px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lead-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}
.lead-magnet h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  text-align: center;
}
.lead-sub {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
  margin: 0 auto 36px;
  max-width: 580px;
}
.lead-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form input[type="text"] {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.lead-form input[type="file"] {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}
.lead-form button {
  margin-top: 8px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.lead-microcopy {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .lead-form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 20px; }
}

/* ─── Objections / need-to-believes ─────────────────────────────────── */
.objections {
  padding: 96px 0;
  background: var(--bg);
}
.objections h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text);
  letter-spacing: -0.8px;
  margin-bottom: 48px;
  text-align: center;
}
.obj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.obj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.obj-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.obj-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 880px) {
  .obj-grid { grid-template-columns: 1fr; }
}

/* ─── Faddere section ──────────────────────────────────────────────── */
.faddere {
  padding: 96px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faddere-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.faddere h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--text);
  letter-spacing: -0.6px;
  margin-bottom: 16px;
  max-width: 680px;
}
.faddere p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 580px;
}

/* ─── How it works section (replaces lead-magnet) ──────────────────── */
.how-it-works {
  padding: 96px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}
.how-it-works h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  text-align: center;
}
.how-sub {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
  margin: 0 auto 48px;
  max-width: 620px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.how-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
}
.how-step-num {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.how-step-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.how-step-body p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.how-cta-row {
  text-align: center;
}
.how-microcopy {
  font-size: 12px;
  color: var(--text-faint);
  margin: 14px 0 0;
  line-height: 1.5;
}
@media (max-width: 880px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* ─── Guarantee band (risk reversal) ───────────────────────────────── */
.guarantee {
  padding: 96px 0;
  background: linear-gradient(135deg, rgba(124, 255, 181, 0.06), rgba(124, 255, 181, 0.02));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.guarantee-card {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.guarantee-seal {
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
}
.guarantee-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.guarantee-card h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.guarantee-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 12px;
  max-width: 560px;
}
.guarantee-fine {
  font-size: 14px !important;
  color: var(--text-faint) !important;
  margin-top: 20px !important;
}

/* ─── Admission (damaging-admission strip) ─────────────────────────── */
.admission {
  padding: 96px 0;
  background: var(--bg);
}
.admission-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 20px;
}
.admission h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4.5vw, 48px);
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 760px;
}
.admission-lead {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 680px;
}
.admission-body {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 680px;
}
.admission-body em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

/* ─── Testimonials ─────────────────────────────────────────────────── */
.testimonials {
  padding: 96px 0;
  background: var(--bg);
}
.testi-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}
.testimonials h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text);
  letter-spacing: -0.8px;
  margin-bottom: 48px;
  text-align: center;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.testi-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.testi-card blockquote em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}
.testi-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--text-muted);
}
.testi-card figcaption strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.testi-microcopy {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 24px;
}
@media (max-width: 880px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* ─── Faddere perks list ───────────────────────────────────────────── */
.faddere-perks {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.faddere-perks li {
  padding: 8px 0 8px 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  position: relative;
}
.faddere-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--accent);
  font-weight: 700;
}
.faddere-perks li strong {
  color: var(--text);
  font-weight: 700;
}

/* ─── Bottom CTA microcopy ─────────────────────────────────────────── */
.bottom-microcopy {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.3px;
}

/* v2 — Mint discipline + editorial moments ─────────────────────────── */

/* Neutralise color on smaller decorative elements site-wide */
.anti-eyebrow,
.feide-eyebrow,
.guarantee-eyebrow,
.testi-eyebrow,
.how-eyebrow,
.lead-eyebrow,
.faddere-eyebrow {
  color: var(--text-muted) !important;
}
.how-step-num { color: var(--text-muted) !important; }
.faddere-perks li::before { color: var(--text-muted) !important; }
.anti-us { border-color: var(--border) !important; }

/* Hide deprecated v1 sections (kept as wrappers in DOM for stability) */
.anti-strip { display: none; }
.guarantee, .guarantee-card, .guarantee-seal { display: none; }
.admission { display: none; }
.objections { display: none; }
.faddere { display: none; }

/* Editorial admission (magazine block after hero) */
.editorial-admission {
  padding: 72px 0 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.editorial-tag {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin: 0 0 24px;
  font-weight: 500;
}
.editorial-body {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.45;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.3px;
  max-width: 880px;
  margin: 0;
}
.editorial-body em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.dropcap {
  font-family: 'Fraunces', serif;
  font-style: normal;
  float: left;
  font-size: 5em;
  line-height: 0.82;
  font-weight: 500;
  padding: 6px 14px 0 0;
  color: var(--accent);
}
@media (max-width: 720px) {
  .dropcap { font-size: 3.6em; padding: 4px 10px 0 0; }
  .editorial-admission { padding: 56px 0 40px; }
}

/* Anti-Quizlet asymmetric split */
.anti-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 540px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.anti-half {
  padding: 96px 8vw;
  display: flex;
  align-items: center;
}
.anti-half-dark {
  background: #0c0d0f;
  color: #c4c6c9;
}
.anti-half-light {
  background: var(--bg);
  color: var(--text);
}
.anti-half-inner { max-width: 480px; }
.anti-tag-dark,
.anti-tag-light {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
  display: block;
}
.anti-tag-dark { color: #6c6e72; }
.anti-tag-light { color: var(--text-muted); }
.anti-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 0 0 32px;
}
.anti-headline-strike {
  position: relative;
  color: #5a5c60;
}
.anti-headline-strike::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 52%;
  height: 4px;
  background: #ff6b6b;
  transform: rotate(-3deg);
}
.anti-half-light .anti-headline { color: var(--text); }
.anti-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.anti-list li {
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.55;
  border-bottom: 1px solid transparent;
}
.anti-list-dark li {
  border-bottom-color: #1f2126;
  color: #9aa0a6;
}
.anti-list-light li {
  border-bottom-color: var(--border);
  color: var(--text);
}
.anti-list li:last-child { border-bottom: none; }
.anti-list em {
  font-style: italic;
  color: inherit;
  font-weight: 500;
}
.anti-list-light em { color: var(--accent); font-style: normal; font-weight: 600; }

/* Inline citation links in anti-Quizlet list items — dempete, akademisk */
.anti-cite {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2px;
  margin-top: 4px;
  opacity: 0.55;
}
.anti-cite a {
  color: inherit;
  text-decoration: underline dotted currentColor;
  text-underline-offset: 2px;
  transition: opacity 0.15s;
}
.anti-list-dark .anti-cite a:hover { color: #e6e8eb; opacity: 1; }
.anti-list-light .anti-cite a:hover { color: var(--text); opacity: 1; }

@media (max-width: 880px) {
  .anti-split { grid-template-columns: 1fr; }
  .anti-half { padding: 64px 24px; }
}

/* Guarantee — minimal terms card */
.guarantee-receipt {
  padding: 112px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.guarantee-receipt .guar-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 20px;
  font-weight: 600;
}
.guar-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -1.5px;
  color: var(--text);
  margin: 0 0 44px;
}
.guar-headline-em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.guar-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 34px;
  text-align: left;
}
.guar-card-label {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.guar-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
.guar-rows li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.guar-term {
  white-space: nowrap;
  color: var(--text-muted);
}
.guar-dots {
  flex: 1;
  border-bottom: 1px dotted var(--text-faint);
  align-self: center;
  position: relative;
  top: 2px;
  min-width: 24px;
}
.guar-val {
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
}
.guar-fineprint {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 18px 0 0;
}
.guar-fineprint a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--text-faint);
  text-underline-offset: 2px;
}
.guar-fineprint a:hover { text-decoration-color: var(--text); }

@media (max-width: 600px) {
  .guarantee-receipt { padding: 80px 16px; }
  .guar-card { padding: 26px 22px; }
}

/* Library teaser — "Hva vil du lære?" — search + category chips */
.library-teaser {
  padding: 112px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.library-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 20px;
  font-weight: 700;
}
.library-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -1.5px;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 500;
}
.library-body {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 540px;
  line-height: 1.55;
}
.library-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto 36px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}
.library-search:focus-within {
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
}
.library-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
}
.library-search input::placeholder { color: var(--text-faint); }
.library-search button {
  padding: 12px 24px;
  background: var(--accent);
  color: #0c0d0f;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.library-search button:hover { transform: translateY(-1px); }
.library-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 28px;
}
.library-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.library-chip:hover {
  background: rgba(124, 255, 181, 0.08);
  border-color: rgba(124, 255, 181, 0.32);
  transform: translateY(-1px);
}
.library-microcopy {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.library-microcopy a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.library-microcopy a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .library-teaser { padding: 80px 0; }
  .library-chips { gap: 8px; }
  .library-chip { font-size: 13px; padding: 8px 14px; }
}

/* Faddere poster */
.faddere-poster {
  padding: 128px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.poster-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 32px;
  font-weight: 600;
}
.poster-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -2.5px;
  margin: 0 0 40px;
  color: var(--text);
}
.poster-line-1 { display: block; }
.poster-line-2 {
  display: block;
  font-style: italic;
  color: var(--text-muted);
}
.poster-rule {
  width: 100%;
  max-width: 220px;
  height: 1px;
  background: var(--text-muted);
  margin-bottom: 32px;
}
.poster-body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 48px;
}
.poster-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  counter-reset: perk;
}
.poster-perks li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--text);
}
.poster-perks li:last-child { border-bottom: 1px solid var(--border); }
.poster-perk-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--text-faint);
  align-self: center;
}
.poster-perks em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.poster-cta { display: inline-block; }
@media (max-width: 720px) {
  .faddere-poster { padding: 80px 0; }
  .poster-perks li { grid-template-columns: 44px 1fr; }
}

/* FAQ title */
.faq-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 32px;
}

/* How-it-works flattened */
.how-it-works { background: var(--bg) !important; }
.how-steps { grid-template-columns: 1fr !important; gap: 0 !important; }
.how-step {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--border) !important;
  padding: 24px 0 !important;
  border-radius: 0 !important;
  display: grid !important;
  grid-template-columns: 88px 1fr;
  align-items: baseline;
}
.how-step:last-child { border-bottom: 1px solid var(--border); }
.how-step-num {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 2px !important;
  font-weight: 600 !important;
  color: var(--text-faint) !important;
  margin-bottom: 0 !important;
}
.how-step-body h3 {
  font-family: 'Fraunces', serif !important;
  font-size: clamp(20px, 2.4vw, 28px) !important;
  font-weight: 400 !important;
  margin-bottom: 6px !important;
}
.how-step-body p {
  font-size: 15px !important;
  max-width: 640px;
}
@media (max-width: 720px) {
  .how-step { grid-template-columns: 64px 1fr; }
}

.editorial-byline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--text-faint);
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: 880px;
  font-weight: 500;
}

/* Center the anti-Quizlet split content */
.anti-half {
  justify-content: center;
  text-align: center;
}
.anti-half-inner {
  margin: 0 auto;
}
.anti-headline-strike::after {
  left: 8%;
  right: 8%;
}

/* Make anti-headline size to its text so the strike line centers correctly */
.anti-headline {
  display: table;
  margin-left: auto;
  margin-right: auto;
}
.anti-headline-strike::after {
  left: -8%;
  right: -8%;
}

/* 4-column pricing grid */
.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pricing-grid-4 { grid-template-columns: 1fr; }
}
.plan-pass {
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(124, 255, 181, 0.04), transparent 50%);
}
.plan-pass ul li strong {
  color: var(--text);
  font-weight: 700;
}

/* Two-up module row inside .science */
.module-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.module-row .module {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  margin: 0;
  min-height: 0;
}
.module-compact .copy {
  max-width: none;
}
.module-compact .visual {
  align-self: flex-start;
}
.module-compact .visual svg {
  max-width: 360px !important;
}
.module-compact h3 {
  font-size: clamp(22px, 2.4vw, 30px) !important;
}
.module-compact p {
  font-size: 15px;
}
@media (max-width: 880px) {
  .module-row {
    grid-template-columns: 1fr;
    gap: 64px;
  }
}

/* Anti-split: make symmetric and force dead-center alignment */
.anti-split {
  grid-template-columns: 1fr 1fr !important;
}
.anti-half {
  padding: 96px 32px !important;
  text-align: center !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}
.anti-half-inner {
  max-width: 420px !important;
  width: 100% !important;
  margin: 0 !important;
}
.anti-headline {
  display: block !important;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 32px !important;
}
.anti-list { display: inline-block; text-align: left; }
@media (max-width: 880px) {
  /* Stack the two halves on mobile. Needs !important to beat the
     `grid-template-columns: 1fr 1fr !important` rule above, which otherwise
     keeps both columns side-by-side and overflows the viewport horizontally. */
  .anti-split { grid-template-columns: 1fr !important; }
  .anti-half { padding: 64px 24px !important; }
}
@media (max-width: 600px) {
  /* On phones, the long light headline ("Eksamens-karakteren") with
     width:max-content forces the grid track wider than the screen. Let it wrap,
     and trim the headline scale so the strike headline still fits on one line. */
  .anti-headline { font-size: clamp(30px, 9vw, 42px) !important; }
  .anti-half-light .anti-headline { width: auto !important; max-width: 100% !important; }
}

/* Forskning-teaser on landing */
.forskning-teaser {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.celeration-chart {
  margin: 0;
}
.celeration-chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.teaser-content { text-align: left; }
.teaser-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 24px;
  font-weight: 600;
}
.teaser-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -1px;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 24px;
  max-width: none;
}
.teaser-body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: none;
  margin: 0 0 36px;
}
.teaser-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.teaser-link:hover { opacity: 0.85; }

@media (max-width: 900px) {
  .teaser-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .teaser-content { text-align: center; }
  .teaser-content .teaser-h2,
  .teaser-content .teaser-body { margin-left: auto; margin-right: auto; max-width: 620px; }
}

/* Forskning-hero on /forskning.html */
.forskning-hero {
  padding: 128px 0 64px;
  background: var(--bg);
}
.forskning-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 1px;
  margin: 0 0 24px;
  font-weight: 500;
}
.forskning-h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text);
  margin: 0 0 32px;
  font-weight: 400;
}
.forskning-h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.forskning-lead {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 680px;
}

/* How-it-works steps with screenshots */
.how-step {
  display: grid !important;
  grid-template-columns: 1fr 320px !important;
  gap: 48px;
  align-items: center !important;
  padding: 56px 0 !important;
  border-top: 1px solid var(--border) !important;
  border-bottom: none !important;
}
.how-step:last-child { border-bottom: 1px solid var(--border) !important; }
.how-step:nth-child(even) {
  grid-template-columns: 320px 1fr !important;
}
.how-step:nth-child(even) .how-step-text { order: 2; }
.how-step:nth-child(even) .how-step-shot { order: 1; }

.how-step-text { max-width: 480px; }
.how-step-text h3 {
  margin-bottom: 10px !important;
}
.how-step-shot {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.how-step-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.how-step-shot img[src=""],
.how-step-shot img:not([src]),
.how-step-shot img[alt]:after {
  /* Placeholder hint if image missing */
}
@media (max-width: 880px) {
  .how-step,
  .how-step:nth-child(even) {
    grid-template-columns: 1fr !important;
  }
  .how-step:nth-child(even) .how-step-text { order: 1; }
  .how-step:nth-child(even) .how-step-shot { order: 2; }
  .how-step-shot { max-width: 240px; margin: 0 auto; }
}

/* ════════════════════════════════════════════════════════════
   Hero CTA word rotator — "Last opp [pensum/PDF/nettside/...]"
   Container width breathes to match the active word so the spacing
   between surrounding words stays constant. The word sits on the same
   baseline as its neighbors — underline is text-decoration (no box-shift).
   ════════════════════════════════════════════════════════════ */
.btn-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4ch;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.word-rotator {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  white-space: nowrap;
  /* clip-path clips the leaving word visually WITHOUT affecting the
     baseline calculation. `overflow: hidden` on an inline-block forces its
     baseline to its bottom-margin edge, which was making the active word
     sit higher than the surrounding sentence. */
  clip-path: inset(0);
  /* Width is set by JS to the active word's natural width — transitions
     so the button "breathes" as longer/shorter words rotate in. */
  transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
/* Invisible in-flow text — provides the baseline AND the natural height
   for the rotator. Without something in flow with real text content, an
   inline-block with only absolutely-positioned children loses its text
   baseline. */
.word-rotator-static {
  display: inline-block;
  visibility: hidden;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.word-rotator-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-weight: 800;
  opacity: 0;
  transform: translateY(0.6em);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease;
  /* Underline via text-decoration (NOT border-bottom) so the box height
     matches the surrounding text exactly. */
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.word-rotator-word.is-active {
  transform: translateY(0);
  opacity: 1;
}
.word-rotator-word.is-leaving {
  transform: translateY(-0.6em);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .word-rotator,
  .word-rotator-word { transition: none; }
  .word-rotator-word { transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   MODES — 2x2 dedicated section with rich product visuals
   ════════════════════════════════════════════════════════════ */
.modes {
  background: var(--bg);
  padding: 120px 32px 100px;
  position: relative;
  isolation: isolate;
}
.modes::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 40% at 50% 0%, rgba(124, 255, 181, 0.04), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.modes-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.modes-head {
  text-align: center;
  margin: 0 auto 72px;
  max-width: 720px;
}
.modes .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.85;
}
.modes-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 18px;
}
.modes-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 580px;
  text-wrap: balance;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .modes-grid { grid-template-columns: 1fr; }
  .modes { padding: 80px 20px; }
}

.modecard {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(165deg, rgba(30, 34, 38, 0.95), rgba(19, 23, 27, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 36px 36px 0;
  min-height: 520px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.modecard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 50% 0%, rgba(124, 255, 181, 0.07), transparent 60%);
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}
.modecard:hover {
  border-color: rgba(124, 255, 181, 0.25);
  transform: translateY(-3px);
}
.modecard > * { position: relative; z-index: 1; }

.modecard-text { max-width: 100%; }
.modecard-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.85;
}
.modecard-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 12px;
  text-wrap: balance;
}
.modecard-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.modecard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.modecard-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text);
  opacity: 0.9;
}
.modecard-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.modecard-list em {
  color: var(--accent);
  font-style: italic;
  font-family: var(--display);
}

.modecard-visual {
  margin: 28px -36px -1px;
  padding: 16px 36px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 220px;
  position: relative;
}

/* ── 1. Flow phone mockup ──────────────────────── */
.modecard-visual--flow {
  background: linear-gradient(180deg, transparent, rgba(124, 255, 181, 0.04));
  border-top: 1px solid rgba(124, 255, 181, 0.08);
}
.phone {
  position: relative;
  width: 240px;
  background: #000;
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(28px);
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}
.phone-screen {
  background: #0E1011;
  border-radius: 28px;
  padding: 32px 22px 26px;
  height: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.phone-timer-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.phone-timer-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
  animation: timerFill 20s linear infinite;
}
@keyframes timerFill {
  0% { width: 0%; }
  100% { width: 100%; }
}
.phone-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-top: 8px;
  margin-bottom: 18px;
  background: rgba(124, 255, 181, 0.15);
  color: var(--accent);
}
.phone-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.phone-prompt {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 14px;
}
.phone-cue {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: auto;
}
.phone-wave {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 24px;
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}
.phone-wave span {
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
  animation: phoneWave 1.2s ease-in-out infinite;
}
.phone-wave span:nth-child(1)  { height: 30%; animation-delay: 0.00s; }
.phone-wave span:nth-child(2)  { height: 55%; animation-delay: 0.07s; }
.phone-wave span:nth-child(3)  { height: 85%; animation-delay: 0.14s; }
.phone-wave span:nth-child(4)  { height: 45%; animation-delay: 0.21s; }
.phone-wave span:nth-child(5)  { height: 70%; animation-delay: 0.28s; }
.phone-wave span:nth-child(6)  { height: 95%; animation-delay: 0.35s; }
.phone-wave span:nth-child(7)  { height: 60%; animation-delay: 0.42s; }
.phone-wave span:nth-child(8)  { height: 40%; animation-delay: 0.49s; }
.phone-wave span:nth-child(9)  { height: 75%; animation-delay: 0.56s; }
.phone-wave span:nth-child(10) { height: 50%; animation-delay: 0.63s; }
.phone-wave span:nth-child(11) { height: 30%; animation-delay: 0.70s; }
.phone-wave span:nth-child(12) { height: 65%; animation-delay: 0.77s; }
.phone-wave span:nth-child(13) { height: 45%; animation-delay: 0.84s; }
.phone-wave span:nth-child(14) { height: 80%; animation-delay: 0.91s; }
.phone-wave span:nth-child(15) { height: 35%; animation-delay: 0.98s; }
.phone-wave span:nth-child(16) { height: 55%; animation-delay: 1.05s; }
.phone-wave span:nth-child(17) { height: 25%; animation-delay: 1.12s; }
.phone-wave span:nth-child(18) { height: 40%; animation-delay: 1.19s; }
@keyframes phoneWave {
  0%, 100% { transform: scaleY(0.6); }
  50%      { transform: scaleY(1.1); }
}

/* ── 2. Voice Q/A bubbles + mic orb ───────────── */
.modecard-visual--voice {
  background: linear-gradient(180deg, transparent, rgba(124, 255, 181, 0.03));
  border-top: 1px solid rgba(124, 255, 181, 0.08);
  align-items: stretch;
  padding-bottom: 28px;
}
.qa-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  align-items: center;
}
.qa-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.4;
  width: 100%;
}
.qa-bubble--q {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.qa-bubble--a {
  background: linear-gradient(135deg, rgba(124, 255, 181, 0.16), rgba(124, 255, 181, 0.08));
  border: 1px solid rgba(124, 255, 181, 0.28);
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.qa-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}
.qa-tag--a {
  background: var(--accent);
  color: var(--bg);
}
.qa-typed {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
}
.qa-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 400;
  font-style: normal;
  animation: cursorBlink 1s steps(1) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

.mic-orb {
  position: relative;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.mic-orb-core {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8FFD9, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(124, 255, 181, 0.45), 0 0 0 1px rgba(255,255,255,0.15) inset;
  z-index: 2;
}
.mic-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: micRing 2.4s ease-out infinite;
}
.mic-orb-ring--1 { animation-delay: 0s; }
.mic-orb-ring--2 { animation-delay: 0.8s; }
.mic-orb-ring--3 { animation-delay: 1.6s; }
@keyframes micRing {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.mic-orb-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── 3. Sources flow ──────────────────────────── */
.modecard-visual--sources {
  background: linear-gradient(180deg, transparent, rgba(124, 255, 181, 0.03));
  border-top: 1px solid rgba(124, 255, 181, 0.08);
  padding-bottom: 28px;
}
.source-flow {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 100%;
}
.source-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  min-width: 0;
}
.source-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(124, 255, 181, 0.1);
  color: var(--accent);
}
.source-name {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.source-size {
  font-size: 10.5px;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.source-arrow {
  color: var(--accent);
  flex-shrink: 0;
  animation: sourceArrow 1.6s ease-in-out infinite;
}
@keyframes sourceArrow {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
.source-result {
  flex-shrink: 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(124, 255, 181, 0.18), rgba(124, 255, 181, 0.08));
  border: 1px solid rgba(124, 255, 181, 0.32);
  border-radius: 14px;
  text-align: center;
  min-width: 130px;
}
.source-result-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 6px;
}
.source-result-stat {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 4px;
}
.source-result-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── 2. Library browser ────────────────────────── */
.modecard-visual--library {
  background: linear-gradient(180deg, transparent, rgba(124, 255, 181, 0.03));
  border-top: 1px solid rgba(124, 255, 181, 0.08);
  padding: 24px 20px 28px;
}
.library-browser {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.library-search svg { flex-shrink: 0; color: var(--text-faint); }
.library-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.library-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s ease;
}
.library-item:hover { border-color: var(--accent-soft); }
.library-item-main {
  flex: 1;
  min-width: 0;
}
.library-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.library-item-meta {
  font-size: 11px;
  color: var(--text-faint);
}
.library-add {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid var(--accent-soft);
  background: rgba(124, 255, 181, 0.08);
  color: var(--accent);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.library-add:hover { background: var(--accent); color: var(--bg); }
.library-add--done {
  background: transparent;
  color: var(--text-faint);
  border-color: var(--border);
  cursor: default;
}
.library-add--done:hover { background: transparent; color: var(--text-faint); }
.library-item--added .library-item-title { color: var(--text-muted); }

/* ── 4. Growth chart ──────────────────────────── */
.modecard-visual--progress {
  background: linear-gradient(180deg, transparent, rgba(124, 255, 181, 0.04));
  border-top: 1px solid rgba(124, 255, 181, 0.08);
  padding-bottom: 28px;
}
.growth-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  overflow: visible;
}
.growth-line2 {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 0 8px rgba(124, 255, 181, 0.4));
}
.growth-fill2 { opacity: 0; }
.growth-dot2 {
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(124, 255, 181, 0.7));
}
.modecard--progress.is-drawn .growth-line2 {
  animation: drawLine2 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}
.modecard--progress.is-drawn .growth-fill2 {
  animation: fadeIn2 1s ease-out 1.5s forwards;
}
.modecard--progress.is-drawn .growth-dot2 {
  animation: fadeIn2 0.4s ease-out 2.3s forwards, dotPulse2 2s ease-in-out 2.7s infinite;
}
@keyframes drawLine2 { to { stroke-dashoffset: 0; } }
@keyframes fadeIn2 { to { opacity: 1; } }
@keyframes dotPulse2 {
  0%, 100% { r: 5; }
  50%      { r: 7; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-wave span,
  .mic-orb-ring,
  .qa-cursor,
  .phone-timer-fill,
  .source-arrow,
  .growth-line2,
  .growth-fill2,
  .growth-dot2 { animation: none !important; }
  .growth-line2 { stroke-dashoffset: 0; }
  .growth-fill2, .growth-dot2 { opacity: 1; }
}

@media (max-width: 900px) {
  .modecard { padding: 28px 24px 0; min-height: 0; }
  .modecard-visual { margin: 24px -24px -1px; padding: 16px 24px 28px; }
  .modecard-title { font-size: 24px; }
  .source-flow { flex-direction: column; }
  .source-arrow { transform: rotate(90deg); }
}


/* Hero split: text-left + chart-right ─────────────────────────────── */
.hero-split { padding-bottom: 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px 16px;
  position: relative;
  z-index: 1;
}
.hero-left { text-align: left; max-width: 560px; }
.hero-left h1 { text-align: left; }
.hero-left .sub { text-align: left; }
.hero-left .cta-row { justify-content: flex-start; }

/* Chart panel */
.hero-chart {
  background: rgba(19, 23, 27, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 40px 32px;
  color: #ECEDEE;
}
.chart-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 10px;
  font-weight: 600;
}
.chart-title {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  letter-spacing: -0.3px;
  margin: 0 0 22px;
  color: #fff;
  font-weight: 500;
}
.chart-toggles {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.chart-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chart-toggle:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.chart-toggle.is-active {
  background: var(--accent);
  color: #0c0d0f;
  border-color: var(--accent);
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}
.chart-grid line { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.chart-axis text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  fill: rgba(255,255,255,0.5);
  font-weight: 500;
}
.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  opacity: 0.9;
}
.chart-line--munin { stroke: #7CFFB5; }
.chart-line--srs   { stroke: #FFD66B; }
.chart-line--cram  { stroke: #FF7B7B; }

.chart-endpoint { opacity: 0; }
.chart-endpoint--munin { fill: #7CFFB5; }
.chart-endpoint--srs   { fill: #FFD66B; }
.chart-endpoint--cram  { fill: #FF7B7B; }
.chart-end-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
}
.chart-end-label--munin { fill: #7CFFB5; }
.chart-end-label--srs   { fill: #FFD66B; }
.chart-end-label--cram  { fill: #FF7B7B; }

/* Engasjement-view bars (Marmolejo 2004 social validity, 87% vs 4%) */
.chart-bar { opacity: 0; }
.chart-bar--munin { fill: #7CFFB5; }
.chart-bar--cram  { fill: #FF7B7B; }
.chart-bar-value {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  opacity: 0;
}
.chart-bar-value--munin { fill: #7CFFB5; }
.chart-bar-value--cram  { fill: #FF7B7B; }

/* Engasjement bar X-axis labels — bigger, more readable than time labels */
.chart-axis--bars text {
  font-size: 13px;
  font-weight: 600;
  fill: rgba(255,255,255,0.75);
}

/* Citation links inside chart captions — dotted underline gives them an
   academic-reference feel without looking like generic web links. */
.chart-cite {
  color: inherit;
  text-decoration: underline dotted rgba(255,255,255,0.35);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.chart-cite:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.8);
}

/* View switching: hide elements that don't match the active view (4-way) */
.hero-chart[data-view="hastighet"]   [data-view-only]:not([data-view-only="hastighet"]),
.hero-chart[data-view="aktivitet"]   [data-view-only]:not([data-view-only="aktivitet"]),
.hero-chart[data-view="retention"]   [data-view-only]:not([data-view-only="retention"]),
.hero-chart[data-view="engasjement"] [data-view-only]:not([data-view-only="engasjement"]) {
  display: none;
}

.chart-caption {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin: 0;
  /* Reserve space for the longest caption so the chart panel doesn't jump
     when switching tabs (Retensjon / Hastighet are shorter than Aktivitet /
     Engasjement — this min-height keeps the layout smooth). */
  min-height: 9.5em;
}
@media (max-width: 720px) {
  .chart-caption { min-height: 11em; }
}
.chart-caption strong { color: #fff; font-weight: 700; }

@keyframes chartDraw {
  from { stroke-dashoffset: 800; }
  to   { stroke-dashoffset: 0; }
}
@keyframes chartFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 24px 32px;
  }
  .hero-left { max-width: none; }
  .hero-left h1, .hero-left .sub { text-align: center; }
  .hero-left .cta-row { justify-content: center; }
  .hero-chart { padding: 20px; }
  .chart-title { font-size: 18px; }
}

/* Fix: hero-split was constraining the entire hero section to 1240px,
   which cropped the background video and left a dark void on the right.
   Make the section full-width again; centering is handled by .hero-grid. */
section.hero.hero-split {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
section.hero.hero-split .hero-bg-video {
  width: 100vw !important;
  left: 50% !important;
  transform: translateX(-50%);
}

/* Mobile: the hero is tall (text + chart stack vertically), so stretching the
   landscape video over the full height upscales it ~4x on a 3x-density phone —
   that's the pixelation. Cap the video to the first screen and fade it into the
   dark background behind the chart, dropping the upscale to ~1.5x (crisp). */
@media (max-width: 900px) {
  section.hero.hero-split .hero-bg-video {
    height: 100svh;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
}

/* Chart animation — triggered by .is-drawn class (added by IntersectionObserver
   when chart enters viewport). Lines draw left-to-right, then endpoints/labels
   fade in. After animation, both states are held via animation-fill-mode: both. */
.hero-chart.is-drawn .chart-line {
  animation: chartDraw 1.4s ease-out both;
}
.hero-chart.is-drawn .chart-line--munin { animation-delay: 0.15s; }
.hero-chart.is-drawn .chart-line--srs   { animation-delay: 0.45s; }
.hero-chart.is-drawn .chart-line--cram  { animation-delay: 0.75s; }

.hero-chart.is-drawn .chart-endpoint,
.hero-chart.is-drawn .chart-end-label {
  animation: chartFadeIn 0.4s ease-out both;
}
.hero-chart.is-drawn .chart-endpoint--munin  { animation-delay: 1.55s; }
.hero-chart.is-drawn .chart-end-label--munin { animation-delay: 1.65s; }
.hero-chart.is-drawn .chart-endpoint--srs    { animation-delay: 1.85s; }
.hero-chart.is-drawn .chart-end-label--srs   { animation-delay: 1.95s; }
.hero-chart.is-drawn .chart-endpoint--cram   { animation-delay: 2.15s; }
.hero-chart.is-drawn .chart-end-label--cram  { animation-delay: 2.25s; }

/* Bars fade in for engasjement view */
.hero-chart.is-drawn .chart-bar,
.hero-chart.is-drawn .chart-bar-value {
  animation: chartFadeIn 0.6s ease-out both;
}
.hero-chart.is-drawn .chart-bar--munin { animation-delay: 0.3s; }
.hero-chart.is-drawn .chart-bar--cram  { animation-delay: 0.5s; }
.hero-chart.is-drawn .chart-bar-value--munin { animation-delay: 0.8s; }
.hero-chart.is-drawn .chart-bar-value--cram  { animation-delay: 1.0s; }

/* Reduced-motion: skip animation, just show everything immediately */
@media (prefers-reduced-motion: reduce) {
  .chart-line { stroke-dashoffset: 0; opacity: 0.45; }
  .chart-endpoint, .chart-end-label { opacity: 1; }
  .hero-chart.is-drawn .chart-line,
  .hero-chart.is-drawn .chart-endpoint,
  .hero-chart.is-drawn .chart-end-label { animation: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   Scroll motion + ambient depth
   ───────────────────────────────────────────────────────────────────── */

/* Reveal: opacity + lift, staggered via --reveal-i set on element */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero chart: subtle on-load tilt-in (no scroll, since hero is at top) */
@keyframes heroChartTiltIn {
  0% {
    opacity: 0;
    transform: perspective(1200px) translateY(28px) translateZ(-20px) rotateX(8deg) rotateY(-4deg);
  }
  60% { opacity: 1; }
  100% {
    opacity: 1;
    transform: perspective(1200px) translateY(0) translateZ(0) rotateX(0) rotateY(0);
  }
}
.hero-chart {
  animation: heroChartTiltIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  transform-origin: center top;
}

/* Ambient depth orbs — fixed full-viewport, sit BEHIND content via z-index */
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  mix-blend-mode: screen;
}
body::before {
  width: 540px;
  height: 540px;
  top: -10vh;
  left: -8vw;
  background: radial-gradient(circle, rgba(124, 255, 181, 0.18) 0%, transparent 70%);
  animation: orbDrift1 22s ease-in-out infinite;
}
body::after {
  width: 680px;
  height: 680px;
  top: 40vh;
  right: -10vw;
  background: radial-gradient(circle, rgba(116, 165, 255, 0.12) 0%, transparent 70%);
  animation: orbDrift2 28s ease-in-out infinite;
}
@keyframes orbDrift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(60px, 40px, 0) scale(1.1); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-50px, 80px, 0) scale(0.92); }
}

/* Section-level subtle depth — vignette so content reads against the orbs */
section.modes,
section.guarantee-receipt,
section.editorial-admission {
  position: relative;
  isolation: isolate;
}
section.modes::before,
section.guarantee-receipt::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 255, 181, 0.04), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(124, 255, 181, 0.03), transparent 60%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-chart {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body::before,
  body::after { animation: none !important; }
}
