/* RevFly site. Colors follow the app icon: deep navy base, indigo → cyan gradient. */
:root {
  color-scheme: dark;
  --bg: #0b0b14;
  --bg-alt: #10101c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3f3f8;
  --muted: rgba(243, 243, 248, 0.72);
  --dim: rgba(243, 243, 248, 0.52);
  --indigo: #5b4cf5;
  --blue: #2f8bff;
  --cyan: #22d3ee;
  --violet: #8b7bff;
  --green: #34d399;
  --grad: linear-gradient(100deg, #6d5cff 0%, #2f8bff 50%, #22d3ee 100%);
  --btn-text: #ffffff;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: rgba(91, 76, 245, 0.35);
  --window: #15151f;
  --window-bar: #1c1c28;
  --radius: 14px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f7fb;
    --bg-alt: #eef0f7;
    --surface: #ffffff;
    --surface-2: #f2f3f9;
    --border: rgba(15, 15, 40, 0.1);
    --text: #0d0d1a;
    --muted: rgba(13, 13, 26, 0.72);
    --dim: rgba(13, 13, 26, 0.55);
    --violet: #5b4cf5;
    --green: #059669;
    --shadow: 0 20px 50px -24px rgba(20, 20, 60, 0.35);
    --glow: rgba(91, 76, 245, 0.18);
    --window: #ffffff;
    --window-bar: #f1f2f7;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

code,
kbd {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
}

.card code,
.card kbd,
details code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.4em;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 750;
  text-align: center;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.08rem;
  font-weight: 650;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 10px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 20px 0 0;
}

.lead-sm {
  color: var(--muted);
  margin: 0;
}

.center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--grad);
  color: var(--btn-text);
  box-shadow: 0 8px 24px -8px var(--glow);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 1rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

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

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

.nav-actions {
  display: flex;
  gap: 10px;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto 40%;
  height: 720px;
  background:
    radial-gradient(closest-side, rgba(91, 76, 245, 0.28), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(34, 211, 238, 0.16), transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}

.install {
  max-width: 560px;
}

.install-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.install-tabs button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: none;
  color: var(--dim);
  cursor: pointer;
}

.install-tabs button[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.install-cmd,
.mini-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--window);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 10px 10px 14px;
}

.install-cmd code,
.mini-cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--text);
  scrollbar-width: none;
}

.install-cmd code::-webkit-scrollbar,
.mini-cmd code::-webkit-scrollbar {
  display: none;
}

.copy {
  flex: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}

.copy:hover {
  color: var(--text);
}

.install-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--dim);
}

/* Hero demo */
.hero-demo {
  position: relative;
  padding: 36px 0 52px;
}

.demo-window {
  background: var(--window);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-titlebar,
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--window-bar);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.dot:nth-child(2) {
  background: #febc2e;
}

.dot:nth-child(3) {
  background: #28c840;
}

.demo-title {
  margin-left: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.demo-body {
  padding: 18px 18px 6px;
  min-height: 176px;
}

.msg {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.msg-me {
  animation: pop 0.35s ease;
}

.avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.a1 {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.a2 {
  background: var(--grad);
}

.msg-name {
  margin: 0;
  font-weight: 650;
  font-size: 0.92rem;
}

.msg-name span {
  font-weight: 400;
  color: var(--dim);
  font-size: 0.78rem;
  margin-left: 6px;
}

.msg-text {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.demo-input {
  position: relative;
  margin: 0 14px 14px;
  padding: 12px 14px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.95rem;
}

.demo-placeholder {
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--dim);
  pointer-events: none;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  vertical-align: -0.18em;
  background: var(--blue);
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}

.spoken {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.86rem;
  color: var(--muted);
  box-shadow: var(--shadow);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.spoken.is-hidden {
  opacity: 0;
  transform: translate(-50%, 6px);
}

/* Voice pill, mirroring the in-app HUD states */
.pill {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 30, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  box-shadow:
    0 14px 40px -10px rgba(0, 0, 0, 0.6),
    0 0 0 6px color-mix(in srgb, var(--pill-color) 14%, transparent);
  --pill-color: #8b7bff;
  transition: box-shadow 0.3s ease;
  white-space: nowrap;
}

.pill[data-state="transcribing"] {
  --pill-color: #38bdf8;
}

.pill[data-state="translating"] {
  --pill-color: #a78bfa;
  animation: glow 1.2s ease-in-out infinite;
}

.pill[data-state="done"] {
  --pill-color: #34d399;
}

.pill-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--pill-color) 22%, transparent);
}

.pill-icon > * {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pill[data-state="listening"] .bars,
.pill[data-state="transcribing"] .ring,
.pill[data-state="translating"] .ring,
.pill[data-state="done"] .check {
  opacity: 1;
}

.bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}

.bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--pill-color);
  animation: eq 0.9s ease-in-out infinite;
  transform-origin: center;
}

