/* ==========================================================================
   Mei — Hyper-Minimal Dark
   Shared stylesheet for every page (index, commands, support, privacy, terms)
   ========================================================================== */

/* ------------------------------- 1. Tokens ------------------------------- */
:root {
  --bg: #000000;
  --bg-2: #000000;
  --surface: #0a0a0b;
  --surface-2: #101012;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #8e8e96;
  --muted-dim: #7d7d85;
  --accent: #ffffff;
  --accent-soft: #d4d4d8;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --nav-h: 66px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* -------------------------------- 2. Base -------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}



h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  letter-spacing: -0.038em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  letter-spacing: -0.032em;
}

h3 {
  font-size: 1.05rem;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

::selection {
  background: #ffffff;
  color: #000000;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--muted);
}


/* ---------------------------- 3. Backgrounds ----------------------------- */
.glow-line {
  height: 1px;
  width: 100%;
  background: var(--border);
  border: 0;
}

/* ------------------------------- 4. Buttons ------------------------------ */
.btn {
  --btn-pad-y: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--btn-pad-y) 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.24s var(--ease), color 0.18s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  color: #08080a;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover {
  background: #e8e8ea;
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-secondary,
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-strong);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

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

.btn-sm {
  --btn-pad-y: 0.5rem;
  padding: var(--btn-pad-y) 0.8rem;
  font-size: 0.81rem;
  border-radius: 8px;
}

.btn-lg {
  --btn-pad-y: 0.9rem;
  padding: var(--btn-pad-y) 1.5rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

/* ------------------------------- 5. Navbar ------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  background: #151517;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark img[data-broken="true"] {
  display: none;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted-dim);
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.35rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  place-items: center;
}

.nav-toggle span {
  display: block;
  position: relative;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* -------------------------------- 6. Hero -------------------------------- */
.hero {
  position: relative;
  padding: clamp(6rem, 13vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #0a0a0b;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #d4d4d8;
}

.hero-badge .spark {
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1;
}

.live-dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: none;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  animation: livePing 2.6s var(--ease) infinite;
}

@keyframes livePing {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.1);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero h1 {
  max-width: 16ch;
  margin: 1.6rem auto 0;
}

.hero-sub {
  max-width: 60ch;
  margin: 1.35rem auto 0;
  font-size: clamp(0.97rem, 1.55vw, 1.08rem);
  color: var(--muted);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  margin-top: 1.35rem;
  font-size: 0.78rem;
  color: var(--muted-dim);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.hero-meta code {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.72rem;
}

/* Hero command preview card */
.hero-preview {
  position: relative;
  max-width: 620px;
  margin: 3.25rem auto 0;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
}


.preview-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.preview-dots {
  display: flex;
  gap: 5px;
}

.preview-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.preview-title {
  font-size: 0.7rem;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  margin-left: auto;
  letter-spacing: 0.02em;
}

.preview-body {
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.preview-cmd {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
}

.preview-cmd .chev {
  color: var(--accent);
}

.preview-reply {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.preview-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #151517;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  position: relative;
}

.preview-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-avatar img[data-broken="true"] {
  display: none;
}

.preview-reply-body {
  min-width: 0;
  flex: 1;
}

.preview-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.bot-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.5;
}

.preview-embed {
  margin-top: 0.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 0.7rem;
  display: grid;
  gap: 0.3rem;
}

.preview-embed strong {
  font-size: 0.85rem;
  font-weight: 600;
}

.preview-embed small {
  font-size: 0.75rem;
  color: var(--muted);
}

.preview-bar {
  margin-top: 0.3rem;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preview-bar i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: 3px;
  background: #ffffff;
  animation: barSlide 9s linear infinite alternate;
}

@keyframes barSlide {
  from {
    width: 18%;
  }
  to {
    width: 72%;
  }
}

.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted-dim);
  font-family: var(--font-mono);
}

/* -------------------------------- 7. Stats ------------------------------- */
.stats {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
}

