/*
 * help.zaplog.ai
 *
 * Quiet neutrals with the bolt's neon (magenta → violet → cyan) used sparingly: the hero glow,
 * the topic tiles, focus rings and the Pro callout. Light and dark follow the OS unless the
 * reader picks one (the header switch writes :root[data-theme]).
 */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-var.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --magenta: #e040fb;
  --violet: #7c4dff;
  --cyan: #18c8f0;
  --brand-grad: linear-gradient(120deg, #ff4fd8 0%, #8b5cf6 48%, #22d3ee 100%);

  --bg: #ffffff;
  --bg-subtle: #f7f7f9;
  --bg-muted: #f0f0f4;
  --surface: #ffffff;
  --border: #e7e7ec;
  --border-strong: #d6d6de;
  --text: #0e0e14;
  --text-2: #55556a;
  --text-3: #8a8a9c;
  --link: #5b33e6;
  --link-hover: #3f1fc2;
  --ink: #0e0e14;
  --on-ink: #ffffff;
  --mark: rgba(139, 92, 246, 0.16);
  --shadow-sm: 0 1px 2px rgba(15, 15, 30, 0.05);
  --shadow: 0 1px 2px rgba(15, 15, 30, 0.04), 0 8px 24px -8px rgba(15, 15, 30, 0.12);
  --shadow-lg: 0 2px 6px rgba(15, 15, 30, 0.05), 0 24px 48px -16px rgba(40, 20, 90, 0.22);
  --glow-a: rgba(255, 79, 216, 0.22);
  --glow-b: rgba(139, 92, 246, 0.2);
  --glow-c: rgba(34, 211, 238, 0.2);

  --note: #2563eb;       --note-bg: #eff5ff;       --note-bd: #d4e3fd;
  --tip: #0f8a5f;        --tip-bg: #ecfaf3;        --tip-bd: #c7ecd9;
  --important: #7c3aed;  --important-bg: #f5f0ff;  --important-bd: #e4d8fd;
  --warning: #b45309;    --warning-bg: #fff8eb;    --warning-bd: #fbe3b7;
  --plat: #4b5563;       --plat-bg: #f6f6f8;       --plat-bd: #e5e5ea;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1160px;
  --header-h: 68px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b10;
    --bg-subtle: #111118;
    --bg-muted: #17171f;
    --surface: #121219;
    --border: #23232e;
    --border-strong: #32323f;
    --text: #f3f3f7;
    --text-2: #a6a6b8;
    --text-3: #72728a;
    --link: #b39dff;
    --link-hover: #d2c6ff;
    --ink: #1b1b26;
    --on-ink: #ffffff;
    --mark: rgba(179, 157, 255, 0.22);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 28px 60px -18px rgba(0, 0, 0, 0.75);
    --glow-a: rgba(255, 79, 216, 0.2);
    --glow-b: rgba(139, 92, 246, 0.24);
    --glow-c: rgba(34, 211, 238, 0.16);
    --note: #7fb0ff;       --note-bg: #111a2c;       --note-bd: #1e2d4a;
    --tip: #5fd4a4;        --tip-bg: #0f1f19;        --tip-bd: #1b3a2d;
    --important: #c4a6ff;  --important-bg: #1a1429;  --important-bd: #2e2448;
    --warning: #f6c16b;    --warning-bg: #231a0c;    --warning-bd: #43321a;
    --plat: #b5b5c6;       --plat-bg: #16161e;       --plat-bd: #272733;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b10;
  --bg-subtle: #111118;
  --bg-muted: #17171f;
  --surface: #121219;
  --border: #23232e;
  --border-strong: #32323f;
  --text: #f3f3f7;
  --text-2: #a6a6b8;
  --text-3: #72728a;
  --link: #b39dff;
  --link-hover: #d2c6ff;
  --ink: #1b1b26;
  --on-ink: #ffffff;
  --mark: rgba(179, 157, 255, 0.22);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 28px 60px -18px rgba(0, 0, 0, 0.75);
  --glow-a: rgba(255, 79, 216, 0.2);
  --glow-b: rgba(139, 92, 246, 0.24);
  --glow-c: rgba(34, 211, 238, 0.16);
  --note: #7fb0ff;       --note-bg: #111a2c;       --note-bd: #1e2d4a;
  --tip: #5fd4a4;        --tip-bg: #0f1f19;        --tip-bd: #1b3a2d;
  --important: #c4a6ff;  --important-bg: #1a1429;  --important-bd: #2e2448;
  --warning: #f6c16b;    --warning-bg: #231a0c;    --warning-bd: #43321a;
  --plat: #b5b5c6;       --plat-bg: #16161e;       --plat-bd: #272733;
  color-scheme: dark;
}

