/* ═══════════════════════════════════════════════════════════
   Spotty — landing, guide, about, privacy.

   The app is a translucent search bar floating over the
   desktop, so the site is built the same way: a near-black
   canvas with light raking across it, and every surface a
   piece of glass sitting on top of it.

   Motion follows the Apple fluid-interface rules: feedback
   on press, custom ease-out curves, exits faster than
   entrances, nothing over 300 ms in the interface itself.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #08080b;
  --bg-2: #0d0d12;
  --bg-3: #121218;

  --glass: rgba(26, 26, 33, 0.66);
  --glass-2: rgba(38, 38, 47, 0.72);
  --glass-solid: #17171d;

  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.24);

  --ink: #f5f5f7;
  --ink-2: #cfcfd8;
  --muted: #90909c;
  --muted-2: #6b6b77;

  /* the light bending through the glass edge */
  --a1: #8ea2ff;
  --a2: #c58bff;
  --a3: #ff9ecb;
  --accent: #9db0ff;
  --accent-soft: rgba(142, 162, 255, 0.14);
  --spectrum: linear-gradient(100deg, var(--a1), var(--a2) 52%, var(--a3));

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-s: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.66);

  /* Stronger than the built-in curves — the CSS defaults are too weak. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --nav-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 22px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

/* Light raking across the desk, like the wallpaper under the app.
   Fixed and static — nothing here ever animates. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(112deg,
      rgba(255, 255, 255, 0) 0 90px,
      rgba(255, 255, 255, 0.028) 96px 150px,
      rgba(255, 255, 255, 0) 168px 300px);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(64% 40% at 50% -8%, rgba(142, 162, 255, 0.16), transparent 72%),
    radial-gradient(40% 30% at 88% 4%, rgba(197, 139, 255, 0.12), transparent 74%),
    radial-gradient(48% 34% at 8% 22%, rgba(255, 158, 203, 0.07), transparent 76%);
}

::selection { background: rgba(142, 162, 255, 0.32); color: #fff; }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 810px; }

html[lang="en"] .only-ru { display: none !important; }
html[lang="ru"] .only-en { display: none !important; }

* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16); border-radius: 99px;
  border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); background-clip: padding-box; }

/* ═══ Nav — a translucent layer, content scrolls under it ═══ */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 650; font-size: 1.12rem; letter-spacing: -0.025em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; display: block; border-radius: 7px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  padding: 7px 12px; border-radius: 9px;
  transition: background 140ms ease, color 140ms ease;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); background: rgba(255, 255, 255, 0.08); }

.nav-cta {
  background: #fff !important; color: #0a0a0d !important;
  font-weight: 600 !important; padding: 8px 17px !important; margin-left: 16px;
  transition: transform 140ms var(--ease-out), background 140ms ease !important;
}
.nav-cta:active { transform: scale(0.97); }

.lang-btn {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 9px;
  padding: 6px 12px; margin-left: 8px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out);
}
.lang-btn:hover { border-color: var(--line-3); color: var(--ink); }
.lang-btn:active { transform: scale(0.96); }

.burger {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: 9px; width: 40px; height: 36px; cursor: pointer;
  color: var(--ink); font-size: 1rem; align-items: center; justify-content: center;
}
.burger:active { transform: scale(0.96); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10, 10, 14, 0.96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 16px;
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: 10px 12px; }
  .nav-cta { text-align: center; margin: 6px 0 0; }
  .lang-btn { margin: 8px 0 0; width: 100%; }
}

/* ═══ Section furniture ═══ */
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase;
  margin-bottom: 14px;
  background: var(--spectrum);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
section { padding: 88px 0; }
section h2 {
  font-size: clamp(1.72rem, 3.6vw, 2.3rem);
  letter-spacing: -0.04em; line-height: 1.14; margin-bottom: 12px; font-weight: 700;
}
.section-sub { color: var(--muted); max-width: 660px; margin-bottom: 40px; }

/* ═══ Hero ═══ */
.hero { padding: 76px 0 34px; text-align: center; }
.hero-logo {
  width: 92px; height: 92px; margin: 0 auto 26px; display: block;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.hero h1 {
  font-size: clamp(2.9rem, 8.4vw, 5rem);
  line-height: 1; letter-spacing: -0.055em; font-weight: 750;
  margin-bottom: 18px;
}
.hero .lead {
  font-size: 1.16rem; color: var(--ink-2); max-width: 600px; margin: 0 auto 32px;
  letter-spacing: -0.008em;
}
.hero .lead b { color: var(--ink); font-weight: 600; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.95rem; font-weight: 600; padding: 13px 26px;
  border-radius: 999px; border: 1px solid transparent;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms ease,
              border-color 160ms ease, color 160ms ease, box-shadow 200ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: #fff; color: #0a0a0d;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(255, 255, 255, 0.16); }
.btn-ghost {
  background: var(--glass); color: var(--ink); border-color: var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--line-3); background: var(--glass-2); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
  margin-top: 26px; font-size: 0.85rem; color: var(--muted-2);
}
.hero-meta b { color: var(--ink-2); font-weight: 600; }

/* ═══ The demo: a real search bar you can type into ═══ */
.demo-stage { padding: 20px 0 30px; }
.demo-hint {
  text-align: center; font-size: 0.85rem; color: var(--muted-2);
  margin-bottom: 18px;
}
.demo-hint kbd { margin: 0 2px; }

/* the glass bar itself */
.bar {
  position: relative;
  max-width: 760px; margin: 0 auto;
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 240ms ease;
}
/* light catching the top edge of a thick piece of glass */
.bar::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}
.bar.focused { border-color: rgba(142, 162, 255, 0.4); }

