/* ============================================================
   NexusPlan marketing site — shared stylesheet
   Static, framework-free. Custom academic-prospectus palette
   (warm paper, ink navy, muted ochre). Subject-chip pastels
   still mirror the real app; brand/accent no longer do.
   ============================================================ */

:root {
  /* Brand — ink navy (custom academic-prospectus ramp, ~227deg hue; 700 = primary).
     Hand-tuned values, NOT a Tailwind ramp — do not swap back. */
  --brand-50:  #f1f3fa;
  --brand-100: #e3e8f6;
  --brand-200: #c9d2ec;
  --brand-300: #aab6de;
  --brand-400: #8b9ad0;
  --brand-500: #6d7dc1;
  --brand-600: #4e61b3;
  --brand-700: #2f45a5;
  --brand-800: #273a8c;
  --brand-900: #1d2b66;
  --brand-950: #131c45;

  /* Accent — muted ochre, urgency/highlight only (never primary CTA) */
  --accent-100: #f7ecd9;
  --accent-300: #e7c380;
  --accent-400: #dca94e;
  --accent-500: #d29732;
  --accent-600: #c07a1c;
  --accent-700: #9a6114;

  /* Neutrals — warm paper (surfaces) / warm near-black ink (text) */
  --paper-0:   #fffdf9;
  --paper-50:  #faf8f3;
  --paper-100: #f3f0e8;
  --paper-200: #e9e5da;
  --paper-300: #d8d3c4;
  --ink-400: #9a9b8d;
  --ink-500: #75766a;
  --ink-600: #5a5b50;
  --ink-700: #3f4038;
  --ink-900: #23241f;

  /* Fixed semantics (never re-themed) */
  --stress-500:  #c23b2e;
  --success-500: #3a7d44;
  --success-100: #e2efe4;
  --warm-100: #f7ecd9;
  --warm-400: #c07a1c;
  --warm-700: #7a4a12;

  /* Subject chips — same mapping as the app (mirror the real app; do NOT re-theme) */
  --chip-sage:     #d1fae5;
  --chip-sky:      #e0f2fe;
  --chip-lavender: #ede9fe;
  --chip-sand:     #fef3c7;
  --chip-rose:     #fce7f3;
  --chip-slate:    #f1f5f9;

  /* Dark band (cinematic sections) — warm-tinted deep navy */
  --night-0: #101a30;
  --night-1: #16223c;
  --night-line: rgba(255, 255, 255, 0.10);
  --night-ink: #e5e2d8;     /* light warm text on night surfaces */
  --success-400: #5cb97a;   /* success reading on dark bg */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-lux: cubic-bezier(0.32, 0.72, 0, 1);
  --r-outer: 1.1rem;
  --r-inner: 0.75rem;
  --shadow-float: 0 18px 40px -18px rgba(35, 36, 31, 0.18);
  --shadow-soft:  0 6px 18px -8px rgba(35, 36, 31, 0.10);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x lives on html only — putting it on body too forces the UA to
   compute body's overflow-y as auto (CSS2.1 11.1.1), turning body into its
   own scroll container separate from html/window and silently breaking
   #anchor scrolling and window.scrollTo(). */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background-color: var(--paper-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display); margin: 0;
  letter-spacing: -0.01em; font-optical-sizing: auto;
}
p { margin: 0; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--brand-200); color: var(--brand-950); }

/* film grain, fixed + inert */
.grain {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.section { padding-block: clamp(5.5rem, 11vw, 9.5rem); position: relative; }
.section-tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* skip link — off-screen until keyboard focus, then a small navy chip */
.skip-link {
  position: fixed; top: 0.6rem; left: 0.6rem; z-index: 100;
  transform: translateY(-160%);
  background: var(--brand-800); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0.55rem;
  font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-float);
  transition: transform 0.2s var(--ease-lux);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent-400); outline-offset: 2px; }

