/* ===========================================================
   Design tokens
   Theme follows the visitor's system preference only
   (prefers-color-scheme). There is no manual override.
   =========================================================== */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --surface-hover: #f2f4fa;
  --surface-sunken: #eef1f8;

  --border: #e3e7f1;
  --border-strong: #cdd4e6;

  --text: #0b1020;
  --text-muted: #4c5468;
  --text-faint: #838da3;

  --primary: #3457ec;
  --primary-strong: #2a45c4;
  --primary-soft: rgba(52, 87, 236, 0.1);
  --secondary: #8b5cf6;
  --secondary-soft: rgba(139, 92, 246, 0.12);

  --gradient-brand: linear-gradient(135deg, #3457ec 0%, #8b5cf6 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(52, 87, 236, 0.1), rgba(139, 92, 246, 0.1));

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);

  --nav-sheen: rgba(255, 255, 255, 0.55);
  --nav-bg-mix: 72%;
  --glass-bg-mix: 80%;

  --wash-a: rgba(52, 87, 236, 0.13);
  --wash-b: rgba(139, 92, 246, 0.11);

  --spectrum-blue: #3457ec;
  --spectrum-cyan: #22d3ee;
  --spectrum-indigo: #6366f1;
  --spectrum-violet: #8b5cf6;
  --spectrum-glint: #e879f9;

  --focus-ring: #3457ec;

  --success: #157a4d;
  --success-soft: rgba(21, 122, 77, 0.1);
  --success-border: rgba(21, 122, 77, 0.3);
  --warning: #be123c;
  --warning-soft: rgba(190, 18, 60, 0.1);
  --warning-border: rgba(190, 18, 60, 0.3);
  --error: #d3283f;
  --error-soft: rgba(211, 40, 63, 0.1);
  --error-border: rgba(211, 40, 63, 0.3);

  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1120px;
  --nav-max-width: 1040px;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #0a0e17;
    --bg-alt: #0d1220;
    --surface: #121828;
    --surface-hover: #182036;
    --surface-sunken: #0c1120;

    --border: #232c42;
    --border-strong: #2f3a56;

    --text: #edf0f8;
    --text-muted: #a6afc7;
    --text-faint: #717d9a;

    --primary: #7691ff;
    --primary-strong: #93a9ff;
    --primary-soft: rgba(118, 145, 255, 0.16);
    --secondary: #b198fb;
    --secondary-soft: rgba(177, 152, 251, 0.18);

    --gradient-brand: linear-gradient(135deg, #7691ff 0%, #b198fb 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(118, 145, 255, 0.16), rgba(177, 152, 251, 0.16));

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.48);

    --nav-sheen: rgba(255, 255, 255, 0.06);
    --nav-bg-mix: 60%;
    --glass-bg-mix: 66%;

    --wash-a: rgba(118, 145, 255, 0.2);
    --wash-b: rgba(177, 152, 251, 0.16);

    --spectrum-blue: #7691ff;
    --spectrum-cyan: #67e8f9;
    --spectrum-indigo: #818cf8;
    --spectrum-violet: #b198fb;
    --spectrum-glint: #f0abfc;

    --focus-ring: #93a9ff;

    --success: #4fd393;
    --success-soft: rgba(79, 211, 147, 0.14);
    --success-border: rgba(79, 211, 147, 0.32);
    --warning: #fb7185;
    --warning-soft: rgba(251, 113, 133, 0.14);
    --warning-border: rgba(251, 113, 133, 0.32);
    --error: #f47182;
    --error-soft: rgba(244, 113, 130, 0.14);
    --error-border: rgba(244, 113, 130, 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 8px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5.5rem 0;
}

