/* ==========================================================================
   VynAI - one-page marketing site
   Follows the VynAI design system (DESIGN.md): Signal Intelligence Dashboard.
   Every colour lives in the :root block below (dark, the default) and its
   light-theme override directly beneath it. Swap the brand there.
   ========================================================================== */

/* Self-hosted fonts (latin subsets, variable weight) - no third-party requests */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/Geist-400-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/GeistMono-400-500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/InstrumentSerif-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Design tokens (from DESIGN.md)
   ========================================================================== */

:root {
  /* dark mode - primary (default for everyone; light is opt-in below) */
  color-scheme: dark;
  --bg: #0D0F14;
  --surface: #161920;
  --surface-2: #1E2230;
  --border: #252830;
  --border-subtle: #1C1F28;

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #4B5563;

  --accent-green: #00E87A;
  --accent-green-subtle: rgba(0, 232, 122, 0.10);
  --accent-amber: #F59E0B;
  --accent-amber-subtle: rgba(245, 158, 11, 0.10);
  --accent-red: #EF4444;
  --accent-red-subtle: rgba(239, 68, 68, 0.10);
  --accent-blue: #3B82F6;

  --on-accent: #0D0F14; /* text on green buttons (dark mode) */

  /* type */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Geist", -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* radius scale */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
}

/* Light theme is opt-in via <html data-theme="light"> (DESIGN.md is dark-first).
   Not wired to prefers-color-scheme so every visitor gets the dark
   "Signal Intelligence" look the design system treats as primary. */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  /* #00E87A is too neon on white - emerald, darkened one step past the
     system's #059669 so 12px accent text and white-on-green buttons pass AA */
  --accent-green: #047857;
  --accent-green-subtle: rgba(5, 150, 105, 0.08);
  /* amber/red darkened for AA as text on their subtle backgrounds */
  --accent-amber: #B45309;
  --accent-amber-subtle: rgba(245, 158, 11, 0.12);
  --accent-red: #B91C1C;
  --accent-red-subtle: rgba(239, 68, 68, 0.08);

  --on-accent: #FFFFFF;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-wrap: balance;
}

h1 {
  /* display-xl: 52px cap */
  font-size: clamp(2.25rem, 3vw + 1.25rem, 3.25rem);
  line-height: 1.05;
}

h2 {
  /* display-md -> display-lg range: 26-36px */
  font-size: clamp(1.625rem, 1.5vw + 1rem, 2.25rem);
  line-height: 1.15;
  max-width: 24ch;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

section {
  padding-block: clamp(2.25rem, 5vw, 4.2rem);
}

.js .section-reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms ease, transform 300ms ease;
}

/* ==========================================================================
   Waveform - the single decoration motif (voice-first product)
   ========================================================================== */

.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.wave i {
  width: 2px;
  border-radius: 1px;
  background: var(--accent-green);
  animation: wave 2s ease-in-out infinite;
}

.wave i:nth-child(1) { height: 40%; }
.wave i:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.wave i:nth-child(3) { height: 60%; animation-delay: 0.35s; }
.wave i:nth-child(4) { height: 85%; animation-delay: 0.5s; }
.wave i:nth-child(5) { height: 45%; animation-delay: 0.65s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.8); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.8125rem 1.5rem;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 100ms cubic-bezier(0, 0, 0.2, 1), border-color 100ms cubic-bezier(0, 0, 0.2, 1), opacity 100ms cubic-bezier(0, 0, 0.2, 1);
}