/* ---------- type ---------- */
/* Eyebrow = serif-italic kicker (no pill), preceded by a short hairline rule. */
.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-optical-sizing: auto;
  font-style: italic; font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0; text-transform: none; color: var(--accent-700);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 24px; height: 1px;
  background: currentColor; vertical-align: middle; margin-right: 10px; opacity: 0.75;
}
.eyebrow.on-dark { color: var(--accent-300); }
.eyebrow.warm { color: var(--accent-700); }

.h-display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.06; font-weight: 700; letter-spacing: -0.01em;
}
.h-section {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -0.01em;
}
.h-card { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--ink-600); }
.on-dark .lede, .lede.on-dark { color: rgba(229, 226, 216, 0.78); }
.accent-word { color: var(--brand-700); }
/* Slightly imperfect hand-drawn underline (ochre), no glow — one phrase, hero only. */
.accent-underline {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='6' preserveAspectRatio='none'%3E%3Cpath d='M1 4.2 Q 30 1.4 60 3.4 T 119 2.8' stroke='%23d29732' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 0.32em; background-position: 0 100%;
  padding-bottom: 0.1em;
}

/* ---------- buttons ---------- */
/* De-pilled, plain text labels (icon orbs removed). Subtle lift on hover. */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.55rem; border: 1px solid transparent;
  padding: 0.72rem 1.3rem;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  transition: transform 0.35s var(--ease-lux), background-color 0.35s var(--ease-lux),
              border-color 0.35s var(--ease-lux), box-shadow 0.35s var(--ease-lux), color 0.35s var(--ease-lux);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn-primary { background: var(--brand-700); color: #fff; box-shadow: 0 10px 24px -14px rgba(35, 36, 31, 0.30); }
.btn-primary:hover { background: var(--brand-800); }

.btn-ink { background: var(--ink-900); color: #fff; }
.btn-ink:hover { background: #000; }

.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--paper-300); }
.btn-ghost:hover { border-color: var(--ink-500); background: var(--paper-0); }

.btn-on-dark { background: var(--paper-0); color: var(--ink-900); }
.btn-on-dark:hover { background: #fff; }

.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }

.btn-plain { padding: 0.72rem 1.2rem; }

/* ---------- floating pill nav ---------- */
.nav-shell {
  position: fixed; top: 1.1rem; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center; padding-inline: 1rem;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.55rem 0.6rem 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(35, 36, 31, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px -18px rgba(35, 36, 31, 0.24);
  transition: box-shadow 0.6s var(--ease-lux), background-color 0.6s var(--ease-lux);
}
.brand-lockup { display: flex; align-items: baseline; gap: 0.45rem; }
.brand-lockup .mark {
  font-family: var(--font-display); font-optical-sizing: auto;
  font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em;
  color: var(--ink-900);
}
.brand-lockup .mark b { color: var(--brand-700); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  padding: 0.5rem 0.85rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; color: var(--ink-600);
  transition: color 0.4s var(--ease-lux), background-color 0.4s var(--ease-lux);
}
.nav-links a:hover { color: var(--ink-900); background: var(--paper-100); }
.nav-links a.active { color: var(--brand-800); background: var(--brand-50); }
.nav-cta { display: flex; align-items: center; gap: 0.4rem; }
.nav-signin {
  padding: 0.5rem 0.9rem; font-size: 0.88rem; font-weight: 500; color: var(--ink-600); border-radius: 999px;
  transition: color 0.4s var(--ease-lux);
}
.nav-signin:hover { color: var(--brand-700); }
.nav-demo {
  padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--brand-700); color: #fff;
  font-size: 0.88rem; font-weight: 600;
  transition: background-color 0.4s var(--ease-lux), transform 0.4s var(--ease-lux);
}
.nav-demo:hover { background: var(--brand-800); }
.nav-demo:active { transform: scale(0.97); }

/* hamburger (mobile) */
.nav-burger {
  display: none; position: relative; width: 2.4rem; height: 2.4rem;
  border-radius: 999px; border: 1px solid var(--paper-200); background: var(--paper-0);
}
.nav-burger span {
  position: absolute; left: 50%; top: 50%; width: 1rem; height: 1.5px; background: var(--ink-900);
  transition: transform 0.55s var(--ease-lux), opacity 0.4s var(--ease-lux);
}
.nav-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)); }
.nav-burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)); }
body.menu-open .nav-burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* full-screen mobile menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease-lux), visibility 0.6s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-overlay a {
  font-family: var(--font-display); font-optical-sizing: auto;
  font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink-900); padding: 0.55rem 0;
  transform: translateY(2.2rem); opacity: 0;
  transition: transform 0.7s var(--ease-lux), opacity 0.7s var(--ease-lux), color 0.4s;
}
.menu-overlay a:hover, .menu-overlay a.active { color: var(--brand-700); }
.menu-overlay a.menu-signin { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; color: var(--ink-600); margin-top: 1.6rem; }
body.menu-open .menu-overlay a { transform: translateY(0); opacity: 1; }
body.menu-open .menu-overlay a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .menu-overlay a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .menu-overlay a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .menu-overlay a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .menu-overlay a:nth-child(5) { transition-delay: 0.32s; }
body.menu-open .menu-overlay a:nth-child(6) { transition-delay: 0.38s; }
body.menu-open { overflow: hidden; }