.stat {
  padding: 1.5rem 1.35rem;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-size: clamp(1.45rem, 2.7vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.stat-value .unit {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 500;
}

.stat-label {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-dim);
  font-weight: 500;
}

/* ------------------------------- 8. Section ------------------------------ */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.93rem;
}

.section-head h2 {
  max-width: 20ch;
}

/* -------------------------------- 9. Bento ------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.bento-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    background 0.25s var(--ease);
}


.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  background: var(--surface-2);
}


.bento-card.wide {
  grid-column: span 7;
}

.bento-card.half {
  grid-column: span 5;
}

.bento-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--accent);
}

.bento-icon svg {
  width: 18px;
  height: 18px;
}

.bento-card:nth-child(2) .bento-icon {
  color: var(--accent-soft);
}

.bento-card h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
}

.bento-card p {
  font-size: 0.885rem;
  line-height: 1.62;
  color: var(--muted);
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 0.7rem;
  list-style: none;
}

.bento-tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #cbd5e1;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.bento-card .bento-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.bento-card .bento-link:hover {
  color: var(--accent);
  gap: 0.55rem;
}

.bento-card .bento-link svg {
  width: 13px;
  height: 13px;
}

/* equalizer visual */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  margin-left: auto;
}

.eq i {
  width: 3px;
  border-radius: 3px;
  background: #ffffff;
  animation: eqBounce 1.1s var(--ease) infinite alternate;
  opacity: 0.85;
}

.eq i:nth-child(1) { height: 30%; animation-delay: -0.1s; }
.eq i:nth-child(2) { height: 62%; animation-delay: -0.5s; }
.eq i:nth-child(3) { height: 100%; animation-delay: -0.25s; }
.eq i:nth-child(4) { height: 48%; animation-delay: -0.7s; }
.eq i:nth-child(5) { height: 74%; animation-delay: -0.35s; }

@keyframes eqBounce {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}

.bento-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.bento-top .mini-label {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ------------------------------ 10. CTA band ----------------------------- */
.cta-band {
  margin-top: clamp(4rem, 9vw, 7rem);
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--surface);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  box-shadow: none;
}


.cta-card h2 {
  max-width: 24ch;
  margin-inline: auto;
}

.cta-card p {
  max-width: 52ch;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.cta-card .hero-ctas {
  margin-top: 1.6rem;
}

/* ------------------------------- 11. Footer ------------------------------ */
.footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 2.5rem 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-brand p {
  margin-top: 0.9rem;
  max-width: 34ch;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}

.footer-badges span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.025);
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.845rem;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-size: 0.755rem;
  color: var(--muted-dim);
}

.footer-bottom p {
  max-width: 66ch;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* --------------------------- 12. Interior pages -------------------------- */
.page-head {
  padding: clamp(4.5rem, 9vw, 6.5rem) 0 clamp(2rem, 4vw, 2.75rem);
}

.page-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-head .eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.page-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
}

.page-head p {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.96rem;
}

.page-head .head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.mini-emoji {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  vertical-align: -3px;
  display: inline-block;
  object-fit: cover;
}

/* ------------------------------- 13. Commands ---------------------------- */
.cmd-toolbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  padding-block: 0.9rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.search-field {
  position: relative;
  max-width: 520px;
}

.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.78rem 4.2rem 0.78rem 2.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #08080a;
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.search-input::placeholder {
  color: var(--muted-dim);
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  background: #0c0c0d;
  box-shadow: none;
}

.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted-dim);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--muted);
  place-items: center;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.search-field.has-value .search-clear {
  display: grid;
}

.search-field.has-value .search-kbd {
  display: none;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: var(--muted-dim);
  font-family: var(--font-mono);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background 0.18s var(--ease);
  white-space: nowrap;
}

.pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}

.pill[aria-pressed="true"] {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.pill .pill-count {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--muted-dim);
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}

.pill[aria-pressed="true"] .pill-count {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 12px;
  padding-bottom: 1rem;
}

.cmd-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    background 0.2s var(--ease);
}

.cmd-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.cmd-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.cmd-usage {
  font-family: var(--font-mono);
  font-size: 0.815rem;
  font-weight: 500;
  color: #e7e9ee;
  word-break: break-word;
  line-height: 1.5;
}

