/* impto.tech marketing site layout, on top of ui/tokens.css + ui/components.css. No external assets, no scripts
   (the site's CSP is script-src 'none'), so anything interactive here is HTML + CSS only. */
body { font-size: var(--text-lg); line-height: 1.55; }
.wrap { width: min(var(--content), 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text); }
p { margin: 0 0 var(--s-4); }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 1px 6px; color: var(--text); font-size: 0.85em; }

/* ---------- Header ---------- */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(8, 8, 12, 0.72); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: var(--s-8); height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: var(--text-lg); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand .badge { vertical-align: 0; }
.site-nav nav { display: flex; align-items: center; gap: var(--s-1); flex: 1; }
.site-nav nav a:not(.btn) { color: var(--text-2); font-size: var(--text-sm); font-weight: 500; padding: 6px 10px; border-radius: var(--r-sm); }
.site-nav nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.site-nav nav a[aria-current="page"] { color: var(--text); }
.site-nav .actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.site-nav .actions a.signin { color: var(--text-2); font-size: var(--text-sm); font-weight: 550; padding: 6px 10px; }
/* Mobile menu: a <details> so it opens without JavaScript */
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); gap: 2px; padding: var(--s-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.menu-panel a:not(.btn) { color: var(--text); padding: 10px 12px; border-radius: var(--r-sm); font-size: var(--text-md); }
.menu-panel a:not(.btn):hover { background: var(--surface-2); text-decoration: none; }
.menu-panel .btn { margin-top: var(--s-2); }

/* ---------- Sections ---------- */
section { padding: var(--s-24) 0; }
.section-head { max-width: 720px; margin: 0 0 var(--s-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); color: var(--accent-hi); font-size: var(--text-sm); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.section-head h2, .h2 { margin: 0; font-size: var(--text-4xl); line-height: 1.08; letter-spacing: var(--tracking-display); font-weight: 700; }
.section-head p { margin: var(--s-4) 0 0; color: var(--muted); font-size: var(--text-xl); line-height: 1.45; }
.gradient-text { background: linear-gradient(180deg, #fff 20%, #c4b6ff 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--s-16) 0 var(--s-24); overflow: hidden; isolation: isolate; }
.hero::before { /* faint grid that fades out */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 80%);
}
.hero::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 92, 255, 0.35), transparent); filter: blur(10px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-12); align-items: center; }
.hero h1 { margin: 0 0 var(--s-5); font-size: var(--text-hero); line-height: 1.02; letter-spacing: var(--tracking-display); font-weight: 750; }
.hero .lead { color: var(--text-2); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 560px; margin: 0 0 var(--s-8); }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.checks { list-style: none; padding: 0; margin: var(--s-8) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--muted); font-size: var(--text-sm); }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks .icon { color: var(--green); width: 16px; height: 16px; }
.pill-link { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-6); padding: 4px 12px 4px 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-2); font-size: var(--text-sm); }
.pill-link:hover { text-decoration: none; border-color: var(--line-accent); color: var(--text); }
.pill-link .badge { vertical-align: 0; }