@media (max-width: 640px) {
  section {
    padding: 3.5rem 0;
  }
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 650;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Eyebrow badge — reserved for the hero only ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

/* ---------- Scene marker — section divider used everywhere else ---------- */

.scene-marker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scene-marker-index {
  color: var(--primary);
}

.scene-marker-line {
  width: 1.75rem;
  height: 1px;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.4rem;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-strong);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

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

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-small {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-small:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-small.danger:hover {
  border-color: var(--error);
  color: var(--error);
}

/* ---------- Floating nav ---------- */

/* Unscrolled: a flush, full-width bar that reads as part of the page. Scrolling past a few pixels
   adds .is-scrolled (toggled in nav.js), morphing it into the floating glass pill. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  z-index: 50;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  backdrop-filter: blur(0px) saturate(100%);
  transition: top 0.35s ease, width 0.35s ease, max-width 0.35s ease, border-radius 0.35s ease,
    border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  top: 1rem;
  width: calc(100% - 2rem);
  max-width: var(--nav-max-width);
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--border-strong) 65%, transparent);
  background: color-mix(in srgb, var(--surface) var(--nav-bg-mix), transparent);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--nav-sheen);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: var(--surface);
  }
}

.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
  padding: 0 1.5rem;
  transition: max-width 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled .wrap {
  max-width: none;
  padding: 0 1rem 0 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--gradient-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--primary-strong);
  box-shadow: var(--shadow-md);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .site-header.is-scrolled {
    top: 0.7rem;
    width: calc(100% - 1.25rem);
  }

  .site-header .wrap {
    height: 54px;
    padding: 0 1rem;
  }

  .site-header.is-scrolled .wrap {
    padding: 0 0.75rem 0 0.9rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 4.35rem;
    left: 0.65rem;
    right: 0.65rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 49;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0.9rem;
    border-radius: 9px;
    font-size: 0.98rem;
  }

  .nav-links a:hover {
    background: var(--surface-hover);
  }
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }
}

#main {
  padding-top: 5.5rem;
}

@media (max-width: 760px) {
  #main {
    padding-top: 4.75rem;
  }
}

#workflow,
#demo,
#audience,
#faq,
#waitlist-section,
#waitlist {
  scroll-margin-top: 6rem;
}

/* Contains each glass-stage wash so it can never bleed into a neighbouring
   section — sections above/below often have a different background colour. */
#demo,
#waitlist-section {
  position: relative;
  overflow: hidden;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.hero .wrap {
  display: grid;
  gap: 1.75rem;
  max-width: 760px;
}

.hero-lede {
  font-size: 1.2rem;
  max-width: 52ch;
}

.headline-word {
  display: inline-block;
  min-width: 9ch;
  transition: opacity 0.35s ease;
}

.headline-word.is-fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .headline-word {
    min-width: 0;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.btn-primary.btn-lg,
.btn-ghost.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
}

.hero-waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  max-width: 380px;
  margin-top: 1.75rem;
}

.hero-waveform span {
  flex: 1;
  background: var(--primary);
  opacity: 0.3;
  border-radius: 1px;
  min-width: 2px;
}

.hero-waveform-caption {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Section shared ---------- */

.section-head {
  max-width: 60ch;
  margin-bottom: 3rem;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Problem ---------- */

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) {
  .problem-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.problem-intro h2 {
  margin-bottom: 0;
}

.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}

.problem-list li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}

.problem-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.problem-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.problem-list h3 {
  margin-bottom: 0.4rem;
}

.problem-list p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Workflow ---------- */

.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  padding-top: 2.25rem;
}

.workflow-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-strong);
}

.workflow-step {
  position: relative;
  padding-top: 1.5rem;
}

.workflow-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--bg);
}

.section-alt .workflow-step::before {
  box-shadow: 0 0 0 4px var(--bg-alt);
}

.workflow-step h3 {
  margin-bottom: 0.4rem;
}

