:root {
  --ew-ink-950: #090d16;
  --ew-ink-900: #0e1420;
  --ew-ink-800: #17202e;
  --ew-ink-700: #263244;

  --ew-slate-700: #445166;
  --ew-slate-600: #5b687b;
  --ew-slate-500: #748094;
  --ew-slate-400: #98a2b3;
  --ew-slate-300: #c7cdd6;
  --ew-slate-200: #dde1e7;
  --ew-slate-100: #eceff3;
  --ew-slate-50: #f6f8fa;

  --ew-paper: #ffffff;
  --ew-canvas: #fafbfc;

  --ew-signal-700: #087e75;
  --ew-signal-600: #0d9e90;
  --ew-signal-500: #18b8a6;
  --ew-signal-400: #42cbbb;
  --ew-signal-300: #7ddbd0;
  --ew-signal-200: #b6ebe5;
  --ew-signal-100: #ddf6f2;
  --ew-signal-50: #effbfa;

  --ew-echo-600: #6657d9;
  --ew-echo-500: #796ae8;
  --ew-echo-400: #9589ef;
  --ew-echo-200: #cdc7f8;
  --ew-echo-100: #e8e5fc;

  --ew-success: #16865d;
  --ew-success-bg: #eaf8f1;
  --ew-warning: #b66a00;
  --ew-warning-bg: #fff4df;
  --ew-danger: #c43d4b;
  --ew-danger-bg: #fdecee;
  --ew-info: #3276c3;
  --ew-info-bg: #ebf3fc;

  --ew-bg-canvas: var(--ew-canvas);
  --ew-bg-surface: var(--ew-paper);
  --ew-bg-dark: var(--ew-ink-900);
  --ew-bg-dark-elevated: var(--ew-ink-800);
  --ew-text-primary: var(--ew-ink-800);
  --ew-text-secondary: var(--ew-slate-600);
  --ew-text-muted: var(--ew-slate-500);
  --ew-text-inverse: var(--ew-paper);
  --ew-border-default: var(--ew-slate-200);
  --ew-border-dark: rgba(255, 255, 255, 0.1);

  --ew-ai: var(--ew-echo-500);
  --ew-live: var(--ew-signal-500);

  /* EchoWorks surfaces default to Signal Teal. Tenant workspaces may override only the tenant tokens. */
  --tenant-accent: var(--ew-signal-500);
  --tenant-accent-hover: var(--ew-signal-600);
  --tenant-accent-active: var(--ew-signal-700);
  --tenant-accent-subtle: var(--ew-signal-50);
  --tenant-accent-subtle-strong: var(--ew-signal-100);
  --tenant-accent-foreground: #061f1c;

  --ew-font-sans: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ew-font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --ew-space-1: 4px;
  --ew-space-2: 8px;
  --ew-space-3: 12px;
  --ew-space-4: 16px;
  --ew-space-5: 20px;
  --ew-space-6: 24px;
  --ew-space-8: 32px;
  --ew-space-10: 40px;
  --ew-space-12: 48px;
  --ew-space-16: 64px;
  --ew-space-20: 80px;
  --ew-space-24: 96px;

  --ew-radius-xs: 4px;
  --ew-radius-sm: 6px;
  --ew-radius-md: 8px;
  --ew-radius-lg: 12px;
  --ew-radius-xl: 16px;
  --ew-radius-pill: 999px;

  --ew-shadow-1: 0 1px 2px rgba(9, 13, 22, 0.06);
  --ew-shadow-2: 0 8px 24px rgba(9, 13, 22, 0.1);
  --ew-shadow-3: 0 20px 48px rgba(9, 13, 22, 0.16);

  --ew-motion-standard: 150ms;
  --ew-motion-emphasized: 220ms;
  --ew-motion-large: 300ms;

  --ew-sidebar-expanded: 240px;
  --ew-sidebar-compact: 68px;
  --ew-reading-max-width: 1280px;
  --ew-control-height: 40px;
  --ew-control-height-lg: 44px;
}