/* ───────── base ───────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; outline: none; }
img, svg { display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--mark); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: var(--on-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-3); }
.icon { width: 20px; height: 20px; flex: none; }
.icon.tiny { width: 15px; height: 15px; }

/* ───────── header ───────── */

.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.scrolled .site-header, body:not(.home) .site-header { border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 24%; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 14px -4px rgba(124, 77, 255, 0.45); }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-divider { width: 1px; height: 20px; background: var(--border-strong); }
.brand-sub { font-weight: 500; font-size: 16px; color: var(--text-2); letter-spacing: -0.01em; white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
.nav-link:hover { color: var(--text); background: var(--bg-muted); }
.nav-cta { color: var(--text); border: 1px solid var(--border); margin-left: 6px; }
.nav-cta:hover { border-color: var(--border-strong); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  color: var(--text-2); margin-left: 4px;
}
.theme-toggle:hover { background: var(--bg-muted); color: var(--text); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle > span { display: none; }
:root:not([data-theme]) .theme-toggle .t-system,
:root[data-theme="light"] .theme-toggle .t-light,
:root[data-theme="dark"] .theme-toggle .t-dark { display: block; }

/* ───────── search ───────── */

.search-strip { border-bottom: 1px solid var(--border); background: var(--bg); }
.search-strip .wrap { padding-top: 14px; padding-bottom: 14px; }
.search { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 46px;
  font: inherit; font-size: 15.5px; color: var(--text);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 44px 0 44px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:hover { border-color: var(--border-strong); }
.search input:focus {
  outline: none;
  background: var(--surface);
  border-color: transparent;
  box-shadow: 0 0 0 1.5px var(--violet), 0 0 0 6px color-mix(in srgb, var(--violet) 16%, transparent);
}
.search-kbd {
  position: absolute; right: 12px;
  font: 500 12px/1 var(--font); color: var(--text-3);
  border: 1px solid var(--border-strong); border-radius: 6px; padding: 4px 7px;
  background: var(--surface); pointer-events: none;
}
.search input:focus ~ .search-kbd, .search.has-value .search-kbd { display: none; }

.search-big input {
  height: 64px; font-size: 18px; border-radius: 18px; padding-left: 56px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.search-big .search-icon { left: 20px; width: 22px; height: 22px; }
.search-big .search-kbd { right: 18px; }

.search-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  max-height: min(520px, 70vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
}
.sr-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border-radius: 11px; color: var(--text);
}
.sr-item:hover, .sr-item[aria-selected="true"] { background: var(--bg-muted); color: var(--text); }
.sr-item .tile { width: 32px; height: 32px; border-radius: 9px; margin-top: 1px; }
.sr-item .tile .icon { width: 16px; height: 16px; }
.sr-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.sr-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-meta { font-size: 12px; color: var(--text-3); }
.sr-item mark, .result mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-empty { padding: 18px 14px; color: var(--text-2); font-size: 14.5px; }
.sr-all {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; padding: 11px 12px; border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--link); border-radius: 0 0 10px 10px;
}
.sr-all[aria-selected="true"], .sr-all:hover { background: var(--bg-muted); }

/* ───────── hero ───────── */

.hero { position: relative; z-index: 5; padding: 72px 0 40px; text-align: center; isolation: isolate; }
.hero + .block { margin-top: 36px; }
.hero-glow {
  position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(40% 55% at 26% 30%, var(--glow-a), transparent 70%),
    radial-gradient(38% 50% at 52% 12%, var(--glow-b), transparent 70%),
    radial-gradient(38% 52% at 76% 34%, var(--glow-c), transparent 70%);
  filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 35%, #000, transparent 75%);
  mask-image: radial-gradient(60% 60% at 50% 35%, #000, transparent 75%);
  opacity: .5;
}
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px 5px 8px;
  backdrop-filter: blur(6px);
}
.eyebrow img { width: 22px; height: 22px; border-radius: 24%; background: #000; }
.hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(2.5rem, 6.4vw, 4.1rem);
  line-height: 1.04; letter-spacing: -0.045em; font-weight: 750;
}
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .04em;
}
.hero-sub { color: var(--text-2); font-size: clamp(1.02rem, 1.8vw, 1.15rem); max-width: 560px; margin: 0 auto 30px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.chips-label { font-size: 13.5px; color: var(--text-3); margin-right: 2px; }
.chip {
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface); }

/* ───────── blocks ───────── */

.block { margin-top: 56px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.block-head h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.block-head .muted { font-size: 14px; }

.tile {
  --tile-size: 46px;
  width: var(--tile-size); height: var(--tile-size); border-radius: 13px;
  display: inline-grid; place-items: center; flex: none;
  color: #fff;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 79, 216, 0.55), transparent 55%),
    radial-gradient(100% 90% at 100% 100%, rgba(34, 211, 238, 0.5), transparent 55%),
    linear-gradient(160deg, #221537, #0e0e18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 14px -6px rgba(124, 77, 255, 0.55);
}
.tile .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.tile-sm { --tile-size: 36px; border-radius: 10px; }
.tile-sm .icon { width: 18px; height: 18px; }
.tile-lg { --tile-size: 64px; border-radius: 18px; }
.tile-lg .icon { width: 30px; height: 30px; }

.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 18px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--brand-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.card:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card .tile { margin-bottom: 12px; }
.card-title { font-weight: 650; font-size: 17px; letter-spacing: -0.015em; }
.card-desc { color: var(--text-2); font-size: 14.5px; line-height: 1.5; flex: 1; }
.card-foot { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--text-3); font-weight: 500; }
.card:hover .card-foot { color: var(--link); }

.featured { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.feature {
  display: flex; flex-direction: column; gap: 5px; height: 100%;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-subtle); border: 1px solid transparent; color: var(--text);
  transition: background .15s ease, border-color .15s ease;
}
.feature:hover { background: var(--surface); border-color: var(--border); color: var(--text); }
.feature-col { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-3); letter-spacing: .01em; }
.feature-title { font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.feature-desc { color: var(--text-2); font-size: 14px; line-height: 1.5; }

.platforms {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 30px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
}
.platforms h2 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 6px; }
.platforms p { color: var(--text-2); max-width: 520px; font-size: 15px; }
.platform-links { display: flex; gap: 10px; flex-wrap: wrap; }
.platform-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; font-weight: 500; font-size: 14.5px;
  color: var(--text); background: var(--bg-subtle); border: 1px solid var(--border);
}
.platform-links a:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.platform-links .icon { width: 18px; height: 18px; }

