/* CRM OS marketing site. Builds on ds.css tokens/components. Ink hero bands stay dark in both themes.
   Logical properties only (RTL/LTR). Brand: ink #0F1420, blue #2B50FF, spark #FF6A3D, yellow #FFE14D. */
body.site {
  --ink: #0F1420; --ink-2: #161D2E; --ink-3: #1F2740; --ink-line: rgb(255 255 255 / .1); --on-ink: #FFFFFF; --on-ink-muted: rgb(255 255 255 / .74);
  --blue: #2B50FF; --blue-soft: #8C9BFF; --yellow: #FFE14D; --orange: #FF6A3D;
  background: var(--bg); overflow-x: hidden;
}
[data-theme="dark"] body.site { --ink: #0B0F19; --ink-2: #131A2A; --ink-3: #1B2337; }
.site main { display: block; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.wrap.narrow { max-width: 860px; }
.site h1 { font-size: clamp(34px, 6vw, 66px); font-weight: 900; line-height: 1.05; letter-spacing: -.025em; }
.site h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.site h3 { font-size: 19px; }
.lead { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; letter-spacing: .02em; color: var(--accent); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgb(255 225 77 / .22); }
.mark { position: relative; z-index: 0; white-space: nowrap; color: inherit; }
.mark::after { content: ''; position: absolute; inset-inline: -4px; bottom: .06em; height: .26em; background: var(--yellow); border-radius: 6px; z-index: -1; opacity: .9; }
.ink .mark { color: var(--yellow); } .ink .mark::after { display: none; }

/* ---------- header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: saturate(1.3) blur(12px); color: var(--on-ink); border-bottom: 1px solid var(--ink-line); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 900; font-size: 19px; color: var(--on-ink); text-decoration: none !important; flex: none; }
.site-brand svg { width: 32px; height: 32px; }
.site-nav { flex: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; color: var(--on-ink-muted); font-weight: 600; text-decoration: none !important; }
.site-nav a:hover { color: var(--on-ink); background: rgb(255 255 255 / .07); }
.site-nav a[aria-current="page"] { color: var(--on-ink); background: rgb(255 255 255 / .1); }
.site-nav .nav-extra { display: none; }
.head-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.btn.on-ink { --b: transparent; --bc: transparent; --bt: var(--on-ink); }
.btn.on-ink:hover { background: rgb(255 255 255 / .1); box-shadow: none; }
.btn.outline-ink { --b: transparent; --bc: rgb(255 255 255 / .28); --bt: var(--on-ink); }
.btn.outline-ink:hover { background: rgb(255 255 255 / .08); }
.btn.yellow { --b: var(--yellow); --bc: var(--yellow); --bt: #0F1420; }
.btn.yellow:hover { background: #FFE96F; }
.lang-btn { font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; }
.menu-btn { display: none !important; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex !important; }
  .head-actions .hide-m { display: none !important; }
  .site-nav { position: fixed; inset-inline: 0; top: 68px; background: var(--ink); border-bottom: 1px solid var(--ink-line); padding: 12px 20px 22px; display: none; max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-head.open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { min-height: 48px; font-size: 17px; }
  .site-nav .nav-extra { display: block; }
}
@media (max-width: 420px) { .head-actions .btn.primary { padding: 0 12px; font-size: 14px; } .head-row { gap: 8px; } .site-brand span { display: none; } }

/* ---------- ink hero */
.ink { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; isolation: isolate; }
.ink .lead, .ink .muted { color: var(--on-ink-muted); }
.ink .eyebrow { color: var(--yellow); }
.ink::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(30px); pointer-events: none; }
.glow.b { width: 560px; height: 560px; background: radial-gradient(circle, rgb(43 80 255 / .5), transparent 65%); inset-inline-end: -160px; top: -140px; }
.glow.o { width: 420px; height: 420px; background: radial-gradient(circle, rgb(255 106 61 / .32), transparent 65%); inset-inline-start: -140px; bottom: -180px; }
.hero { padding-block: 72px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero-copy { max-width: 820px; }
.hero-copy .lead { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--on-ink-muted); display: flex; gap: 8px; align-items: center; }
.hero-note .icon { color: var(--yellow); }
.hero-visual { margin-bottom: -2px; }
.page-hero { padding-block: 72px 80px; }
.page-hero .lead { margin-top: 18px; }

/* ---------- sections */
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.sec-head .lead { margin-top: 14px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: st; }
.step { position: relative; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step .n { font-family: var(--font-head); font-weight: 900; font-size: 15px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); margin-bottom: 18px; }
.step p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .steps3 { grid-template-columns: minmax(0, 1fr); } }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; grid-column: span 2; padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; }
.tile.dark { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.tile.dark p { color: var(--on-ink-muted); }
.tile p { color: var(--muted); }
.tile .t-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--blue)) 14%, transparent); color: var(--c, var(--accent)); }
.tile.dark .t-ic { background: rgb(255 255 255 / .1); color: var(--yellow); }
.tile .t-visual { margin-top: auto; padding-top: 14px; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile, .tile.w3, .tile.w4 { grid-column: span 1; } .tile.w4 { grid-column: 1 / -1; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile.w4 { grid-column: auto; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split + .split { margin-top: clamp(64px, 9vw, 112px); }
.split .lead { margin-top: 14px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.rev > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.ticks li .icon { color: var(--success); margin-top: 2px; }
.ink .ticks li .icon { color: var(--yellow); }

.chips-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 99px; background: rgb(255 255 255 / .08); color: var(--on-ink); font-weight: 600; font-size: 15px; text-decoration: none !important; border: 1px solid var(--ink-line); }
.chips-nav a:hover { background: rgb(255 255 255 / .14); }
.type-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.type-cloud span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mini-grid { grid-template-columns: minmax(0, 1fr); } }

.cta-band { position: relative; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 72px); background: var(--ink); color: var(--on-ink); overflow: hidden; isolation: isolate; text-align: center; }
.cta-band .lead { color: var(--on-ink-muted); margin: 14px auto 0; }
.cta-band .cta-row { justify-content: center; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); } .dots i:nth-child(2) { background: var(--orange); } .dots i:nth-child(3) { background: var(--blue); }