html {
  color: var(--ew-text-primary);
  background: var(--ew-bg-canvas);
  font-family: var(--ew-font-sans);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--ew-bg-canvas);
  color: var(--ew-text-primary);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tenant-accent) 55%, white);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* EchoWorks marketing site — dark-on-dark, built from the design-system tokens
   loaded above via theme.css. This file defines the marketing-only `--m-*`
   token layer (parallel to the app tokens, per design-system/DESIGN-SYSTEM.md
   §2 "the public website may be more expressive than the authenticated
   product") and every marketing component style. */

:root {
  --m-bg: var(--ew-ink-950);
  --m-alt: var(--ew-ink-900);
  --m-ink: #ffffff;
  --m-ink2: var(--ew-slate-300);
  --m-muted: #a6b0be;
  --m-muted2: #97a2b1;
  --m-muted3: #8a95a6;
  --m-border: rgba(255, 255, 255, 0.1);
  --m-border-strong: rgba(255, 255, 255, 0.14);
  --m-hover: var(--ew-ink-800);
  --m-chip: rgba(255, 255, 255, 0.08);
  --m-accent: var(--ew-signal-500);
  --m-accent-hi: var(--ew-signal-300);
  --m-accent-hover: var(--ew-signal-400);
  --m-accent-ring: rgba(24, 184, 166, 0.45);
  --m-on-accent: #061f1c;
  --m-violet: var(--ew-echo-400);
  --m-violet-hi: var(--ew-echo-200);
  --m-frame: 1280px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background: var(--m-bg);
  color: var(--m-ink2);
  font-family: var(--ew-font-sans);
}

h1,
h2,
h3 {
  font-family: var(--ew-font-sans);
  color: var(--m-ink);
  margin: 0;
}

a {
  color: inherit;
}

.m-frame {
  max-width: var(--m-frame);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .m-frame {
    padding: 0 40px;
  }
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  background: var(--m-ink);
  color: var(--m-bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
  transition: top var(--ew-motion-standard) ease;
}

.skip-link:focus-visible {
  top: 16px;
}

.m-overline {
  font-family: var(--ew-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m-accent);
  margin: 0 0 14px;
}

.m-lead {
  font-size: 17px;
  line-height: 27px;
  color: var(--m-ink2);
  margin: 0;
  text-wrap: pretty;
}

.m-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.m-check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 24px;
  color: var(--m-ink2);
}

.m-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--m-accent);
}

/* Buttons */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background var(--ew-motion-standard) ease;
}

.m-btn-lg {
  height: 44px;
  padding: 0 20px;
}

.m-btn-primary {
  background: var(--m-accent);
  color: var(--m-on-accent);
}

.m-btn-primary:hover {
  background: var(--m-accent-hover);
}

.m-btn-secondary {
  background: transparent;
  color: var(--m-ink);
  border: 1px solid var(--m-border-strong);
}

.m-btn-secondary:hover {
  background: var(--m-hover);
}

.m-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Header */
.m-header {
  background: var(--m-bg);
  border-bottom: 1px solid var(--m-border);
}

.m-header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding: 12px 24px;
}

.m-brand {
  font-size: 17px;
  font-weight: 650;
  color: var(--m-ink);
  text-decoration: none;
}

.m-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.m-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--m-ink2);
  text-decoration: none;
}

.m-nav a:hover {
  color: var(--m-ink);
}

.m-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.m-signin {
  height: 40px;
  padding: 0 4px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--m-muted2);
  cursor: not-allowed;
}

.m-nav-mobile {
  display: none;
  margin-left: auto;
}

.m-nav-mobile summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--m-border-strong);
}

.m-nav-mobile summary::-webkit-details-marker {
  display: none;
}

.m-nav-mobile-icon,
.m-nav-mobile-icon::before,
.m-nav-mobile-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--m-ink);
  border-radius: 2px;
}

.m-nav-mobile-icon::before,
.m-nav-mobile-icon::after {
  content: "";
  position: relative;
}

.m-nav-mobile-icon::before {
  top: -5px;
}

.m-nav-mobile-icon::after {
  top: 3px;
}

.m-nav-mobile-panel {
  display: grid;
  gap: 14px;
  padding: 16px 0 20px;
}

.m-nav-mobile-panel a:not(.m-btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--m-ink2);
  text-decoration: none;
}

@media (max-width: 767px) {
  .m-nav,
  .m-header-actions {
    display: none;
  }

  .m-nav-mobile {
    display: block;
  }
}

/* Hero */
.m-hero {
  position: relative;
  overflow: hidden;
}