/* ---------- cards (formerly double-bezel; outer ring now invisible,
   .bezel-core is the single hairline card) ---------- */
.bezel {
  background: transparent; border: 0; padding: 0;
  border-radius: var(--r-outer);
}
.bezel-core {
  background: var(--paper-0);
  border: 1px solid var(--paper-300);
  border-radius: var(--r-inner);
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.bezel.on-night { background: transparent; border: 0; }
.bezel.on-night .bezel-core {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: var(--night-ink);
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.bento > * { min-width: 0; }
.b-7 { grid-column: span 7; } .b-6 { grid-column: span 6; } .b-5 { grid-column: span 5; }
.b-4 { grid-column: span 4; } .b-8 { grid-column: span 8; } .b-12 { grid-column: span 12; }
.card-pad { padding: 1.7rem; display: flex; flex-direction: column; gap: 0.65rem; }
.card-pad .h-card { margin-top: 0.35rem; }
.card-pad p { color: var(--ink-600); font-size: 0.95rem; line-height: 1.62; }
.on-night .card-pad p { color: rgba(229, 226, 216, 0.72); }

.icon-tile {
  width: 2.5rem; height: 2.5rem; border-radius: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700);
}
.icon-tile svg { width: 1.15rem; height: 1.15rem; }
.icon-tile.warm { background: var(--warm-100); border-color: var(--accent-300); color: var(--accent-700); }
.icon-tile.green { background: var(--success-100); border-color: #bbf7d0; color: var(--success-500); }
.on-night .icon-tile { background: rgba(109, 125, 193, 0.16); border-color: rgba(170, 182, 222, 0.24); color: var(--brand-300); }

/* ---------- night band ---------- */
.band-night { background: var(--night-0); color: var(--night-ink); position: relative; overflow: hidden; }
/* one barely-there navy glow anchored to a top corner — no blob party */
.band-night .mesh {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 45% at 85% 0%, rgba(47, 69, 165, 0.28), transparent 72%);
}
/* fine grain, soft-light, ~0.05 */
.band-night .mesh::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='mn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23mn)'/%3E%3C/svg%3E");
}
.band-night > .wrap { position: relative; z-index: 1; }
.hairline-v { border-top: 1px solid var(--night-line); }

