/* PlayForge site. Layout: left-aligned editorial column (max 72rem) with a full-width
   "recording → test" panel as the one bold element; everything else stays quiet. */
:root {
  --paper: #f6f7fb;
  --surface: #ffffff;
  --ink: #141832;
  --muted: #565c76;
  --line: #dde0ec;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eceafe;
  --pass: #12804a;
  --code-bg: #10142a;
  --code-fg: #d8dcf0;
  --code-dim: #7d85a9;
  --code-key: #aab3ff;
  --code-str: #b6e2c4;
  --code-hl: rgba(124, 116, 255, 0.28);
  --m-limb: #312e81;
  --m-ring: #1e1b4b;
  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-code: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem);
  --step-4: clamp(2.4rem, 6vw, 4.1rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1021; --surface: #151a31; --ink: #e9ebf7; --muted: #9ba1bf; --line: #283050;
    --accent: #8f89ff; --accent-ink: #0d1021; --accent-soft: #232461; --pass: #45c983;
    --code-bg: #090c1b; --m-limb: #7f78f5; --m-ring: #c7d2fe; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1021; --surface: #151a31; --ink: #e9ebf7; --muted: #9ba1bf; --line: #283050;
  --accent: #8f89ff; --accent-ink: #0d1021; --accent-soft: #232461; --pass: #45c983;
  --code-bg: #090c1b; --m-limb: #7f78f5; --m-ring: #c7d2fe; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  padding-inline: 16px;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); font-weight: 750; letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: var(--font-code); font-size: 0.92em; }

.wrap { max-width: 72rem; margin-inline: auto; }
.prose { max-width: 40rem; }
.muted { color: var(--muted); }

/* Top bar */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin-inline: -16px;
  padding-inline: 16px;
}
.top .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 750; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding-inline: 1.15rem; border-radius: 10px;
  font: 600 var(--step-0)/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--muted); }
.top .btn { min-height: 2.25rem; font-size: var(--step--1); padding-inline: 0.9rem; }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 5.5rem) 2rem; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.25rem; font-size: var(--step-1); color: var(--muted); max-width: 36rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .note { margin-top: 0.9rem; font-size: var(--step--1); color: var(--muted); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: center; }
.hero .studio, .hero .studio-caption { grid-column: 1 / -1; }
.hero-text { min-width: 0; }
.hero-mascot { width: clamp(200px, 26vw, 320px); justify-self: end; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-mascot { grid-row: 1; justify-self: start; width: 132px; margin-bottom: 0.5rem; }
}

/* Forgie, the PlayForge robot */
.mascot [stroke="#312e81"] { stroke: var(--m-limb); }
.mascot [fill="#312e81"] { fill: var(--m-limb); }
.mascot .m-glass circle { stroke: var(--m-ring); }
.mascot .m-glass rect { fill: var(--m-ring); }
.mascot .m-shadow { fill: var(--ink); }
.mascot { display: block; width: 100%; height: auto; overflow: visible; cursor: pointer; }
.m-float, .m-shadow, .m-bulb-glow, .m-eyes-open, .m-glass { transform-box: fill-box; transform-origin: center; }
.m-float { animation: m-float 3.4s ease-in-out infinite; }
.m-shadow { animation: m-shadow 3.4s ease-in-out infinite; }
.m-bulb-glow { animation: m-glow 1.8s ease-in-out infinite; }
.m-eyes-open { animation: m-blink 5s infinite; }
.m-eyes-happy { display: none; }
.m-arm-r { transform-box: view-box; transform-origin: 154px 162px; animation: m-wave 1.1s ease-in-out 0.4s 3; }
.m-glass { animation: m-scan 4.5s ease-in-out 3.8s infinite; }
.m-eyes-open circle { transition: transform 0.4s; }
.mascot.look .m-eyes-open circle { transform: translate(-4px, 7px); }
.mascot.happy .m-eyes-open { display: none; }
.mascot.happy .m-eyes-happy { display: inline; }
.mascot.happy .m-float { animation: m-hop 0.5s ease-out 2; }
.mascot.happy .m-arm-r, .mascot:hover .m-arm-r { animation: m-wave 0.9s ease-in-out 2; }
@keyframes m-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes m-shadow { 0%, 100% { transform: scaleX(1); opacity: 0.18; } 50% { transform: scaleX(0.86); opacity: 0.12; } }
@keyframes m-glow { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes m-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.12); } }
@keyframes m-wave { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-14deg); } 70% { transform: rotate(10deg); } }
@keyframes m-scan { 0%, 70%, 100% { transform: translate(0, 0); } 78% { transform: translate(-5px, 4px); } 86% { transform: translate(4px, -2px); } }
@keyframes m-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-16px); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .mascot *, .mascot.happy *, .mascot:hover * { animation: none !important; transition: none !important; }
}

