/* ─────────────────────────── Tokens ─────────────────────────── */
:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-soft: #fbfbfd;
  --bg-tint: #f5f5f7;

  /* ink */
  --text: #1d1d1f;
  --text-2: #424245;
  --text-3: #6e6e73;
  --text-4: #86868b;

  /* hairlines */
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);

  /* accents (matches macOS system colors) */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-press: #006edb;
  --red: #ff3b30;
  --green: #34c759;
  --orange: #ff9500;
  --purple: #af52de;
  --teal: #5ac8fa;

  /* shadows */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 1px 3px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-pill: 0 16px 40px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.16);

  /* layout */
  --max-w: 1040px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter",
    system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 0.08em 0.36em;
  background: var(--bg-tint);
  border-radius: 5px;
  color: var(--text-2);
}
kbd {
  font-family: var(--mono);
  font-size: 0.8em;
  padding: 0.18em 0.46em;
  background: #fff;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--text-2);
}

/* ─────────────────────────── Nav ────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--text);
  text-decoration: none;
}
.brand img {
  border-radius: 6px;
  display: block;
}
.nav nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}
.nav nav a {
  color: var(--text-2);
  font-weight: 400;
  white-space: nowrap;
}
.nav nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-cta {
  color: var(--accent) !important;
  font-weight: 500;
}

/* ─────────────────────────── Hero ───────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px 64px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}
.hero-title {
  margin: 0 0 22px;
  font-size: clamp(44px, 7.5vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text);
}
.hero-lede {
  margin: 0 auto 36px;
  max-width: 620px;
  font-size: 21px;
  line-height: 1.42;
  color: var(--text-3);
  font-weight: 400;
}
.hero-fine {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-4);
}

/* CTAs ─────────────────────────────────────────────────── */
.cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  border-radius: 980px;
  padding: 13px 22px;
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.btn.primary:active {
  background: var(--accent-press);
}
.btn.secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.1);
}
.btn.secondary:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--text);
  text-decoration: none;
}
.btn.link {
  background: transparent;
  color: var(--accent);
  padding: 13px 6px;
  font-weight: 500;
}
.btn.link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn.block {
  display: flex;
  width: 100%;
  padding: 14px 22px;
}

/* HUD stage ────────────────────────────────────────────── */
.hud-stage {
  margin: 72px auto 0;
  max-width: 720px;
  padding: 72px 24px 44px;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(0, 113, 227, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, #f8f9fb, #eef0f4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(28, 28, 30, 0.92);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  min-width: 220px;
  justify-content: flex-start;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: min-width 0.35s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.hud-pill[data-mode="done"] {
  min-width: 120px;
}
.hud-pill[data-mode="transcribing"] {
  min-width: 180px;
}
.hud-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}
.hud-pill[data-mode="recording"] .hud-icon {
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 59, 48, 0.55);
  animation: micPulse 1.2s ease-in-out infinite;
}
.hud-pill[data-mode="transcribing"] .hud-icon {
  background: var(--purple);
}
.hud-pill[data-mode="done"] .hud-icon {
  background: var(--green);
}
.hud-icon .ic {
  width: 13px;
  height: 13px;
  color: #fff;
  display: none;
}
.hud-pill[data-mode="recording"] .hud-icon .ic-mic,
.hud-pill[data-mode="transcribing"] .hud-icon .ic-wave,
.hud-pill[data-mode="done"] .hud-icon .ic-check {
  display: block;
}
@keyframes micPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.92);
  }
}
.hud-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud-waveform {
  display: flex;
  align-items: center;
  gap: 1.5px;
  width: 120px;
  height: 22px;
}
.hud-waveform i {
  display: block;
  width: 2.4px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.5px;
  height: 4px;
  animation: wave 0.65s ease-in-out infinite alternate;
}
.hud-waveform i:nth-child(odd) {
  animation-duration: 0.55s;
}
.hud-waveform i:nth-child(3n) {
  animation-duration: 0.45s;
}
.hud-waveform i:nth-child(5n) {
  animation-duration: 0.7s;
}
@keyframes wave {
  0% {
    height: 3px;
  }
  100% {
    height: 18px;
  }
}
.hud-timer {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  min-width: 32px;
  text-align: right;
}
.hud-pill[data-mode="recording"] .hud-text,
.hud-pill[data-mode="recording"] .hud-done,
.hud-pill[data-mode="transcribing"] .hud-waveform,
.hud-pill[data-mode="transcribing"] .hud-timer,
.hud-pill[data-mode="transcribing"] .hud-done,
.hud-pill[data-mode="done"] .hud-waveform,
.hud-pill[data-mode="done"] .hud-timer,
.hud-pill[data-mode="done"] .hud-text {
  display: none;
}
.dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  align-items: center;
}
.dots i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  animation: shimmer 0.9s linear infinite;
}
.dots i:nth-child(2) {
  animation-delay: 0.3s;
}
.dots i:nth-child(3) {
  animation-delay: 0.6s;
}
@keyframes shimmer {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
.hud-caption {
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--text-3);
}

