// jiq docs — clean, minimal, readable on every screen size.
// Minimum font size rule: prose ≥ 15px (0.9375rem), decorative labels ≥ 13px.

// ─── Type scale ──────────────────────────────────────────────────────
// Body is 17px. Headings follow a strict proportional scale at every breakpoint.
// Nothing in the reading flow drops below 15px; only uppercase decorative labels
// may be 13px (they visually read larger due to letter-spacing).

body {
  font-size: 1.0625rem !important; // 17px
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.75;
}

.main-content {
  font-size: 1.0625rem !important;

  h1 { font-size: 2rem !important;  font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-top: 0; margin-bottom: 0.5rem; }
  h2 { font-size: 1.4rem !important; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; margin-top: 2.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid #21262d; }
  h3 { font-size: 1.1rem !important; font-weight: 600; letter-spacing: -0.01em; margin-top: 1.75rem; }
  p, li, td, th { font-size: 1.0625rem !important; line-height: 1.75; }
}

// Tablet ≤800px
@media (max-width: 50rem) {
  body, .main-content { font-size: 1.0625rem !important; }
  .main-content {
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.3rem !important; margin-top: 2rem; }
    h3 { font-size: 1.05rem !important; margin-top: 1.5rem; }
    p, li, td, th { font-size: 1.0625rem !important; }
  }
}

// Phone ≤480px — same size, arm's length reading
@media (max-width: 30rem) {
  body, .main-content { font-size: 1.0625rem !important; }
  .main-content {
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.2rem !important; }
    h3 { font-size: 1.05rem !important; }
    p, li, td, th { font-size: 1.0625rem !important; }
  }
}

// Sidebar nav — bump from theme default (~14px) to 15px
.nav-list .nav-list-link {
  font-size: 0.9375rem;
}

// ─── Links ───────────────────────────────────────────────────────────
.main-content a {
  text-decoration: underline;
  text-decoration-color: rgba(88, 166, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.12s;

  &:hover { text-decoration-color: #58a6ff; }
}

// ─── Code & code blocks ──────────────────────────────────────────────
.main-content code {
  background: #161b22;
  border: 1px solid #21262d;
  color: #c9d1d9;
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 4px;
}

.main-content pre.highlight,
.main-content figure.highlight,
.main-content pre {
  background: #0a0e14;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 0.9375rem; // 15px — never goes smaller
  line-height: 1.65;
  overflow-x: auto;
}

// Code inside <pre> blocks: inherit everything from the pre.
.main-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1em;
}

// ─── Keyboard chips ──────────────────────────────────────────────────
kbd, .kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: $mono-font-family;
  font-size: 0.875em;
  background: rgba(210, 153, 34, 0.12);
  color: #e5c07b;
  border: 1px solid rgba(210, 153, 34, 0.35);
  border-bottom-width: 2px;
  border-radius: 5px;
  white-space: nowrap;
  vertical-align: baseline;
  line-height: 1.45;
}

// ─── Tables ──────────────────────────────────────────────────────────
// Wrap tables in a scrollable div so long content scrolls rather than clips.
// Can't add a wrapper in markdown, so make the table itself block-scrollable.
.main-content table {
  border: 1px solid #21262d;
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  // No overflow: hidden — that was trapping content off-screen on mobile.
  // Border-radius still works because border-collapse: separate keeps
  // the table border distinct from cell borders.

  th, td {
    border: none;
    border-bottom: 1px solid #21262d;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    font-size: 1rem !important;
  }

  th {
    background: #161b22;
    font-weight: 600;
    color: #f0f6fc;
  }

  // Inline code inside table cells: monospace looks ~10% visually larger
  // than proportional text at the same px size, so scale it down slightly.
  td code, th code { font-size: 0.88em !important; }

  tr:last-child td { border-bottom: none; }
  tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
}

// On mobile, enable horizontal scroll so long content doesn't clip off-screen.
@media (max-width: 50rem) {
  .main-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px; // block display clips corners slightly differently — keep it
  }
  .main-content table th,
  .main-content table td { padding: 9px 11px; }
}

