/* VoiceType — marketing site styles
   Supports dark (default) and light themes via [data-theme] on <html>.
   Color system via CSS custom properties. */

/* ── Google Fonts are loaded in HTML head ── */

/* ─── 1. CSS custom properties ─── */
:root {
  /* dark theme (default) */
  --blue:       #4d8fdb;
  --blue-dim:   rgba(77, 143, 219, 0.12);
  --blue-glow:  rgba(77, 143, 219, 0.25);
  --bg:         #0d0e12;
  --surface:    #1a1d28;
  --surface2:   #22263a;
  --border:     rgba(255, 255, 255, 0.08);
  --fg:         #e8eaf0;
  --fg-sub:     #7a8194;
  --fg-dim:     rgba(232, 234, 240, 0.55);
  --code-bg:    #1e1e2e;
  --code-panel: #181825;
  --shadow:     0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.30);

  /* typography */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
  --font-serif: 'Source Serif 4', Georgia, serif;

  /* layout */
  --max-w: 860px;
  --pad-x: 2rem;
}

[data-theme="light"] {
  --bg:        #f4f5f8;
  --surface:   #ffffff;
  --surface2:  #eef0f5;
  --border:    rgba(0, 0, 0, 0.10);
  --fg:        #0d0e12;
  --fg-sub:    #4a4f60;
  --fg-dim:    rgba(13, 14, 18, 0.50);
  --shadow:    0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --code-bg:   #1e1e2e;   /* keep Catppuccin dark even in light mode */
  --code-panel: #181825;
}

/* ─── 2. Reset + base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  transition: background 0.2s, color 0.2s;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── 3. Blinking caret animation ─── */
@keyframes vt-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.caret {
  color: var(--blue);
  animation: vt-blink 1.1s step-end infinite;
  font-weight: 400;
}

/* ─── 4. Layout wrapper ─── */
.site-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ─── 5. Topbar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__back {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-sub);
  white-space: nowrap;
  transition: color 0.15s;
}
.topbar__back:hover {
  color: var(--fg);
  text-decoration: none;
}

.topbar__wordmark {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0;
  user-select: none;
}
.topbar__wordmark .vt-voice {
  color: var(--blue);
}

.topbar__theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-sub);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.topbar__theme-toggle:hover {
  color: var(--fg);
  border-color: var(--fg-sub);
  background: var(--surface);
}
.topbar__theme-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ─── 6. Hero ─── */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem var(--pad-x) 3rem;
}

.hero__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-sub);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.hero__wordmark {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0;
}
.hero__wordmark .vt-voice { color: var(--blue); }

.hero__headline {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 1.1rem;
  line-height: 1.4;
}

.hero__lede {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg);
  opacity: 0.88;
  max-width: 600px;
  margin-bottom: 1.6rem;
}

.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.35rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(77, 143, 219, 0.35);
}
.btn-primary:hover {
  background: #5f9de3;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(77, 143, 219, 0.5);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-outline:hover {
  border-color: var(--fg-sub);
  text-decoration: none;
  background: var(--surface2);
}
.btn-outline:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.hero__gatekeeper {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-sub);
  line-height: 1.5;
}

/* ─── 7. Section label (eyebrow text) ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  opacity: 0.7;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* ─── 8. Zero-friction callout ─── */
.callout {
  background: linear-gradient(180deg, rgba(77, 143, 219, 0.07) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem var(--pad-x);
}

.callout__headline {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.callout__body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fg);
  opacity: 0.88;
  max-width: 640px;
}
.callout__body p + p {
  margin-top: 0.6rem;
}

/* ─── 9. Section 1: How it works (3-step flow) ─── */
.how-it-works {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem var(--pad-x);
}

.how-flow {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  gap: 0.25rem;
  align-items: center;
  margin-top: 1.25rem;
}

.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.how-step__key {
  display: inline-block;
  background: #222;
  border: 1px solid #444;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.how-step__bars {
  color: var(--blue);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.how-step__label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--fg);
}

.how-step__caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-sub);
  line-height: 1.5;
}

.how-arrow {
  text-align: center;
  font-size: 1.1rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.how-caption {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--fg-sub);
  line-height: 1.6;
  max-width: 560px;
}

/* ─── 10. Section 1b: Menubar icon states ─── */
.menubar-states {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem var(--pad-x);
}

.menubar-states__intro {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-sub);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.mb-states-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.mb-state {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mb-state__strip {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

.mb-state__strip svg {
  display: block;
  width: 100%;
  height: auto;
}

.mb-state__name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}

.mb-state__desc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-sub);
  line-height: 1.5;
}

/* ─── 11. Section 2: Feature cards ─── */
.features {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem var(--pad-x);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-card__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
}

.feature-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.3;
}