.m-hero-inner {
  position: relative;
  padding: 64px 24px 72px;
}

@media (min-width: 640px) {
  .m-hero-inner {
    padding: 88px 40px 96px;
  }
}

.m-waveform {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  display: none;
  align-items: center;
  gap: 4px;
  opacity: 0.55;
  pointer-events: none;
}

@media (min-width: 900px) {
  .m-waveform {
    display: flex;
  }
}

.m-waveform span {
  display: block;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--m-accent) 0%, var(--m-violet) 100%);
  animation: m-wave 2.4s ease-in-out infinite;
}

.m-waveform span:nth-child(odd) {
  height: 60px;
  animation-delay: -0.6s;
}

.m-waveform span:nth-child(3n) {
  height: 110px;
  animation-delay: -1.2s;
}

.m-waveform span:nth-child(4n) {
  height: 40px;
  animation-delay: -1.8s;
}

.m-waveform span:nth-child(5n) {
  height: 84px;
}

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

@media (prefers-reduced-motion: reduce) {
  .m-waveform span {
    animation: none;
  }
}

.m-hero-content {
  position: relative;
  max-width: 640px;
}

.m-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--m-border);
  color: var(--m-accent-hi);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 24px;
}

.m-hero h1 {
  font-size: 36px;
  line-height: 42px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .m-hero h1 {
    font-size: 56px;
    line-height: 64px;
    letter-spacing: -0.03em;
  }
}

.m-hero-lead {
  font-size: 17px;
  line-height: 27px;
  color: var(--m-ink2);
  margin: 0 0 32px;
  max-width: 520px;
  text-wrap: pretty;
}

/* Capture strip */
.m-strip {
  border-top: 1px solid var(--m-border);
}

.m-strip-inner {
  padding: 24px 24px;
  display: flex;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .m-strip-inner {
    padding: 24px 40px;
  }
}

.m-strip .m-overline {
  margin: 0;
}

.m-source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.m-source-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.m-source {
  font-size: 15px;
  font-weight: 500;
  color: var(--m-ink2);
}

.m-source-status {
  font-family: var(--ew-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--m-muted3);
  background: var(--m-chip);
  padding: 2px 6px;
  border-radius: 4px;
}

.m-strip-note {
  flex-basis: 100%;
  font-size: 13px;
  line-height: 20px;
  color: var(--m-muted2);
  margin: 4px 0 0;
  text-wrap: pretty;
}

/* Generic section rhythm */
.m-section {
  border-top: 1px solid var(--m-border);
  padding: 56px 0 72px;
}

.m-alt-bg {
  background: var(--m-alt);
}

.m-section-head {
  max-width: 620px;
  margin-bottom: 44px;
}

.m-section h2 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .m-section h2 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.02em;
  }
}

/* How it works */
.m-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.m-stage-num {
  font-family: var(--ew-font-mono);
  font-size: 11px;
  color: var(--m-accent);
  margin-bottom: 12px;
}

.m-stage h3 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.m-stage p {
  font-size: 15px;
  line-height: 24px;
  color: var(--m-muted);
  margin: 0;
  text-wrap: pretty;
}

/* Security */
.m-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: start;
}

.m-security-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin: 28px 0 24px;
}

.m-security-note {
  font-size: 14px;
  line-height: 22px;
  color: var(--m-muted2);
  border-top: 1px solid var(--m-border);
  padding-top: 20px;
  margin: 0;
}

.m-transcript-card {
  background: var(--m-bg);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 20px 24px;
}

.m-transcript-domain {
  font-family: var(--ew-font-mono);
  font-size: 11px;
  color: var(--m-muted2);
  margin-bottom: 16px;
}

.m-transcript-lines {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px 14px;
}

.m-transcript-time {
  font-family: var(--ew-font-mono);
  font-size: 13px;
  color: var(--m-muted2);
}

.m-transcript-time-accent {
  color: var(--m-accent-hi);
}

.m-transcript-speaker {
  font-size: 13px;
  font-weight: 600;
  color: var(--m-ink);
}

.m-transcript-text {
  font-size: 15px;
  line-height: 24px;
  color: var(--m-ink2);
}

.m-transcript-action {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--m-border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--m-violet-hi);
}

