:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --bg: #0b0b0d; --bg-2: #101013; --bg-elevated: #141417; --bg-hover: #1b1b20; --bg-code: #09090b;
  --border: #212126; --border-strong: #2e2e35;
  --text: #ececf1; --text-dim: #8b8b97; --text-soft: #b6b6c0;
  --accent: #d97757; --accent-text: #fff; --accent-soft: rgba(217,119,87,.12); --accent-ring: rgba(217,119,87,.3);
  --ok: #4ade80;
  --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
  --shadow: 0 10px 34px rgba(0,0,0,.35);
}
:root[data-theme="light"] {
  --bg: #fafaf9; --bg-2: #f4f4f2; --bg-elevated: #ffffff; --bg-hover: #efefec; --bg-code: #f5f5f2;
  --border: #e5e5e0; --border-strong: #d5d5cf;
  --text: #17171a; --text-dim: #6c6c76; --text-soft: #43434c;
  --accent-soft: rgba(217,119,87,.1); --accent-ring: rgba(217,119,87,.28);
  --ok: #15803d; --shadow: 0 10px 30px rgba(30,30,40,.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent-ring); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 11px; border: 1px solid transparent; background: var(--accent); color: var(--accent-text); font: 600 14.5px var(--font-sans); cursor: pointer; transition: filter .15s, transform .1s; box-shadow: 0 2px 12px rgba(217,119,87,.28); white-space: nowrap; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--bg-hover); filter: none; }
.btn.sm { padding: 8px 14px; font-size: 13.5px; }
.btn.lg { padding: 14px 26px; font-size: 15.5px; border-radius: 13px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--bg-hover); }
.menu-btn { display: none; }

/* header */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.top-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 16.5px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--text-soft); font-weight: 500; font-size: 14.5px; padding: 8px 13px; border-radius: 9px; }
.nav a:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg-hover); }
.top-actions { display: flex; align-items: center; gap: 10px; }

/* hero */
.hero { position: relative; text-align: center; padding: 96px 0 76px; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: 40%; width: 980px; height: 520px; max-width: 160vw; transform: translate(-50%,-50%); background: radial-gradient(ellipse at 50% 50%, rgba(224,128,92,.36) 0%, rgba(217,119,87,.16) 32%, rgba(217,119,87,.05) 58%, transparent 74%); filter: blur(50px); animation: glow 7s ease-in-out infinite; pointer-events: none; }
:root[data-theme="light"] .hero::before { opacity: .65; }
@keyframes glow { 0%,100% { opacity: .8; } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.07); } }
.hero > * { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent-ring); background: var(--accent-soft); border-radius: 999px; padding: 5px 14px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; max-width: 920px; margin: 0 auto 20px; }
.grad { background: linear-gradient(95deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--text-soft); max-width: 700px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 14px 40px; justify-content: center; flex-wrap: wrap; margin-top: 44px; color: var(--text-dim); font-size: 14px; }
.hero-stats b { display: block; color: var(--text); font-size: 24px; letter-spacing: -0.02em; }

section.block { padding: 76px 0; border-top: 1px solid var(--border); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.sec-title { font-size: clamp(27px, 3.8vw, 38px); font-weight: 750; margin-bottom: 12px; }
.sec-sub { color: var(--text-soft); font-size: 17px; max-width: 680px; margin: 0 0 36px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.panel, .card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature h3 { font-size: 17.5px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-soft); font-size: 15px; }
.product { display: flex; flex-direction: column; gap: 12px; }
.product h3 { font-size: 24px; } .product p { margin: 0; color: var(--text-soft); }
.product ul { margin: 4px 0 6px; padding-left: 20px; color: var(--text-soft); } .product li { margin: 5px 0; }
.product .actions { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.article-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.article-card:hover { border-color: var(--accent-ring); transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.article-card h3 { font-size: 18px; line-height: 1.3; } .article-card p { margin: 0; color: var(--text-soft); font-size: 14.5px; flex: 1; }
.article-card .more { color: var(--accent); font-weight: 650; font-size: 14px; } .article-card .more small { color: var(--text-dim); font-weight: 500; margin-left: 6px; }
.tag { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 650; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 11px; }
.listing { padding: 8px 24px 90px; }

details.faq { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-elevated); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding: 0 20px 18px; color: var(--text-soft); }

.cta-band { text-align: center; padding: 64px 24px; border: 1px solid var(--border-strong); border-radius: var(--r-xl); background: radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 70%), var(--bg-elevated); }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; } .cta-band p { color: var(--text-soft); margin: 0 auto 26px; max-width: 560px; }