.contact-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 72px;
  padding: 34px 36px; border-radius: 24px;
  background: #0d0c16; color: #fff;
}
.contact-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 120% at 0% 0%, rgba(255, 79, 216, 0.38), transparent 60%),
    radial-gradient(45% 120% at 100% 100%, rgba(34, 211, 238, 0.32), transparent 60%),
    radial-gradient(40% 90% at 60% 0%, rgba(139, 92, 246, 0.35), transparent 70%);
}
.contact-band h2 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 6px; }
.contact-band p { color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: #fff; color: #0d0c16; }
.btn-primary:hover { color: #0d0c16; transform: translateY(-1px); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ───────── pages ───────── */

.page { padding-top: 32px; padding-bottom: 24px; }
.page-narrow { max-width: 900px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13.5px; color: var(--text-3); margin-bottom: 26px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumb-sep { width: 14px; height: 14px; color: var(--text-3); }
.page-head { margin-bottom: 32px; }
.page-head h1, .col-head h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.1; font-weight: 750; }
.lead { color: var(--text-2); font-size: 1.1rem; margin-top: 10px; line-height: 1.55; }

.col-head { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 28px; }
.col-head .muted { font-size: 14px; margin-top: 8px; }
.section-jump {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 2px 18px; margin: 0 -2px 8px; border-bottom: 1px solid var(--border);
}
.section-jump::-webkit-scrollbar { display: none; }
.section-jump a {
  white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
}
.section-jump a:hover { color: var(--text); border-color: var(--border-strong); }
.col-section { margin-top: 34px; }
.col-section h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 12px; }
.count { font-size: 12.5px; font-weight: 600; color: var(--text-3); background: var(--bg-muted); border-radius: 999px; padding: 2px 9px; letter-spacing: 0; }

.rows { list-style: none; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.rows li + li { border-top: 1px solid var(--border); }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; color: var(--text); transition: background .12s ease;
}
.row:hover { background: var(--bg-subtle); color: var(--text); }
.row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-title { font-weight: 600; font-size: 15.5px; line-height: 1.4; display: inline-flex; align-items: center; gap: 6px; }
.row-desc { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.row-meta { color: var(--text-3); font-size: 12.5px; }
.row-chev { color: var(--text-3); width: 18px; height: 18px; transition: transform .15s ease, color .15s ease; }
.row:hover .row-chev { transform: translateX(2px); color: var(--text); }
.pro-dot { display: inline-flex; color: var(--violet); }

.all-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 56px; }
.topic-block { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: var(--surface); }
.topic-head { display: flex; align-items: center; gap: 12px; color: var(--text); margin-bottom: 12px; }
.topic-head > span:last-child { display: flex; flex-direction: column; }
.topic-head .muted { font-size: 13px; }
.topic-title { font-weight: 650; font-size: 16.5px; letter-spacing: -0.01em; }
.topic-head:hover { color: var(--text); }
.topic-head:hover .topic-title { color: var(--link); }
.topic-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.topic-list a { color: var(--text-2); font-size: 14.5px; }
.topic-list a:hover { color: var(--link); }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 500; }

