/* ═══════════════════════════════════════════════
   WEB MAGE — mystic tech
   tokens → base → layout → components → motion
   ═══════════════════════════════════════════════ */

:root {
  --void: #060d1f;
  --deep: #0a1535;
  --deeper: #050b18;
  --rune-teal: #14b8a6;
  --spell-violet: #6366f1;
  --spell-magenta: #c026d3;
  --hologram: linear-gradient(100deg, #22d3ee, #a855f7 55%, #ec4899);
  --moonlight: #ffffff;
  --mist: rgba(255, 255, 255, 0.88);
  --line: rgba(120, 140, 255, 0.22);

  --font-display: "Unbounded", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-width: 1160px;
  --section-pad: clamp(5rem, 12vh, 9rem);
  --radius: 14px;
}

/* ── base ─────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* Deepest fallback — shows through any transparent layers including
     the uninitialized canvas in the screenshot renderer */
  background: #020a1a;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(18, 40, 130, 0.98) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(8, 70, 60, 0.98) 0%, transparent 55%),
    #020c18;
  background-attachment: fixed;
  color: var(--moonlight);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 0.6em; line-height: 1.15; font-weight: 600; color: var(--moonlight); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--rune-teal); }
img, svg { max-width: 100%; }

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

.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.7); }

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

main { position: relative; z-index: 1; }

/* ── shared type ──────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--rune-teal);
  margin-bottom: 1.2rem;
}

.holo-text {
  background: var(--hologram);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -0.01em;
  max-width: 20ch;
  color: var(--moonlight);
}

.section-sub {
  color: var(--mist);
  font-size: 1.125rem;
  max-width: 56ch;
  margin-bottom: 3rem;
}

/* ── buttons ──────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  color: var(--void);
  background: var(--rune-teal);
  box-shadow: 0 0 18px rgba(42, 154, 133, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(42, 154, 133, 0.4), 0 0 10px rgba(168, 63, 187, 0.22);
}

.btn-ghost {
  color: var(--moonlight);
  border: 1px solid var(--line);
  background: rgba(10, 18, 58, 0.55);
}

.btn-ghost:hover { border-color: var(--rune-teal); color: var(--rune-teal); }

.btn-small { padding: 0.55rem 1.3rem; font-size: 0.85rem; }
.btn-large { padding: 1.05rem 2.6rem; font-size: 1.1rem; }
.btn-wide { display: block; text-align: center; }

/* ── nav ──────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(6, 12, 40, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-mark { color: var(--rune-teal); font-size: 1.1rem; }

.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--moonlight);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--rune-teal); }

/* ── hero ─────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -40% 0;
  height: 80%;
  background: radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.22), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
  color: var(--moonlight);
}

.hero-sub {
  color: var(--mist);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }

.hero-fineprint { color: rgba(255, 255, 255, 0.65); }

.hero-runes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-mascot {
  position: absolute;
  top: clamp(5rem, 13vh, 7.5rem);
  right: clamp(1rem, 5vw, 3.5rem);
  width: clamp(84px, 8vw, 130px);
  z-index: 2;
  pointer-events: none;
}

.hero-mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(8, 6, 26, 0.45)) drop-shadow(0 0 16px rgba(98, 72, 204, 0.28));
  animation: mascot-bob 5s ease-in-out infinite;
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

.rune {
  position: absolute;
  color: var(--spell-violet);
  opacity: 0.2;
  font-size: 1.4rem;
  animation: rune-drift 9s ease-in-out infinite alternate;
}

.rune:nth-child(1) { top: 16%; left: 6%;  font-size: 1.2rem; animation-delay: -1s; }
.rune:nth-child(2) { top: 68%; left: 4%;  font-size: 2rem;   animation-delay: -3s; color: var(--rune-teal); }
.rune:nth-child(3) { top: 24%; left: 46%; font-size: 1rem;   animation-delay: -5s; }
.rune:nth-child(4) { top: 80%; left: 55%; font-size: 1.5rem; animation-delay: -2s; }
.rune:nth-child(5) { top: 10%; right: 8%; font-size: 1.3rem; animation-delay: -6s; color: var(--spell-magenta); }
.rune:nth-child(6) { top: 74%; right: 5%; font-size: 1.8rem; animation-delay: -4s; }

@keyframes rune-drift {
  from { transform: translateY(-8px) rotate(-4deg); }
  to   { transform: translateY(10px) rotate(5deg); }
}

/* ── conjure demo (signature) ─────────────────── */

