/* Nermi site: hand-written styles, no frameworks. */
:root {
  --bg: #0f0d1f;
  --bg-alt: #14112b;
  --surface: #1b1838;
  --surface-2: #242046;
  --line: rgba(255, 255, 255, 0.12);
  --text: #efecfd;
  --muted: #b9b4d8;
  --accent: #b9a6ff;
  --brand-1: #6a4cf5;
  --brand-2: #3f7ff0;
  --pink: #ff9ec4;
  --code-bg: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --tint-pink: #ff9ec4;
  --tint-violet: #b9a6ff;
  --tint-blue: #7fb2ff;
  --tint-gold: #ffd166;
  --tint-green: #6fe0a5;
  --tint-teal: #6fdcd8;
  --chat-bg: #0b0a16;
  --chat-text: #e9e6f7;
  --chat-muted: #9892bd;
  --radius: 20px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #faf8ff;
  --bg-alt: #f1edff;
  --surface: #ffffff;
  --surface-2: #f4f1ff;
  --line: rgba(36, 29, 74, 0.14);
  --text: #241d4a;
  --muted: #585180;
  --accent: #5b3fd6;
  --code-bg: rgba(91, 63, 214, 0.1);
  --shadow: 0 24px 60px -30px rgba(60, 40, 140, 0.35);
  --tint-pink: #c93a79;
  --tint-violet: #5b3fd6;
  --tint-blue: #1e63d6;
  --tint-gold: #7a5206;
  --tint-green: #157a48;
  --tint-teal: #0f7c79;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf8ff;
    --bg-alt: #f1edff;
    --surface: #ffffff;
    --surface-2: #f4f1ff;
    --line: rgba(36, 29, 74, 0.14);
    --text: #241d4a;
    --muted: #585180;
    --accent: #5b3fd6;
    --code-bg: rgba(91, 63, 214, 0.1);
    --shadow: 0 24px 60px -30px rgba(60, 40, 140, 0.35);
    --tint-pink: #c93a79;
    --tint-violet: #5b3fd6;
    --tint-blue: #1e63d6;
    --tint-gold: #7a5206;
    --tint-green: #157a48;
    --tint-teal: #0f7c79;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.12em 0.45em;
  border-radius: 7px;
  overflow-wrap: anywhere;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px; border: 2px solid var(--accent); }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.grad { background: linear-gradient(120deg, #8d74ff, #5aa0ff 55%, #ff9ec4); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .grad { background-image: linear-gradient(120deg, #5b3fd6, #1e63d6 55%, #d6458a); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .grad { background-image: linear-gradient(120deg, #5b3fd6, #1e63d6 55%, #d6458a); } }
.muted-small { color: var(--muted); font-size: 0.92rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); box-shadow: 0 12px 30px -12px rgba(106, 76, 245, 0.9); }
.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(106, 76, 245, 1); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-big { padding: 15px 28px; font-size: 1.1rem; }
.btn-small { padding: 8px 16px; font-size: 0.92rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: transparent; color: var(--text); border: 1px solid var(--line); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; text-decoration: none; }
.site-nav ul a:hover { color: var(--text); background: var(--surface-2); }
.site-nav ul a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: inline; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: inline; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 20px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .nav-actions { justify-content: space-between; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(90px, 12vw, 150px); background: radial-gradient(900px 500px at 78% 30%, rgba(106, 76, 245, 0.34), transparent 70%), radial-gradient(700px 420px at 12% 80%, rgba(255, 158, 196, 0.14), transparent 70%), var(--bg); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 34em; }
.lead-small { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 8px; }
.cta-row.center { justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--muted); }
.hero-badges strong { color: var(--text); font-size: 1.25rem; }
.sky i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: 0.5; animation: twinkle 4s ease-in-out infinite; }
.sky i:nth-child(1) { left: 6%; top: 14%; animation-delay: 0s; }
.sky i:nth-child(2) { left: 18%; top: 62%; width: 4px; height: 4px; animation-delay: 1s; }
.sky i:nth-child(3) { left: 33%; top: 10%; animation-delay: 2s; }
.sky i:nth-child(4) { left: 47%; top: 78%; width: 6px; height: 6px; animation-delay: 0.5s; }
.sky i:nth-child(5) { left: 58%; top: 18%; animation-delay: 1.5s; }
.sky i:nth-child(6) { left: 70%; top: 52%; width: 4px; height: 4px; animation-delay: 2.5s; }
.sky i:nth-child(7) { left: 82%; top: 12%; width: 6px; height: 6px; animation-delay: 3s; }
.sky i:nth-child(8) { left: 91%; top: 40%; animation-delay: 0.8s; }
.sky i:nth-child(9) { left: 27%; top: 88%; width: 4px; height: 4px; animation-delay: 1.8s; }
.sky i:nth-child(10) { left: 95%; top: 80%; animation-delay: 2.2s; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 0.9; transform: scale(1.2); } }
:root[data-theme="light"] .sky i { background: #6a4cf5; }
.hero-art { position: relative; display: grid; justify-items: center; }
.mascot-btn { position: relative; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.mascot { width: clamp(220px, 34vw, 380px); height: auto; display: block; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 24px 40px rgba(106, 76, 245, 0.45)); transition: transform 0.2s ease; }
.mascot-btn:hover .mascot { transform: rotate(-3deg) scale(1.03); }
.mascot-btn:active .mascot { transform: scale(0.97); }
.m-eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
.pet-bubble { position: absolute; left: 50%; top: -6px; translate: -50% 0; padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--line); font-weight: 700; font-size: 0.95rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s, translate 0.2s; }
.pet-bubble.is-on { opacity: 1; translate: -50% -12px; }
.pet-count { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.heart-float { position: absolute; pointer-events: none; color: var(--pink); font-size: 1.4rem; animation: rise 1.1s ease-out forwards; }
@keyframes rise { from { opacity: 1; transform: translateY(0) scale(0.8); } to { opacity: 0; transform: translateY(-90px) scale(1.2); } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 0; }
.peekers { position: absolute; right: 3%; bottom: -2px; width: min(500px, 70%); z-index: 1; opacity: 0.95; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead, .lead-small { margin-inline: auto; }
  .cta-row, .hero-badges { justify-content: center; }
  .hero-art { order: -1; }
  .peekers { right: 50%; translate: 50% 0; width: min(420px, 90%); }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.tight { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 90px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.page-head { padding: clamp(40px, 6vw, 76px) 0 12px; background: radial-gradient(800px 300px at 80% 0%, rgba(106, 76, 245, 0.25), transparent 70%); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.feature:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px; }
.feature-icon .icon { width: 28px; height: 28px; }
.tint-pink { color: var(--tint-pink); background: color-mix(in srgb, var(--tint-pink) 16%, transparent); }
.tint-violet { color: var(--tint-violet); background: color-mix(in srgb, var(--tint-violet) 16%, transparent); }
.tint-blue { color: var(--tint-blue); background: color-mix(in srgb, var(--tint-blue) 16%, transparent); }
.tint-gold { color: var(--tint-gold); background: color-mix(in srgb, var(--tint-gold) 16%, transparent); }
.tint-green { color: var(--tint-green); background: color-mix(in srgb, var(--tint-green) 16%, transparent); }
.tint-teal { color: var(--tint-teal); background: color-mix(in srgb, var(--tint-teal) 16%, transparent); }

/* ---------- demo ---------- */
.demo { max-width: 780px; margin: 0 auto; }
.tabs { display: none; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.js .tabs { display: flex; }
.demo .mock + .mock { margin-top: 18px; }
.tabs-ready .demo .mock + .mock { margin-top: 0; }
.tab { font: inherit; font-weight: 700; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); border-color: transparent; }
.mock { background: var(--chat-bg); color: var(--chat-text); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); font-size: 0.97rem; }
.mock[hidden] { display: none; }
.msg { display: flex; gap: 12px; margin-bottom: 18px; }
.msg:last-child { margin-bottom: 0; }
.av { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.av-user { display: grid; place-items: center; background: linear-gradient(135deg, #3f7ff0, #6a4cf5); color: #fff; font-weight: 800; }
.msg-main { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.msg-head b { color: #fff; }
.bot-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: #6847e0; color: #fff; }
.msg p { margin: 0 0 6px; }
.msg-main > p:first-of-type { margin-top: 2px; }
.e-card { background: #000; border-radius: 10px; overflow: hidden; max-width: 460px; margin-top: 6px; }
.e-head { background: #6847e0; color: #fff; padding: 10px 14px; font-weight: 800; }
.e-head small { display: block; font-weight: 500; font-size: 0.78rem; opacity: 0.9; margin-top: 2px; }
.e-body { padding: 6px 0; }
.e-row { display: flex; gap: 12px; padding: 5px 14px; }
.e-k { flex: none; min-width: 96px; color: var(--chat-muted); }
.e-v { flex: 1; }
.e-bar { background: #222; border-radius: 4px; margin: 0 14px 6px; padding: 2px; }
.e-bar div { height: 8px; border-radius: 3px; background: #9b7bff; }
.e-foot { padding: 8px 14px; color: var(--chat-muted); font-size: 0.82rem; }
.e-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.e-buttons span { padding: 4px 12px; border-radius: 6px; background: rgba(155, 123, 255, 0.16); color: #cdbfff; border: 1px solid rgba(155, 123, 255, 0.4); font-size: 0.88rem; font-weight: 600; }
.poll-line { position: relative; padding: 3px 0; }
.poll-bar { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: #9b7bff; }
.mock .muted-small { color: var(--chat-muted); }

/* ---------- owners + CTA ---------- */
.owners { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.lead-small + .checks { margin-top: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--tint-green); margin-top: 0.2em; }
.owners-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.pill-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px; }
.pill-link { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.pill-link span { color: var(--muted); font-weight: 600; font-size: 0.9em; }
.pill-link:hover { border-color: var(--accent); }
@media (max-width: 860px) { .owners { grid-template-columns: 1fr; } }
.cta-band { padding: 60px 0; background: linear-gradient(135deg, rgba(106, 76, 245, 0.32), rgba(63, 127, 240, 0.2)); border-top: 1px solid var(--line); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.cta-inner .cta-row { margin: 0; }

/* ---------- commands ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 280px; display: block; }
.search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input { width: 100%; font: inherit; color: var(--text); padding: 13px 16px 13px 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline-offset: 1px; }
.toggle { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 600; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--brand-1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-block; font: inherit; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.chip span { font-weight: 600; margin-left: 4px; }
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip[aria-current="page"] { color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); border-color: transparent; }
.cmd-group { margin: 34px 0 0; scroll-margin-top: 90px; }
.cmd-group[hidden], .cmd[hidden] { display: none; }
.cmd-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.cmd-group-head h2 { font-size: 1.5rem; margin: 0; }
.cmd-group-head p { margin: 0; color: var(--muted); flex: 1 1 260px; }
.cmd-group-head .count { color: var(--muted); font-size: 0.9rem; }
.cmd-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmd { display: grid; grid-template-columns: 190px 1fr auto; gap: 8px 18px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); }
.cmd:first-child { border-top: 0; }
.cmd-name { position: relative; justify-self: start; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.cmd-name code { display: inline-block; padding: 4px 10px; font-weight: 700; color: var(--accent); background: var(--code-bg); border: 1px solid transparent; transition: border-color 0.15s, background 0.15s; }
.cmd-name:hover code { border-color: var(--accent); }
[data-copy].copied::after, .cmd-name.copied::after { content: "Copied!"; position: absolute; left: 100%; top: 50%; translate: 8px -50%; font-size: 0.78rem; font-weight: 800; color: #fff; background: #1f8f5c; padding: 2px 8px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.cmd-body p { margin: 0 0 4px; }
.cmd-body .usage { color: var(--muted); font-size: 0.82em; }
.aliases { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.cmd-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-muted { color: var(--muted); border: 1px solid var(--line); }
.badge-warn { color: var(--tint-gold); background: color-mix(in srgb, var(--tint-gold) 16%, transparent); }
.empty { text-align: center; padding: 50px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 24px; }
.note { margin-top: 30px; }
@media (max-width: 720px) {
  .cmd { grid-template-columns: 1fr; }
  .cmd-badges { justify-content: flex-start; }
}

/* ---------- guide / prose ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps > li { position: relative; counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 12px 84px; }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 24px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }
.steps h2 { font-size: 1.4rem; }
.table-wrap { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--surface-2); color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
tbody th { white-space: nowrap; font-weight: 700; }
.callout { border-left: 4px solid var(--accent); background: var(--surface-2); padding: 14px 18px; border-radius: 0 12px 12px 0; }
.try-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.try-list li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.try-list span { color: var(--muted); }
.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }

/* ---------- emojis ---------- */
.emoji-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.emoji-card { display: grid; justify-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; transition: transform 0.2s, border-color 0.2s; }
.emoji-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.emoji-card img { width: 64px; height: 64px; }
.emoji-card strong { font-size: 0.9rem; overflow-wrap: anywhere; }
.emoji-card .btn { position: relative; }

@media (max-width: 600px) {
  .steps > li { padding: 22px 18px 8px; }
  .steps > li::before { position: static; margin-bottom: 12px; }
}

/* ---------- footer + 404 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 50px; background: var(--bg-alt); }
.foot { display: grid; gap: 22px; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { border-radius: 50%; }
.foot-brand p { margin: 0; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.foot-links a { color: var(--text); font-weight: 600; }
.foot-note { margin: 0; color: var(--muted); font-size: 0.92rem; }
.foot-paw { color: var(--pink); }
.lost { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.lost-art { display: inline-grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--pink); margin-bottom: 18px; }
.lost-paw { width: 64px; height: 64px; animation: float 4s ease-in-out infinite; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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