.m-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--m-violet);
  flex: none;
}

/* Product capability cards */
.m-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--m-border);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  overflow: hidden;
}

.m-cap-card {
  background: var(--m-bg);
  padding: 26px 24px 28px;
}

.m-cap-card h3 {
  font-size: 17px;
  line-height: 26px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.m-cap-card p {
  font-size: 15px;
  line-height: 24px;
  color: var(--m-muted);
  margin: 0;
  text-wrap: pretty;
}

/* Proof */
.m-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.m-proof-card {
  border: 1px solid var(--m-border);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--m-bg);
}

.m-proof-title {
  font-size: 17px;
  line-height: 24px;
  font-weight: 650;
  color: var(--m-ink);
  margin-bottom: 8px;
}

.m-proof-card p {
  font-size: 14px;
  line-height: 22px;
  color: var(--m-muted);
  margin: 0;
  text-wrap: pretty;
}

.m-proof-disclaimer {
  margin: 28px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--m-muted2);
  max-width: 620px;
}

/* Pricing */
.m-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

.m-price-card {
  background: var(--m-bg);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
}

.m-price-featured {
  border-color: var(--m-accent-ring);
}

.m-price-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.m-price-name {
  font-size: 17px;
  font-weight: 650;
  color: var(--m-ink);
}

.m-price-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--m-accent);
  color: var(--m-on-accent);
}

.m-price-who {
  font-size: 13px;
  line-height: 20px;
  color: var(--m-muted);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.m-price-amount {
  font-size: 22px;
  line-height: 28px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--m-ink);
  margin-bottom: 22px;
}

.m-price-card .m-check-list {
  margin-bottom: 24px;
  flex: 1;
}

.m-price-cta {
  width: 100%;
}

/* FAQ */
.m-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 40px;
  align-items: start;
}

.m-faq-grid h2 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .m-faq-grid h2 {
    font-size: 32px;
    line-height: 40px;
  }
}

.m-faq-list {
  display: grid;
  gap: 1px;
  background: var(--m-border);
  border-top: 1px solid var(--m-border);
  border-bottom: 1px solid var(--m-border);
}

.m-faq-item {
  background: var(--m-bg);
  padding: 18px 0;
}

.m-faq-item summary {
  cursor: pointer;
  font-size: 17px;
  line-height: 26px;
  font-weight: 650;
  color: var(--m-ink);
  list-style: none;
}

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

.m-faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 500;
  color: var(--m-muted2);
}

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

.m-faq-item p {
  font-size: 15px;
  line-height: 24px;
  color: var(--m-muted);
  margin: 10px 0 0;
  text-wrap: pretty;
}

/* Final CTA */
.m-final-cta {
  padding: 56px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

@media (min-width: 640px) {
  .m-final-cta {
    padding: 64px 40px;
  }
}

.m-final-cta > div:first-child {
  flex: 1 1 360px;
  min-width: 0;
}

.m-final-cta h2 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .m-final-cta h2 {
    font-size: 32px;
    line-height: 40px;
  }
}

/* Footer */
.m-footer {
  border-top: 1px solid var(--m-border);
}

.m-footer-grid {
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

@media (min-width: 640px) {
  .m-footer-grid {
    padding: 56px 40px 28px;
  }
}

.m-footer-brand {
  font-size: 17px;
  font-weight: 650;
  color: var(--m-ink);
  margin-bottom: 8px;
}

.m-footer-tagline {
  font-size: 13px;
  line-height: 20px;
  color: var(--m-muted2);
  max-width: 220px;
  margin: 0;
  text-wrap: pretty;
}

.m-footer h3 {
  margin-bottom: 12px;
}

.m-footer-links {
  display: grid;
  gap: 8px;
}

.m-footer-links a {
  font-size: 15px;
  color: var(--m-muted);
  text-decoration: none;
}

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

.m-footer-bottom {
  padding: 20px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--m-border);
  font-size: 13px;
  color: var(--m-muted2);
}

@media (min-width: 640px) {
  .m-footer-bottom {
    padding: 20px 40px 32px;
  }
}

.m-footer-domain {
  margin-left: auto;
  font-family: var(--ew-font-mono);
  font-size: 12px;
  color: var(--m-muted3);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--m-accent) 60%, white);
  outline-offset: 2px;
}