.conjure { display: grid; gap: 1rem; }

.terminal {
  background: rgba(8, 16, 45, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.terminal-bar, .browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.t-dot, .b-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.terminal-bar .t-dot:first-child { background: rgba(168, 63, 187, 0.5); }

.terminal-title, .browser-url { color: rgba(255, 255, 255, 0.5); margin-left: 0.4rem; font-size: 0.72rem; }

.terminal-body {
  padding: 1rem 1.1rem 1.2rem;
  /* fixed height: fits a two-line prompt plus all four status lines,
     so the box never resizes while the demo types and resets */
  height: 178px;
  overflow: hidden;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.prompt-mark { color: var(--spell-magenta); font-weight: 600; }

.caret {
  display: inline-block;
  width: 8px; height: 1.05em;
  vertical-align: text-bottom;
  background: var(--rune-teal);
  opacity: 0.8;
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.terminal-status { margin-top: 0.6rem; }

.terminal-status .status-line {
  color: var(--rune-teal);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 0.76rem;
  line-height: 1.7;
}

.terminal-status .status-line.on { opacity: 0.9; transform: none; }

/* the conjured mini-site */

.demo-browser {
  --demo-accent: var(--rune-teal);
  background: rgba(8, 16, 45, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(42, 154, 133, 0.05);
  overflow: hidden;
  transition: box-shadow 0.6s ease;
}

.demo-browser.aglow { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 50px rgba(42, 154, 133, 0.14); }

.demo-site { padding: 1.1rem; display: grid; gap: 0.8rem; min-height: 240px; }

.d-block {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
}

.d-block.materialized { opacity: 1; transform: none; filter: none; }

.d-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.d-logo {
  width: 34px; height: 9px;
  border-radius: 4px;
  background: var(--demo-accent);
  box-shadow: 0 0 8px var(--demo-accent);
}

.d-navlinks { display: flex; gap: 0.45rem; }
.d-navlinks i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }

.d-hero {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  padding: 1.3rem 1rem;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(98, 72, 204, 0.08), rgba(42, 154, 133, 0.04));
}

.d-line { display: block; height: 8px; border-radius: 4px; background: rgba(192, 196, 204, 0.25); }
.d-line-lg { width: 62%; height: 11px; background: rgba(192, 196, 204, 0.4); }
.d-line-md { width: 44%; }
.d-line-sm { width: 30%; height: 6px; background: var(--line); }

.d-btn {
  display: block;
  width: 74px; height: 20px;
  border-radius: 10px;
  background: var(--demo-accent);
  box-shadow: 0 0 10px var(--demo-accent);
  margin-top: 0.2rem;
}

.d-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }

.d-card {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(192, 196, 204, 0.03);
}

.d-footer { display: grid; justify-items: center; padding-top: 0.2rem; }

/* ── sections ─────────────────────────────────── */

.section { position: relative; padding: var(--section-pad) 1.5rem; }

.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-familiars {
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.10) 20%, rgba(99, 102, 241, 0.10) 80%, transparent);
}

/* ── feature cards ────────────────────────────── */

.feature-grid, .familiar-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-grid { grid-template-columns: repeat(3, 1fr); }
.familiar-grid { grid-template-columns: repeat(4, 1fr); }

.feature-card, .familiar-card {
  min-width: 0; /* let cards shrink below the nowrap spell-line's width */
  background: rgba(8, 18, 52, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover, .familiar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 154, 133, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 0 22px rgba(42, 154, 133, 0.06);
}

.feature-card h3, .familiar-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--moonlight);
}

.feature-card p, .familiar-card p { color: var(--mist); font-size: 0.95rem; }

.feature-glyph {
  font-size: 1.5rem;
  color: var(--rune-teal);
  margin-bottom: 0.9rem;
  text-shadow: 0 0 14px rgba(42, 154, 133, 0.4);
}