/* Product mock: a small, static picture of the dashboard during a raid */
.mock { position: relative; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, 0.02); overflow: hidden; font-size: var(--text-sm); }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s-3); border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.mock-bar span { margin-left: var(--s-3); color: var(--faint); font: 12px var(--mono); }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; }
.mock-side { border-right: 1px solid var(--line); padding: var(--s-3) var(--s-2); display: grid; align-content: start; gap: 2px; background: var(--bg-raised); }
.mock-side b { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: 13px; }
.mock-side b i { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, #8d71ff, #5b3fe0); }
.mock-side span { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--muted); font-size: 12.5px; }
.mock-side span .icon { width: 14px; height: 14px; }
.mock-side span.on { background: var(--accent-soft); color: var(--text); }
.mock-main { padding: var(--s-4); display: grid; align-content: start; gap: var(--s-3); }
.mock-alert { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: var(--r-md); background: var(--red-soft); border: 1px solid rgba(248, 113, 113, 0.3); }
.mock-alert b { display: block; }
.mock-alert small { color: var(--text-2); }
.mock-alert .btn { margin-left: auto; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.mock-stats div { padding: var(--s-3); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.mock-stats small { color: var(--muted); font-size: 11.5px; }
.mock-stats b { display: block; font-size: 20px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mock-rows { border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.mock-rows div { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--s-3); }
.mock-rows div + div { border-top: 1px solid var(--line); }
.mock-rows small { display: block; color: var(--muted); font-size: 11.5px; }
.mock .switch { pointer-events: none; }
.floater { position: absolute; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: rgba(26, 26, 35, 0.9); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: var(--text-sm); animation: float 7s ease-in-out infinite; }
.floater small { display: block; color: var(--muted); }
.floater .icon-tile { width: 32px; height: 32px; }
.hero-visual { position: relative; }
.hero-visual .f1 { left: -36px; bottom: 40px; }
.hero-visual .f2 { right: -20px; top: -24px; animation-delay: -3s; }

/* ---------- Stats strip ---------- */
.strip { padding: var(--s-8) 0; border-block: 1px solid var(--line); background: var(--bg-raised); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.strip li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
.strip li b { display: block; color: var(--text); font-size: var(--text-md); }
.strip .icon { color: var(--accent-hi); margin-top: 2px; }

/* ---------- Protection layers ---------- */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); counter-reset: layer; }
.layer { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--inset-hi); }
.layer .top { display: flex; align-items: center; justify-content: space-between; }
.layer .step { color: var(--faint); font: 600 var(--text-sm) var(--mono); }
.layer h3 { margin: var(--s-2) 0 0; font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); line-height: 1.15; }
.layer p { color: var(--muted); margin: 0; font-size: var(--text-md); }
.layer .more { margin-top: auto; padding-top: var(--s-3); font-weight: 600; font-size: var(--text-md); display: inline-flex; align-items: center; gap: 6px; }
.layer .more .icon { width: 16px; height: 16px; }