/* ---------- product mock (real HTML UI using ds.css components) */
.mock { position: relative; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; color: var(--text); text-align: start; font-size: 14.5px; }
.ink .mock { border-color: rgb(255 255 255 / .14); box-shadow: 0 40px 90px rgb(0 0 0 / .45); }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mock-bar .dots i { width: 9px; height: 9px; }
.mock-bar .addr { flex: 1; max-width: 360px; margin-inline: auto; height: 26px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; color: var(--subtle); display: flex; align-items: center; justify-content: center; direction: ltr; overflow: hidden; white-space: nowrap; }
.mock-sample { position: absolute; inset-inline-end: 12px; bottom: 10px; z-index: 3; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 380px; }
.mock-side { background: var(--nav-bg); border-inline-end: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.mock-side .m-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 900; padding: 2px 6px 12px; }
.mock-side .m-brand svg { width: 24px; height: 24px; }
.mock-side .m-link { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border-radius: 10px; color: var(--nav-text); font-weight: 600; font-size: 13.5px; }
.mock-side .m-link.on { background: var(--nav-active-bg); color: var(--nav-active); font-weight: 800; }
.mock-side .m-link .icon { width: 17px; height: 17px; }
.mock-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mock-main .m-title { font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.mock .card { box-shadow: var(--shadow-sm); border-radius: 16px; }
.mock .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock .kpi { padding: 12px 14px; border-radius: 14px; box-shadow: none; }
.mock .kpi .k-value { font-size: 24px; margin-top: 2px; }
.mock .kpi .k-label { font-size: 12.5px; }
.mock table.data { font-size: 13.5px; }
.mock table.data th, .mock table.data td { padding: 9px 12px; }
.mock table.data tbody tr { cursor: default; }
.mock .bubble { font-size: 14px; padding: 10px 14px; max-width: 92%; }
.mock .change { padding: 10px; grid-template-columns: 30px minmax(0, 1fr); font-size: 13.5px; }
.mock .change .ci { width: 30px; height: 30px; }
.mock .change .ci .icon { width: 16px; height: 16px; }
.mock .change b { display: block; }
.mock .btn { pointer-events: none; min-height: 38px; font-size: 14px; }
.mock-ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 14px; }
.ai-col { display: flex; flex-direction: column; gap: 10px; }
.ai-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.ai-head .icon { color: var(--accent); }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); width: fit-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--subtle); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 900px) { .mock-body { grid-template-columns: minmax(0, 1fr); } .mock-side { display: none; } .mock-ai { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .mock .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mock .kpis .kpi:nth-child(3) { display: none; } .mock .hide-s { display: none; } .mock-main { padding: 12px; } }

.flow { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
.flow .node { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.flow .node .type-ic { background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); }
.flow .node small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.flow .link { width: 2px; height: 18px; background: var(--line-strong); margin-inline-start: 28px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 8px; }
.bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--c, var(--accent)); height: var(--h); transform-origin: bottom; animation: grow .9s var(--ease) both; }
.bars i:nth-child(2n) { --c: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.bars i:last-child { --c: var(--orange); }
@keyframes grow { from { transform: scaleY(.1); } }
.float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }

/* ---------- reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .float, .bars i, .typing i { animation: none; } .tile:hover { transform: none; } }

/* ---------- templates page */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .tpl-grid { grid-template-columns: minmax(0, 1fr); } }
.tpl { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tpl::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--c, var(--accent)); }
.tpl .tpl-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); }
.tpl p { color: var(--muted); }
.tpl ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.tpl ul li { display: flex; gap: 8px; align-items: flex-start; } .tpl ul li .icon { color: var(--success); width: 18px; height: 18px; margin-top: 3px; }
.tpl .counts { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl .tpl-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.home-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-tpls a { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none !important; transition: border .15s, transform .15s; }
.home-tpls a:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.home-tpls .tpl-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); }
.home-tpls small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .home-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .home-tpls { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pricing */
.billing-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: rgb(255 255 255 / .08); border: 1px solid var(--ink-line); font-weight: 700; margin-top: 26px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: -48px; position: relative; z-index: 2; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font-family: var(--font-head); font-weight: 900; font-size: 44px; letter-spacing: -.02em; line-height: 1; }
.plan .per { color: var(--muted); font-size: 14.5px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan ul li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.plan ul li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--success); }
.plan ul li.off { color: var(--subtle); } .plan ul li.off .icon { color: var(--subtle); }
.plan .btn { margin-top: auto; }
.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15.5px; }
table.compare th, table.compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
table.compare th:first-child, table.compare td:first-child { text-align: start; font-weight: 600; }
table.compare thead th { background: var(--surface-2); font-family: var(--font-head); font-size: 16px; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare .icon.yes { color: var(--success); } table.compare .icon.no { color: var(--subtle); }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* ---------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form-card { padding: clamp(20px, 4vw, 36px); }
.success-box { text-align: center; padding: 40px 16px; }
.success-box .e-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- legal & docs prose */
.draft-flag { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); font-weight: 700; margin-bottom: 32px; }
.draft-flag .icon { color: var(--warning); }
.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-inline-start: 24px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose .tbl { overflow-x: auto; }
.placeholder { background: var(--warning-soft); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.toc { padding: 20px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.toc ol { margin: 8px 0 0; padding-inline-start: 22px; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
pre.code { direction: ltr; text-align: left; background: #0F1420; color: #E6E9F2; border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; margin: 10px 0 20px; }
code.ic { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.docs-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.docs-side a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.docs-side a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
@media (max-width: 960px) { .docs-layout { grid-template-columns: minmax(0, 1fr); } .docs-side { position: static; flex-direction: row; flex-wrap: wrap; } }
.ep-group { margin-top: 28px; }
.ep-group h3 { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.ep { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: start; }
.ep:last-child { border-bottom: 0; }
.ep .path { direction: ltr; text-align: left; font-family: var(--mono); font-size: 13.5px; word-break: break-all; font-weight: 700; }
.ep .sum { grid-column: 2; color: var(--muted); font-size: 15px; }
.ep .badges { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.method { display: inline-flex; justify-content: center; min-width: 64px; padding: 3px 8px; border-radius: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 800; color: #fff; background: #545C6B; direction: ltr; }
.method.get { background: #1E7E4F; } .method.post { background: #2B50FF; } .method.patch { background: #A26A00; } .method.put { background: #7A4FD1; } .method.delete { background: #C42F33; }

/* ---------- status */
.status-hero { display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: var(--r-xl); }
.status-hero .s-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.status-hero.ok { background: var(--success-soft); } .status-hero.ok .s-ic { background: var(--success); color: #fff; }
.status-hero.bad { background: var(--warning-soft); } .status-hero.bad .s-ic { background: var(--warning); color: #fff; }
.incident { padding: 20px 22px; }
.incident + .incident { margin-top: 12px; }

/* ---------- footer */
.site-foot { background: var(--ink); color: var(--on-ink-muted); padding-block: 56px 28px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font-size: 14px; font-family: var(--font); font-weight: 800; color: var(--on-ink); margin-bottom: 12px; letter-spacing: .02em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--on-ink-muted); } .foot-grid a:hover { color: var(--on-ink); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink-line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site :focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; box-shadow: none; }
.site main :focus-visible { outline-color: var(--accent); }

[hidden] { display: none !important; }

/* mobile: decorative glows and wide tables never create page-level horizontal scroll */
html { overflow-x: hidden !important; }
body { overflow-x: clip !important; max-width: 100%; }
main, section, header, footer { max-width: 100vw; }
.compare-wrap { max-width: 100%; }
:has(> .glow) { overflow: clip; }
.compare-wrap { contain: paint; overscroll-behavior-x: contain; }
#compare { min-width: 0; max-width: 100%; overflow: clip; }