.feature-card__body {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--fg-sub);
}
.feature-card__body em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg);
}

/* ─── 11. Section 3: Mac window mocks ─── */
.in-action {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem var(--pad-x);
}

.in-action__subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-sub);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.mock-block {
  margin-bottom: 1.75rem;
}
.mock-block:last-of-type { margin-bottom: 0; }

.mock-block__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.mock-block__caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-sub);
  margin-top: 0.5rem;
  line-height: 1.6;
  max-width: 640px;
}
.mock-block__caption em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg);
}

.mock-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-dim);
  margin-top: 1rem;
  line-height: 1.5;
}

/* Mac window chrome */
.mock-window {
  border-radius: 7px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.18);
  font-family: var(--font-mono);
}

.mock-menubar {
  background: linear-gradient(#1d1d1f, #2a2a2d);
  color: #ddd;
  font-size: 0.68rem;
  padding: 0.2rem 0.65rem 0.2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  gap: 0.75rem;
}

.mock-menubar__left {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mock-menubar__app {
  font-weight: 600;
}

.mock-menubar__item {
  opacity: 0.6;
}

.mock-menubar__right {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.mock-menubar__mic {
  color: #ff4d4d;
  font-size: 0.8rem;
}

.mock-menubar__clock {
  opacity: 0.6;
}

.mock-titlebar {
  background: linear-gradient(#f3f3f5, #e6e6ea);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.42rem 0.7rem;
}

.mock-traffic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-traffic--close  { background: #ff5f57; }
.mock-traffic--min    { background: #febc2e; }
.mock-traffic--max    { background: #28c840; }

.mock-titlebar__name {
  margin-left: 0.5rem;
  font-size: 0.68rem;
  color: #555;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Dictate mock: IDE split pane ── */
.mock-ide {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--code-bg);
  min-height: 140px;
}

.mock-ide__editor {
  padding: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cdd6f4;
  line-height: 1.7;
}

/* Catppuccin Mocha-inspired syntax colors */
.syn-keyword  { color: #74c7ec; }
.syn-fn       { color: #f5e0dc; }
.syn-ctrl     { color: #cba6f7; }
.syn-var      { color: #94e2d5; }

.mock-ide__chat {
  background: var(--code-panel);
  border-left: 1px solid #313244;
  padding: 0.65rem 0.8rem;
  color: #cdd6f4;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.78rem;
  line-height: 1.55;
}

.mock-ide__chat-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.mock-ide__prompt {
  background: rgba(77, 143, 219, 0.14);
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font-style: italic;
  line-height: 1.55;
}

.mock-ide__timer {
  opacity: 0.4;
  font-size: 0.68rem;
  margin-top: 0.4rem;
  text-align: right;
}

/* ── Steer mock: desktop + overlay ── */
.mock-desktop {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #2c3e50, #3a516b);
  overflow: hidden;
}

.mock-desktop__blur {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(2px);
}

.vt-overlay {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  background: rgba(245, 247, 250, 0.97);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.30);
  padding: 0.55rem;
  z-index: 10;
}

.vt-overlay__search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 6px;
  background: #fff;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1d1d1f;
}

.vt-overlay__icon  { color: var(--blue); }
.vt-overlay__query { opacity: 0.5; flex: 1; }
.vt-overlay__close { opacity: 0.4; font-size: 0.68rem; margin-left: auto; }

.vt-overlay__cursor {
  background: var(--blue);
  color: #fff;
  padding: 0 3px;
  font-size: 0.7rem;
}

.vt-overlay__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.55rem;
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.78rem;
  color: #1d1d1f;
  margin-bottom: 0.2rem;
}

.vt-overlay__item--active {
  background: rgba(77, 143, 219, 0.10);
}

.vt-overlay__item-name {
  color: var(--blue);
  font-weight: 600;
}

.vt-overlay__item-desc {
  opacity: 0.55;
  font-size: 0.68rem;
}

.vt-overlay__item-key {
  margin-left: auto;
  font-size: 0.62rem;
  background: var(--blue);
  color: #fff;
  padding: 1px 4px;
  border-radius: 2px;
}

.vt-overlay__item--dim {
  opacity: 0.68;
}

.vt-overlay__footer {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  display: flex;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.62rem;
  color: rgba(29, 29, 31, 0.5);
}

/* ── Translate mock: recording + Slack ── */
.mock-translate {
  display: grid;
  grid-template-columns: 1fr 28px 1.4fr;
  align-items: center;
  gap: 0;
}

.mock-recording {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 0.75rem;
  background: #1d1d1f;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.78rem;
}

.mock-recording__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #ff4d4d;
  margin-bottom: 0.45rem;
}

.mock-recording__waveform {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin-bottom: 0.5rem;
}

.mock-recording__bar {
  background: var(--blue);
  width: 3px;
  border-radius: 1px;
}

.mock-recording__speech {
  font-style: italic;
  opacity: 0.85;
  line-height: 1.5;
  font-size: 0.78rem;
}

.mock-recording__meta {
  opacity: 0.5;
  font-size: 0.65rem;
  margin-top: 0.4rem;
}

.mock-translate__arrow {
  text-align: center;
  font-size: 1.1rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.mock-slack {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.mock-slack__menubar {
  background: linear-gradient(#1d1d1f, #2a2a2d);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  color: #ddd;
}

.mock-slack__menubar-app { font-weight: 600; }

.mock-slack__header {
  background: #fff;
  color: #1d1c1d;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 0.82rem;
}

.mock-slack__body {
  background: #fff;
  color: #1d1c1d;
  padding: 0.65rem 0.7rem;
}

.mock-slack__input {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
  color: #444;
  font-size: 0.82rem;
  line-height: 1.5;
}

.mock-slack__cursor {
  background: var(--blue);
  color: #fff;
  padding: 0 3px;
}

.mock-slack__toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  opacity: 0.6;
}

.mock-slack__send {
  margin-left: auto;
  background: #007a5a;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.72rem;
}

/* ─── 12. Section 4: Vision ─── */
.vision {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem var(--pad-x);
}

.vision__body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--fg);
  opacity: 0.88;
  max-width: 620px;
}
.vision__body p + p {
  margin-top: 0.75rem;
}
.vision__body em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg);
  opacity: 1;
}

/* ─── 13. Section 5: Install ─── */
.install {
  padding: 2.75rem var(--pad-x) 3rem;
  border-bottom: 1px solid var(--border);
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1.25rem 0 2rem;
}

.install-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  text-align: center;
  font-family: var(--font-mono);
}

.install-step__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.install-step__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}

.install-step__sub {
  font-size: 0.68rem;
  color: var(--fg-sub);
  line-height: 1.4;
}

.install__cta {
  text-align: center;
}

.install__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(77, 143, 219, 0.4);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.install__cta-btn:hover {
  background: #5f9de3;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(77, 143, 219, 0.55);
  transform: translateY(-1px);
}
.install__cta-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.install__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-sub);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* ─── 14. Footer: Local-first promise ─── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem var(--pad-x) 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.65rem;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer__list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-sub);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.footer__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.68rem;
}