/* ---------- Restore band ---------- */
.band { background: radial-gradient(60% 80% at 85% 30%, rgba(124, 92, 255, 0.18), transparent 70%), var(--bg-raised); border-block: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-16); align-items: center; }
.band h2 { margin: 0 0 var(--s-5); font-size: var(--text-4xl); line-height: 1.08; letter-spacing: var(--tracking-display); }
.band p { color: var(--text-2); }
.band .fine { color: var(--muted); font-size: var(--text-md); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { position: relative; display: flex; gap: var(--s-4); padding: 0 0 var(--s-6); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: linear-gradient(var(--line-accent), transparent); }
.timeline li:last-child::before { display: none; }
.timeline .n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-accent); color: var(--accent-hi); font-weight: 700; }
.timeline b { display: block; font-size: var(--text-lg); }
.timeline span { color: var(--muted); font-size: var(--text-md); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.feature-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
a.feature-card:hover { text-decoration: none; border-color: var(--line-accent); transform: translateY(-2px); }
.feature-card h3 { margin: var(--s-2) 0 0; font-size: var(--text-xl); letter-spacing: -0.02em; }
.feature-card p { margin: 0; color: var(--muted); font-size: var(--text-md); }
.feature-card .badge { align-self: flex-start; }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; margin: 0 auto var(--s-8); }
.billing-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.billing-toggle label { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 var(--s-4); border-radius: var(--r-sm); color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.billing-toggle input:checked + label { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-sm), var(--inset-hi); }
.billing-toggle input:focus-visible + label { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.center-row { display: flex; justify-content: center; }
.price-y { display: none; }
.pricing:has(#yearly:checked) .price-m { display: none; }
.pricing:has(#yearly:checked) .price-y { display: inline; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); max-width: 920px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: var(--s-8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--inset-hi); }
.plan.featured { position: relative; border-color: var(--line-accent); background: linear-gradient(170deg, rgba(124, 92, 255, 0.16), transparent 45%), var(--surface); box-shadow: var(--inset-hi), 0 40px 80px -40px rgba(124, 92, 255, 0.55); }
.plan .head { display: flex; align-items: center; justify-content: space-between; }
.plan h3 { margin: 0; font-size: var(--text-xl); }
.plan .who { color: var(--muted); font-size: var(--text-md); margin: var(--s-2) 0 var(--s-5); }
.price { font-size: 52px; font-weight: 750; letter-spacing: -0.045em; line-height: 1; margin: 0 0 var(--s-2); font-family: var(--font-display); }
.price small { font-size: var(--text-md); color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .alt { color: var(--muted); font-size: var(--text-sm); margin: 0 0 var(--s-6); min-height: 1.5em; }
.plan .sub { color: var(--text-2); font-size: var(--text-sm); font-weight: 600; margin: 0 0 var(--s-3); }
.plan ul { list-style: none; padding: 0; margin: 0 0 var(--s-8); display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: var(--text-md); line-height: 1.4; }
.plan li .icon { color: var(--green); width: 18px; height: 18px; margin-top: 1px; }
.plan li.dim { color: var(--muted); }
.plan li.dim .icon { color: var(--faint); }
.plan .btn { width: 100%; }
.plan .after { color: var(--muted); font-size: var(--text-sm); margin: var(--s-3) 0 0; text-align: center; }
.plugins { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); max-width: 920px; margin: var(--s-4) auto 0; }
.plugin { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.plugin h3 { margin: var(--s-2) 0 0; font-size: var(--text-md); }
.plugin p { margin: 0; color: var(--muted); font-size: var(--text-sm); flex: 1; }
.plugin .cost { font-weight: 650; font-size: var(--text-md); }
.plugin .cost small { color: var(--muted); font-weight: 500; }
.note-center { text-align: center; color: var(--muted); font-size: var(--text-sm); margin-top: var(--s-6); }

/* Comparison table */
.compare { max-width: 920px; margin: var(--s-16) auto 0; }
.compare h2 { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); margin: 0 0 var(--s-4); }
.compare .card { padding: 0; overflow-x: auto; }
.compare .table { font-size: var(--text-md); }
.compare .table th, .compare .table td { padding: 12px var(--s-5); }
.compare .table td:not(:first-child), .compare .table th:not(:first-child) { width: 24%; }
.compare .table .icon { width: 18px; height: 18px; }
.compare .yes { color: var(--green); }
.compare .no { color: var(--faint); }
.compare .group-row td { background: var(--bg-raised); color: var(--muted); font-size: var(--text-xs); font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; padding-block: 8px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-12); align-items: start; }
.faq-wrap .section-head { position: sticky; top: 100px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-5) 0; font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform var(--dur) var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent-hi); }
.faq details p { color: var(--muted); font-size: var(--text-md); margin: 0 0 var(--s-5); max-width: 640px; }