/* ---------- app mockups ---------- */
.mock-window {
  border-radius: var(--r-inner); overflow: hidden; background: var(--paper-0);
  border: 1px solid var(--paper-200);
  font-size: 0.8rem;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 0.45rem; padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--paper-100); background: var(--paper-50);
}
.mock-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--paper-300); }
.mock-url {
  margin-left: 0.4rem; padding: 0.22rem 0.7rem; border-radius: 999px; background: var(--paper-100);
  color: var(--ink-500); font-size: 0.68rem; font-family: var(--font-mono); letter-spacing: 0.01em;
}
.mock-nav { display: flex; gap: 0.3rem; padding: 0.7rem 0.9rem 0.2rem; }
.mock-tab { padding: 0.32rem 0.75rem; border-radius: 999px; color: var(--ink-500); font-weight: 500; font-size: 0.74rem; }
.mock-tab.active { background: var(--brand-700); color: #fff; font-weight: 600; }
.mock-body { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; }
.mock-heading { font-weight: 600; color: var(--ink-900); font-size: 0.82rem; display: flex; justify-content: space-between; align-items: center; }
.mock-sub { color: var(--ink-500); font-size: 0.7rem; font-weight: 400; }

.task-row {
  display: flex; align-items: center; gap: 0.7rem;
  border: 1px solid var(--paper-200); border-radius: 0.9rem; padding: 0.62rem 0.75rem;
  background: var(--paper-0);
}
.rank-dot {
  flex: none; width: 1.35rem; height: 1.35rem; border-radius: 999px; color: #fff;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.task-rank {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; color: var(--brand-700);
  width: 1.5rem; height: 1.5rem; border-radius: 0.5rem; background: var(--brand-50);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-variant-numeric: tabular-nums;
}
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 600; color: var(--ink-900); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.22rem; flex-wrap: wrap; }
.chip {
  padding: 0.14rem 0.5rem; border-radius: 999px; font-size: 0.62rem; font-weight: 600; color: var(--ink-700);
}
.chip.sage { background: var(--chip-sage); } .chip.sky { background: var(--chip-sky); }
.chip.lavender { background: var(--chip-lavender); } .chip.sand { background: var(--chip-sand); }
.chip.rose { background: var(--chip-rose); } .chip.slate { background: var(--chip-slate); }
.task-due { font-size: 0.62rem; color: var(--ink-500); }
.task-due.hot { color: var(--accent-700); font-weight: 600; }
.task-pts { font-size: 0.62rem; color: var(--ink-500); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.task-impact {
  flex: none; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem; border-radius: 999px;
}
.impact-high { background: var(--brand-700); color: #fff; }
.impact-med { background: var(--brand-100); color: var(--brand-800); }
.impact-low { background: var(--paper-100); color: var(--ink-500); }
.task-check {
  flex: none; width: 1.05rem; height: 1.05rem; border-radius: 999px; border: 1.5px solid var(--paper-300);
}
.task-row.done { opacity: 0.55; }
.task-row.done .task-check { background: var(--success-500); border-color: var(--success-500); position: relative; }
.task-row.done .task-title { text-decoration: line-through; }

/* workload radar bars */
.radar-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.5rem; align-items: stretch; padding: 0.4rem 0.2rem 0; }
.radar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.35rem; height: 100%; }
.radar-bar { width: 100%; border-radius: 0.5rem 0.5rem 0.2rem 0.2rem; background: var(--brand-200); }
.radar-bar.hi { background: var(--accent-500); }
.radar-bar.mid { background: var(--brand-500); }
.radar-day { font-size: 0.6rem; color: var(--ink-500); font-family: var(--font-mono); }
.radar-cap { display: flex; justify-content: space-between; font-size: 0.62rem; color: var(--ink-500); padding: 0.5rem 0.2rem 0; border-top: 1px dashed var(--paper-200); margin-top: 0.5rem; }

