/* Tokens mirror the app's Material 3 theme (app/lib/theme/app_theme.dart):
   vivid brand purple accents on true-grey neutrals (purple + grey, per the
   logo). Keep in sync with AppColors when the app palette changes. */
:root {
  --primary: #9E00C4;
  --primary-dim: #780096;
  --primary-container: #E6E6E6;
  --accent: #9E00C4;
  --grey: #808080;
  --listening: #834D6A;
  --text: #1B1B1B;
  --text-secondary: #4C4C4C;
  --border: #D6D6D6;
  --surface-alt: #F0F0F0;
  --bg: #FAFAFA;
  --success: #2E6B44;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
}

.brand-wordmark { height: 40px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Mobile burger — hidden on desktop, replaces the inline links on phones. */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover { color: var(--text); }

/* Stadium-shaped like the app's M3 buttons. */
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--primary-dim); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-dim); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 16px 34px; font-size: 17px; }

/* Hero */
.hero {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, #F0F0F0 0%, #FAFAFA 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(90deg, var(--primary-dim), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-pronounce {
  font-size: 13px;
  color: var(--text-secondary);
  margin: -8px 0 14px;
}

.hero-pronounce strong { color: var(--text); font-weight: 600; }

.hero-sub {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}

.lede {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C255DE, var(--primary) 60%, var(--primary-dim) 100%);
  box-shadow: 0 20px 60px rgba(158, 0, 196, 0.3);
}

.hero-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.card-1 { top: 8%; left: -4%; }
.card-2 { bottom: 20%; right: -8%; }
.card-3 { bottom: 2%; left: 6%; }

/* Logos strip */
.logos-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.logos-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.dot { color: var(--border); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }

.section h2 {
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
}

.section-lede {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 { font-size: 19px; }
.step p { color: var(--text-secondary); margin: 0; font-size: 15px; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--text-secondary); margin: 0; font-size: 14.5px; }

/* Integrations */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.integration-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}

.integration-icon { font-size: 32px; margin-bottom: 14px; }
.integration-card h3 { font-size: 19px; }
.integration-card p { color: var(--text-secondary); margin: 0; font-size: 14.5px; }

.integrations-note { text-align: center; margin-top: 32px; }

/* Comparison table (Vger vs general assistants) */
.compare-wrap {
  max-width: 920px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table thead th {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text-secondary);
  width: 22%;
}

.compare-table td { color: var(--text-secondary); width: 26%; }

/* Vger's column carries the brand. */
.compare-table .compare-vger {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 500;
}

.compare-table thead .compare-vger { color: var(--primary); }

.compare-note { text-align: center; margin-top: 20px; }

/* Founder story */
.story-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

/* Grey container with the deep purple, like the app's avatars. */
.story-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--primary-dim);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  margin: 0 0 18px;
  line-height: 1.6;
}

.story-attribution {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-attribution span {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
}

.story-creds {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Founder name links to LinkedIn — verification, kept subtle. */
.story-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}

.story-linkedin:hover { color: var(--primary); }

.story-linkedin svg { width: 15px; height: 15px; fill: #0A66C2; }

/* Contact form — inputs match the app's M3 filled-field style. */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  width: 100%;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-secondary); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
  border-color: transparent;
}

/* Honeypot field: visually gone, still in the DOM for bots to fill. */
.contact-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-form button { cursor: pointer; border: none; }
.contact-form button:disabled { opacity: 0.6; cursor: default; }

.contact-status { margin: 0; font-size: 14px; color: var(--text-secondary); }
.contact-status.success { color: var(--success); font-weight: 600; }
.contact-status.error { color: #B3261E; font-weight: 600; }

/* Download */
.download { text-align: center; }
.download-inner { display: flex; flex-direction: column; align-items: center; }

.download-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.fine-print { color: var(--text-secondary); font-size: 14px; margin-top: 18px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover { color: var(--primary); }

/* Legal pages (privacy policy) */
.legal { max-width: 760px; }
.legal h1 { font-size: 38px; letter-spacing: -0.02em; margin-bottom: 4px; }
.legal-date { color: var(--text-secondary); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; text-align: left; }
.legal p, .legal li { color: var(--text); font-size: 16px; line-height: 1.65; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--primary); }

.contact-alt { text-align: center; margin-top: 22px; }
.contact-alt a { color: var(--primary); text-decoration: none; }

/* Support chat widget (bottom-right launcher + panel) */
.vw-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.vw-fab:hover { background: var(--primary-dim); transform: translateY(-2px); }
.vw-fab svg { width: 26px; height: 26px; fill: #fff; }
.vw-fab-open { background: var(--primary-dim); }

/* The hidden attribute must beat the display:flex below. */
.vw-panel[hidden] { display: none; }

.vw-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 90;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--primary);
  color: #fff;
}

.vw-head-text { display: flex; flex-direction: column; gap: 1px; }
.vw-head-text strong { font-size: 16px; }
.vw-head-text span { font-size: 12px; opacity: 0.85; }

.vw-close {
  border: none;
  background: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}

.vw-close:hover { background: rgba(255, 255, 255, 0.15); }

.vw-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}

.vw-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.vw-bot {
  align-self: flex-start;
  background: var(--surface-alt);
  color: var(--text);
  border-radius: 16px 16px 16px 6px;
}

.vw-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-radius: 16px 16px 6px 16px;
}

.vw-bot a { color: var(--primary); word-break: break-all; }
.vw-user a { color: #fff; }

.vw-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: vw-blink 1.2s infinite;
}
.vw-typing span:nth-child(2) { animation-delay: 0.2s; }
.vw-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes vw-blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.vw-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.vw-input input {
  flex: 1;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-alt);
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
}

.vw-input input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }

.vw-input button {
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.vw-input button:hover { background: var(--primary-dim); }
.vw-input button svg { width: 18px; height: 18px; fill: #fff; }

.vw-foot {
  padding: 8px 14px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  background: #fff;
}

.vw-foot a { color: var(--primary); }

@media (max-width: 480px) {
  .vw-panel { right: 16px; bottom: 86px; height: 70vh; }
  .vw-fab { right: 16px; bottom: 16px; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; order: -1; }
  .steps, .features-grid, .integrations-grid { grid-template-columns: 1fr; }
  .story-card { flex-direction: column; align-items: center; text-align: center; }
  .nav-links { gap: 16px; }
}

/* Mobile nav: burger + dropdown panel instead of inline links. */
@media (max-width: 760px) {
  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 4px;
    font-size: 16px;
  }

  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .contact-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .lede { font-size: 17px; }
  .section h2 { font-size: 26px; }
  .hero-card { font-size: 12px; padding: 8px 12px; }
}