.spell-line {
  margin: 1.1rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(10, 14, 40, 0.9);
  border: 1px solid var(--line);
  color: var(--rune-teal) !important;
  font-size: 0.72rem !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-time { color: var(--spell-magenta); }

/* ── onboarding (start.html) ──────────────────── */

.onboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.onboard-card {
  min-width: 0;
  text-align: left;
  cursor: pointer;
  background: rgba(10, 16, 50, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.4rem;
  font-family: var(--font-body);
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.onboard-card:hover, .onboard-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(42, 154, 133, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 0 22px rgba(42, 154, 133, 0.06);
}

.onboard-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.onboard-card p { color: var(--mist); font-size: 0.95rem; margin-bottom: 0; }

.onboard-panel { margin-bottom: 1.6rem; }

.onboard-form { padding: 1.1rem 1.3rem 1.3rem; }

.field-label {
  display: block;
  color: var(--mist);
  margin-bottom: 0.6rem;
}

.field {
  display: block;
  width: 100%;
  background: rgba(8, 12, 38, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  color: var(--moonlight);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field::placeholder { color: var(--mist); opacity: 0.7; }

.field:focus {
  outline: none;
  border-color: var(--rune-teal);
  box-shadow: 0 0 18px rgba(42, 154, 133, 0.2);
}

.onboard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-back {
  background: none;
  border: none;
  padding: 0;
  color: var(--mist);
  cursor: pointer;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.btn-back:hover { color: var(--rune-teal); }

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn[disabled]:hover { transform: none; }

.onboard-result {
  min-height: 1.2em;
  margin-top: 1rem;
  color: var(--rune-teal);
}

/* ── familiar sigils ──────────────────────────── */

.sigil { width: 64px; height: 64px; margin-bottom: 1rem; }

.sigil svg {
  width: 100%; height: 100%;
  stroke: var(--rune-teal);
  stroke-width: 2;
  fill: var(--rune-teal);
  filter: drop-shadow(0 0 6px rgba(42, 154, 133, 0.35));
}

.sigil svg [fill="none"] { fill: none; }

.sigil-ring {
  fill: none;
  stroke: var(--spell-violet);
  stroke-dasharray: 6 8;
  transform-origin: 50% 50%;
  animation: sigil-spin 22s linear infinite;
}

@keyframes sigil-spin { to { transform: rotate(360deg); } }

/* ── ritual loop ──────────────────────────────── */

.ritual-loop {
  margin-top: 3.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  background: rgba(8, 12, 40, 0.72);
}

.ritual-label {
  color: var(--spell-magenta);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  margin-bottom: 1.4rem;
}

.ritual-steps {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ritual-steps li { display: grid; gap: 0.15rem; }

.ritual-steps li strong { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--moonlight); }

.ritual-steps li span:last-child { color: var(--mist); font-size: 0.8rem; }

.ritual-glyph { color: var(--rune-teal); font-size: 1.2rem; text-shadow: 0 0 10px rgba(42, 154, 133, 0.4); }

.ritual-arrow { color: var(--spell-violet); font-size: 1.2rem; }

/* ── split tests ──────────────────────────────── */

.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: var(--mist);
}

.split-list li { padding-left: 1.6rem; position: relative; }

.split-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--rune-teal);
}

.ab-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: end;
}

.ab-card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  padding: 2rem 1.2rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 18, 52, 0.88);
}

.ab-a { opacity: 0.55; transform: scale(0.94); }

.ab-b {
  border-color: rgba(42, 154, 133, 0.45);
  box-shadow: 0 0 30px rgba(42, 154, 133, 0.1);
  animation: winner-pulse 3.2s ease-in-out infinite;
}

@keyframes winner-pulse {
  0%, 100% { box-shadow: 0 0 22px rgba(42, 154, 133, 0.08); }
  50%      { box-shadow: 0 0 40px rgba(42, 154, 133, 0.2); }
}

.ab-tag {
  position: absolute;
  top: 0.7rem; left: 0.9rem;
  color: var(--mist);
  font-size: 0.68rem;
}

.ab-b .ab-tag { color: var(--rune-teal); }

.ab-crown {
  position: absolute;
  top: -1.3rem;
  font-size: 1.5rem;
  color: var(--rune-teal);
  text-shadow: 0 0 14px rgba(42, 154, 133, 0.6);
  animation: rune-drift 5s ease-in-out infinite alternate;
}

.ab-stat { margin-top: 0.7rem; color: var(--mist); font-size: 0.7rem; }

.ab-b .ab-stat { color: var(--rune-teal); }