.cmd-usage .cmd-arg {
  color: var(--muted-dim);
  font-weight: 400;
}

.cmd-desc {
  font-size: 0.825rem;
  line-height: 1.6;
  color: var(--muted);
}

.cmd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 0.55rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.645rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.badge svg {
  width: 10px;
  height: 10px;
}

.badge-perm {
  margin-left: auto;
}

.badge-user {
  color: var(--muted);
}

.badge-moderator {
  color: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.badge-admin {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.badge-owner {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.badge-slash {
  color: #e4e4e7;
}

.badge-prefix {
  color: var(--muted);
}

.cmd-empty {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
}

.cmd-empty.visible {
  display: block;
}

.cmd-empty svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 1rem;
  color: var(--muted-dim);
}

.cmd-empty h3 {
  font-size: 1rem;
}

.cmd-empty p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.cmd-empty .btn {
  margin-top: 1.2rem;
}

.cmd-empty code {
  color: var(--accent);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  margin-top: 1.25rem;
  font-size: 0.76rem;
  color: var(--muted-dim);
}

.legend .badge {
  margin-left: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------- 14. Support ----------------------------- */
.support-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.support-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--surface);
  padding: clamp(1.5rem, 3.4vw, 2.1rem);
  box-shadow: none;
}

.support-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.support-head .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 1.1rem;
}

.support-head h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #d4d4d8;
}

.status-badge .live-dot {
  width: 5px;
  height: 5px;
}

.support-card p.support-copy {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.support-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 1.4rem;
}

.support-stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

.support-stat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.support-stat span {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.support-aside .panel + .panel {
  margin-top: 16px;
}

.support-aside h3 {
  font-size: 0.95rem;
}

.support-aside p {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.resource-list {
  list-style: none;
  display: grid;
  gap: 0.1rem;
  margin-top: 0.9rem;
}

.resource-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  margin-inline: -0.6rem;
  border-radius: 8px;
  font-size: 0.845rem;
  color: var(--muted);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.resource-list a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.resource-list svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex: none;
}

.resource-list .arrow {
  margin-left: auto;
  color: var(--muted-dim);
  transition: transform 0.18s var(--ease);
}

.resource-list a:hover .arrow {
  transform: translateX(2px);
}

/* FAQ */
.faq {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.faq-item[open] {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e9eaf0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: #fff;
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  transition: transform 0.24s var(--ease), background 0.2s var(--ease);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.16);
}

.faq-body {
  padding: 0 1.1rem 1.1rem 3.1rem;
  font-size: 0.855rem;
  line-height: 1.7;
  color: var(--muted);
}

.faq-body p + p {
  margin-top: 0.6rem;
}

.faq-body code {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 5px;
}

.faq-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}

/* Report form */
.form-panel {
  margin-top: 16px;
}

.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-head p {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 58ch;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 1.4rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.field label .opt {
  color: var(--muted-dim);
  font-weight: 400;
  font-size: 0.7rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.62rem 0.72rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #08080a;
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 14px;
  padding-right: 2rem;
  cursor: pointer;
}

.field select option {
  background: #0a0a0b;
}

.field-error {
  font-size: 0.72rem;
  color: #d4d4d8;
  min-height: 0;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: rgba(255, 255, 255, 0.6);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-dim);
  line-height: 1.6;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  transform: translate(-50%, 18px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(8, 8, 9, 0.98);
  box-shadow: none;
  font-size: 0.82rem;
  color: #e4e4e7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 14px;
  height: 14px;
  color: #d4d4d8;
}

/* -------------------------------- 15. Legal ------------------------------ */
.legal-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding-bottom: 1rem;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

.legal-toc h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.legal-toc ol {
  list-style: none;
  display: grid;
  gap: 0.15rem;
  counter-reset: toc;
}

.legal-toc a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.18s var(--ease);
  line-height: 1.45;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-toc a.active {
  color: var(--text);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legal-meta .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-dim);
}

.legal {
  max-width: 74ch;
}