.workflow-step p {
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 820px) {
  .workflow-track {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0.5rem;
  }

  .workflow-track::before {
    top: 0;
    bottom: 0;
    left: 4px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .workflow-step {
    padding-top: 0;
    padding-left: 1.75rem;
    padding-bottom: 2rem;
  }

  .workflow-step::before {
    top: 6px;
    left: -1px;
  }

  .workflow-step:last-child {
    padding-bottom: 0;
  }
}

/* ---------- Glass stage — the frosted-glass treatment, used only for the
   demo shell and the waitlist panel. Each sits on its own soft brand wash
   so the blur has something to refract. ---------- */

.glass-stage {
  position: relative;
  isolation: isolate;
}

.glass-stage::before {
  content: "";
  position: absolute;
  inset: -28px -22px;
  background: radial-gradient(60% 70% at 20% 15%, var(--wash-a), transparent 70%),
    radial-gradient(55% 65% at 85% 90%, var(--wash-b), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 640px) {
  .glass-stage::before {
    inset: -16px -12px;
  }
}

/* ---------- Reflective border — a reusable, restrained accent. A ~1px hairline ring with a narrow
   spectral gleam that sweeps back and forth over a long, calm cycle. Applied to only three surfaces
   sitewide: the demo workspace, the selected Profile card, and the waitlist panel. Each host keeps its
   own conventional border as the structural fallback; this overlay is additive and never removes it. ---------- */

.reflective-border {
  position: relative;
}

@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .reflective-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
      115deg,
      color-mix(in srgb, var(--border-strong) 70%, transparent) 0%,
      var(--spectrum-blue) 16%,
      var(--spectrum-cyan) 28%,
      var(--spectrum-indigo) 40%,
      var(--spectrum-violet) 50%,
      var(--spectrum-glint) 55%,
      var(--spectrum-violet) 60%,
      var(--spectrum-indigo) 72%,
      color-mix(in srgb, var(--border-strong) 70%, transparent) 85%,
      color-mix(in srgb, var(--border-strong) 70%, transparent) 100%
    );
    background-size: 280% 280%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.85;
    animation: reflective-sweep 13s ease-in-out infinite;
    animation-play-state: paused;
    pointer-events: none;
  }

  .reflective-border.in-view::before {
    animation-play-state: running;
  }
}

@keyframes reflective-sweep {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ---------- Interactive demo ---------- */

/* Static teaser shown inline on the page — opens the demo dialog, never reflows itself. */

.demo-teaser {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding: 1.75rem;
  background: color-mix(in srgb, var(--surface) var(--glass-bg-mix), transparent);
  border: 1px solid color-mix(in srgb, var(--border-strong) 55%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--nav-sheen);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .demo-teaser {
    background: var(--surface);
  }
}

.demo-teaser-strip {
  display: flex;
  gap: 0.6rem;
  width: 260px;
  flex-shrink: 0;
}

.demo-teaser-strip .demo-thumb {
  flex: 1;
  margin-bottom: 0;
}

.demo-teaser-copy {
  flex: 1;
  min-width: 240px;
}

.demo-teaser-copy h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
}

.demo-teaser-copy p {
  margin: 0 0 1.1rem;
  max-width: 46ch;
  font-size: 0.92rem;
}

.demo-teaser-note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .demo-teaser {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }

  .demo-teaser-strip {
    width: 100%;
  }
}

.demo-shell {
  background: color-mix(in srgb, var(--surface) var(--glass-bg-mix), transparent);
  border: 1px solid color-mix(in srgb, var(--border-strong) 55%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--nav-sheen);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  overflow: hidden;
  position: relative;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .demo-shell {
    background: var(--surface);
  }
}

.demo-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-alt) 82%, transparent);
  flex-wrap: wrap;
}

.demo-titlebar .demo-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.demo-titlebar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.demo-reset {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.3rem 0.5rem;
}

.demo-reset:hover {
  color: var(--primary);
}

.demo-titlebar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.demo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.demo-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.demo-body {
  padding: 1.75rem;
}

@media (max-width: 640px) {
  .demo-body {
    padding: 1.25rem;
  }
}