.ab-card .d-line, .ab-card .d-btn { opacity: 1; }

.ab-b .d-btn { background: var(--spell-magenta); box-shadow: 0 0 10px var(--spell-magenta); }

/* ── comparison ───────────────────────────────── */

.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }

.compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: rgba(8, 14, 46, 0.82);
  font-size: 0.95rem;
}

.compare th, .compare td {
  padding: 0.95rem 1.2rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }

.compare thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mist);
  letter-spacing: 0.04em;
}

.compare tbody th {
  text-align: left;
  font-weight: 400;
  color: var(--moonlight);
  max-width: 30ch;
}

.compare .col-us {
  background: rgba(42, 154, 133, 0.06);
  color: var(--rune-teal);
}

.compare thead .col-us { color: var(--rune-teal); }

.compare .yes { color: var(--rune-teal); text-shadow: 0 0 10px rgba(42, 154, 133, 0.5); font-size: 1.05rem; }
.compare .them { color: var(--mist); font-style: italic; opacity: 0.75; }

.compare-price td, .compare-price th { font-weight: 600; }

.compare-note { color: var(--mist); opacity: 0.7; margin-top: 1rem; font-size: 0.72rem; }

/* ── pricing ──────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  background: rgba(6, 14, 44, 0.96);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--hologram);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.price-plan { color: var(--mist); letter-spacing: 0.3em; font-size: 0.72rem; }

.price-amount {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  margin: 0.2em 0 0.5em;
}

.price-per { font-size: 1rem; font-weight: 400; color: var(--mist); margin-left: 0.3rem; }

.price-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2rem;
  color: var(--mist);
  font-size: 0.95rem;
}

.price-list li { padding-left: 1.5rem; position: relative; }

.price-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--rune-teal);
}

.price-list strong { color: var(--moonlight); }

.price-fine { text-align: center; color: var(--mist); margin: 0.9rem 0 0; opacity: 0.8; }

.token-ledger {
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(6, 14, 44, 0.94);
}

.ledger-title { color: var(--rune-teal); font-size: 0.9rem; margin-bottom: 0.4rem; }

.ledger-sub { color: var(--mist); font-size: 0.95rem; }

.ledger { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }

.ledger td {
  padding: 0.6rem 0.2rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--moonlight);
}

.ledger .ledger-cost { text-align: right; color: var(--rune-teal); white-space: nowrap; }

.ledger tfoot td { border-bottom: none; color: var(--spell-magenta); font-weight: 600; }
.ledger tfoot .ledger-cost { color: var(--spell-magenta); }

.ledger-note { color: var(--mist); font-size: 0.85rem; margin: 0; }

/* ── final cta ────────────────────────────────── */

.section-final { text-align: center; overflow: hidden; }

.final-inner { position: relative; padding: 3rem 0; }

.final-inner .section-title, .final-inner .section-sub { margin-left: auto; margin-right: auto; }

.final-glow {
  position: absolute;
  inset: -20% -30%;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse at 70% 40%, rgba(20, 184, 166, 0.16), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.section-final .hero-fineprint { margin-top: 1.4rem; }

/* ── footer ───────────────────────────────────── */

.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); }

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 1.5rem; margin-left: auto; }

.footer-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.85rem; }

.footer-links a:hover { color: var(--rune-teal); }

.footer-dogfood {
  width: 100%;
  color: var(--rune-teal);
  margin: 0 0 0.4rem;
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.55rem;
  vertical-align: 1px;
  background: var(--rune-teal);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px rgba(42, 154, 133, 0.5); opacity: 0.7; }
  50%      { box-shadow: 0 0 10px rgba(42, 154, 133, 0.9); opacity: 1; }
}

.footer-note { width: 100%; color: var(--mist); opacity: 0.55; margin: 0; }

/* ── agencies page ────────────────────────────── */

.roster {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 50, 0.96);
  padding: 1.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.roster-title { color: var(--rune-teal); margin-bottom: 1rem; }

.roster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.roster-card {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 18, 60, 0.70);
}

.roster-name {
  color: var(--moonlight);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-status { color: var(--rune-teal); font-size: 0.68rem; }

.roster-more {
  align-content: center;
  border-style: dashed;
  background: none;
}

.roster-more .roster-status { color: var(--mist); }

.capacity-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  background: rgba(8, 12, 40, 0.72);
}

