/* ==========================================
   Utter — macOS Dictation Utility
   ========================================== */

/* ─── Tokens ─────────────────────────────── */
:root {
  --bg:               #0c0c0e;
  --surface:          #141416;
  --surface-raised:   #1c1c1f;
  --border:           #26262a;
  --border-subtle:    #1e1e22;
  --text:             #f2f2f7;
  --text-secondary:   #aeaeb2;
  --text-muted:       #636366;
  --accent:           #6366f1;
  --accent-hover:     #7c7ff4;
  --accent-dim:       rgba(99, 102, 241, 0.14);
  --win:              rgba(48, 209, 88, 0.12);
  --win-text:         #30d158;
  --radius:           12px;
  --radius-sm:        8px;
  --font:             -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --transition:       0.15s ease;
}

/* ─── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Layout ─────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.section-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 660px;
}

/* ─── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

.btn-disabled,
.btn-disabled:hover {
  opacity: 0.72;
  cursor: default;
}

.btn-sm  { padding: 7px 14px; font-size: 0.8125rem; }
.btn-lg  { padding: 13px 26px; font-size: 1rem; }

/* ─── Nav ────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,12,14,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }

/* ─── Hero ───────────────────────────────── */
.hero {
  padding: 100px 0 96px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
    var(--bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.hero-headline {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 780px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-proof {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-demo {
  width: 100%;
  max-width: 960px;
  margin-top: 40px;
}

.hero-demo-video {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
  box-shadow:
    0 32px 72px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}

.hero-demo-caption {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.device-note {
  display: none;
  margin-top: 14px;
  max-width: 520px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}

/* ─── Comparison table ───────────────────── */

.comp-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
}

.comp-mobile {
  display: none;
}

/* Flat grid — 24 direct children, no vertical borders */
.comp-table {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  min-width: 540px;
}

/* Horizontal dividers only — no vertical lines */
.comp-table > * {
  border-bottom: 1px solid var(--border-subtle);
  padding: 15px 20px;
}

/* Last row: remove bottom border */
.comp-table > *:nth-last-child(-n+4) {
  border-bottom: none;
}

/* Utter column (4th): full-column subtle highlight */
.comp-table > *:nth-child(4n) {
  background: rgba(99, 102, 241, 0.06);
}

/* Header row */
.comp-th {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 20px;
}

.comp-th:first-child { text-align: left; }

.comp-th-sub {
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 2px;
}

/* Utter header */
.comp-th-utter {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.10) !important;
}

/* ─── Works With ─────────────────────────── */
.works-with {
  overflow: hidden;
}

.works-lanes {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.works-footnote {
  margin-top: 26px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.works-lane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.works-lane-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.works-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.works-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: works-scroll 26s linear infinite;
}

.works-track-reverse {
  animation-direction: reverse;
  animation-duration: 30s;
}

.works-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.works-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

@keyframes works-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 6px)); }
}