.bar-input {
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; height: 66px;
  border-bottom: 1px solid var(--line);
}
.bar-input svg { flex: none; color: var(--muted); }
.bar-input input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--ink); font-family: var(--sans);
  font-size: 1.16rem; letter-spacing: -0.015em;
}
.bar-input input::placeholder { color: var(--muted-2); }
.caret-hint {
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted-2);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; flex: none;
}

.bar-body { position: relative; max-height: 322px; overflow-y: auto; overscroll-behavior: contain; }

/* one pill glides between rows instead of each row lighting up:
   the selection keeps its identity while it moves */
.sel-pill {
  position: absolute; left: 8px; right: 8px; top: 0;
  height: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
  will-change: transform, height;
  opacity: 0;
}
.sel-pill.on { opacity: 1; }

.bar-group {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2);
  padding: 14px 22px 6px;
}
.row {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  padding: 9px 22px; margin: 0 8px;
  border-radius: 12px; cursor: pointer;
  opacity: 0;
  animation: row-in 260ms var(--ease-out) forwards;
}
@keyframes row-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.row .ic {
  width: 26px; height: 26px; flex: none; border-radius: 7px;
  display: grid; place-items: center; font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.row .ic.calc { background: rgba(142, 162, 255, 0.2); border-color: rgba(142, 162, 255, 0.3); }
.row .ic.cmd { background: rgba(197, 139, 255, 0.18); border-color: rgba(197, 139, 255, 0.28); }
.row .ic.web { background: rgba(255, 158, 203, 0.16); border-color: rgba(255, 158, 203, 0.26); }
.row .tx { flex: 1; min-width: 0; }
.row .tt {
  font-size: 0.95rem; color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em;
}
.row .tt mark { background: none; color: var(--a1); font-weight: 650; }
.row .sub {
  font-family: var(--mono); font-size: 0.71rem; color: var(--muted-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row .kind { font-size: 0.78rem; color: var(--muted-2); flex: none; }
.row .big {
  font-family: var(--mono); font-size: 1.05rem; color: var(--ink); font-weight: 600;
}

.bar-empty { padding: 30px 22px; text-align: center; color: var(--muted-2); font-size: 0.9rem; }

.bar-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 18px; border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.78rem; color: var(--muted-2);
}
.foot-keys { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-keys span { display: inline-flex; align-items: center; gap: 6px; }
.gear {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 0.75rem; flex: none;
}

/* the toast the demo throws when you press Enter */
.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 90;
  transform: translate(-50%, 14px) scale(0.96);
  opacity: 0;
  background: var(--glass-2);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--line-2);
  border-radius: 999px; padding: 11px 22px;
  font-size: 0.9rem; color: var(--ink);
  box-shadow: var(--shadow);
  pointer-events: none;
  /* in gently, out quickly */
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
}
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

.try-list {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  max-width: 760px; margin: 18px auto 0;
}
.try {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--ink-2); background: var(--glass);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
  transition: transform 150ms var(--ease-out), border-color 150ms ease, color 150ms ease;
}
.try:active { transform: scale(0.96); }
.try i { color: var(--muted-2); font-style: normal; }