/* mini gantt (mimics real Workload Radar / TimelineView) */
.gantt { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 0.55rem 0 0.3rem; }
.gantt-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 0.5rem; position: relative; z-index: 1; }
.gantt-label { font-size: 0.6rem; color: var(--ink-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); }
.gantt-track { position: relative; height: 11px; background: var(--paper-100); border-radius: 999px; }
.gantt-bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--brand-200); overflow: hidden; }
.gantt-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-600); }
.gantt-bar.overdue { box-shadow: 0 0 0 1.5px var(--stress-400); }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand-500); z-index: 0; }
.gantt-crunch { position: absolute; top: 0; bottom: 0; background: rgba(194, 59, 46, 0.08); border-inline: 1px dashed rgba(194, 59, 46, 0.28); z-index: 0; }
.gantt-legend { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 0.6rem; color: var(--ink-500); padding-top: 0.5rem; border-top: 1px dashed var(--paper-200); margin-top: 0.35rem; }
.gantt-legend .swatch { display: inline-block; vertical-align: middle; margin-right: 0.3rem; }

/* stat blocks */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.stat-cell { border: 1px solid var(--paper-200); border-radius: 0.75rem; padding: 0.7rem 0.8rem; background: var(--paper-0); font-variant-numeric: tabular-nums; }
.stat-num { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 700; font-size: 1.15rem; color: var(--ink-900); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 0.62rem; color: var(--ink-500); margin-top: 0.15rem; letter-spacing: 0.02em; }
.stat-cell.hot .stat-num { color: var(--accent-700); }

/* ---------- integrations ---------- */
.logo-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.logo-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--paper-200); background: var(--paper-0);
  font-weight: 600; font-size: 0.9rem; color: var(--ink-700);
  box-shadow: 0 6px 18px -12px rgba(35, 36, 31, 0.16);
}
.logo-pill .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--success-500); }
.logo-pill.soon { border-style: dashed; color: var(--ink-500); background: transparent; box-shadow: none; }
.logo-pill.soon .dot { background: var(--accent-500); }
.soon-tag {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-700); background: var(--warm-100); border-radius: 999px; padding: 0.14rem 0.5rem;
}
.on-night .logo-pill { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: var(--night-ink); box-shadow: none; }
.on-night .logo-pill.soon { color: rgba(226,232,240,0.55); }

/* ---------- quote slots ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.quote-card .bezel-core { padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.quote-mark { font-family: var(--font-display); font-size: 2.2rem; line-height: 0.6; color: var(--brand-300); }
.quote-text { font-size: 0.97rem; line-height: 1.65; color: var(--ink-700); }
.quote-who { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.quote-ava {
  width: 2.3rem; height: 2.3rem; border-radius: 999px; flex: none;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-300));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--brand-800);
}
.quote-name { font-weight: 600; font-size: 0.85rem; color: var(--ink-900); }
.quote-role { font-size: 0.74rem; color: var(--ink-500); }
.quote-card.slot .bezel-core { border-style: dashed; border-color: var(--paper-300); box-shadow: none; background: var(--paper-50); }
.quote-card.slot .quote-text { color: var(--ink-500); font-style: italic; }
.quote-card.slot .quote-ava { background: var(--paper-100); color: var(--ink-400); }

/* ---------- steps (de-carded: hairline-separated columns, big serif numeral) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem 2.4rem; counter-reset: step; }
.step-card .bezel-core {
  background: transparent; border: 0; border-top: 1px solid var(--paper-300);
  border-radius: 0; box-shadow: none; padding: 1.5rem 0 0;
}
.on-night .step-card .bezel-core,
.band-night .step-card .bezel-core { border-top-color: rgba(255, 255, 255, 0.14); }
.step-num {
  font-family: var(--font-display); font-optical-sizing: auto;
  font-size: 1.8rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--brand-700); display: inline-block; margin-bottom: 0.55rem;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.on-night .step-num, .band-night .step-num { color: var(--accent-300); }

/* ---------- checklist ---------- */
.tick-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.tick-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.96rem; line-height: 1.55; color: var(--ink-700); }
.tick-list .tick {
  flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; border-radius: 999px;
  background: var(--success-100); color: var(--success-500);
  display: inline-flex; align-items: center; justify-content: center;
}
.tick-list .tick svg { width: 0.7rem; height: 0.7rem; }
.on-night .tick-list li { color: rgba(229, 226, 216, 0.8); }
.on-night .tick-list .tick { background: rgba(22, 163, 74, 0.18); color: var(--success-400); }

