/* OnVoice marketing site — reuses the app's design tokens (see docs/ui_design_spec.md) */

:root {
  --ink: #16333a;
  --ink-soft: #4c6169;
  --fog: #edefea;
  --paper: #ffffff;
  --amber: #e8a33d;
  --signal: #3f8f7a;
  --live: #d64b3e;

  --ink-800: #1f4650;
  --border: #00000014;
  --border-soft: #0000000d;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-card: 22px;
  --radius-input: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 56px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 15px 28px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

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

.btn-signal {
  background: var(--signal);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--fog);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.brand .icon {
  color: var(--amber);
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  background: #00000012;
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
}

.lang-switch a.is-active {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 10px 0;
    width: 100%;
  }
  .nav-toggle {
    display: block;
  }
}

/* Hero */

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin-bottom: 0.4em;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* Pulse ring (reused signature component from the app) */

.pulse-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--amber);
  animation: pulse 2.6s ease-out infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.75s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 1.5s;
}

.pulse-core {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px #e8a33d55;
}

.pulse-core .icon {
  width: 46px;
  height: 46px;
  color: #fff;
}

@keyframes pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.on-air-badge {
  position: absolute;
  top: -6px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d64b3e1a;
  color: var(--live);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.on-air-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--live);
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Problem / Solution */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.split-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 32px;
  border: 1px solid var(--border-soft);
}

.split-card.is-solution {
  background: var(--ink);
  color: #fff;
}

.split-card.is-solution h3 {
  color: #fff;
}

.split-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.split-card li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--ink-soft);
}

.split-card.is-solution li {
  border-top: 1px solid #ffffff22;
  color: #d7e4e0;
}

.split-card li:first-child {
  border-top: none;
}

.split-card .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--live);
}

.split-card.is-solution .icon {
  color: var(--signal-bright, #58c9ab);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

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

.step {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--fog);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-icon .icon {
  width: 22px;
  height: 22px;
  color: var(--amber);
}

.step:nth-child(2) .step-icon .icon {
  color: var(--ink);
}

.step:nth-child(3) .step-icon .icon {
  color: var(--signal);
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  color: var(--ink-soft);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Use cases */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 28px;
  border: 1px solid var(--border-soft);
  position: relative;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--fog);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon .icon {
  width: 22px;
  height: 22px;
  color: var(--signal);
}

.card h3 {
  font-size: 1.1rem;
}

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

.badge-soon {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--fog);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Screenshots / phone mockups */

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.phone {
  width: 220px;
  background: #0b0b0c;
  border-radius: 2.2rem;
  padding: 10px;
  box-shadow: 0 24px 48px -20px rgba(22, 51, 58, 0.35);
}

.phone-screen {
  position: relative;
  height: 440px;
  border-radius: 1.7rem;
  overflow: hidden;
  background: var(--fog);
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
}

.phone-screen.is-dark {
  background: var(--ink);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #0b0b0c;
  border-radius: 0 0 10px 10px;
}

.phone-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.mock-brand .icon {
  width: 16px;
  height: 16px;
  color: var(--amber);
}

.mock-tagline {
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.mock-card {
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
}

.mock-card.is-host {
  background: var(--ink);
  color: #fff;
}

.mock-card.is-listen {
  background: #fff;
  border: 1px solid var(--border);
}

.mock-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 8px 0 2px;
}

.mock-card-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.mock-card.is-host .mock-card-sub {
  color: #b8c4c6;
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: #d64b3e1a;
  color: var(--live);
}

.mock-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--live);
}

.mock-freq-box {
  margin-top: auto;
  background: var(--ink-800);
  border-radius: 16px;
  padding: 14px;
  color: #fff;
}

.mock-freq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-freq {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--amber);
}

.mock-qr {
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-qr .icon {
  width: 18px;
  height: 18px;
  color: var(--ink);
}

.mock-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mock-ring {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-ring.is-amber {
  background: var(--amber);
  box-shadow: 0 0 24px #e8a33d55;
}

.mock-ring.is-signal {
  background: var(--signal);
  box-shadow: 0 0 24px #3f8f7a55;
}

.mock-ring .icon {
  width: 28px;
  height: 28px;
  color: #fff;
}

/* Download */

.download-panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.download-panel h2 {
  color: #fff;
  margin-bottom: 8px;
}

.download-panel p {
  color: #b8c4c6;
  margin-bottom: 0;
  max-width: 46ch;
}

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff2e;
  border-radius: 14px;
  padding: 10px 18px;
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
}

.store-badge .icon {
  width: 22px;
  height: 22px;
}

.store-badge.is-soon {
  opacity: 0.75;
}

.store-badge-text small {
  display: block;
  font-size: 0.68rem;
  color: #b8c4c6;
}

.store-badge-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

/* Contact / waitlist */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

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

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 32px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-row input,
.form-row select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  outline: none;
}

.form-row input:focus,
.form-row select:focus {
  border-color: var(--signal);
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 14px;
  margin-bottom: 0;
}

.form-feedback {
  margin-top: 14px;
  font-size: 0.9rem;
  display: none;
}

.form-feedback.is-success {
  display: block;
  color: var(--signal);
}

.form-feedback.is-error {
  display: block;
  color: var(--live);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.footer-brand .icon {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

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

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