@media (hover: hover) and (pointer: fine) {
  .try:hover { border-color: var(--line-3); color: #fff; }
  .row:hover .tt { color: #fff; }
  .toolbar span:hover { border-color: var(--line-3); transform: translateY(-2px); }
  .feature:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
  .nav-cta:hover { background: #e9e9ee !important; }
  .shot:hover { box-shadow: var(--shadow-lg); }
}

/* ═══ Screenshot ═══ */
.shot {
  border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: var(--bg-2); box-shadow: var(--shadow);
  overflow: hidden; margin: 44px auto 0; max-width: 940px;
  transition: box-shadow 280ms ease;
}
.shot img { width: 100%; display: block; }
.shot-cap {
  text-align: center; font-size: 0.82rem; color: var(--muted-2); margin-top: 14px;
}

/* ═══ Features ═══ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 16px;
}
.feature {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 24px 28px;
  transition: transform 260ms var(--ease-out), border-color 200ms ease, box-shadow 260ms ease;
}
.feature .ico {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; font-size: 1rem; margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
}
.feature h3 { font-size: 1.02rem; letter-spacing: -0.02em; margin-bottom: 8px; font-weight: 650; }
.feature p { color: var(--muted); font-size: 0.91rem; }
.feature p + p { margin-top: 8px; }

/* a wide feature that spans the grid */
.feature.wide { grid-column: 1 / -1; }
.feature.wide .cols {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  margin-top: 16px;
}
.feature.wide .cols div b { display: block; font-size: 0.92rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.feature.wide .cols div p { font-size: 0.87rem; }

/* ═══ Keys ═══ */
kbd {
  font-family: var(--mono); font-size: 0.79em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 6px;
  padding: 2px 7px; color: var(--ink-2); white-space: nowrap;
}

.keygrid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.keyrow {
  display: flex; align-items: center; gap: 14px;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--r); padding: 13px 18px;
}
.keyrow .k { flex: none; min-width: 124px; }
.keyrow .d { color: var(--muted); font-size: 0.9rem; }

/* ═══ Toolbar strip ═══ */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.toolbar span {
  padding: 7px 15px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2);
  transition: border-color 180ms ease, transform 180ms var(--ease-out);
}

/* ═══ Download ═══ */
.download { text-align: center; }
.download .section-sub { margin-left: auto; margin-right: auto; }
.req { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.req span {
  font-family: var(--mono); font-size: 0.73rem; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.note-line { margin-top: 18px; font-size: 0.85rem; color: var(--muted-2); }
.note-line b { color: var(--ink-2); }

/* ═══ FAQ ═══ */
.faq { display: grid; gap: 10px; max-width: 820px; }
details {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 22px;
  transition: border-color 180ms ease;
}
details[open] { border-color: var(--line-2); }
summary {
  cursor: pointer; font-weight: 600; font-size: 0.97rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  letter-spacing: -0.015em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.2rem;
  color: var(--accent); transition: transform 200ms var(--ease-out); flex: none;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
details p + p { margin-top: 10px; }
details ul { color: var(--muted); font-size: 0.92rem; margin: 10px 0 0 22px; }
details li { margin-bottom: 6px; }

/* ═══ Prose (guide / about / privacy) ═══ */
.prose { padding: 54px 0 90px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -0.05em; margin-bottom: 12px; }
.prose .lead-p { color: var(--muted); font-size: 1.04rem; margin-bottom: 38px; }
.prose h2 {
  font-size: 1.38rem; letter-spacing: -0.035em; margin: 48px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose h3 { font-size: 1.04rem; margin: 28px 0 10px; letter-spacing: -0.02em; }
.prose p { margin-bottom: 14px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 16px 24px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose code {
  font-family: var(--mono); font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; color: #bcc8ff;
}
.prose img {
  max-width: 100%; border-radius: var(--r); border: 1px solid var(--line-2);
  margin: 12px 0 20px; display: block;
}
.callout {
  background: var(--accent-soft); border: 1px solid rgba(142, 162, 255, 0.22);
  border-left: 3px solid var(--a1); border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 20px; margin-bottom: 20px; font-size: 0.94rem; color: var(--ink-2);
}
.callout b, .callout strong { color: var(--ink); }

.steps { counter-reset: s; list-style: none; margin-left: 0 !important; }
.steps > li {
  counter-increment: s; position: relative;
  padding-left: 46px; margin-bottom: 26px;
}
.steps > li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: #0a0a0d;
  background: #fff;
}
.steps > li > b { display: block; font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -0.02em; }

.tbl-wrap { overflow-x: auto; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 440px; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 0.71rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
  background: rgba(255, 255, 255, 0.03); white-space: nowrap;
}
td:first-child { white-space: nowrap; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

/* ═══ Footer ═══ */
.foot { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.89rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot small { color: var(--muted-2); font-size: 0.82rem; }

/* ═══ Accessibility preferences ═══
   Reduced motion means gentler feedback, not none. */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .row { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav-links { background: #0b0b0f; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bar, .toast, .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bar, .feature, .keyrow, details, .try, .toolbar span { background: var(--glass-solid); }
  .toast { background: #22222a; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, 0.2); --line-2: rgba(255, 255, 255, 0.34); --muted: #a9a9b4; }
  .bar, .feature, .keyrow, details { background: #15151b; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 54px 0 24px; }
  .bar-input { height: 58px; padding: 0 16px; gap: 11px; }
  .bar-input input { font-size: 1.02rem; }
  .caret-hint { display: none; }
  .row { padding: 9px 14px; }
  .bar-group { padding: 12px 16px 5px; }
  .foot-keys span:nth-child(n + 3) { display: none; }
  .keyrow { flex-direction: column; align-items: flex-start; gap: 7px; }
  .keyrow .k { min-width: 0; }
}