.footer__list--red li::before {
  content: '↗';
  color: #e05b4b;
}

.footer__opt-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-sub);
  margin-top: 0.5rem;
  opacity: 0.75;
  line-height: 1.5;
}

.footer__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-sub);
}

.footer__bottom a {
  color: var(--fg-sub);
  text-decoration: none;
  transition: color 0.15s;
}
.footer__bottom a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.footer__sha {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-dim);
  margin-top: 0.65rem;
  line-height: 1.5;
}

.footer__sha code {
  font-family: var(--font-mono);
  color: var(--fg-sub);
  word-break: break-all;
}

/* ─── 15. Divider lines between sections ─── */
section {
  border-bottom: 1px solid var(--border);
}
section:last-child { border-bottom: none; }

/* ─── 16. Responsive — ≤640px ─── */
@media (max-width: 640px) {
  :root {
    --pad-x: 1.1rem;
  }

  .topbar__back { display: none; }

  .hero {
    padding: 2rem var(--pad-x) 1.75rem;
  }

  .hero__wordmark {
    font-size: 1.75rem;
  }

  .hero__headline {
    font-size: 1rem;
  }

  .callout__headline {
    font-size: 1.05rem;
  }

  /* 3-step flow stacks vertically */
  .how-flow {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .how-arrow {
    transform: rotate(90deg);
    justify-self: center;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.15rem 0;
  }

  /* Menubar states: 2 columns on mobile */
  .mb-states-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Feature cards stack */
  .feature-cards {
    grid-template-columns: 1fr;
  }

  /* Mac window mocks go full-width */
  .mock-ide {
    grid-template-columns: 1fr;
  }
  .mock-ide__chat {
    border-left: none;
    border-top: 1px solid #313244;
  }

  .mock-translate {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .mock-translate__arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  /* Install steps: 2 columns + last one centered */
  .install-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .install-step:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  /* Footer grid stacks */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  /* Desktop steer mock: limit height */
  .mock-desktop {
    height: 260px;
  }
}

@media (max-width: 400px) {
  .install-steps {
    grid-template-columns: 1fr;
  }
  .install-step:last-child {
    grid-column: auto;
    max-width: none;
  }
}

/* ─── 17. Focus ring utility ─── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── 18. Selection color ─── */
::selection {
  background: rgba(77, 143, 219, 0.30);
  color: var(--fg);
}