.legal-section {
  padding-block: 1.6rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.legal-section:first-of-type {
  border-top: 0;
  padding-top: 0.5rem;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 1.12rem;
  margin-bottom: 0.75rem;
}

.legal-section h2 .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.legal-section h3 {
  font-size: 0.9rem;
  margin: 1.2rem 0 0.4rem;
  color: #e9eaf0;
}

.legal-section p,
.legal-section li {
  font-size: 0.885rem;
  line-height: 1.75;
  color: var(--muted);
}

.legal-section p + p {
  margin-top: 0.7rem;
}

.legal-section ul {
  margin-top: 0.7rem;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.4rem;
}

.legal-section li::marker {
  color: rgba(255, 255, 255, 0.7);
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.legal-section a:hover {
  text-decoration-color: var(--accent);
}

.legal-section code {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 5px;
}

.callout {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.83rem;
  color: #d4d4d8;
  line-height: 1.65;
}

.legal-footer {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted-dim);
}

/* -------------------------------- 16. 404 -------------------------------- */
.notfound {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-h) - 340px);
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
}

.notfound .code {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
}

.notfound h1 {
  margin-top: 1.2rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.notfound p {
  margin: 0.75rem auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.notfound .hero-ctas {
  margin-top: 1.6rem;
}

.redirect-hint {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-dim);
}

/* ------------------------------ 17. Animation ---------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------- 18. Responsive -------------------------- */
@media (max-width: 980px) {
  .bento-card.wide,
  .bento-card.half {
    grid-column: span 6;
  }

  .bento-card {
    grid-column: span 6;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .legal-toc {
    position: static;
    border-left: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--surface);
  }

  .legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 1rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0.75rem 24px 1.1rem;
    background: rgba(8, 9, 13, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 0.7rem 0.75rem;
    font-size: 0.92rem;
  }

  .nav-link[aria-current="page"]::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-actions .btn-invite {
    display: none;
  }

  .nav-invite-mobile {
    display: inline-flex !important;
  }

  .nav-links .btn {
    margin-top: 0.55rem;
    width: 100%;
  }

  .support-aside {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 18px;
  }

  .nav-inner {
    padding-inline: 18px;
  }

  .brand-tag {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 1.15rem 1rem;
  }

  .stat:nth-child(3)::before {
    display: none;
  }

  .stat:nth-child(odd)::before {
    display: none;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .bento-card,
  .bento-card.wide,
  .bento-card.half {
    grid-column: span 12;
  }

  .hero-preview {
    margin-top: 2.5rem;
  }

  .cmd-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .support-stats {
    grid-template-columns: 1fr;
  }

  .support-aside {
    gap: 14px;
  }

  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas .btn {
    flex: 1 1 auto;
  }

  .faq-body {
    padding-left: 1.1rem;
  }

  .cta-card .hero-ctas .btn {
    flex: 1 1 100%;
  }
}

/* ------------------------ 19. Page-specific extras ----------------------- */
.nav-invite-mobile {
  display: none !important;
}

.bento-card.full {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
}

.bento-full-copy {
  display: grid;
  gap: 0.8rem;
}

.bento-card.full .bento-tags {
  margin-top: 0;
  padding-top: 0;
  justify-content: flex-end;
  max-width: 360px;
}

.legal-meta kbd {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.03);
}

.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.form-status {
  display: none;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #d4d4d8;
}

.form-status.visible {
  display: block;
}

.form-status a {
  color: #d4d4d8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .bento-card.full {
    grid-template-columns: 1fr;
  }

  .bento-card.full .bento-tags {
    justify-content: flex-start;
    max-width: none;
  }
}

/* Later, more specific rule so the menu CTA wins over the desktop hide. */
@media (max-width: 860px) {
  .nav-links .nav-invite-mobile {
    display: inline-flex !important;
  }
}

/* --------------------------- 20. Accessibility --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body::before,
  body::after,
  .nav,
  .footer,
  .legal-toc,
  .toast,
  .cta-band {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .legal-section p,
  .legal-section li,
  .legal-section h2,
  .page-head p {
    color: #111;
  }

  .legal-layout {
    display: block;
  }
}