/* ───────── article ───────── */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: start; }
.article { min-width: 0; max-width: 740px; }
.article-head h1 { font-size: clamp(1.95rem, 3.8vw, 2.6rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 750; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.updated { font-size: 13.5px; color: var(--text-3); }
.pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .005em;
  padding: 3px 10px; border-radius: 999px;
  color: var(--plat); background: var(--plat-bg); border: 1px solid var(--plat-bd);
}
.pill-pro { color: #fff; border-color: transparent; background: var(--brand-grad); }
.pill-pro .icon { width: 13px; height: 13px; }

.article-aside { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; scrollbar-width: thin; padding-top: 70px; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc ul { list-style: none; border-left: 1px solid var(--border); }
.toc li a {
  display: block; position: relative;
  font-size: 13.5px; line-height: 1.4; color: var(--text-2);
  padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent;
}
.toc li.d3 a { padding-left: 26px; font-size: 13px; }
.toc li a:hover { color: var(--text); }
.toc li a.active { color: var(--text); font-weight: 600; border-left-color: var(--violet); }
.toc-mobile { display: none; margin: 22px 0 0; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-subtle); }
.toc-mobile summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; font-size: 14.5px; cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile ul { list-style: none; padding: 0 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.toc-mobile li a { color: var(--text-2); font-size: 14px; }
.toc-mobile li.d3 { padding-left: 14px; }

/* prose */
.prose { font-size: 16.5px; line-height: 1.72; color: var(--text); padding-top: 8px; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 1.05em 0 0; }
.prose > :first-child { margin-top: 1.4em; }
.prose h2 {
  position: relative; font-size: 1.55rem; line-height: 1.25; letter-spacing: -0.025em; font-weight: 700;
  margin: 2.3em 0 0; padding-top: 4px;
}
.prose h3 { position: relative; font-size: 1.18rem; line-height: 1.35; letter-spacing: -0.015em; font-weight: 650; margin: 1.9em 0 0; }
.prose h4 { font-size: 1rem; font-weight: 650; margin: 1.6em 0 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.anchor { display: inline-block; width: 1em; margin-left: .3em; opacity: 0; color: var(--text-3); transition: opacity .15s ease; }
.anchor::before { content: "#"; font-weight: 500; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--link); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.ext::after {
  content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .2em; vertical-align: .05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose strong { font-weight: 650; }
.prose .ui-path { white-space: normal; }
.prose .sep {
  display: inline-block; width: .9em; height: .9em; margin: 0 .22em; vertical-align: -.1em;
  background: var(--text-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-top: .4em; padding-left: .2em; }
.prose li::marker { color: var(--text-3); }
.prose li > ul, .prose li > ol { margin-top: .3em; }
.prose ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
.prose ol.steps > li { position: relative; counter-increment: step; padding-left: 2.35em; margin-top: .75em; }
.prose ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: .12em;
  width: 1.6em; height: 1.6em; border-radius: 999px;
  display: grid; place-items: center;
  font-size: .8em; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--bg-muted); border: 1px solid var(--border);
}
.prose ol.steps[start] { list-style: decimal; padding-left: 1.4em; }
.prose ol.steps[start] > li { padding-left: .2em; }
.prose ol.steps[start] > li::before { display: none; }
.prose li ol.steps > li { padding-left: 2.1em; }
.prose code {
  font-family: var(--mono); font-size: .86em;
  background: var(--bg-muted); border: 1px solid var(--border);
  padding: .12em .38em; border-radius: 6px;
}
.prose pre { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose kbd, kbd {
  font-family: var(--font); font-size: .8em; font-weight: 600;
  display: inline-block; min-width: 1.7em; text-align: center;
  padding: .1em .45em; border-radius: 6px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: inset 0 -1.5px 0 var(--border-strong);
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose blockquote { margin-left: 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--border-strong); color: var(--text-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th { text-align: left; font-weight: 650; background: var(--bg-subtle); color: var(--text); }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td + td, .prose th + th { border-left: 1px solid var(--border); }
.prose .a-center { text-align: center; }
.prose .a-right { text-align: right; }

.callout {
  --c: var(--note); --c-bg: var(--note-bg); --c-bd: var(--note-bd);
  border: 1px solid var(--c-bd); background: var(--c-bg);
  border-radius: 14px; padding: 14px 18px 15px;
  font-size: 15.5px; line-height: 1.65;
}
.callout > :first-child { margin-top: 0; }
.callout p { margin-top: .5em; }
.callout-label { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; letter-spacing: .01em; color: var(--c); margin: 0 !important; }
.callout-label + * { margin-top: .35em !important; }
.callout-icon { width: 17px; height: 17px; stroke-width: 2; }
.callout-tip { --c: var(--tip); --c-bg: var(--tip-bg); --c-bd: var(--tip-bd); }
.callout-important { --c: var(--important); --c-bg: var(--important-bg); --c-bd: var(--important-bd); }
.callout-warning, .callout-caution { --c: var(--warning); --c-bg: var(--warning-bg); --c-bd: var(--warning-bd); }
.callout-android, .callout-iphone, .callout-ios, .callout-web { --c: var(--plat); --c-bg: var(--plat-bg); --c-bd: var(--plat-bd); }
.callout-pro {
  position: relative; border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-grad) border-box;
  border: 1.5px solid transparent;
}
.callout-pro .callout-label { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.callout-pro .callout-label .icon { color: var(--violet); }

/* feedback, related, pager */
.feedback {
  margin-top: 56px; padding: 22px 24px; border-radius: 18px;
  border: 1px solid var(--border); background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.feedback-q { font-weight: 600; font-size: 15.5px; }
.feedback-btns { display: flex; gap: 8px; }
.feedback-btns button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 14.5px;
  transition: border-color .15s ease, transform .15s ease;
}
.feedback-btns button:hover { border-color: var(--violet); transform: translateY(-1px); }
.feedback-btns .icon { width: 17px; height: 17px; }
.feedback-thanks, .feedback-more { width: 100%; color: var(--text-2); font-size: 14.5px; }
.feedback.voted .feedback-btns { display: none; }
.feedback.voted .feedback-q { display: none; }

.related { margin-top: 44px; }
.related h2 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 12px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 44px 0 72px; }
.pager a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; color: var(--text);
  font-weight: 600; font-size: 15px; line-height: 1.4;
}
.pager a:hover { border-color: var(--border-strong); background: var(--bg-subtle); color: var(--text); }
.pager .muted { font-weight: 500; font-size: 13px; }
.pager-next { text-align: right; }

/* search page */
.results { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.result a {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.result a:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: var(--text); }
.result .tile { --tile-size: 38px; border-radius: 10px; }
.result .tile .icon { width: 18px; height: 18px; }
.result-title { font-weight: 650; font-size: 16px; }
.result-desc { color: var(--text-2); font-size: 14.5px; margin-top: 3px; }
.result-meta { color: var(--text-3); font-size: 12.5px; margin-top: 6px; }
.no-results { padding: 28px; border: 1px dashed var(--border-strong); border-radius: 16px; color: var(--text-2); text-align: center; }
.search-results-page .contact-band { margin-top: 32px; }

/* 404 */
.notfound { text-align: center; padding-top: 72px; padding-bottom: 72px; }
.notfound .eyebrow { padding: 5px 14px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.035em; margin: 18px 0 8px; }
.mini-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 34px; text-align: left; }
.mini-cards a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); font-weight: 600; font-size: 14.5px; }
.mini-cards a:hover { border-color: var(--border-strong); background: var(--bg-subtle); color: var(--text); }

/* ───────── footer ───────── */

.site-footer { border-top: 1px solid var(--border); background: var(--bg-subtle); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.footer-brand p { color: var(--text-2); font-size: 14px; max-width: 300px; margin-top: 12px; line-height: 1.55; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand .brand-name { font-size: 18px; }
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.site-footer nav a { color: var(--text-2); font-size: 14.5px; }
.site-footer nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; }

/* ───────── responsive ───────── */

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article { max-width: 760px; margin: 0 auto; }
  .article-aside { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .nav-cta { display: none; }
  .brand-sub { font-size: 15px; }
  .brand-name { font-size: 18px; }
  .hero { padding: 44px 0 36px; }
  .hero h1 { margin-top: 18px; }
  .search-big input { height: 56px; font-size: 16px; border-radius: 16px; padding-left: 50px; }
  .search-big .search-icon { left: 17px; }
  .search input { font-size: 16px; }
  .search-kbd { display: none; }
  .block { margin-top: 44px; }
  .block-head { flex-direction: column; gap: 2px; }
  .cards, .featured, .all-topics { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .platforms { padding: 22px; }
  .contact-band { padding: 26px 22px; border-radius: 20px; margin-bottom: 48px; }
  .col-head { gap: 16px; }
  .tile-lg { --tile-size: 52px; border-radius: 15px; }
  .tile-lg .icon { width: 26px; height: 26px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 1.35rem; }
  .row { padding: 14px 14px; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .feedback { padding: 18px; }
  .search-pop { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 64px); max-height: 65vh; }
  .home .search-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); }
}
@media (max-width: 520px) {
  .col-head { flex-direction: column; gap: 14px; }
}
@media (max-width: 340px) {
  .brand-divider, .brand-sub { display: none; }
}

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

@media print {
  .site-header, .search-strip, .site-footer, .article-aside, .toc-mobile, .feedback, .pager, .related, .contact-band, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .prose a { color: #000; }
}

/* ───────── per-topic accents ─────────
 * Each topic tile keeps the same dark glass, lit by its own pair of colours, so the grid reads
 * as one family with a distinct face per app. data-accent is the collection id.
 */
.tile { --a1: rgba(255, 79, 216, 0.55); --a2: rgba(34, 211, 238, 0.5); --a-glow: rgba(124, 77, 255, 0.55);
  background:
    radial-gradient(120% 90% at 18% 0%, var(--a1), transparent 58%),
    radial-gradient(100% 90% at 100% 100%, var(--a2), transparent 58%),
    linear-gradient(160deg, #1d1530, #0d0d16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 6px 16px -8px var(--a-glow);
}
[data-accent="getting-started"] { --a1: rgba(255, 79, 216, 0.6); --a2: rgba(139, 92, 246, 0.55); --a-glow: rgba(214, 70, 239, 0.55); --acc: #d946ef; }
[data-accent="account"] { --a1: rgba(99, 102, 241, 0.65); --a2: rgba(56, 189, 248, 0.5); --a-glow: rgba(99, 102, 241, 0.55); --acc: #6366f1; }
[data-accent="chats"] { --a1: rgba(16, 185, 129, 0.65); --a2: rgba(45, 212, 191, 0.5); --a-glow: rgba(16, 185, 129, 0.55); --acc: #10b981; }
[data-accent="calls"] { --a1: rgba(34, 197, 94, 0.6); --a2: rgba(132, 204, 22, 0.45); --a-glow: rgba(34, 197, 94, 0.5); --acc: #22c55e; }
[data-accent="stories"] { --a1: rgba(244, 114, 182, 0.65); --a2: rgba(251, 146, 60, 0.5); --a-glow: rgba(244, 114, 182, 0.5); --acc: #ec4899; }
[data-accent="zaprooms"] { --a1: rgba(249, 115, 22, 0.65); --a2: rgba(234, 179, 8, 0.45); --a-glow: rgba(249, 115, 22, 0.5); --acc: #f97316; }
[data-accent="zapcloud"] { --a1: rgba(14, 165, 233, 0.65); --a2: rgba(34, 211, 238, 0.5); --a-glow: rgba(14, 165, 233, 0.55); --acc: #0ea5e9; }
[data-accent="zapnotes"] { --a1: rgba(59, 130, 246, 0.65); --a2: rgba(147, 197, 253, 0.45); --a-glow: rgba(59, 130, 246, 0.5); --acc: #3b82f6; }
[data-accent="organized"] { --a1: rgba(16, 185, 129, 0.6); --a2: rgba(5, 150, 105, 0.55); --a-glow: rgba(5, 150, 105, 0.5); --acc: #059669; }
[data-accent="zapfit"] { --a1: rgba(239, 68, 68, 0.6); --a2: rgba(249, 115, 22, 0.5); --a-glow: rgba(239, 68, 68, 0.5); --acc: #ef4444; }
[data-accent="zappy"] { --a1: rgba(139, 92, 246, 0.7); --a2: rgba(236, 72, 153, 0.5); --a-glow: rgba(139, 92, 246, 0.6); --acc: #8b5cf6; }
[data-accent="ask"] { --a1: rgba(255, 79, 216, 0.55); --a2: rgba(34, 211, 238, 0.55); --a-glow: rgba(124, 77, 255, 0.55); --acc: #a855f7; }
[data-accent="zappodcasts"] { --a1: rgba(168, 85, 247, 0.65); --a2: rgba(244, 63, 94, 0.45); --a-glow: rgba(168, 85, 247, 0.5); --acc: #a855f7; }
[data-accent="browser"] { --a1: rgba(99, 102, 241, 0.6); --a2: rgba(139, 92, 246, 0.5); --a-glow: rgba(99, 102, 241, 0.5); --acc: #6366f1; }
[data-accent="pro"] { --a1: rgba(250, 204, 21, 0.7); --a2: rgba(245, 158, 11, 0.55); --a-glow: rgba(245, 158, 11, 0.55); --acc: #f59e0b; }
[data-accent="privacy-security"] { --a1: rgba(20, 184, 166, 0.6); --a2: rgba(59, 130, 246, 0.5); --a-glow: rgba(20, 184, 166, 0.5); --acc: #14b8a6; }
[data-accent="notifications"] { --a1: rgba(245, 158, 11, 0.6); --a2: rgba(244, 63, 94, 0.45); --a-glow: rgba(245, 158, 11, 0.5); --acc: #f59e0b; }
[data-accent="settings"] { --a1: rgba(148, 163, 184, 0.6); --a2: rgba(99, 102, 241, 0.45); --a-glow: rgba(100, 116, 139, 0.5); --acc: #64748b; }
[data-accent="devices"] { --a1: rgba(56, 189, 248, 0.6); --a2: rgba(129, 140, 248, 0.5); --a-glow: rgba(56, 189, 248, 0.5); --acc: #38bdf8; }
[data-accent="safety"] { --a1: rgba(244, 63, 94, 0.6); --a2: rgba(168, 85, 247, 0.45); --a-glow: rgba(244, 63, 94, 0.5); --acc: #f43f5e; }
[data-accent="troubleshooting"] { --a1: rgba(234, 179, 8, 0.55); --a2: rgba(34, 197, 94, 0.45); --a-glow: rgba(234, 179, 8, 0.45); --acc: #eab308; }

/* Cards pick up their topic's colour in the hover ring and the footer arrow. */
.card[data-accent]::before { background: linear-gradient(120deg, var(--a1), var(--a2)); }
.card[data-accent]:hover .card-foot { color: var(--acc, var(--link)); }
.feature[data-accent] .feature-col { color: color-mix(in srgb, var(--acc) 80%, var(--text-2)); }

/* Compact cards for the account and help topics: icon beside the text. */
.cards-compact { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.cards-compact .card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; padding: 16px 18px; align-items: start; }
.cards-compact .card .tile { grid-row: span 3; margin: 2px 0 0; --tile-size: 42px; border-radius: 12px; }
.cards-compact .card-title { font-size: 16px; }
.cards-compact .card-desc { font-size: 14px; }
.cards-compact .card-foot { margin-top: 6px; }

/* ───────── product strip under the hero search ───────── */
.product-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 34px; max-width: 980px;
}
.product {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.product .tile { --tile-size: 30px; border-radius: 999px; }
.product .tile .icon { width: 15px; height: 15px; }
.product:hover { color: var(--text); transform: translateY(-2px); border-color: color-mix(in srgb, var(--acc) 55%, var(--border)); box-shadow: 0 10px 24px -14px var(--a-glow); background: var(--surface); }
@media (max-width: 640px) {
  .product-strip { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-top: 26px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .product-strip::-webkit-scrollbar { display: none; }
  .product { flex: none; }
  .cards-compact { grid-template-columns: 1fr; }
  /* On a phone every topic card takes the compact shape, so the list stays scannable. */
  .cards .card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; align-items: start; }
  .cards .card .tile { grid-row: span 3; margin: 2px 0 0; --tile-size: 42px; border-radius: 12px; }
  .cards .card-title { font-size: 16px; }
  .cards .card-desc { font-size: 14px; }
  .cards .card-foot { margin-top: 6px; }
}

/* Hero headline: a slow shimmer through the brand gradient. */
@media (prefers-reduced-motion: no-preference) {
  .grad-text { background-size: 200% 100%; animation: grad-shift 8s ease-in-out infinite alternate; }
  @keyframes grad-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
}