.bars i:nth-child(2) {
  animation-delay: -0.2s;
}

.bars i:nth-child(3) {
  animation-delay: -0.45s;
}

.bars i:nth-child(4) {
  animation-delay: -0.1s;
}

.bars i:nth-child(5) {
  animation-delay: -0.6s;
}

.ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--pill-color) 30%, transparent);
  border-top-color: var(--pill-color);
  animation: spin 0.8s linear infinite;
}

.check {
  color: var(--pill-color);
  font-weight: 800;
  font-size: 1.05rem;
}

/* Started with the translate hotkey: teal until it's done */
.pill[data-run="translate"]:not([data-state="done"]) {
  --pill-color: #14b8a6;
}

/* The hero pill keeps one width through every stage, like the app's */
#demo-pill {
  width: 330px;
  max-width: calc(100% - 16px);
}

.pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.pill-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pill-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 16px;
  padding: 0 5px;
  border-radius: 5px;
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.33);
}

.pill[data-state="done"] .pill-badge {
  display: none;
}

.pill-label {
  font-weight: 650;
  font-size: 0.92rem;
}

.pill-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: "JetBrains Mono", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Strip */
.strip {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-block: 26px;
  text-align: center;
}

.strip strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 750;
}

.strip span {
  color: var(--dim);
  font-size: 0.88rem;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.steps p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Pipeline */
.pipeline {
  margin-top: 40px;
  display: flex;
  align-items: stretch;
  gap: 26px;
  overflow-x: auto;
  padding: 6px 2px 10px;
}

.node {
  position: relative;
  flex: 1 0 118px;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
}

.node small {
  display: block;
  font-weight: 400;
  color: var(--dim);
  font-size: 0.74rem;
  margin-top: 2px;
}

.node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -21px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-weight: 400;
}

.node-branch {
  border-color: color-mix(in srgb, var(--violet) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 12%, transparent);
}

.node-end {
  border-color: color-mix(in srgb, var(--green) 55%, transparent);
}

.pipeline-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 14px 0 0;
}

.skip-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 14%, transparent);
}

/* Feature cards */
.features {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.privacy-grid .kicker,
.privacy-grid h2 {
  text-align: left;
}

.modes {
  display: grid;
  gap: 14px;
}

.mode {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.mode p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.tag {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: 2px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
}

/* Screenshot */
.shot {
  margin: 40px auto 0;
  max-width: 1000px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--window);
}

/* Language switch */
.i18n-pending body {
  visibility: hidden;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.lang-switch button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 3px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--dim);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--text);
}

/* Guide: first run */
.quickstart {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quickstart li {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.qs-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--violet);
  color: var(--violet);
  font-weight: 700;
  font-size: 0.82rem;
}

.quickstart h3 {
  font-size: 0.98rem;
}

.quickstart p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.quickstart kbd,
.guide kbd,
.guide code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.4em;
}