.btn-primary {
  background: var(--accent-green); /* flat - no gradients, ever */
  color: var(--on-accent);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-row-center {
  justify-content: center;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo lockup: waveform mark (the product motif) + VynAI wordmark.
   The mark is inline SVG so it stays crisp at any size and recolours
   with the theme via currentColor. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  color: var(--accent-green);
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark-accent {
  color: var(--accent-green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 100ms cubic-bezier(0, 0, 0.2, 1);
}

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

/* One-page site, no hamburger: nav links fold away on narrow screens
   (every section stays reachable by scrolling and via the footer). */
@media (max-width: 47.99em) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 22.5em) {
  .header-inner .btn {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.hero-copy {
  max-width: 42rem;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero h1 {
  max-width: 32ch;
}

.hero-sub {
  max-width: 54ch;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  text-decoration: none;
  transition: color 150ms ease;
}

.ghost-link:hover {
  color: var(--accent-green);
}

.hero-card {
  background: rgba(13, 16, 20, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 24rem;
}

.call-frame {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.call-frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.call-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E7FFF0;
  background: rgba(93, 202, 165, 0.24);
  border: 1px solid rgba(93, 202, 165, 0.35);
}

.call-time {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.call-title {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.call-screen {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 12rem;
  padding: 1rem;
  border-radius: 2.3rem;
  background: linear-gradient(180deg, rgba(7, 12, 17, 0.98), rgba(10, 15, 22, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}

.call-screen-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.screen-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
}

.call-log {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.3rem;
}

.call-log-entry {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.4rem;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.call-log-response {
  background: rgba(15, 27, 31, 0.85);
  border-color: rgba(93, 202, 165, 0.14);
}

.call-person {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.call-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.call-waveform {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.35rem 0.25rem 0.15rem;
}

.call-waveform .bar {
  flex: 1 1 0;
  min-width: 0.25rem;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(93, 202, 165, 0.35);
  animation: wave-motion 1.1s ease-in-out infinite;
}

.call-waveform .bar:nth-child(1) { animation-delay: 0s; height: 40%; }
.call-waveform .bar:nth-child(2) { animation-delay: 0.1s; height: 70%; }
.call-waveform .bar:nth-child(3) { animation-delay: 0.15s; height: 55%; }
.call-waveform .bar:nth-child(4) { animation-delay: 0.2s; height: 85%; }
.call-waveform .bar:nth-child(5) { animation-delay: 0.25s; height: 60%; }
.call-waveform .bar:nth-child(6) { animation-delay: 0.35s; height: 45%; }
.call-waveform .bar:nth-child(7) { animation-delay: 0.45s; height: 75%; }
.waveform .bar:nth-child(7) { animation-delay: 0.45s; height: 75%; }

@keyframes wave-motion {
  0%, 100% { transform: scaleY(1); opacity: 0.76; }
  50% { transform: scaleY(1.9); opacity: 1; }
}

.caller-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.transcript {
  min-height: 3.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.99rem;
  line-height: 1.6;
}

.transcript-line {
  display: inline-block;
  color: var(--text-primary);
}

.transcript-line {
  display: inline-block;
}

.status-row {
  display: flex;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-amber {
  background: rgba(255, 167, 38, 0.12);
  color: #FFAA58;
  border: 1px solid rgba(255, 167, 38, 0.22);
}

.status-green {
  background: rgba(93, 202, 165, 0.18);
  color: var(--accent-green);
  border: 1px solid rgba(93, 202, 165, 0.28);
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1.55fr 1fr;
    align-items: center;
  }
}

@media (max-width: 50rem) {
  .hero-card {
    min-height: auto;
  }
}

/* ==========================================================================
   Problem
   ========================================================================== */

.problem {
  background: color-mix(in srgb, var(--surface) 45%, var(--bg));
  border-block: 1px solid var(--border-subtle);
}

.section-note {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.funnel {
  display: grid;
  gap: 1rem;
  margin-block: 1.5rem;
}

.funnel-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  height: 2.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  position: relative;
}

.funnel-segment {
  position: relative;
  min-width: 0;
  width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1;
  transition: width 1.2s ease-out;
}

.funnel-segment::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0.95;
}

.segment-1 { color: rgba(93, 202, 165, 0.96); }
.segment-2 { color: rgba(93, 202, 165, 0.55); }
.segment-3 { color: rgba(93, 202, 165, 0.3); }
.segment-4 { color: rgba(93, 202, 165, 0.14); }

.funnel-segment.active {
  width: var(--target);
}

.segment-value {
  position: relative;
  color: var(--text-primary);
  z-index: 1;
}

.funnel-labels-top,
.funnel-labels-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.funnel-labels-top {
  color: var(--text-primary);
}

.funnel-labels-bottom {
  color: var(--text-secondary);
}

.funnel-caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  max-width: 48rem;
}

.problem-closing {
  max-width: 52ch;
  font-size: 1.0625rem;
}

@media (max-width: 48rem) {
  .funnel-bars,
  .funnel-labels-top,
  .funnel-labels-bottom {
    grid-template-columns: 1fr;
  }

  .funnel-segment {
    min-height: 1.2rem;
  }

  .funnel-labels-top,
  .funnel-labels-bottom {
    gap: 0.75rem;
  }
}

@media (max-width: 45em) {
  .hero {
    padding-block: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-copy,
  .hero-card {
    width: 100%;
  }

  .hero-card {
    order: 2;
    padding: 1.4rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-sub {
    margin-bottom: 1rem;
  }

  .funnel {
    margin-block: 1.25rem;
  }

  .funnel-bars,
  .funnel-labels-top,
  .funnel-labels-bottom {
    gap: 0.75rem;
  }

  .funnel-segment {
    min-height: 1.5rem;
  }

  .funnel-caption {
    max-width: 100%;
  }

  .problem-closing {
    font-size: 1rem;
    max-width: 100%;
  }

  .results {
    padding-bottom: 1rem;
  }

  .result-card-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-link {
    margin-left: 0;
  }

  .result-card-bar .wave {
    margin-left: 0;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .table-scroll table {
    min-width: 100%;
  }

  .final-cta {
    padding-block: 1.75rem;
  }

  .final-cta-sub {
    margin-bottom: 1rem;
  }

  .about-grid {
    gap: 1.5rem;
  }

  .about-panel {
    padding: 1.5rem;
  }

  .steps {
    position: relative;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .steps::before {
    content: '';
    position: absolute;
    top: 0.85rem;
    left: 1.25rem;
    width: 1px;
    height: calc(100% - 1.5rem);
    background: rgba(255,255,255,0.08);
    z-index: 0;
  }

  .step {
    padding: 1.25rem 1rem;
  }

  .step:not(:first-child) {
    padding-top: 1.5rem;
  }

  .step::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(93, 202, 165, 0.22);
    z-index: 1;
  }

  .step .step-icon {
    margin-bottom: 0.75rem;
  }

  .step-num {
    margin-bottom: 0.85rem;
  }
}


/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 45em) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 0 1.5rem;
    position: relative;
  }

  .steps::before {
    content: '';
    position: absolute;
    top: 3.2rem;
    left: 6rem;
    right: 6rem;
    height: 1px;
    background: rgba(255,255,255,0.08);
    z-index: 0;
  }
}

.step {
  position: relative;
  padding: 2rem 1.25rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

@media (min-width: 45em) {
  .step {
    background: transparent;
    border: none;
    padding: 1.5rem 1rem 1rem;
    box-shadow: none;
  }


  .step .step-icon {
    margin-bottom: 1rem;
  }
}

.step:hover,
.step:focus-within {
  transform: translateY(-4px);
  border-color: rgba(93, 202, 165, 0.4);
  background: rgba(93, 202, 165, 0.08);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent-green);
  margin-bottom: 0.85rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 202, 165, 0.2);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.step-copy {
  display: grid;
  gap: 0.5rem;
}

.step-copy p:first-child {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.step-detail {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5rem;
  color: var(--text-secondary);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: opacity 180ms ease, max-height 180ms ease;
}

.step:hover .step-detail,
.step:focus-within .step-detail {
  opacity: 1;
  visibility: visible;
  max-height: 6rem;
  z-index: 1;
}

.step:hover,
.step:focus-within {
  z-index: 2;
}

@media (max-width: 45em) {
  .step {
    padding: 1.5rem;
  }

  .step-detail {
    opacity: 1;
    visibility: visible;
    height: auto;
  }
}

/* ==========================================================================
   Results table - the visual centrepiece
   ========================================================================== */

.results {
  background: color-mix(in srgb, var(--surface) 45%, var(--bg));
  border-block: 1px solid var(--border-subtle);
}

.results h2 {
  margin-inline: auto;
  text-align: center;
}

.result-card {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
}

.result-card-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.result-card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-card-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.result-card-bar .wave {
  margin-left: 0;
  flex-shrink: 0;
}

.download-link {
  margin-left: auto;
  color: var(--accent-green);
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.download-link:hover,
.download-link:focus {
  color: rgba(93, 202, 165, 0.95);
  border-color: var(--accent-green);
}

.table-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
}

.table-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  outline: none;
}

.filter-pill.active {
  background: var(--accent-green);
  color: var(--on-accent);
  border-color: transparent;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 34rem; /* forces horizontal scroll at 375px instead of squashing */
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

td {
  color: var(--text-secondary);
}

td:first-child {
  color: var(--text-primary);
}

th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

tbody tr + tr {
  border-top: 1px solid var(--border-subtle);
}

tbody tr {
  transition: background 180ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Status badges - per design system: 11px Geist 500, 3px 9px, radius 4px, dot */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-green {
  background: var(--accent-green-subtle);
  color: var(--accent-green);
}

.badge-amber {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber);
}

.badge-red {
  background: var(--accent-red-subtle);
  color: var(--accent-red);
}

.badge-muted {
  background: var(--surface-2);
  color: var(--text-secondary);
}

.table-caption {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
}

/* ==========================================================================
   Compliance
   ========================================================================== */

.compliance-list {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  max-width: 40rem;
}

.compliance-list li {
  padding: 1rem 0 1rem 2rem;
  position: relative;
  font-size: 1rem;
}

.compliance-list li + li {
  border-top: 1px solid var(--border-subtle);
}

.compliance-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.6rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--accent-green);
}

/* ==========================================================================
   Founder / About
   ========================================================================== */

.about {
  border-top: 1px solid var(--border-subtle);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.about-grid {
  display: grid;
  gap: 3rem;
  margin-top: 1.75rem;
}

.about-copy p {
  margin-top: 1.4rem;
  max-width: 72ch;
}

.about-copy p:first-child {
  margin-top: 0;
}

.about-panel {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(5, 10, 24, 0.08);
}

.about-panel-avatar {
  margin-bottom: 1rem;
}

.about-panel-avatar img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.about-panel-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-green);
}

.about-panel p {
  margin-top: 1.1rem;
  color: var(--text-secondary);
}

.about-panel-contact {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.85;
}

.about-panel-contact a {
  color: var(--text-primary);
  text-decoration: none;
}

.about-panel-contact a:hover {
  text-decoration: underline;
}

@media (min-width: 60rem) {
  .about-grid {
    grid-template-columns: minmax(0, 2fr) minmax(22rem, 1fr);
    align-items: start;
  }
}

.about h2 {
  margin-bottom: 1rem;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background: color-mix(in srgb, var(--surface) 45%, var(--bg));
  border-block: 1px solid var(--border-subtle);
  text-align: center;
}

.final-cta h2 {
  margin-inline: auto;
}

.final-cta-sub {
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-width: 44ch;
  margin-inline: auto;
}

.final-cta-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.final-cta-note a {
  color: var(--text-primary);
  text-decoration: none;
}

.final-cta-note a:hover,
.final-cta-note a:focus {
  text-decoration: underline;
}

/* ==========================================================================
   Send-leads dialog (the CTA workflow)
   ========================================================================== */

.leads-dialog {
  width: min(30rem, calc(100vw - 2rem));
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  margin: auto; /* centres the dialog in both axes */
}

.leads-dialog::backdrop {
  background: rgba(6, 8, 12, 0.7);
}

.dialog-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dialog-title {
  font-size: 1.375rem; /* serif never below 22px */
  line-height: 1.2;
  max-width: none;
}

.dialog-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.dialog-steps {
  list-style: none;
  padding: 0.5rem 1.5rem;
  margin: 0;
}

.dialog-steps li {
  padding-block: 1.125rem;
}

.dialog-steps li + li {
  border-top: 1px solid var(--border-subtle);
}

.dialog-step-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-green);
  margin-bottom: 0.375rem;
}

.dialog-steps p {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.dialog-email-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dialog-email {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  user-select: all;
}

.dialog-copy {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.625rem;
  cursor: pointer;
}

.dialog-copy:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.dialog-foot {
  padding: 1rem 1.5rem 1.375rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.dialog-foot a {
  color: var(--text-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.logo-footer .logo-mark {
  width: 28px;
  height: 18px;
}

.wordmark-footer {
  font-size: 1.375rem;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.copyright {
  margin-left: auto;
  font-size: 0.8125rem;
}

@media (max-width: 40em) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .copyright {
    margin-left: 0;
  }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

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

  .btn,
  .wave i {
    transition: none;
    animation: none;
  }
}