/* ---------- Final CTA ---------- */
.final { padding: var(--s-16) 0 var(--s-24); }
.final .card { position: relative; overflow: hidden; text-align: center; padding: var(--s-16) var(--s-6); border-radius: var(--r-xl); background: radial-gradient(60% 90% at 50% 100%, rgba(124, 92, 255, 0.3), transparent 70%), var(--surface); }
.final img { width: 64px; height: 64px; margin: 0 auto var(--s-6); filter: drop-shadow(0 16px 40px rgba(124, 92, 255, 0.6)); }
.final h2 { margin: 0 0 var(--s-4); font-size: var(--text-4xl); letter-spacing: var(--tracking-display); line-height: 1.08; }
.final p { color: var(--muted); max-width: 560px; margin: 0 auto var(--s-8); }
.final .ctas { justify-content: center; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: var(--s-16) 0 var(--s-10); text-align: center; position: relative; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 700px; height: 400px; left: 50%; top: -200px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 92, 255, 0.28), transparent); }
.page-hero h1 { margin: 0 0 var(--s-4); font-size: var(--text-hero); letter-spacing: var(--tracking-display); line-height: 1.04; }
.page-hero p { color: var(--muted); font-size: var(--text-xl); max-width: 640px; margin: 0 auto; }
.crumbs { display: flex; justify-content: center; gap: 6px; color: var(--faint); font-size: var(--text-sm); margin: 0 0 var(--s-4); }
.crumbs a { color: var(--muted); }
.box { display: flex; gap: var(--s-4); align-items: flex-start; max-width: 920px; margin: var(--s-12) auto 0; padding: var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--muted); font-size: var(--text-md); }
.box p { margin: 0; }
.box b { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); padding: var(--s-16) 0 var(--s-8); font-size: var(--text-sm); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-8); }
.site-footer .about p { color: var(--muted); margin: var(--s-4) 0 0; max-width: 280px; }
.site-footer h3 { margin: 0 0 var(--s-3); font-size: var(--text-sm); color: var(--text); font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer ul a { color: var(--muted); }
.site-footer ul a:hover { color: var(--text); }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line); color: var(--faint); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* ---------- Motion & responsive ---------- */
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 1000px) {
  .hero .wrap, .band .wrap, .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
  .hero-visual { max-width: 620px; }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .layers, .features { grid-template-columns: 1fr 1fr; }
  .plugins { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .site-nav nav, .site-nav .actions { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  section { padding: var(--s-16) 0; }
  .hero { padding-top: var(--s-10); }
  .layers, .features, .plans, .plugins, .strip ul { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-alert { flex-wrap: wrap; }
  .floater { display: none; }
  .plan, .layer { padding: var(--s-6); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .compare .table th, .compare .table td { padding: 10px var(--s-3); font-size: var(--text-sm); }
}

/* ---------- Spacing helpers for inner pages ---------- */
section.flush-top { padding-top: 0; }
.section-head.spaced { margin: var(--s-24) auto var(--s-6); }
.spacer-bottom { height: var(--s-24); }

/* ---------- Document pages (help, legal, feature pages) ---------- */
.doc { position: relative; isolation: isolate; padding: var(--s-16) 0 var(--s-24); }
.doc::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 360px; left: 50%; top: -180px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 92, 255, 0.22), transparent); }
.doc .wrap { max-width: 780px; }
.doc .crumbs { justify-content: flex-start; }
.doc h1 { margin: 0 0 var(--s-3); font-size: clamp(36px, 5.6vw, 54px); line-height: 1.06; letter-spacing: var(--tracking-display); }
.doc .updated { color: var(--muted); margin: 0 0 var(--s-10); }
.doc .lead { color: var(--text-2); font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; margin: 0 0 var(--s-6); }
.doc .ctas { margin: 0 0 var(--s-6); }
.doc h2 { margin: var(--s-12) 0 var(--s-3); padding-top: var(--s-6); border-top: 1px solid var(--line); font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); scroll-margin-top: 84px; }
.doc h3 { margin: var(--s-6) 0 var(--s-2); font-size: var(--text-lg); }
.doc p, .doc li { color: var(--text-2); font-size: var(--text-md); line-height: 1.65; }
.doc b { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 var(--s-4); }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--faint); }
.doc .muted { color: var(--muted); }
.doc code { white-space: nowrap; }
.doc table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: var(--text-sm); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; background: var(--bg-raised); }
.doc tr:last-child td { border-bottom: 0; }
.doc table code { white-space: normal; display: inline-block; margin: 2px 0; }
.doc .box { display: block; max-width: none; margin: var(--s-6) 0; }
.doc .tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 6px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-hi); font-size: 11px; font-weight: 600; vertical-align: middle; letter-spacing: 0.01em; }
.doc .toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-2); margin: 0 0 var(--s-6); }
.doc .toc a { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text); font-size: var(--text-sm); }
.doc .toc a:hover { text-decoration: none; border-color: var(--line-accent); background: var(--surface-2); }
.doc .faq details:first-child { border-top: 0; }
.doc .faq summary { font-size: var(--text-md); }
.doc .related { padding-left: 22px; }
.perm-table td:first-child { color: var(--text); font-weight: 600; width: 24%; }
@media (max-width: 640px) {
  .doc { padding-top: var(--s-10); }
  .perm-table, .perm-table tbody, .perm-table tr, .perm-table td { display: block; width: auto !important; }
  .perm-table tr:first-child { display: none; }
  .perm-table tr { border-bottom: 1px solid var(--line); padding: 10px var(--s-3); }
  .perm-table td { border: 0; padding: 4px 0; }
  .perm-table td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}