// ─── Buttons ─────────────────────────────────────────────────────────
.btn {
  border-radius: 6px;
  font-weight: 550;
  font-size: 0.9375rem;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #30363d;
  transition: background 0.12s, border-color 0.12s;

  &:hover { text-decoration: none; }
}

.btn-primary {
  background: #1f6feb;
  color: #fff;
  border-color: #1f6feb;

  &:hover { background: #2879f5; border-color: #2879f5; color: #fff; }
}

// ─── TUI mockup ──────────────────────────────────────────────────────
.tui-mockup {
  background: #0a0e14;
  color: #c9d1d9;
  font-family: $mono-font-family;
  font-size: 0.9375rem; // 15px minimum
  line-height: 1.6;
  border: 1px solid #21262d;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.4rem 0;

  pre {
    background: transparent;
    border: none;
    margin: 0;
    padding: 14px 16px;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    overflow-x: auto;
  }

  &.with-title::before {
    content: attr(data-title);
    display: block;
    padding: 8px 14px;
    font-family: $body-font-family;
    font-size: 0.8125rem; // 13px uppercase label — visually reads larger
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8b949e;
    background: #0d1117;
    border-bottom: 1px solid #21262d;
    border-radius: 8px 8px 0 0;
  }
}

// Never scale tui-mockup below 14px on phones
@media (max-width: 30rem) {
  .tui-mockup {
    font-size: 0.875rem; // 14px — acceptable for ASCII art at arm's length
    pre { padding: 12px 14px; }
  }
}

// ─── I/O pair ────────────────────────────────────────────────────────
.io-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 1.4rem 0;

  @media (max-width: 50rem) {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .io-block {
    background: #0a0e14;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: $mono-font-family;
    font-size: 0.9375rem; // 15px — never scaled down (was 0.78rem = 12.5px on mobile, broken)
    line-height: 1.6;
    color: #c9d1d9;
    overflow-x: auto;
    white-space: pre;
  }

  .io-label {
    font-family: $body-font-family;
    font-size: 0.8125rem; // 13px uppercase — reads proportionally larger
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8b949e;
    margin-bottom: 6px;
  }

  .io-arrow {
    align-self: center;
    color: #58a6ff;
    font-size: 1.3rem;
    text-align: center;

    @media (max-width: 50rem) { transform: rotate(90deg); }
  }
}

// ─── Drill chain ─────────────────────────────────────────────────────
.drill-chain {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: $mono-font-family;
  font-size: 0.9375rem; // 15px
  margin: 1.4rem 0;

  .step {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 5px;
    padding: 5px 10px;
    color: #c9d1d9;
  }

  .step.active {
    border-color: #58a6ff;
    color: #f0f6fc;
    background: rgba(88, 166, 255, 0.08);
  }

  .arrow { color: #8b949e; }
}

// ─── Feature grid (landing & features index) ─────────────────────────
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 1.5rem 0 2rem;

  @media (max-width: 40rem) { grid-template-columns: 1fr; }
}

a.feature-card {
  display: block;
  background: #0f1319;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;

  &:hover {
    border-color: #30363d;
    background: #161b22;
    text-decoration: none;
  }

  .feature-card-title {
    font-weight: 600;
    font-size: 1rem; // 16px — slightly tighter than body, card context
    color: #f0f6fc;
    display: block;
    margin-bottom: 5px;
  }

  &:hover .feature-card-title { color: #58a6ff; }

  .feature-card-desc {
    color: #8b949e;
    font-size: 0.9375rem; // 15px minimum
    line-height: 1.55;
    margin: 0;
  }
}

// ─── VIM mode badge ──────────────────────────────────────────────────
.mode-demo {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 1.4rem 0;
}

.mode-badge {
  border: 2px solid;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: $mono-font-family;
  font-size: 0.9375rem; // 15px
  line-height: 1.5;
  background: #0a0e14;
  flex: 1;
  min-width: 200px;

  .mode-label {
    font-family: $body-font-family;
    font-size: 0.8125rem; // 13px uppercase
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .mode-content { color: #c9d1d9; }

  &.insert { border-color: #39d0c9; .mode-label { color: #39d0c9; } }
  &.normal  { border-color: #e5c07b; .mode-label { color: #e5c07b; } }
}

// ─── Tagline ─────────────────────────────────────────────────────────
.tagline {
  font-size: 1.15rem; // ~18px
  color: #8b949e;
  line-height: 1.65;
  margin: 0.5rem 0 1.75rem;
  max-width: 40rem;
}

@media (max-width: 50rem) {
  .tagline { font-size: 1.0625rem; } // matches body — no smaller
}

// ─── Sidebar ─────────────────────────────────────────────────────────
.side-bar { border-right: 1px solid #21262d; }

.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

// ─── Blockquotes / callouts ──────────────────────────────────────────
.main-content blockquote {
  border-left: 3px solid #30363d;
  background: #0f1319;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  color: #c9d1d9;
  margin: 1.25rem 0;
}

// ═══════════════════════════════════════════════════════════════════════
// ANIMATED COMPONENTS — Phase 1 of docs visual overhaul
// ═══════════════════════════════════════════════════════════════════════

// ─── Animated terminal ──────────────────────────────────────────────
// CSS-only typing animation with blinking cursor and line reveals.
// Usage: .animated-terminal > .terminal-chrome + .terminal-body > .term-line

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(88, 166, 255, 0); }
  50%      { box-shadow: 0 0 12px rgba(88, 166, 255, 0.15); }
}

.animated-terminal {
  background: #0a0e14;
  border: 1px solid #21262d;
  border-radius: 10px;
  overflow: hidden;
  margin: 1.75rem 0;
  position: relative;

  .terminal-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #161b22;
    border-bottom: 1px solid #21262d;

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      &.red { background: #f85149; }
      &.yellow { background: #d29922; }
      &.green { background: #3fb950; }
    }

    .terminal-title {
      flex: 1;
      text-align: center;
      font-size: 0.8125rem;
      color: #8b949e;
      font-family: $body-font-family;
      letter-spacing: 0.02em;
    }
  }

  .terminal-body {
    padding: 16px 18px;
    font-family: $mono-font-family;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #c9d1d9;
    min-height: 120px;
  }

  .term-line {
    opacity: 0;
    animation: fade-in-up 0.3s ease forwards;
    white-space: pre;
    overflow-x: auto;
  }

  .term-prompt {
    color: #3fb950;
    &::before { content: "$ "; }
  }

  .term-input {
    color: #f0f6fc;
  }

  .term-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: #58a6ff;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 1px;
  }

  .term-output {
    color: #c9d1d9;
  }

  .term-highlight {
    color: #58a6ff;
    font-weight: 500;
  }

  .term-dim {
    color: #6e7681;
  }

  .term-success {
    color: #3fb950;
  }

  .term-error {
    color: #f85149;
  }

  .term-key {
    display: inline-block;
    padding: 1px 5px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 3px;
    font-size: 0.85em;
    color: #e6edf3;
  }
}

// Staggered line delays (add data-delay="N" or use nth-child)
@for $i from 1 through 20 {
  .animated-terminal .term-line:nth-child(#{$i}) {
    animation-delay: #{($i - 1) * 0.4}s;
  }
}

// Hero-specific animation: longer, more dramatic
.hero-terminal .term-line:nth-child(1) { animation-delay: 0.2s; }
.hero-terminal .term-line:nth-child(2) { animation-delay: 0.8s; }
.hero-terminal .term-line:nth-child(3) { animation-delay: 1.6s; }
.hero-terminal .term-line:nth-child(4) { animation-delay: 2.0s; }
.hero-terminal .term-line:nth-child(5) { animation-delay: 2.3s; }
.hero-terminal .term-line:nth-child(6) { animation-delay: 2.6s; }
.hero-terminal .term-line:nth-child(7) { animation-delay: 2.9s; }
.hero-terminal .term-line:nth-child(8) { animation-delay: 3.2s; }
.hero-terminal .term-line:nth-child(9) { animation-delay: 3.5s; }
.hero-terminal .term-line:nth-child(10) { animation-delay: 3.8s; }

// ─── Before / After toggle ──────────────────────────────────────────
// CSS-only radio-button pattern for comparing approaches.

.before-after {
  margin: 1.75rem 0;
  border: 1px solid #21262d;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1117;

  // Hide radio inputs
  input[type="radio"] { display: none; }

  .ba-header {
    display: flex;
    border-bottom: 1px solid #21262d;
    background: #161b22;
  }

  .ba-toggle {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #8b949e;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
    user-select: none;

    &:hover { color: #c9d1d9; background: rgba(255,255,255,0.02); }
  }

  .ba-state {
    display: none;
    padding: 18px 20px;
    animation: fade-in-up 0.25s ease;
  }

  // Toggle logic: first radio controls first .ba-state, second controls second.
  // .ba-header is div:nth-of-type(1), first .ba-state is div:nth-of-type(2), second is div:nth-of-type(3)
  input:nth-of-type(1):checked ~ .ba-header label:nth-of-type(1) {
    color: #f0f6fc;
    border-bottom-color: #f85149;
    background: rgba(248, 81, 73, 0.05);
  }
  input:nth-of-type(1):checked ~ div.ba-state:nth-of-type(2) {
    display: block;
  }

  input:nth-of-type(2):checked ~ .ba-header label:nth-of-type(2) {
    color: #f0f6fc;
    border-bottom-color: #3fb950;
    background: rgba(63, 185, 80, 0.05);
  }
  input:nth-of-type(2):checked ~ div.ba-state:nth-of-type(3) {
    display: block;
  }

  .ba-terminal {
    background: #0a0e14;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: $mono-font-family;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #c9d1d9;
    overflow-x: auto;
    white-space: pre;
  }

  .ba-caption {
    font-size: 0.9375rem;
    color: #8b949e;
    margin-bottom: 10px;
    line-height: 1.5;
  }
}

// ─── CSS-only tabs ──────────────────────────────────────────────────
// Radio-button technique for multi-panel switching without JS.

.tab-container {
  margin: 1.75rem 0;
  border: 1px solid #21262d;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1117;

  input[type="radio"] { display: none; }

  .tab-bar {
    display: flex;
    border-bottom: 1px solid #21262d;
    background: #161b22;
    overflow-x: auto;
  }

  .tab-label {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #8b949e;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    user-select: none;

    &:hover { color: #c9d1d9; background: rgba(255,255,255,0.02); }
  }

  .tab-panel {
    display: none;
    padding: 18px 20px;
    animation: fade-in-up 0.2s ease;
  }

  // Generate tab selectors for up to 5 tabs
  @for $i from 1 through 5 {
    input:nth-of-type(#{$i}):checked ~ .tab-bar label:nth-of-type(#{$i}) {
      color: #f0f6fc;
      border-bottom-color: #58a6ff;
      background: rgba(88, 166, 255, 0.05);
    }
    input:nth-of-type(#{$i}):checked ~ .tab-panel:nth-of-type(#{$i}) {
      display: block;
    }
  }
}

// ─── Goal grid ──────────────────────────────────────────────────────
// Task-oriented cards: "I want to do X" → feature link

.goal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 1.5rem 0 2rem;

  @media (max-width: 50rem) { grid-template-columns: 1fr; }
}

a.goal-card {
  display: block;
  background: #0f1319;
  border: 1px solid #21262d;
  border-left: 3px solid #30363d;
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;

  &:hover {
    border-color: #30363d;
    border-left-color: #58a6ff;
    background: #161b22;
    transform: translateY(-1px);
    text-decoration: none;
  }

  .goal-scenario {
    font-weight: 600;
    font-size: 1rem;
    color: #f0f6fc;
    margin-bottom: 4px;
    line-height: 1.4;
  }

  &:hover .goal-scenario { color: #58a6ff; }

  .goal-solution {
    font-size: 0.9375rem;
    color: #8b949e;
    line-height: 1.5;

    code {
      background: #161b22;
      border: 1px solid #21262d;
      padding: 1px 4px;
      border-radius: 3px;
      font-size: 0.88em;
    }
  }
}

// ─── Step flow ──────────────────────────────────────────────────────
// Horizontal numbered steps with connector lines.

.step-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.75rem 0;
  overflow-x: auto;
  padding: 8px 0;

  .step-item {
    display: flex;
    align-items: center;
    gap: 0;

    .step-circle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #161b22;
      border: 2px solid #30363d;
      font-size: 0.8125rem;
      font-weight: 600;
      color: #8b949e;
      flex-shrink: 0;
    }

    .step-text {
      font-size: 0.875rem;
      color: #c9d1d9;
      margin-left: 8px;
      white-space: nowrap;
    }

    .step-connector {
      width: 24px;
      height: 2px;
      background: #30363d;
      margin: 0 4px;
      flex-shrink: 0;
    }

    &.active .step-circle {
      background: rgba(88, 166, 255, 0.12);
      border-color: #58a6ff;
      color: #58a6ff;
    }

    &.active .step-text {
      color: #f0f6fc;
      font-weight: 500;
    }

    &.done .step-circle {
      background: rgba(63, 185, 80, 0.12);
      border-color: #3fb950;
      color: #3fb950;
    }
  }
}

@media (max-width: 30rem) {
  .step-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    .step-item {
      .step-connector { display: none; }
    }
  }
}

// ─── Enhanced feature cards ─────────────────────────────────────────
// Upgrade existing .feature-card with entrance animations and better hover.

@keyframes card-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

a.feature-card {
  animation: card-enter 0.4s ease forwards;
  opacity: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px #30363d;
  }
}

// Staggered card entrance
@for $i from 1 through 12 {
  .feature-grid a.feature-card:nth-child(#{$i}) {
    animation-delay: #{($i - 1) * 0.06}s;
  }
}

// ─── Mode indicators ────────────────────────────────────────────────
// Colored pill badges for mode sections in quick-reference.

.mode-indicator {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;

  &--insert {
    background: rgba(57, 208, 201, 0.12);
    color: #39d0c9;
    border: 1px solid rgba(57, 208, 201, 0.3);
  }

  &--normal {
    background: rgba(229, 192, 123, 0.12);
    color: #e5c07b;
    border: 1px solid rgba(229, 192, 123, 0.3);
  }

  &--results {
    background: rgba(88, 166, 255, 0.12);
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.3);
  }

  &--global {
    background: rgba(139, 148, 158, 0.12);
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.3);
  }

  &--search {
    background: rgba(210, 153, 34, 0.12);
    color: #d29922;
    border: 1px solid rgba(210, 153, 34, 0.3);
  }

  &--ai {
    background: rgba(163, 113, 247, 0.12);
    color: #a371f7;
    border: 1px solid rgba(163, 113, 247, 0.3);
  }
}

// ─── Hero section ───────────────────────────────────────────────────
// Landing page hero with glow background.

.hero-section {
  position: relative;
  margin-bottom: 2.5rem;

  &::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(88, 166, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  > * { position: relative; z-index: 1; }
}

// ─── Section dividers ───────────────────────────────────────────────
// Gradient accent line between major sections.

.accent-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, #58a6ff 50%, transparent);
  margin: 2.5rem 0;
  opacity: 0.4;
}

// ─── Key combo display ──────────────────────────────────────────────
// Larger inline key display for feature pages.

.key-combo {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  kbd {
    font-size: 0.9375rem;
    padding: 3px 8px;
  }

  .key-then {
    color: #6e7681;
    font-size: 0.8125rem;
  }
}

// ─── Accessibility ──────────────────────────────────────────────────

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