.capacity-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.2rem;
  margin: 1.2rem 0 1.4rem;
}

.capacity-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--moonlight);
  font-size: 0.95rem;
}

.capacity-note { color: var(--mist); font-style: italic; margin: 0; }

.queue {
  display: grid;
  gap: 0.8rem;
}

.queue-title { color: var(--spell-magenta); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; }

.queue-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 16, 52, 0.72);
  padding: 0.9rem 1rem;
}

.queue-req { color: var(--moonlight); font-size: 0.74rem; line-height: 1.6; margin-bottom: 0.7rem; }

.queue-actions { display: flex; gap: 0.6rem; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.chip-yes { color: var(--rune-teal); border-color: rgba(42, 154, 133, 0.4); }
.chip-no { color: var(--mist); }
.chip-done { color: var(--void); background: var(--rune-teal); border-color: var(--rune-teal); }

.queue-approved { border-color: rgba(42, 154, 133, 0.3); }

.report {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 50, 0.92);
  padding: 1.8rem 1.8rem 1.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.report-logo {
  color: var(--void);
  background: var(--hologram);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}

.report-date { color: var(--mist); font-size: 0.7rem; }

.report-client {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.report-foot { color: var(--mist); opacity: 0.7; font-size: 0.66rem; margin: 1rem 0 0; }

/* ── page entrance (home) ─────────────────────── */
/* .entrance-pending is set synchronously in the head by JS (never for
   reduced motion, never without JS), so nothing can stay hidden */

.entrance-pending .nav { opacity: 0; }

.entrance-pending .hero-copy > *,
.entrance-pending .conjure,
.entrance-pending .hero-runes {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(9px);
}

.entrance-pending .hero-mascot {
  opacity: 0;
  transform: translateY(16px) scale(0.75);
  filter: blur(10px);
}

.entrance-in .nav {
  opacity: 1;
  transition: opacity 0.7s ease 0.1s, background-color 0.3s ease, box-shadow 0.3s ease;
}

.entrance-in .hero-copy > *,
.entrance-in .conjure,
.entrance-in .hero-runes {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
}

.entrance-in .hero-copy > .eyebrow { transition-delay: 0.05s; }
.entrance-in .hero-copy > .hero-title { transition-delay: 0.14s; }
.entrance-in .hero-copy > .hero-sub { transition-delay: 0.24s; }
.entrance-in .hero-copy > .hero-ctas { transition-delay: 0.34s; }
.entrance-in .hero-copy > .hero-fineprint { transition-delay: 0.4s; }
.entrance-in .conjure { transition-delay: 0.5s; }
.entrance-in .hero-runes { transition-delay: 0.7s; }

/* the runes keep their own opacity once revealed */
.entrance-in .hero-runes { opacity: 1; }

/* the mascot pops in right as the shooting star's burst lands */
.entrance-in .hero-mascot {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1), filter 0.6s ease;
  transition-delay: 0.75s;
}

/* ── scroll reveals ───────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed { opacity: 1; transform: none; }

/* stagger siblings inside grids */
.feature-grid .reveal.revealed:nth-child(2), .familiar-grid .reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .reveal.revealed:nth-child(3), .familiar-grid .reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.familiar-grid .reveal.revealed:nth-child(4) { transition-delay: 0.3s; }

/* ── responsive ───────────────────────────────── */

@media (max-width: 1000px) {
  .familiar-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .conjure { max-width: 560px; }
  .hero { min-height: 0; padding-top: 8rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-mascot { display: none; }
}

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
  .split-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .onboard-grid { grid-template-columns: 1fr; }
  .ritual-steps { flex-direction: column; align-items: flex-start; }
  .ritual-arrow { transform: rotate(90deg); margin-left: 0.3rem; }
  .footer-links { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: hidden;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .footer-links a {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .familiar-grid { grid-template-columns: 1fr; }
  .ab-stage { grid-template-columns: 1fr; }
  .ab-a { display: none; }
  /* narrow screens wrap the prompt to three lines */
  .terminal-body { height: 210px; }
}

/* ── reduced motion ───────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #starfield { display: none; }

  .reveal { opacity: 1; transform: none; }

  .d-block { opacity: 1; transform: none; filter: none; }

  .caret { animation: none; }
}