/* ---------- Demo dialog — the demo-shell surface, shown as a native <dialog>. Display-affecting
   rules are scoped to :modal so they never fight the browser's own open/closed toggling. ---------- */

.demo-dialog {
  padding: 0;
  width: min(720px, 92vw);
  max-height: min(88vh, 800px);
}

.demo-dialog:modal {
  /* .demo-shell sets position:relative (for the reflective-border pseudo-element); restore the
     native centered fixed positioning a modal <dialog> needs, which that would otherwise override. */
  position: fixed;
  inset: 0;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.demo-dialog .demo-titlebar {
  flex-shrink: 0;
}

.demo-dialog .demo-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.demo-dialog::backdrop {
  background: rgba(8, 10, 18, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

body.demo-open {
  overflow: hidden;
}

.demo-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  flex: 1;
  min-width: 140px;
}

.demo-waveform span {
  flex: 1;
  background: var(--primary);
  opacity: 0.5;
  border-radius: 2px;
  min-width: 2px;
}

.demo-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

[data-demo-step] h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
}

.demo-step-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 52ch;
}

/* ---------- Step 1: Profile picker ---------- */

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

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

.profile-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  text-align: left;
}

.profile-card:hover {
  border-color: var(--border-strong);
}

.profile-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.profile-card[aria-checked="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.profile-card h4 {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 650;
  margin: 0 0 0.3rem;
  color: var(--text);
}

.profile-card p {
  font-size: 0.82rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.profile-preview {
  margin-bottom: 0.7rem;
}

/* ---------- Step 2: prepared voiceover ---------- */

.demo-project-card {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.demo-project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.demo-project-head strong {
  font-size: 0.98rem;
  color: var(--text);
}

.demo-project-profile {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  white-space: nowrap;
}

.demo-project-facts {
  display: flex;
  gap: 1.5rem;
  margin: 0 0 0.9rem;
  flex-wrap: wrap;
}

.demo-project-facts dt {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}

.demo-project-facts dd {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.demo-narration-preview {
  margin: 0.9rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--border-strong);
  font-size: 0.9rem;
  color: var(--text);
  font-style: italic;
}

/* ---------- Steps 3 & 4: processing ---------- */

.demo-processing {
  margin-bottom: 1.25rem;
}

.demo-processing-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-sunken);
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.demo-processing-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: var(--gradient-brand);
  animation: demo-processing-sweep 1.1s ease-in-out infinite;
}

@keyframes demo-processing-sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

.demo-processing-message {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 550;
}

.demo-gen-progress {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

/* ---------- Scene chips (planning step — text only, no visuals yet) ---------- */

.demo-track-wrap {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 0 -0.25rem;
  min-width: 0;
}

.demo-track {
  display: flex;
  gap: 0.9rem;
  padding: 0.25rem;
  min-width: min-content;
}

.demo-plan-chip {
  flex: 0 0 auto;
  width: 168px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  opacity: 0;
  transform: translateY(6px);
  animation: demo-chip-in 0.28s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

@media (prefers-reduced-motion: reduce) {
  .demo-plan-chip {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@keyframes demo-chip-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.demo-chip-time {
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.demo-chip-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.3rem;
  display: block;
  line-height: 1.35;
}

/* ---------- Scene thumbnails — shared motif + per-Profile treatment ---------- */

.demo-thumb {
  --motif-bg: var(--surface-sunken);
  --motif-shape: var(--text-faint);
  --motif-accent: var(--primary);
  --motif-line: var(--border-strong);
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: var(--motif-bg);
}

.demo-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.demo-thumb svg .motif-bg {
  fill: var(--motif-bg);
}

.demo-thumb svg .motif-shape,
.demo-thumb svg .motif-line-fill {
  fill: var(--motif-shape);
}

.demo-thumb svg .motif-accent {
  fill: var(--motif-accent);
}

.demo-thumb svg .motif-accent-stroke {
  stroke: var(--motif-accent);
}

.demo-thumb svg .motif-line {
  stroke: var(--motif-line);
}

.demo-thumb svg .motif-dot {
  fill: var(--motif-accent);
}

.demo-thumb-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--primary) 22%, transparent) 50%, transparent 70%);
  background-size: 220% 100%;
  opacity: 0;
}