/* Guide: chapter index */
.guide-index {
  position: sticky;
  top: 64px;
  z-index: 5;
  display: flex;
  gap: 6px;
  margin: 40px 0 0;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.guide-index::-webkit-scrollbar {
  display: none;
}

.guide-index a {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.guide-index a:hover,
.guide-index a.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--violet) 55%, transparent);
}

.guide-index span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--violet);
}

.guide-index b {
  font-weight: 600;
}

/* Guide: chapters */
.guide {
  display: grid;
  gap: 28px;
  margin-top: 20px;
}

.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
  padding: 36px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  scroll-margin-top: 130px;
}

.guide-step:nth-child(even) .guide-text {
  order: 2;
}

.guide-n {
  margin: 0 0 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.guide-text h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 750;
}

.guide-lead {
  margin: 12px 0 0;
  color: var(--muted);
}

.opts {
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
}

.opts div {
  padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--violet) 45%, transparent);
}

.opts dt {
  font-weight: 650;
  font-size: 0.96rem;
}

.opts dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.opts b,
.tip b {
  color: var(--text);
  font-weight: 650;
}

/* The app's own English label next to a translated name. */
.ui {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--dim);
  margin-left: 4px;
  white-space: nowrap;
}

.tip {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--green) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}

.guide-shot {
  margin: 0;
  position: sticky;
  top: 140px;
  display: grid;
  gap: 14px;
}

.guide-shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  background: #13131c;
}

/* Pill legend */
.pill-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}

.legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.legend-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pill.pill-static {
  position: static;
  transform: none;
  animation: none;
  max-width: 100%;
}

.pill-static + .pill-static {
  margin-top: 4px;
}

.pill-static .pill-icon > * {
  opacity: 1;
}

.pill[data-state="warning"] {
  --pill-color: #ff9f43;
}

.pill-icon .strike {
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--pill-color);
  transform: rotate(-24deg);
}

.bars-down i {
  animation: none;
  height: 4px;
  opacity: 0.45;
}

/* Downloads */
.downloads {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.dl.is-current {
  border-color: color-mix(in srgb, var(--blue) 60%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent);
}

.dl h3 {
  font-size: 1.25rem;
}

.dl-req {
  margin: -4px 0 6px;
  color: var(--dim);
  font-size: 0.88rem;
}

.dl .btn {
  width: 100%;
}

.dl-lead {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.dl-alt {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-cmd {
  width: 100%;
  font-size: 0.85rem;
}

/* FAQ */
details {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 4px 18px;
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--dim);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 0 0 14px;
  color: var(--muted);
}

/* Footer */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

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

.footer p {
  margin: 0;
  color: var(--dim);
  font-size: 0.88rem;
}

.footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer nav a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--text);
}

.brand-sm {
  font-size: 1rem;
}

.brand-sm img {
  border-radius: 6px;
}

/* Animations */
@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  50% {
    box-shadow:
      0 14px 40px -10px rgba(0, 0, 0, 0.6),
      0 0 0 10px color-mix(in srgb, var(--pill-color) 22%, transparent);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid,
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-demo {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
  .features,
  .downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps,
  .quickstart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
  .guide-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px;
  }
  .guide-step:nth-child(even) .guide-text {
    order: 0;
  }
  .guide-shot {
    position: static;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 44px 0 36px;
  }
  .section {
    padding: 64px 0;
  }
  .features,
  .downloads,
  .steps,
  .quickstart {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-step {
    padding: 20px;
    border-radius: 16px;
  }
  .guide-index {
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .nav-actions .btn-primary {
    display: none;
  }
  .strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
  .nav-actions .btn-ghost span {
    display: none;
  }
  .pipeline {
    flex-direction: column;
    gap: 22px;
    overflow: visible;
  }
  .node {
    flex: none;
  }
  .node:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -21px;
    transform: translateX(-50%);
  }
  .spoken {
    font-size: 0.78rem;
    white-space: normal;
    width: 92%;
  }
}