/* ---------- footer ---------- */
footer { background: var(--night-0); color: #cbd5e1; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 4.5rem 3rem; }
.foot-brand .mark { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.foot-brand .mark b { color: var(--brand-400); }
.foot-tag { font-size: 0.85rem; color: rgba(203, 213, 225, 0.6); margin-top: 0.7rem; max-width: 34ch; line-height: 1.6; }
.foot-col h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(203, 213, 225, 0.5); margin-bottom: 1.1rem; font-family: var(--font-sans); font-weight: 600; }
.foot-col a { display: block; padding: 0.3rem 0; font-size: 0.9rem; color: rgba(226, 232, 240, 0.82); transition: color 0.4s var(--ease-lux); }
.foot-col a:hover { color: #fff; }
.foot-base {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--night-line); padding-block: 1.6rem 2rem;
  font-size: 0.78rem; color: rgba(148, 163, 184, 0.7);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.38s var(--ease-lux), transform 0.38s var(--ease-lux);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}

/* ---------- page hero shared ---------- */
.page-hero { padding-top: clamp(8rem, 16vw, 11.5rem); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.8rem; color: var(--ink-500); }

/* ---------- closing CTA panel (flat deep-navy, cream text; one class, no gradient) ---------- */
.cta-card {
  background: var(--brand-950); color: var(--paper-50);
  border-radius: var(--r-outer); padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  position: relative; overflow: hidden;
}
.cta-card h2, .cta-card .h-section { color: var(--paper-50); }
.cta-card .lede { color: rgba(245, 243, 236, 0.82); }
.cta-card .eyebrow { color: var(--accent-300); }
.cta-card .hero-note { color: rgba(245, 243, 236, 0.6); }
.cta-card .hero-note a { color: var(--accent-300); font-weight: 600; }
/* buttons on navy: one solid ochre primary + a cream outline ghost (never blue-on-navy) */
.cta-card .btn-primary { background: var(--accent-500); color: var(--brand-950); box-shadow: none; }
.cta-card .btn-primary:hover { background: var(--accent-400); }
.cta-card .btn-ghost { background: transparent; color: var(--paper-50); border-color: rgba(255, 255, 255, 0.35); }
.cta-card .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); }

/* editorial split */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

/* form */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--ink-700); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 0.92rem; color: var(--ink-900);
  border: 1px solid var(--paper-300); border-radius: 0.55rem; padding: 0.75rem 1rem;
  background: var(--paper-0); outline: none;
  transition: border-color 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-2col { grid-template-columns: 1fr; } }