[data-gen-state="generating"] .demo-thumb-shimmer {
  opacity: 1;
  animation: demo-thumb-shimmer 1.1s ease-in-out infinite;
}

@keyframes demo-thumb-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -20% 0;
  }
}

/* Profile A — Illustrated Documentary: flat fills, no gradients, bold outline */
[data-profile="illustrated"] .demo-thumb {
  --motif-bg: color-mix(in srgb, var(--primary) 14%, var(--surface));
  --motif-shape: var(--secondary);
  --motif-accent: var(--primary);
  --motif-line: var(--text);
}
[data-profile="illustrated"] .demo-thumb svg .motif-line {
  stroke-width: 2.5;
}

/* Profile B — Cinematic Documentary: photographic gradient, vignette, faint grain */
[data-profile="cinematic"] .demo-thumb {
  background: radial-gradient(
    130% 130% at 25% 15%,
    color-mix(in srgb, var(--primary) 38%, var(--bg)),
    color-mix(in srgb, var(--text) 78%, var(--bg)) 92%
  );
  --motif-shape: color-mix(in srgb, var(--bg) 70%, var(--text) 30%);
  --motif-accent: var(--secondary);
  --motif-line: color-mix(in srgb, var(--bg) 55%, transparent);
}
[data-profile="cinematic"] .demo-thumb svg .motif-bg {
  fill: transparent;
}
[data-profile="cinematic"] .demo-thumb svg {
  opacity: 0.94;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}
[data-profile="cinematic"] .demo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.45;
  pointer-events: none;
}

/* Profile C — Archival Investigation: desaturated, halftone texture, document corner */
[data-profile="archival"] .demo-thumb {
  --motif-bg: var(--surface);
  --motif-shape: var(--text-muted);
  --motif-accent: var(--text-faint);
  --motif-line: var(--border-strong);
  border: 1px solid var(--border-strong);
}
[data-profile="archival"] .demo-thumb svg {
  filter: grayscale(0.8) contrast(1.05);
}
[data-profile="archival"] .demo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text-faint) 55%, transparent) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.3;
  pointer-events: none;
}
[data-profile="archival"] .demo-thumb::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--text-faint);
  border-right: 1px solid var(--text-faint);
  opacity: 0.7;
  z-index: 1;
}

/* Profile D — Clean 3D Explainer: soft shadow, isometric tint, faint grid */
[data-profile="3d"] .demo-thumb {
  --motif-bg: var(--surface);
  --motif-shape: var(--primary);
  --motif-accent: var(--secondary);
  --motif-line: var(--border-strong);
  background-image: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 18px);
  background-color: var(--surface);
}
[data-profile="3d"] .demo-thumb svg {
  filter: drop-shadow(0 3px 4px rgba(15, 23, 42, 0.22));
  transform: scale(1.05);
}

/* ---------- Step 4: visual generation grid ---------- */

.demo-gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
}

.demo-gen-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.55rem;
}

.demo-gen-card .demo-thumb {
  margin-bottom: 0.45rem;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.demo-gen-card[data-gen-state="generating"] .demo-thumb,
.demo-gen-card[data-gen-state="complete"] .demo-thumb {
  opacity: 1;
}

.demo-gen-status {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text-faint);
  margin-top: 0.2rem;
}

.demo-gen-status::before {
  content: "Queued";
}

[data-gen-state="generating"] .demo-gen-status::before {
  content: "Generating…";
  color: var(--primary);
}

[data-gen-state="generating"] .demo-gen-status {
  color: var(--primary);
}

[data-gen-state="complete"] .demo-gen-status::before {
  content: "Complete";
}

[data-gen-state="complete"] .demo-gen-status {
  color: var(--success);
}