/* The one bold element: an example recording on the left becomes the spec on the right,
   then a robot replays it. demo.js animates it; without it (or with reduced motion) the
   finished state below is what shows. */
.studio {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  border-radius: 16px;
  overflow: hidden;
  background: var(--code-bg);
  color: var(--code-fg);
  box-shadow: 0 30px 60px -30px rgba(20, 24, 50, 0.45);
}
@media (max-width: 860px) { .studio { grid-template-columns: minmax(0, 1fr); } }
.browser { min-width: 0; padding: 14px; border-right: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 860px) { .browser { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); } }
.bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.tab { font-size: 0.75rem; padding: 3px 10px; border-radius: 7px 7px 0 0; background: rgba(255, 255, 255, 0.1); color: var(--code-fg); white-space: nowrap; }
.tab-new { background: rgba(124, 116, 255, 0.35); }
.mode { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--code-dim); white-space: nowrap; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5d5d; }
.studio[data-phase="rec"] .rec-dot { animation: blink 1.2s steps(2, end) infinite; }
.studio[data-phase="run"] .rec-dot, .studio[data-phase="done"] .rec-dot { background: #45c983; }
@keyframes blink { 50% { opacity: 0.2; } }
.url { font: 400 0.75rem/1 var(--font-code); color: var(--code-dim); background: rgba(255, 255, 255, 0.06); border-radius: 8px; padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url-path { color: var(--code-fg); }
.viewport { position: relative; min-height: 210px; border-radius: 10px; background: #f7f7fb; color: #1b1e33; overflow: hidden; padding: 16px; }
.screen { display: none; }
.studio[data-screen="list"] .screen-list, .studio:not([data-screen="list"]) .screen-product { display: block; }
.studio[data-screen="list"] .tab-new { display: none; }
.shop-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card { display: flex; flex-direction: column; gap: 6px; justify-content: space-between; min-height: 92px; padding: 10px; border-radius: 9px; background: #fff; border: 1px solid #e3e5f0; font-size: 0.72rem; line-height: 1.35; color: #1b1e33; text-decoration: none; }
.card b { font-size: 0.8rem; }
#demo-product { color: #3730a3; text-decoration: underline; text-underline-offset: 2px; }
.prod-meta { font-size: 0.8rem; color: #5b6078; }
.buy { display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 8px; background: #1b1e33; color: #fff; font-size: 0.8rem; font-weight: 600; }
.toast { margin-top: 14px; display: inline-block; padding: 7px 12px; border-radius: 8px; background: #dcfce7; color: #166534; font-size: 0.8rem; font-weight: 600; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 0.2s; }
.studio.no-toast .toast { visibility: hidden; }
.toast.picked { outline-color: #7c74ff; }
.pressed { transform: scale(0.96); transition: transform 0.12s; }
.cursor, .bot { position: absolute; left: 0; top: 0; pointer-events: none; transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s; }
.cursor { width: 22px; height: 22px; fill: #1b1e33; stroke: #fff; stroke-width: 1.3; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.bot { width: 30px; height: 30px; opacity: 0; filter: drop-shadow(0 3px 6px rgba(79, 70, 229, 0.45)); }
.studio[data-phase="rec"] .cursor { opacity: 1; }
.studio[data-phase="run"] .bot { opacity: 1; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.events li { display: flex; gap: 10px; font-size: 0.8rem; line-height: 1.4; padding: 5px 6px; border-radius: 6px; color: var(--code-fg); transition: opacity 0.35s, background 0.35s; min-width: 0; }
.events li.hidden { opacity: 0; }
.events li.is-on { background: rgba(255, 255, 255, 0.07); }
.events time { font-family: var(--font-code); color: var(--code-dim); font-variant-numeric: tabular-nums; font-size: 0.75rem; }
.events .api { color: var(--code-str); }
.pane-title { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: var(--step--1); color: var(--code-dim); }
.pane-title b { color: var(--code-fg); font-weight: 600; }
.spec { min-width: 0; display: flex; flex-direction: column; }
.spec pre { margin: 0; padding: 0.75rem 0; overflow-x: auto; font: 400 0.8rem/1.75 var(--font-code); tab-size: 2; flex: 1; }
.spec .ln { display: block; padding-inline: 1.1rem 1.25rem; white-space: pre; position: relative; }
.spec .ln::before { content: attr(data-n); display: inline-block; width: 2ch; margin-right: 1.2ch; color: rgba(125, 133, 169, 0.55); text-align: right; }
.spec .ln.untyped { clip-path: inset(0 100% 0 0); }
.spec .ln.typing { transition: clip-path 0.7s steps(34, end); }
.spec .ln.is-on { background: var(--code-hl); }
.spec .ln.pass::before { content: "✓"; color: #45c983; }
.studio[data-phase="done"] .ln[data-step]::before { content: "✓"; color: #45c983; }
.k { color: var(--code-key); }
.s { color: var(--code-str); }
.result { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.75rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font: 500 0.8rem/1.4 var(--font-code); color: var(--code-dim); transition: opacity 0.4s; }
.studio:not([data-phase="done"]) .result { opacity: 0; }
.result .ok { color: #45c983; }
.studio-caption { margin-top: 0.9rem; font-size: var(--step--1); color: var(--muted); max-width: 46rem; }

/* Self-healing example in "How it works" */
.heal { margin-top: 2rem; border-radius: 12px; background: var(--code-bg); color: var(--code-fg); padding: 1rem 1.1rem; font: 400 0.8rem/1.7 var(--font-code); overflow-x: auto; max-width: 52rem; }
.heal .row { display: flex; gap: 0.8rem; align-items: baseline; white-space: pre; }
.heal .tag { flex: none; width: 5.5rem; color: var(--code-dim); font-family: var(--font-body); font-size: 0.75rem; }
.heal .old { color: #ff8f8f; text-decoration: line-through; text-decoration-color: rgba(255, 143, 143, 0.7); }
.heal .new { color: var(--code-str); }
.heal .why { color: var(--code-dim); white-space: normal; font-family: var(--font-body); }
.heal .pass { color: #45c983; }
.heal.playing .row { opacity: 0; }
.heal.playing .row.on { opacity: 1; transition: opacity 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .cursor, .bot, .events li, .result, .heal .row { transition: none !important; }
}

/* Sections */
section.block { padding-block: clamp(3.5rem, 8vw, 6rem) 0; }
section.block > .wrap > h2 + p { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); max-width: 40rem; }

.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(s); font: 700 var(--step--1)/1 var(--font-code); color: var(--accent); display: block; margin-bottom: 0.75rem; }
.steps p { margin-top: 0.5rem; color: var(--muted); }

.hard { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .hard { grid-template-columns: minmax(0, 1fr); } }
.hard > div { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.hard > div:nth-child(odd) { padding-right: 2rem; }
@media (min-width: 761px) { .hard > div:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); } }
.hard p { margin-top: 0.5rem; color: var(--muted); }
.hard code.line {
  display: block; margin-top: 0.85rem; padding: 0.6rem 0.75rem; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-size: 0.78rem; overflow-x: auto; white-space: pre;
}

.split { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split ul { margin: 0.75rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.split li + li { margin-top: 0.4rem; }
.split p { margin-top: 0.6rem; color: var(--muted); }

.roles { margin-top: 1.25rem; width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.roles th, .roles td { text-align: left; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.roles th { font-weight: 650; white-space: nowrap; padding-right: 1.5rem; }
.roles td { color: var(--muted); }

/* Pricing */
.plans { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 52rem; }
@media (max-width: 700px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.plan.main { border: 2px solid var(--accent); }
.plan .price { font: 750 var(--step-3)/1 var(--font-display); letter-spacing: -0.02em; }
.plan .price small { font-size: var(--step-0); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 1.1rem; color: var(--muted); flex: 1; }
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; margin-top: 1.75rem; }
@media (max-width: 1000px) { .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans-4 { grid-template-columns: minmax(0, 1fr); } }
.plans-4 .price { font-size: var(--step-2); }
.plan .inr { margin-top: -0.4rem; font-size: var(--step--1); color: var(--muted); }
.plan .btn { align-self: stretch; }
.early { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 10px; background: var(--accent-soft); max-width: 52rem; }
.setup { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border: 1px dashed var(--line); border-radius: 14px; max-width: 52rem; }
.setup h3 { font-size: 1.08rem; }
.setup p { margin-top: 0.4rem; color: var(--muted); }
.plan li + li { margin-top: 0.35rem; }

/* FAQ */
.faq { margin-top: 2rem; max-width: 46rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1rem; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.2rem; color: var(--muted); }
.faq details > div p + p { margin-top: 0.6rem; }

/* Closing + footer */
.closing { padding-block: clamp(4rem, 9vw, 6.5rem); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; border-top: 2px solid var(--ink); padding-top: 2rem; }
.closing h2 { max-width: 18ch; }
footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: var(--step--1); color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
footer a { color: var(--muted); }
.select { user-select: all; color: var(--ink); }

/* Legal pages */
.legal { padding-block: 3rem 4rem; }
.legal .wrap { max-width: 44rem; }
.legal h1 { font-size: var(--step-3); }
.legal .updated { margin-top: 0.6rem; color: var(--muted); font-size: var(--step--1); }
.legal h2 { font-size: var(--step-1); margin-top: 2.25rem; }
.legal p, .legal ul, .legal table { margin-top: 0.75rem; }
.legal ul { padding-left: 1.2rem; }
.legal li + li { margin-top: 0.35rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 650; }
.legal .table-scroll { overflow-x: auto; }
.legal .callout { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 10px; background: var(--accent-soft); color: var(--ink); }

/* Docs: sticky contents on the left, one reading column on the right. */
.docs { padding-block: 2.5rem 4rem; }
.docs > .wrap { display: grid; grid-template-columns: 13rem minmax(0, 46rem); gap: 3rem; align-items: start; }
.toc { position: sticky; top: 5rem; font-size: var(--step--1); }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.toc ol { list-style: none; margin: 0 0 1.4rem; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.85rem; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.doc h1 { font-size: var(--step-3); }
.doc .lede { margin-top: 0.75rem; font-size: var(--step-1); color: var(--muted); }
.doc section { padding-top: 1.25rem; scroll-margin-top: 4.5rem; }
.doc h2 { font-size: var(--step-2); margin-top: 1.75rem; }
.doc h3 { font-size: 1.08rem; margin-top: 1.6rem; }
.doc p, .doc ul, .doc ol, .doc .table-scroll, .doc .code, .doc .callout { margin-top: 0.75rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li + li { margin-top: 0.4rem; }
.doc .steps-list li::marker { font-weight: 700; color: var(--accent); }
.doc .table-scroll { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; }
.doc td code { font-size: 0.82rem; }
.doc :not(pre) > code { background: var(--accent-soft); padding: 0.08em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
.doc .code { background: var(--code-bg); color: var(--code-fg); border-radius: 10px; padding: 1rem 1.1rem; overflow-x: auto; font-size: 0.82rem; line-height: 1.65; }
.doc .callout { padding: 1rem 1.1rem; border-radius: 10px; background: var(--accent-soft); color: var(--ink); }
.doc .faq { margin-top: 1rem; }
.doc .help { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .docs > .wrap { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .toc { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .toc ol { grid-row: 2; margin-bottom: 0; }
  .toc-title { grid-row: 1; }
  .toc a { padding-block: 0.2rem; }
}
.doc details.more { margin-top: 0.9rem; padding: 0.2rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.doc details.more summary { cursor: pointer; padding: 0.6rem 0; font-weight: 600; }
.doc details.more[open] { padding-bottom: 1rem; }