/* faq */
.faq-item { border-top: 1px solid var(--paper-200); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.3rem 0.2rem; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .fx {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 999px; border: 1px solid var(--paper-300);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 500; color: var(--ink-600);
  transition: transform 0.5s var(--ease-lux), background-color 0.4s var(--ease-lux);
}
.faq-item[open] summary .fx { transform: rotate(45deg); background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.faq-body { padding: 0 0.2rem 1.4rem; color: var(--ink-600); line-height: 1.65; font-size: 0.95rem; max-width: 62ch; }

/* level × bracket pricing table */
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th, .price-table td { padding: 0.75rem 1rem; text-align: left; font-size: 0.86rem; border-bottom: 1px solid var(--paper-200); }
.price-table thead th { font-family: var(--font-display); font-weight: 700; color: var(--ink-900); font-size: 0.82rem; border-bottom: 2px solid var(--paper-300); }
.price-table tbody th { font-weight: 600; color: var(--ink-700); white-space: nowrap; }
.price-table td { color: var(--brand-700); font-weight: 600; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--brand-50); }
/* Feature-comparison variant (contact.html #levels detail): checks stay brand-bold (default td
   style above); dashes need to read as "not part of this level", not a number. */
.price-table td.na { color: var(--ink-300); font-weight: 500; }
.price-table td.check { font-size: 1rem; }

/* roles × levels matrix */
.role-row {
  display: grid; grid-template-columns: 130px 1fr auto auto; gap: 0.9rem; align-items: center;
  border: 1px solid var(--paper-200); border-radius: 0.9rem; padding: 0.65rem 0.9rem; background: var(--paper-0);
}
.role-name { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--ink-900); }
.role-desc { font-size: 0.85rem; color: var(--ink-600); }
.role-learn {
  font-size: 0.78rem; font-weight: 700; color: var(--brand-700); white-space: nowrap;
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s ease;
}
.role-learn:hover { border-color: var(--brand-700); }
.mini-pill.on-level { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); white-space: nowrap; }
.mini-pill.on-level.teach { background: var(--warm-100); border-color: var(--accent-300); color: var(--warm-700); }
@media (max-width: 768px) {
  .role-row { grid-template-columns: 1fr auto; }
  .role-desc, .role-learn { grid-column: 1 / -1; }
  .role-learn { justify-self: start; }
}

/* "help unlock it" popover on coming-soon tags */
.unlock-pop {
  position: fixed; z-index: 70; max-width: 300px;
  background: var(--paper-0); border: 1px solid var(--paper-200); border-radius: 1.1rem;
  box-shadow: var(--shadow-float); padding: 1rem 1.15rem;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.35s var(--ease-lux), transform 0.35s var(--ease-lux);
}
.unlock-pop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.unlock-pop strong { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--ink-900); margin-bottom: 0.35rem; }
.unlock-pop p { font-size: 0.82rem; line-height: 1.55; color: var(--ink-600); margin-bottom: 0.6rem; }
.unlock-pop a { font-size: 0.82rem; font-weight: 600; color: var(--brand-700); }
/* Click affordance for "coming soon" items — ONE amber element (the existing
   soon-tag pill or dashed logo-pill itself), not a second badge stacked next
   to it. Cursor + lift + the tag's own color deepening are the only signals. */
.has-unlock {
  cursor: pointer;
  transition: transform 0.35s var(--ease-lux), box-shadow 0.35s var(--ease-lux), border-color 0.35s var(--ease-lux);
}
.has-unlock:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -10px rgba(154, 97, 20, 0.28);
  border-color: var(--accent-300) !important;
}
.soon-tag.has-unlock:hover,
.has-unlock:hover .soon-tag {
  background: var(--accent-500); color: #fff;
}

/* misc */
.kicker-row { display: flex; flex-direction: column; gap: 1.1rem; max-width: 640px; }
.center { text-align: center; margin-inline: auto; align-items: center; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mini-pill {
  font-size: 0.74rem; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: var(--paper-100); color: var(--ink-600); border: 1px solid var(--paper-200);
}
.on-night .mini-pill { background: rgba(255,255,255,0.06); color: rgba(226,232,240,0.8); border-color: rgba(255,255,255,0.12); }
/* Clickable role-switcher usage (guide pages): plain-text link reset + hover/active */
a.mini-pill { text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
a.mini-pill:hover { background: var(--paper-200); color: var(--ink-800); }
a.mini-pill[aria-current="page"] { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .b-7, .b-6, .b-5, .b-4, .b-8 { grid-column: span 6; }
  .quote-grid, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .wrap { width: min(1180px, 100% - 2rem); }
  .hero-float { position: static !important; margin-top: 1rem; max-width: none !important; }
  .split { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .b-7, .b-6, .b-5, .b-4, .b-8, .b-12 { grid-column: span 1; }
  .nav-links, .nav-cta .nav-signin { display: none; }
  .nav-burger { display: block; }
  .nav-pill { width: 100%; justify-content: space-between; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
  .section { padding-block: 4.5rem; }
  .page-hero { padding-top: 7.5rem; }
}