/* Feature label column */
.comp-topic {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

/* Data cells — centered column */
.comp-cell {
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* All competitor cells: fully readable */
.comp-bad,
.comp-ok  { color: var(--text-secondary); }

/* Winner cell: bright + bold */
.comp-win { color: var(--text); font-weight: 600; }

/* Primary verdict label */
.comp-label {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Explanation — always muted regardless of parent cell color */
.comp-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Check / cross icons */
.ic-check {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 700;
}

.ic-x {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ─── Pricing ────────────────────────────── */
.pricing .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  width: 100%;
  max-width: 520px;
}

.pricing-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.pricing-card .btn-primary { flex: 1 1 220px; }
.pricing-card .btn-ghost   { flex: 1 1 180px; }

.pricing-footnote {
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────── */
.footer {
  padding: 48px 0 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-privacy,
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-privacy { line-height: 1.6; max-width: 480px; }
.footer-copy    { white-space: nowrap; }

/* ─── Legal pages ────────────────────────── */
.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(99, 102, 241, 0.14), transparent 36%),
    #09090c;
  color: var(--text);
}

.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 96px;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.legal-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.legal-summary {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0 0 16px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 28px 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.legal-section { margin-bottom: 28px; }

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

@media (max-width: 820px) {
  .nav-inner {
    height: 64px;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-link {
    display: none;
  }

  .nav .btn-sm {
    padding: 10px 14px;
    font-size: 0.9375rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-body {
    margin-bottom: 28px;
  }

  .comp-wrap {
    display: none;
  }

  .comp-mobile {
    display: grid;
    gap: 14px;
  }

  .comp-mobile-matchup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
  }

  .comp-mobile-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .comp-mobile-col {
    padding: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
  }

  .comp-mobile-col-utter {
    border-color: rgba(99, 102, 241, 0.28);
    background: rgba(99, 102, 241, 0.08);
  }

  .comp-mobile-col h3 {
    font-size: 1rem;
    line-height: 1.15;
    margin-bottom: 4px;
  }

  .comp-mobile-col p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
  }

  .comp-mobile-grid {
    display: grid;
    gap: 0;
  }

  .comp-mobile-grid-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border-subtle);
  }

  .comp-mobile-grid-row:first-child {
    padding-top: 2px;
    border-top: none;
  }

  .comp-mobile-grid-row dt {
    font-size: 0.8125rem;
    color: var(--text-secondary);
  }

  .comp-mobile-grid-row dd {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
  }

  .comp-mobile-grid-row dd:last-child {
    color: var(--text);
  }

  .works-lanes {
    gap: 18px;
  }

  .works-marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .works-track,
  .works-track-reverse {
    animation: none;
  }

  .pricing-card {
    padding: 28px 20px 24px;
    border-radius: 18px;
  }

  .pricing-price {
    font-size: 3rem;
  }

  .pricing-desc {
    font-size: 0.95rem;
    margin-bottom: 22px;
  }

  .pricing-features {
    margin-bottom: 24px;
    gap: 9px;
  }

  .pricing-features li {
    font-size: 0.9375rem;
  }

  .pricing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-card .btn-primary,
  .pricing-card .btn-ghost {
    flex: none;
    width: 100%;
    min-height: 52px;
  }

  .pricing-footnote {
    font-size: 0.8125rem;
  }

  .footer-inner,
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 80px 0 72px;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-ctas {
    width: 100%;
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .device-note {
    display: block;
  }

  .hero-demo {
    margin-top: 32px;
  }

  .hero-demo-video {
    border-radius: 14px;
  }

  .pricing-card {
    padding: 24px 16px 20px;
  }

  .comp-mobile-matchup {
    padding: 16px;
  }

  .comp-mobile-columns {
    gap: 8px;
  }

  .comp-mobile-col {
    padding: 10px;
  }

  .comp-mobile-grid-row {
    grid-template-columns: 84px 1fr 1fr;
    gap: 10px;
  }

  .comp-mobile-grid-row dt {
    font-size: 0.75rem;
  }

  .comp-mobile-grid-row dd {
    font-size: 0.8125rem;
  }
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--text-secondary);
  text-decoration: none;
}
.legal-back:hover { color: var(--text); }

.install-page {
  min-height: 100vh;
}

.install-hero {
  padding: 88px 0 104px;
  min-height: calc(100vh - 52px);
  background:
    radial-gradient(circle at top, rgba(99, 102, 241, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(28, 28, 31, 0.86), rgba(12, 12, 14, 1)),
    var(--bg);
}

.install-shell {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.install-title {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.install-subtitle {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.install-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  margin-bottom: 32px;
}

.install-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(28, 28, 31, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.install-card-copy {
  color: var(--text-secondary);
}

.install-card-copy + .install-card-copy {
  margin-top: 10px;
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .footer-inner,
  .footer-bottom { flex-direction: column; gap: 20px; }
}

@media (max-width: 540px) {
  .hero { padding: 72px 0 72px; }
  .install-hero { padding: 72px 0 88px; }
  .hero-headline { font-size: 2.5rem; }
  .install-title { font-size: 2.3rem; }
  .hero-ctas,
  .install-actions,
  .pricing-actions { flex-direction: column; }
  .hero-ctas .btn-lg,
  .install-actions .btn-lg,
  .pricing-actions .btn { width: 100%; }
  .section { padding: 72px 0; }
  .install-card { padding: 20px; }
  .pricing-card { padding: 32px 24px; }
  .pricing-price { font-size: 3rem; }
  .nav-link { display: none; }
  .legal-shell { padding-top: 96px; }
  .legal-card { padding: 22px 20px 4px; border-radius: 20px; }
  .works-lanes { gap: 20px; }
  .works-track { animation-duration: 22s; }
  .works-track-reverse { animation-duration: 24s; }
}
