/**
 * Desk Cover AI: brand color system.
 * Deep slate blue for trust; electric cyan CTAs used sparingly.
 */

:root {
  /* Bases */
  --color-dark: #0b1220;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f9fc;
  --color-surface: #f7f9fc;
  --color-surface-raised: #ffffff;

  /* Brand */
  --color-brand: #1e3a5f;
  --color-brand-soft: #e8eef5;
  --color-accent: #22d3ee;
  --color-accent-hover: #6366f1;
  --color-gradient: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);

  /* Text */
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-on-dark: #e2e8f0;
  --color-text-muted-on-dark: #94a3b8;

  /* Borders & UI */
  --color-border: #e2e8f0;
  --color-border-soft: #eef2f7;
  --color-focus: #22d3ee;
  --color-header-bg: rgba(255, 255, 255, 0.92);

  /* Outcomes */
  --color-success: #10b981;
  --color-success-soft: #d1fae5;
  --color-danger: #e11d48;
  --color-danger-soft: #ffe4e6;
  --color-danger-deep: #be123c;
  --color-danger-muted: #9f1239;

  /* Legacy aliases used across the stylesheet */
  --color-brand-deep: var(--color-brand);
  --color-brand-hover: var(--color-accent-hover);
  --color-surface-warm: var(--color-surface-raised);

  --font-sans: "Nunito", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --max-width: 68rem;
  --header-height: 4rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --line: 1.6;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 12px 40px rgba(11, 18, 32, 0.08);
  --shadow-phone: 0 20px 50px rgba(30, 58, 95, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
  }
}

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

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

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

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

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

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.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;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.placeholder-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: var(--space-sm) 0 0;
  opacity: 0.75;
}

.placeholder-note code {
  font-size: 0.85em;
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--color-brand);
  text-decoration: none;
  white-space: nowrap;
}

.logo::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0.2rem;
  background: var(--color-gradient);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-accent-hover);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-warm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  padding: var(--space-md) 1rem var(--space-lg);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
}

.site-nav.is-open {
  display: flex;
}

.nav-list,
.social-list,
.footer-nav ul,
.feature-grid,
.job-list,
.reliability-list,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nav-list a {
  text-decoration: none;
  padding: 0.25rem 0;
  color: var(--color-text);
  font-weight: 600;
}

.nav-list a:hover {
  color: var(--color-accent-hover);
  text-decoration: none;
}

.social-list {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand);
  background: var(--color-surface-raised);
}

.social-link:hover {
  border-color: var(--color-accent);
  background: rgba(34, 211, 238, 0.12);
  text-decoration: none;
}

/* ----- Buttons & links ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
}

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

.btn-large {
  padding: 0.9rem 1.6rem;
  font-size: 1.1rem;
}

.text-link {
  font-weight: 700;
  color: var(--color-brand);
  text-underline-offset: 0.2em;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-md) 0 var(--space-sm);
}

.reassurance {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-2xl);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 65% 50% at 88% 72%, rgba(99, 102, 241, 0.12), transparent 50%),
    linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.hero-brand {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-brand);
}

.hero h1 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
}

.hero-sub {
  margin: 0;
  font-size: 1.1rem;
  max-width: 34rem;
  color: var(--color-text-muted);
}

.hero-copy {
  animation: rise-in 0.7s var(--ease) both;
}

.hero-demo {
  display: flex;
  justify-content: center;
  animation: rise-in 0.7s var(--ease) 0.12s both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ----- Phone mockup & demo animation ----- */

.phone {
  --phone-width: 17.5rem;
  --phone-screen-height: 28rem;
  width: var(--phone-width);
  max-width: 100%;
  flex-shrink: 0;
  filter: drop-shadow(var(--shadow-phone));
}