/* ─────────────────────────── Sections ───────────────────────── */
.section {
  padding: 120px 24px;
}
.section-tint {
  background: var(--bg-tint);
}
.section > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 640px;
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
}
.section-lede {
  margin: 0;
  font-size: 19px;
  color: var(--text-3);
  line-height: 1.5;
}

/* Steps ────────────────────────────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  /* `margin: 0` would clobber the auto-centering inherited from `.section > *`
     and the grid would left-align at viewports wider than --max-w. */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-1);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.step p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-3);
  line-height: 1.55;
}
.step p a {
  font-weight: 500;
}
.step p code {
  background: var(--bg-tint);
}

/* Features ─────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-1);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}
.icon-blue {
  background: linear-gradient(180deg, #2997ff, #0071e3);
}
.icon-purple {
  background: linear-gradient(180deg, #c768e8, #af52de);
}
.icon-teal {
  background: linear-gradient(180deg, #6cd4ff, #5ac8fa);
}
.icon-orange {
  background: linear-gradient(180deg, #ffb24d, #ff9500);
}
.feature h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.55;
}

/* Pullquote ────────────────────────────────────────────── */
.pullquote {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}
.pullquote p {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--text);
  font-weight: 500;
}
.pullquote .pq-mark {
  color: var(--text-4);
  font-weight: 400;
  margin-right: 4px;
}
.pq-sig {
  margin-top: 18px !important;
  font-size: 14px !important;
  color: var(--text-4) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

/* Pricing ──────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
}
.price-card.pro {
  border-color: var(--accent);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(0, 113, 227, 0.1);
}
.price-tag-flag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-card header {
  margin: 0 0 16px;
}
.price-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0;
}
.price {
  margin: 0;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}
.price-period {
  display: inline-block;
  margin-left: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0;
}
.price-tag {
  margin: 0 0 22px;
  color: var(--text-3);
  font-size: 15.5px;
  line-height: 1.5;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card ul li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.45;
}
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5 L6.5 11.5 L12.5 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
}
.price-card.pro ul li::before {
  background-color: var(--accent);
}
.btn.primary.block {
  margin-top: auto;
}
.pricing-note {
  text-align: center;
  margin: 36px auto 0;
  font-size: 13.5px;
  color: var(--text-4);
}

/* Download ─────────────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.download-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
}
.dl-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.dl-head img {
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: var(--shadow-1);
}
.dl-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dl-meta {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.badge-preview {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: rgba(255, 149, 0, 0.12);
  color: var(--orange);
  border-radius: 999px;
  text-transform: uppercase;
}
.dl-steps {
  margin: 22px 0 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.5;
}
.dl-steps code {
  font-size: 0.9em;
}
.dl-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-4);
  line-height: 1.5;
}

/* ─────────────────────────── Footer ─────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 36px 24px 28px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}
.footer-brand img {
  border-radius: 6px;
}
footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}
footer nav a {
  color: var(--text-3);
}
footer nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.copyright {
  max-width: var(--max-w);
  margin: 24px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-4);
}

/* ─────────────────────────── Responsive ─────────────────────── */
/* Tablet — sections collapse some columns but multi-up cards keep
   their 2-col layout to avoid an empty-feeling page. */
@media (max-width: 880px) {
  .nav-inner {
    padding: 12px 18px;
  }
  .nav nav {
    gap: 18px;
    font-size: 13.5px;
  }
  .nav nav a:nth-child(2) {
    display: none;
  }
  .hero {
    padding: 64px 22px 40px;
  }
  .section {
    padding: 80px 22px;
  }
  /* 3-col steps would orphan one card at intermediate widths — go straight
     to 1-col. The 2-col grids stay multi-up; see the narrower breakpoint. */
  .steps {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .price-grid,
  .download-grid {
    gap: 16px;
  }
  .hud-stage {
    padding: 56px 18px 36px;
    margin-top: 56px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Phone — finally drop everything to 1-col and slim the nav further. */
@media (max-width: 640px) {
  .nav nav {
    gap: 14px;
    font-size: 13px;
  }
  .feature-grid,
  .price-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }
  .feature,
  .price-card,
  .download-card {
    padding: 28px 24px;
  }
}

/* Very narrow — hide the leading "How it works" nav link so the brand
   and the two action links (Pricing, Download) always fit cleanly. */
@media (max-width: 420px) {
  .nav nav a:first-child {
    display: none;
  }
}

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