/* documents + articles */
.page-hero { padding: 54px 0 30px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--accent-soft), transparent 70%); }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 14px; }
.page-hero .lead { margin: 0 0 14px; font-size: 18.5px; max-width: 720px; }
.page-hero.center, .center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.meta { color: var(--text-dim); font-size: 14px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13.5px; color: var(--text-dim); }
.crumbs i { font-style: normal; opacity: .5; } .crumbs a { color: var(--text-soft); }
.big404 { font-size: 96px; font-weight: 800; color: var(--accent); margin: 0; letter-spacing: -0.04em; }
.doc-layout { padding-top: 34px; padding-bottom: 80px; }
.toc { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-elevated); padding: 18px 20px; margin-bottom: 30px; display: flex; flex-direction: column; gap: 3px; }
.toc strong { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.toc a { color: var(--text-soft); font-size: 14.5px; padding: 2px 0; }
.prose { font-size: 17px; color: var(--text-soft); }
.prose h2 { font-size: 27px; color: var(--text); margin: 2.1em 0 .55em; padding-top: .3em; border-top: 1px solid var(--border); }
.prose h2:first-child { border-top: 0; margin-top: 0; }
.prose h3 { font-size: 20.5px; color: var(--text); margin: 1.7em 0 .45em; } .prose h4 { font-size: 17px; color: var(--text); margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; } .prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.5em; } .prose li { margin: .4em 0; } .prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.prose a:hover { text-decoration: none; border-bottom-color: var(--accent); }
.prose code { font-family: var(--font-mono); font-size: .86em; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: color-mix(in srgb, var(--accent) 45%, var(--text)); }
.prose pre { background: var(--bg-code); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 18px 20px; overflow-x: auto; margin: 0 0 1.3em; font-size: 14px; line-height: 1.65; }
.prose pre code { background: none; border: 0; padding: 0; color: var(--text); font-size: inherit; }
.callout { border: 1px solid var(--accent-ring); background: var(--accent-soft); border-radius: var(--r-md); padding: 15px 20px; margin: 0 0 1.3em; color: var(--text); font-size: 16px; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); margin: 0 0 1.3em; background: var(--bg-elevated); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); background: var(--bg-hover); font-size: 13.5px; } .prose tr:last-child td { border-bottom: 0; }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 2.4em; padding: 20px 24px; border: 1px solid var(--accent-ring); border-radius: var(--r-lg); background: var(--accent-soft); }
.article-cta strong { font-size: 17px; } .article-cta span { flex: 1; min-width: 200px; color: var(--text-soft); font-size: 15px; }
.related { padding-bottom: 90px; } .related h2 { font-size: 24px; margin-bottom: 18px; } .related .cards { grid-template-columns: repeat(3, minmax(0,1fr)); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 6px 0 28px; }
.contact-grid .card h3 { font-size: 18px; margin-bottom: 6px; } .contact-grid .card p { margin: 0 0 8px; color: var(--text-soft); font-size: 15px; }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 54px 0 34px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--text-soft); font-size: 14.5px; padding: 4px 0; }
.foot-note { color: var(--text-dim); font-size: 14px; max-width: 320px; margin: 12px 0 0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13.5px; }

@media (max-width: 960px) {
  .g3, .cards, .related .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .menu-btn { display: inline-grid; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; }
  .nav.open { display: flex; } .nav a { padding: 12px 14px; }
  .top-actions .btn { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; } .g2, .g3, .cards, .related .cards, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 52px; } .lead { font-size: 17px; } .prose { font-size: 16.5px; } .foot-grid { grid-template-columns: 1fr; }
  .page-hero .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* long tables of contents flow into two columns instead of a tall single list */
.toc { display: block; }
.toc strong { display: block; }
.toc-list { column-count: 2; column-gap: 32px; }
.toc-list a { display: block; break-inside: avoid; }
.crumbs + .tag { margin-top: 14px; }
@media (max-width: 700px) { .toc-list { column-count: 1; } }

/* help center */
.help-hero { text-align: center; padding-bottom: 44px; }
.help-hero .crumbs { justify-content: center; }
.help-hero .lead { margin: 0 auto 22px; }
.help-search { max-width: 620px; margin: 0 auto; }
.help-search input { width: 100%; padding: 16px 20px; font: 500 16px var(--font-sans); color: var(--text); background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); }
.help-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.help-body { padding-top: 36px; padding-bottom: 90px; }
.help-section { margin-bottom: 44px; }
.help-section h2 { font-size: 24px; }
.help-section-head { margin-bottom: 16px; } .help-section-head p { margin: 4px 0 0; color: var(--text-dim); font-size: 15px; }
.help-section > h2 { margin-bottom: 16px; }
.help-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.help-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-elevated); color: var(--text); transition: border-color .15s, transform .15s; }
.help-item:hover { border-color: var(--accent-ring); transform: translateY(-2px); text-decoration: none; }
.help-item strong { font-size: 15.5px; } .help-item span { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.help-empty { padding: 22px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); text-align: center; color: var(--text-soft); margin-bottom: 28px; }
.help-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 2.4em; padding: 20px 24px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--bg-elevated); }
.help-contact strong { font-size: 17px; color: var(--text); } .help-contact span { flex: 1; min-width: 220px; font-size: 15px; }
.prose .steps { counter-reset: step; list-style: none; padding-left: 0; }
@media (max-width: 700px) { .help-list { grid-template-columns: 1fr; } }