.phone-bezel {
  border: 2px solid var(--color-brand);
  border-radius: 1.6rem;
  padding: 0.65rem 0.55rem 0.85rem;
  background: linear-gradient(160deg, #15233a, var(--color-dark));
}

.phone-notch {
  width: 5.5rem;
  height: 0.55rem;
  margin: 0 auto 0.5rem;
  border-radius: 999px;
  background: #060a12;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--phone-screen-height);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-soft) 100%);
  overflow: hidden;
  padding: var(--space-sm);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  height: 1.25rem;
  font-size: 0.7rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
}

.phone-business {
  font-weight: 700;
  color: var(--color-brand);
}

/* Fixed stage area: incoming + chat share one size, never resize the phone */
.demo-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.demo-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-sm);
  overflow: hidden;
}

.demo-stage[hidden] {
  display: none;
}

.demo-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--color-accent-hover);
}

.demo-caller {
  margin: var(--space-sm) 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.demo-number {
  margin: 0.15rem 0 var(--space-lg);
  color: var(--color-text-muted);
}

.demo-answer-pill {
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.demo-incoming.is-answering .demo-answer-pill {
  opacity: 1;
}

.demo-chat {
  align-items: stretch;
  justify-content: flex-start;
  padding-top: var(--space-xs);
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.chat-bubble {
  display: none;
  max-width: 92%;
  padding: 0.45rem 0.7rem 0.55rem;
  border-radius: 1rem;
  font-size: 0.78rem;
  line-height: 1.35;
  border: none;
  background: var(--color-surface-warm);
  flex-shrink: 0;
}

.chat-bubble.is-visible {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  animation: bubble-in 0.35s var(--ease) both;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.chat-sender {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.chat-text {
  display: block;
}

.chat-ai {
  align-self: flex-start;
  background: #ecfeff;
  color: var(--color-text);
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-bottom-left-radius: 0.3rem;
}

.chat-ai .chat-sender {
  color: #0e7490;
}

.chat-caller {
  align-self: flex-end;
  background: var(--color-brand);
  color: #fff;
  border: 1px solid var(--color-brand);
  border-bottom-right-radius: 0.3rem;
  text-align: left;
}

.chat-caller .chat-sender {
  color: var(--color-accent);
}

.chat-booked {
  align-self: stretch;
  max-width: 100%;
  text-align: left;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--color-success-soft);
  color: var(--color-text);
  border: 1.5px solid var(--color-success);
  border-radius: var(--radius);
}

.chat-booked.is-visible {
  display: flex;
}

.chat-booked strong {
  font-size: 0.95rem;
  color: var(--color-success);
}

.chat-booked-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-demo {
    animation: none;
  }

  .chat-bubble.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .demo-answer-pill {
    opacity: 1;
  }
}

/* ----- Sections ----- */

.section {
  padding: var(--space-2xl) 0;
  border-top: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* One section fills the viewport on desktop so neighbors don't stack */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .hero,
  .section {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero > .container,
  .section > .container,
  .problem > .container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
  }

  /* Soft page handoff: no hard cut between sections */
  .scroll-panel {
    transition: background-color 0.8s var(--ease-smooth);
  }

  .scroll-panel > .container {
    transition:
      opacity 0.85s var(--ease-smooth),
      transform 0.85s var(--ease-smooth);
    will-change: opacity, transform;
  }

  .scroll-panel:not(.is-inview) > .container {
    opacity: 0.35;
    transform: translateY(18px);
    pointer-events: none;
  }

  .scroll-panel.is-inview > .container {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Staggered content settle when a page becomes active */
  .scroll-panel .section h2,
  .scroll-panel .problem-line,
  .scroll-panel .problem-tags,
  .scroll-panel .problem-copy,
  .scroll-panel .problem-demo,
  .scroll-panel .section-lead,
  .scroll-panel .steps,
  .scroll-panel .feature-grid,
  .scroll-panel .voice-inner,
  .scroll-panel .reliability-list,
  .scroll-panel .testimonial-grid,
  .scroll-panel .job-list,
  .scroll-panel .final-cta-inner,
  .scroll-panel .hero-copy,
  .scroll-panel .hero-demo {
    transition:
      opacity 0.8s var(--ease-smooth),
      transform 0.8s var(--ease-smooth);
  }

  .scroll-panel:not(.is-inview) .section h2,
  .scroll-panel:not(.is-inview) .problem-line,
  .scroll-panel:not(.is-inview) .problem-tags,
  .scroll-panel:not(.is-inview) .problem-copy,
  .scroll-panel:not(.is-inview) .problem-demo,
  .scroll-panel:not(.is-inview) .section-lead,
  .scroll-panel:not(.is-inview) .steps,
  .scroll-panel:not(.is-inview) .feature-grid,
  .scroll-panel:not(.is-inview) .voice-inner,
  .scroll-panel:not(.is-inview) .reliability-list,
  .scroll-panel:not(.is-inview) .testimonial-grid,
  .scroll-panel:not(.is-inview) .job-list,
  .scroll-panel:not(.is-inview) .final-cta-inner,
  .scroll-panel:not(.is-inview) .hero-copy,
  .scroll-panel:not(.is-inview) .hero-demo {
    opacity: 0;
    transform: translateY(12px);
  }

  .scroll-panel.is-inview .hero-copy {
    transition-delay: 0.05s;
  }
  .scroll-panel.is-inview .hero-demo {
    transition-delay: 0.14s;
  }
  .scroll-panel.is-inview .problem-copy {
    transition-delay: 0.06s;
  }
  .scroll-panel.is-inview .problem-demo {
    transition-delay: 0.12s;
  }
  .scroll-panel.is-inview .section h2,
  .scroll-panel.is-inview .problem-line {
    transition-delay: 0.1s;
  }
  .scroll-panel.is-inview .section-lead,
  .scroll-panel.is-inview .problem-tags {
    transition-delay: 0.16s;
  }
  .scroll-panel.is-inview .steps,
  .scroll-panel.is-inview .feature-grid,
  .scroll-panel.is-inview .voice-inner,
  .scroll-panel.is-inview .reliability-list,
  .scroll-panel.is-inview .testimonial-grid,
  .scroll-panel.is-inview .job-list,
  .scroll-panel.is-inview .final-cta-inner {
    transition-delay: 0.18s;
  }

  .scroll-panel.is-inview .section h2,
  .scroll-panel.is-inview .problem-line,
  .scroll-panel.is-inview .problem-tags,
  .scroll-panel.is-inview .problem-copy,
  .scroll-panel.is-inview .problem-demo,
  .scroll-panel.is-inview .section-lead,
  .scroll-panel.is-inview .steps,
  .scroll-panel.is-inview .feature-grid,
  .scroll-panel.is-inview .voice-inner,
  .scroll-panel.is-inview .reliability-list,
  .scroll-panel.is-inview .testimonial-grid,
  .scroll-panel.is-inview .job-list,
  .scroll-panel.is-inview .final-cta-inner,
  .scroll-panel.is-inview .hero-copy,
  .scroll-panel.is-inview .hero-demo {
    opacity: 1;
    transform: none;
  }

  /* Let page transitions own motion: avoid double-animating the hero */
  .hero-copy,
  .hero-demo {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-panel > .container,
  .scroll-panel .section h2,
  .scroll-panel .problem-line,
  .scroll-panel .problem-tags,
  .scroll-panel .problem-copy,
  .scroll-panel .problem-demo,
  .scroll-panel .section-lead,
  .scroll-panel .steps,
  .scroll-panel .feature-grid,
  .scroll-panel .voice-inner,
  .scroll-panel .reliability-list,
  .scroll-panel .testimonial-grid,
  .scroll-panel .job-list,
  .scroll-panel .final-cta-inner,
  .scroll-panel .hero-copy,
  .scroll-panel .hero-demo {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.section h2 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-lead {
  margin: 0 0 var(--space-xl);
  max-width: 36rem;
  color: var(--color-text-muted);
  font-size: 1.08rem;
}

.problem {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

.problem-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 20%, rgba(225, 29, 72, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 75%, rgba(251, 113, 133, 0.1), transparent 50%),
    linear-gradient(180deg, #fff8f8 0%, var(--color-bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.problem-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.problem-copy {
  max-width: 34rem;
}

.problem-line {
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  margin: 0 0 var(--space-md);
  color: var(--color-danger-deep);
  letter-spacing: -0.02em;
  text-align: left;
}

.problem .section-lead {
  margin: 0 0 var(--space-lg);
  max-width: none;
  text-align: left;
}

.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.problem-tags li {
  margin: 0;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-danger-muted);
  background: var(--color-danger-soft);
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
}

.problem-demo {
  display: flex;
  justify-content: center;
}

.phone-missed {
  filter: drop-shadow(0 20px 50px rgba(225, 29, 72, 0.16));
}

.phone-missed .phone-bezel {
  border-color: var(--color-danger-deep);
  background: linear-gradient(160deg, #3f0d1a, #1a050a);
}

.phone-missed .phone-business {
  color: var(--color-danger-deep);
}

.phone-missed .demo-label {
  color: var(--color-danger);
}

.demo-missed-pill {
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-danger);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.demo-incoming.is-ringing .demo-missed-pill {
  opacity: 1;
}

.demo-label-warn {
  color: var(--color-danger);
}

.missed-banner {
  margin-top: var(--space-md);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-danger-deep);
  background: var(--color-danger-soft);
  border: 1px solid rgba(225, 29, 72, 0.28);
}

.chat-system {
  align-self: stretch;
  max-width: 100%;
  background: #fff1f2;
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: var(--radius);
}

.chat-system .chat-sender {
  color: var(--color-danger-muted);
}

.chat-lost {
  background: var(--color-danger-soft);
  border-color: var(--color-danger);
}

.chat-lost strong {
  color: var(--color-danger-deep);
}

.chat-lost-cost {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-danger);
  line-height: 1.2;
}

.chat-lost .chat-booked-sub {
  color: var(--color-danger-muted);
}

@media (prefers-reduced-motion: reduce) {
  .demo-missed-pill {
    opacity: 1;
  }
}

/* How it works */

.how-it-works {
  background: var(--color-bg);
}

.steps {
  display: grid;
  gap: var(--space-lg);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-md);
  row-gap: var(--space-xs);
  padding: var(--space-lg);
  background: var(--color-surface-warm);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}

.step-number {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: none;
  border-radius: 50%;
  font-weight: 800;
  color: var(--color-dark);
  background: var(--color-accent);
}

.step-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  grid-column: 2;
  color: var(--color-text-muted);
}

/* Features */

.features {
  background: var(--color-bg-soft);
}

.feature-grid {
  display: grid;
  gap: var(--space-md);
}

.feature-card {
  padding: var(--space-lg);
  background: var(--color-surface-warm);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius);
  color: var(--color-brand);
  background: var(--color-brand-soft);
}

.feature-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Voice */

.the-voice {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

.voice-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 85% 30%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(99, 102, 241, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.voice-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.voice-eyebrow {
  margin: 0 0 var(--space-xs);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.voice-copy .section-lead {
  margin-bottom: 0;
}

.voice-player {
  padding: var(--space-lg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-soft);
}

.voice-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.voice-audio::-webkit-media-controls,
.voice-audio::-webkit-media-controls-enclosure,
.voice-audio::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

.voice-play {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.voice-play:hover .voice-play-icon {
  transform: scale(1.04);
}

.voice-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--color-dark);
  background: var(--color-gradient);
  transition: transform 0.2s var(--ease);
}

.voice-play-icon svg[hidden] {
  display: none !important;
}

.voice-play-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.voice-play-label {
  font-size: 1.05rem;
  font-weight: 800;
}

.voice-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 2.75rem;
  margin-top: var(--space-md);
  padding: 0;
}

.waveform span {
  flex: 1;
  min-width: 3px;
  background: var(--color-brand-soft);
  border-radius: 2px;
  height: 30%;
  transform-origin: bottom;
}

.waveform span:nth-child(3n) {
  height: 55%;
}
.waveform span:nth-child(4n) {
  height: 80%;
}
.waveform span:nth-child(5n) {
  height: 40%;
}
.waveform span:nth-child(odd) {
  height: 65%;
}

.voice-player.is-playing .waveform span {
  background: var(--color-accent);
  animation: wave 0.9s ease-in-out infinite alternate;
}

.voice-player.is-playing .waveform span:nth-child(2n) {
  animation-delay: 0.1s;
}
.voice-player.is-playing .waveform span:nth-child(3n) {
  animation-delay: 0.2s;
}
.voice-player.is-playing .waveform span:nth-child(4n) {
  animation-delay: 0.15s;
}

.voice-progress {
  margin-top: var(--space-md);
  height: 4px;
  border-radius: 999px;
  background: var(--color-brand-soft);
  overflow: hidden;
}

.voice-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--color-gradient);
  transition: width 0.1s linear;
}

@keyframes wave {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-player.is-playing .waveform span {
    animation: none;
  }

  .voice-progress-bar {
    transition: none;
  }
}

.voice-note {
  margin: var(--space-sm) 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Reliability: dark trust band */

/* Reliability */

.reliability {
  background: var(--color-bg);
  color: var(--color-text);
  border-top: 1px solid var(--color-border-soft);
}

.reliability h2 {
  color: var(--color-text);
}

.reliability .section-lead {
  color: var(--color-text-muted);
}

.reliability-list {
  display: grid;
  gap: var(--space-xl);
}

.reliability-list li {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.reliability-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-brand);
}

.reliability-list p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Testimonial */

.testimonial {
  background: var(--color-bg-soft);
}

.testimonial-grid {
  display: grid;
  gap: var(--space-lg);
}

.testimonial-block {
  margin: 0;
  padding: var(--space-xl);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
}

.testimonial-block > p {
  margin: 0 0 var(--space-md);
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 600;
}

.testimonial-block cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-weight: 800;
}

.testimonial-meta {
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Careers / jobs */

.careers {
  background: var(--color-bg);
}

.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.job-card {
  display: grid;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-lg);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}

.job-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-brand);
}

