/* =============================================================
   pchela.me — cyber/console aesthetic
   palette: black + amber/honey + cyan
   ============================================================= */

:root {
  --bg: #07080a;
  --bg-2: #0c0e12;
  --bg-3: #11141a;
  --line: #1c2230;
  --line-2: #2a3344;
  --fg: #e6e7eb;
  --fg-dim: #8a93a6;
  --fg-mute: #5a6479;

  --amber: #ffb300;
  --amber-2: #ffd24a;
  --amber-soft: rgba(255, 179, 0, 0.12);
  --amber-glow: rgba(255, 179, 0, 0.55);

  --cyan: #5ce1ff;
  --cyan-soft: rgba(92, 225, 255, 0.10);

  --green: #4ade80;
  --red: #ff5d6c;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: 'Space Grotesk', 'JetBrains Mono', system-ui, sans-serif;

  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* ---------- background layers ---------- */

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -3;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: -2;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(7, 8, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 8px var(--amber-glow));
}

.brand-text { color: var(--fg); }
.brand-tld { color: var(--amber); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--fg-dim);
}

.nav a { transition: color .15s ease; }
.nav a:hover { color: var(--amber); }

.nav-cta {
  padding: 7px 12px;
  border: 1px solid var(--amber);
  color: var(--amber) !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--amber-soft);
  box-shadow: 0 0 0 1px var(--amber), 0 0 16px -4px var(--amber-glow);
}

/* ---------- generic ---------- */

main { display: block; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 28px;
  position: relative;
}

.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}

.section-tag {
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 6px 0 10px;
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.section-head p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 15px;
}

.kw { color: var(--amber); }
.kw-2 { color: var(--cyan); }
.muted { color: var(--fg-mute); font-weight: 400; font-size: 0.62em; display: inline-block; margin-top: 10px; }

.caret {
  display: inline-block;
  color: var(--amber);
  animation: blink 1.05s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 56px;
}

.hero-inner {
  max-width: 760px;
}

.status-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  margin-bottom: 24px;
}
.status-line b { color: var(--fg); font-weight: 500; }
.status-line .sep { color: var(--fg-mute); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.2s ease-in-out infinite;
}
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

h1 {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 28px;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 540px;
}
.lede b { color: var(--fg); font-weight: 500; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--amber);
  color: #0a0a0a;
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 0 24px -6px var(--amber-glow);
}
.btn-primary:hover {
  background: var(--amber-2);
  border-color: var(--amber-2);
  box-shadow: 0 0 0 1px var(--amber-2), 0 0 32px -4px var(--amber-glow);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
}

.hero-tags {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--fg-mute);
  font-size: 12px;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.step:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--amber-soft), 0 30px 60px -30px var(--amber-glow);
}

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: -0.005em;
}

.step p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 28px; height: 28px;
  background:
    linear-gradient(225deg, var(--amber-soft) 0 50%, transparent 50%);
  border-top-right-radius: 6px;
  pointer-events: none;
  opacity: 0.7;
}

.feature:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--amber-soft), 0 30px 60px -30px var(--amber-glow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  color: var(--amber);
  margin-bottom: 14px;
  filter: drop-shadow(0 0 10px var(--amber-soft));
}

.feature h3 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px;
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.plan:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.plan-featured {
  border-color: var(--amber);
  background:
    linear-gradient(180deg, rgba(255, 179, 0, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  box-shadow: 0 0 0 1px var(--amber-soft), 0 30px 60px -30px var(--amber-glow);
}

.plan-tag {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan-head {
  margin-bottom: 18px;
}

.plan-head h3 {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan-price {
  border-top: 1px dashed var(--line-2);
  border-bottom: 1px dashed var(--line-2);
  padding: 14px 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--fg-dim);
}
.price-row b {
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
  font-family: var(--mono);
}
.price-row b small {
  color: var(--fg-mute);
  font-size: 12px;
  font-weight: 400;
  margin-left: 2px;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--fg-dim);
  flex: 1;
}

.plan-list li {
  position: relative;
  padding-left: 18px;
}

.plan-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-weight: 700;
}

.plan-cta {
  margin-top: auto;
  width: 100%;
}

.plan-note-ref {
  color: var(--amber);
  font-weight: 700;
  margin-left: 2px;
}

.plans-note {
  margin: 28px 0 0;
  padding: 16px 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-dim);
}

.plans-note .plan-note-ref {
  margin-right: 6px;
  margin-left: 0;
}

.plan-custom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr auto;
  gap: 28px;
  align-items: center;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(255, 179, 0, 0.04) 14px 15px
    ),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.plan-custom .plan-head { margin: 0; }

.plan-custom-text {
  font-size: 14px;
  color: var(--fg-dim);
  margin: 0;
}

.plan-custom .plan-cta {
  margin: 0;
  width: auto;
  white-space: nowrap;
}

/* ---------- why bee ---------- */

.why-bee .bee-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.bee-art {
  color: var(--amber);
  filter: drop-shadow(0 0 30px var(--amber-soft));
}

.bee-art .hex-glow {
  animation: hexpulse 3.2s ease-in-out infinite;
  transform-origin: 180px 196px;
}
@keyframes hexpulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.bee-quote {
  font-size: 18px;
  color: var(--fg);
  line-height: 1.55;
  border-left: 2px solid var(--amber);
  padding-left: 16px;
  margin: 0 0 18px;
}

.bee-text p {
  color: var(--fg-dim);
  font-size: 15px;
}
.bee-text b { color: var(--fg); font-weight: 500; }

.bee-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-dim);
}

.bee-bullets li { padding-left: 16px; position: relative; }
.bee-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--amber);
}