/* ---------- Step 5: timeline ---------- */

.demo-timeline-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.demo-timeline-track {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.demo-timeline-item {
  flex: 0 0 auto;
  width: 76px;
  border: 1px solid transparent;
  background: none;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
}

.demo-timeline-item .demo-thumb {
  border-radius: 6px;
  margin-bottom: 0;
}

.demo-timeline-item[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
  border-radius: 8px;
}

.demo-timeline-time {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-top: 0.25rem;
  text-align: center;
}

.demo-playhead {
  position: absolute;
  top: 0;
  bottom: 1.1rem;
  left: 0;
  width: 2px;
  background: var(--primary);
  opacity: 0.6;
  animation: demo-playhead-sweep 6s linear infinite;
  pointer-events: none;
}

@keyframes demo-playhead-sweep {
  0% {
    left: 0%;
  }
  100% {
    left: 98%;
  }
}

.demo-export-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 1.25rem;
}

.demo-detail-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--bg-alt);
}

.demo-detail-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.demo-detail-panel blockquote {
  margin: 0 0 0.9rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--border-strong);
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
}

.demo-direction-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}

.demo-detail-panel p {
  margin: 0 0 1rem;
}

.demo-detail-facts {
  display: flex;
  gap: 2rem;
  margin: 0;
  flex-wrap: wrap;
}

.demo-detail-facts dt {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}

.demo-detail-facts dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
}

[hidden] {
  display: none !important;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Audience ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 700px) {
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.audience-card {
  border-left: 2px solid var(--border-strong);
  padding-left: 1.4rem;
}

.audience-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.audience-card li {
  margin-bottom: 0.35rem;
}

.capability-block {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.capability-block h3 {
  margin-bottom: 1rem;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 560px) {
  .capability-list {
    grid-template-columns: 1fr;
  }
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0.55rem 0;
}

.capability-list .glyph-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* ---------- Waitlist ---------- */

.waitlist-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .waitlist-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.waitlist-copy p:last-child {
  margin-bottom: 0;
}

.waitlist-panel {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .waitlist-panel {
    padding: 1.5rem;
  }
}

.waitlist-layout .waitlist-panel {
  max-width: none;
  margin: 0;
  background: color-mix(in srgb, var(--surface) var(--glass-bg-mix), transparent);
  border: 1px solid color-mix(in srgb, var(--border-strong) 55%, transparent);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--nav-sheen);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .waitlist-layout .waitlist-panel {
    background: var(--surface);
  }
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-row .hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 0.35rem;
}

input[type="email"],
input[type="text"],
input[type="search"],
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus-visible,
select:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

input::placeholder {
  color: var(--text-faint);
}

input.field-invalid {
  border-color: var(--error);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.consent-row a {
  color: var(--primary);
}

.turnstile-slot {
  margin: 1rem 0;
  min-height: 65px;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.form-status.error {
  background: var(--error-soft);
  border: 1px solid var(--error-border);
  color: var(--error);
}

.usecase-step {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-strong);
}

.usecase-step[hidden] {
  display: none;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding-bottom: 1.25rem;
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ---------- Simple pages (privacy) ---------- */

.doc-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.doc-page h2 {
  margin-top: 2.5rem;
}

.doc-page ul {
  color: var(--text-muted);
}

.callout {
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  margin: 1.5rem 0;
}

/* ---------- Admin ---------- */

.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-card .value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .label {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-toolbar input[type="search"] {
  flex: 1;
  min-width: 200px;
}

table.subscriber-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.subscriber-table th,
.subscriber-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.subscriber-table th {
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.status-pill.active {
  background: var(--success-soft);
  color: var(--success);
}

.status-pill.unsubscribed {
  background: var(--surface-sunken);
  color: var(--text-faint);
}

.row-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-login-note {
  max-width: 480px;
  margin: 4rem auto;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .header-cta {
    transition-duration: 0.15s;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