.job-meta {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent-hover);
}

.job-card-copy p:last-child {
  margin: 0;
  color: var(--color-text-muted);
}

.job-apply {
  justify-self: start;
}

.careers-note {
  margin: var(--space-xl) 0 0;
  color: var(--color-text-muted);
}

.careers-note a {
  font-weight: 700;
}

/* Book demo / pricing */

.final-cta {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 80%, rgba(99, 102, 241, 0.08), transparent 50%),
    var(--color-bg-soft);
  color: var(--color-text);
  border-top: 1px solid var(--color-border-soft);
}

.final-cta h2 {
  color: var(--color-brand);
}

.final-cta .section-lead {
  margin-inline: auto;
  color: var(--color-text-muted);
}

.final-cta .reassurance {
  color: var(--color-text-muted);
}

.final-cta-inner {
  text-align: center;
}

.pricing {
  max-width: 28rem;
  margin: 0 auto var(--space-xl);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.pricing-title {
  margin: 0 0 var(--space-xs);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-brand);
}

.pricing p {
  margin: 0;
  color: var(--color-text-muted);
}

.final-cta .placeholder-note {
  color: var(--color-text-muted);
}

.final-cta .btn {
  margin-bottom: var(--space-md);
}

/* Footer: dark */

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.1);
  padding: var(--space-xl) 0 var(--space-2xl);
  background: #070c16;
  scroll-snap-align: end;
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo:hover {
  color: var(--color-accent);
}

.site-footer .social-link {
  color: var(--color-text-on-dark);
  background: transparent;
  border-color: rgba(226, 232, 240, 0.18);
}

.site-footer .social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(34, 211, 238, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted-on-dark);
}

.footer-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-fineprint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted-on-dark);
}

.footer-fineprint a {
  color: var(--color-text-muted-on-dark);
}

.footer-fineprint a:hover {
  color: var(--color-accent);
}

/* ----- Desktop ----- */

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    gap: var(--space-lg);
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-md);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 34rem) auto;
    gap: var(--space-2xl);
    justify-content: center;
  }

  .problem-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2xl);
    justify-content: center;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step-number {
    grid-row: auto;
    margin-bottom: var(--space-xs);
  }

  .step p {
    grid-column: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
  }

  .reliability-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .job-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .voice-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-md) var(--space-xl);
    align-items: start;
  }

  .footer-fineprint {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