/* ---------- form ---------- */

.contact .form {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.contact .form::before {
  content: "// ~/pchela/заявка.form";
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-dim);
}

.lbl {
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--fg-mute);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.form-textarea textarea { resize: vertical; min-height: 110px; }

.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-hint {
  font-size: 12px;
  color: var(--fg-mute);
}

.form-hint.ok { color: var(--green); }
.form-hint.err { color: var(--red); }

/* ---------- footer ---------- */

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  background: var(--bg-2);
  transition: border-color .15s ease;
}

.faq-item[open] { border-color: var(--amber); }

.faq-item summary {
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--amber);
  list-style: none;
  font-size: 14px;
  padding-right: 8px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: '▸ ';
  color: var(--fg-mute);
  display: inline-block;
  width: 16px;
}
.faq-item[open] summary::before { content: '▾ '; color: var(--amber); }

.faq-item p {
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.7;
  color: var(--fg-dim);
  font-size: 14px;
}

.faq-item p a {
  color: var(--amber-2);
  border-bottom: 1px dotted var(--amber);
}
.faq-item p a:hover { color: var(--amber); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  background: var(--bg-2);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1fr;
  gap: 36px;
  font-size: 13px;
  color: var(--fg-dim);
}

.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li { line-height: 1.5; }

.footer-col a {
  color: var(--fg-dim);
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--amber); }

.footer-meta-list li {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand .brand-mark { color: var(--amber); width: 24px; height: 24px; }

.footer-tagline {
  margin: 0;
  font-size: 12px;
  color: var(--fg-mute);
  line-height: 1.6;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--fg-mute);
}
.footer-bottom .sep { color: var(--line-2); }
.footer-bottom a {
  color: var(--fg-dim);
  border-bottom: 1px dotted var(--line-2);
}
.footer-bottom a:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-custom { display: flex; flex-direction: column; align-items: stretch; }
  .plan-custom .plan-cta { width: 100%; }
  .why-bee .bee-grid { grid-template-columns: 1fr; gap: 28px; }
  .bee-art { max-width: 320px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .nav { gap: 12px; font-size: 12px; }
  .nav a:not(.nav-cta) { display: none; }
  .section { padding: 64px 18px; }
  .hero { padding: 40px 18px 24px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 18px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px 18px 22px; }
  .footer-bottom .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================
   /setup.html — документ, инструкция по подключению
   ============================================================= */

body.doc .topbar { border-bottom-color: var(--line); }

.doc-crumb {
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}

.doc-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

.doc-header {
  margin-bottom: 32px;
}

.doc-header h1 {
  margin: 8px 0 18px;
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.doc-lede {
  margin: 0 0 14px;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.7;
}

.doc-lede b { color: var(--fg); font-weight: 500; }

.doc-toc {
  margin: 24px 0 56px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
}

.toc-label {
  display: block;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.doc-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
}

.doc-toc a {
  color: var(--fg-dim);
  transition: color .15s ease;
}
.doc-toc a:hover { color: var(--amber); }
.doc-toc a::before { content: "› "; color: var(--amber); }

.doc-body section {
  scroll-margin-top: 80px;
}

.doc-body h2 {
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg);
  scroll-margin-top: 80px;
}

.doc-body section:first-of-type h2 { margin-top: 0; }

.doc-body h2 .h-tag {
  display: inline-block;
  margin-right: 10px;
  font-size: 0.62em;
  color: var(--amber);
  letter-spacing: 0.14em;
  vertical-align: 2px;
}

.doc-body h3 {
  margin: 28px 0 10px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  scroll-margin-top: 80px;
}

.doc-body h4 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.doc-body p {
  margin: 0 0 14px;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.7;
}

.doc-body p.muted { color: var(--fg-dim); font-size: 14px; }

.doc-body ul, .doc-body ol {
  padding-left: 24px;
  margin: 0 0 16px;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.7;
}

.doc-body li { margin: 6px 0; }
.doc-body li::marker { color: var(--amber); font-weight: 600; }

.doc-body strong, .doc-body b { color: var(--fg); font-weight: 600; }

.doc-body code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--amber-2);
}

.doc-body pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
}

.doc-body pre code {
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: inherit;
}

.doc-body a {
  color: var(--amber-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 179, 0, 0.45);
  text-underline-offset: 3px;
  word-break: break-word;
}
.doc-body a:hover { text-decoration-color: var(--amber); }

.doc-divider {
  border: 0;
  border-top: 1px dashed var(--line-2);
  margin: 48px 0;
}

.doc-platform .platform-tag {
  display: inline-block;
  padding: 3px 12px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
}

.doc-platform h2 { margin-top: 14px; }

.doc-alts {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  font-size: 14px;
}

.doc-alts ul { margin-bottom: 8px; font-size: 14px; }
.doc-alts p { font-size: 13.5px; margin-bottom: 6px; }

.doc-issue { margin-bottom: 28px; }

.doc-faq details {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color .15s ease;
}

.doc-faq details[open] { border-color: var(--amber); }

.doc-faq summary {
  position: relative;
  padding: 12px 38px 12px 14px;
  list-style: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}

.doc-faq summary::-webkit-details-marker { display: none; }

.doc-faq summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.doc-faq details[open] summary::after { content: "−"; }

.doc-faq details > p,
.doc-faq details > div {
  padding: 0 14px 14px;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.doc-faq details > div p { margin-bottom: 10px; color: inherit; font-size: inherit; }
.doc-faq details > div ol { font-size: 14.5px; }

@media (max-width: 640px) {
  .doc-main { padding: 32px 18px 56px; }
  .doc-toc ul { gap: 6px 16px; }
}
