:root {
  --bg: #fbfbfd;
  --bg2: #f3f3f7;
  --card: #ffffff;
  --ink: #111118;
  --ink2: #55556a;
  --ink3: #8a8a9c;
  --line: #e6e6ee;
  --accent: #6d4aff;
  --accent2: #ff5c8a;
  --accent-ink: #ffffff;
  --good: #22c55e;
  --bad: #f97316;
  --wall1: #e9e4ff;
  --wall2: #ffe3ec;
  --wall3: #dff3ff;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 8px 24px rgba(20, 20, 40, .08);
  --radius: 14px;
  --spring: cubic-bezier(.22, 1.25, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c11;
    --bg2: #13131a;
    --card: #17171f;
    --ink: #f2f2f7;
    --ink2: #a8a8b8;
    --ink3: #70707f;
    --line: #26262f;
    --wall1: #241d4a;
    --wall2: #3a1a2a;
    --wall3: #102838;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c11; --bg2: #13131a; --card: #17171f; --ink: #f2f2f7; --ink2: #a8a8b8; --ink3: #70707f;
  --line: #26262f; --wall1: #241d4a; --wall2: #3a1a2a; --wall3: #102838;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
kbd {
  font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace;
  background: var(--bg2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 3px 6px; color: var(--ink); white-space: nowrap;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 Inter, sans-serif; padding: 14px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { font-size: 14px; padding: 10px 16px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink);
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--ink2); }
.nav-links a:hover { color: var(--ink); }

/* hero */
.hero { text-align: center; padding: 72px 16px 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px;
}
.pill-tag { background: var(--ink); color: var(--bg); font-weight: 600; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
h1 { font-size: clamp(40px, 7.4vw, 80px); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; margin: 26px 0 22px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; margin: 0 auto; font-size: clamp(17px, 2vw, 20px); color: var(--ink2); }
.cta-row { display: flex; gap: 12px; justify-content: center; margin: 32px 0 14px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--ink3); margin: 0; }

/* ---------- demo ---------- */
.demo-sec { padding: 20px 0 30px; }
.mac {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(1200px 500px at 10% 0%, var(--wall1), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, var(--wall2), transparent 60%),
    radial-gradient(700px 400px at 60% 40%, var(--wall3), transparent 70%),
    var(--bg2);
  box-shadow: 0 30px 80px -30px rgba(40, 20, 120, .35), var(--shadow);
}
.menubar {
  height: 26px; display: flex; align-items: center; gap: 16px; padding: 0 14px; font-size: 12.5px;
  background: color-mix(in srgb, var(--card) 55%, transparent); backdrop-filter: blur(20px);
  position: relative; z-index: 5; color: var(--ink);
}
.apple { width: 11px; height: 13px; background: var(--ink); border-radius: 50% 50% 45% 45%; }
.mb-right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.mb-ribbon { width: 16px; height: 11px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; }
.mb-ribbon::after { content: ""; position: absolute; left: 4px; top: 1px; bottom: 1px; width: 5px; background: var(--ink); border-radius: 1px; }

.screen {
  position: relative; height: clamp(320px, 46vw, 520px); overflow: hidden; outline: none;
  touch-action: pan-y; cursor: default;
}
.screen:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.strip { position: absolute; inset: 0; }

.win {
  position: absolute; top: 0; left: 0; border-radius: 11px; overflow: hidden;
  background: var(--card); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 10px 30px -8px rgba(20, 10, 60, .28);
  transition: transform .5s var(--spring), width .5s var(--spring), height .5s var(--spring), opacity .3s, box-shadow .2s;
  display: flex; flex-direction: column; cursor: pointer; will-change: transform;
}
.win.focused { box-shadow: 0 0 0 2.5px var(--accent), 0 14px 36px -8px color-mix(in srgb, var(--accent) 45%, transparent); }
.win.dim { filter: saturate(.85) brightness(.97); }
.win { animation: winIn .35s ease-out; }
@keyframes winIn { from { opacity: 0; } }
.win.leaving { opacity: 0; transition: opacity .22s, transform .22s; }
.screen.dragging .win { transition: width .5s var(--spring), height .5s var(--spring), box-shadow .2s; }

.titlebar {
  height: 30px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 10px;
  font-size: 12px; font-weight: 600; color: var(--ink2); background: var(--bg2); border-bottom: 1px solid var(--line);
  position: relative;
}
.titlebar .t { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.tl { width: 11px; height: 11px; border-radius: 50%; position: relative; z-index: 1; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.tl.r:hover::after { content: "×"; position: absolute; inset: 0; font: 700 10px/11px sans-serif; text-align: center; color: #7a1410; }
.wbody { flex: 1; min-height: 0; overflow: hidden; padding: 12px; font-size: 12px; position: relative; }

/* fake app bodies */
.sk { height: 9px; border-radius: 5px; background: var(--line); margin: 7px 0; }
.urlbar { height: 22px; border-radius: 7px; background: var(--bg2); font-size: 11px; color: var(--ink3); display: flex; align-items: center; justify-content: center; margin: -4px 0 12px; }
.hero-img { height: 46%; border-radius: 9px; margin-top: 12px; background: linear-gradient(135deg, #c7b8ff, #ffc2d4 60%, #bfe6ff); }
.term { background: #16161d; color: #c9c9d6; font: 12px/1.65 "JetBrains Mono", monospace; }
.term .p { color: #a78bfa; } .term .ok { color: #4ade80; } .term .cur { display: inline-block; width: 7px; height: 13px; background: #c9c9d6; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code { background: #1b1b24; color: #d4d4e0; font: 12px/1.7 "JetBrains Mono", monospace; }
.code .k { color: #c084fc; } .code .s { color: #86efac; } .code .f { color: #7dd3fc; } .code .c { color: #6b6b80; } .code .n { color: #6b6b80; display: inline-block; width: 22px; }
.notes h5 { margin: 0 0 8px; font-size: 15px; } .notes p { margin: 4px 0; color: var(--ink2); }
.notes .chk::before { content: "○ "; color: var(--accent); }
.notes .chk.done { text-decoration: line-through; color: var(--ink3); } .notes .chk.done::before { content: "● "; }
.mail .row { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mail .av { width: 24px; height: 24px; border-radius: 50%; }
.mail b { display: block; font-size: 12px; } .mail span { color: var(--ink3); font-size: 11px; }
.music { display: flex; flex-direction: column; gap: 10px; }
.music .art { aspect-ratio: 1; max-height: 52%; border-radius: 10px; background: conic-gradient(from 200deg, #ff5c8a, #6d4aff, #22d3ee, #ff5c8a); }
.music .tr { display: flex; justify-content: space-between; color: var(--ink2); padding: 3px 0; border-bottom: 1px solid var(--line); }
.msgs { display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 75%; padding: 7px 11px; border-radius: 15px; font-size: 12px; }
.bub.in { background: var(--bg2); align-self: flex-start; }
.bub.out { background: #0a84ff; color: #fff; align-self: flex-end; }
.finder { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 12px; text-align: center; font-size: 10.5px; color: var(--ink2); }
.finder .fi { width: 40px; height: 32px; margin: 0 auto 4px; border-radius: 4px; background: linear-gradient(#7cc4ff, #3b9cf5); }

.edge { position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 3; }
.edge-l { left: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent); }
.edge-r { right: 0; background: linear-gradient(-90deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent); }
.edge.on { opacity: 1; }

.toast {
  position: absolute; left: 50%; top: 14px; transform: translate(-50%, -8px); opacity: 0; z-index: 6;
  background: color-mix(in srgb, var(--ink) 86%, transparent); color: var(--bg); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.dock {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 4;
  display: flex; gap: 6px; padding: 6px; border-radius: 18px;
  background: color-mix(in srgb, var(--card) 55%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.dock button {
  width: 40px; height: 40px; border-radius: 10px; border: 0; cursor: pointer; color: #fff;
  font: 700 15px/1 "JetBrains Mono", monospace; transition: transform .18s var(--spring); position: relative;
}
.dock button:hover { transform: translateY(-6px) scale(1.12); }
.dock button.running::after { content: ""; position: absolute; bottom: -5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink2); }

.minimap {
  display: flex; gap: 4px; justify-content: center; align-items: center; margin: 16px auto 0;
  padding: 8px; width: max-content; max-width: 100%; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); position: relative; box-shadow: var(--shadow);
}
.mm-col { height: 26px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; transition: width .4s var(--spring); }
.mm-win { flex: 1; border-radius: 4px; opacity: .55; transition: opacity .2s; display: flex; align-items: center; justify-content: center; color: #fff; font: 700 9px/1 "JetBrains Mono", monospace; }
.mm-win.f { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.mm-view { position: absolute; top: 4px; bottom: 4px; border: 2px solid var(--ink); border-radius: 7px; pointer-events: none; transition: left .45s var(--spring), width .45s var(--spring); opacity: .7; }

.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.controls button {
  display: inline-flex; align-items: center; gap: 8px; font: 500 13.5px/1 Inter, sans-serif; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px 7px 7px; cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.controls button:hover { border-color: var(--accent); }
.controls button:active, .controls button.flash { transform: scale(.96); border-color: var(--accent); }
.controls button.toggle { padding-left: 13px; }
.controls button.toggle.on { background: color-mix(in srgb, var(--accent) 14%, var(--card)); border-color: var(--accent); }
.screen.no-border .win.focused { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 10px 30px -8px rgba(20, 10, 60, .28); }
.screen.dim-on .win.dim { filter: brightness(.72) saturate(.7); }
.win.tab-hidden { opacity: 0; pointer-events: none; }
.tabbar {
  position: absolute; top: 0; left: 0; height: 28px; display: flex; gap: 4px; padding: 4px 6px 0; box-sizing: border-box;
  background: var(--bg2); border-radius: 11px 11px 0 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  transition: transform .5s var(--spring), width .5s var(--spring); z-index: 2; will-change: transform;
}
.tabbar span { flex: 1; font: 600 11px/20px Inter, sans-serif; text-align: center; color: var(--ink3); border-radius: 6px 6px 0 0; cursor: pointer; }
.tabbar span.on { background: var(--card); color: var(--ink); }
.screen.dragging .tabbar { transition: width .5s var(--spring); }
.demo-hint { text-align: center; color: var(--ink3); font-size: 13.5px; margin: 14px 0 0; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 40px; padding-bottom: 40px; }
.trust div { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); padding-left: 14px; }
.trust b { font-size: 15px; } .trust span { font-size: 13.5px; color: var(--ink2); }

/* sections */
.sec { padding-top: 90px; padding-bottom: 20px; }
.narrow { max-width: 760px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.sec-lead { color: var(--ink2); font-size: 18px; max-width: 680px; margin: 16px 0 0; }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.cmp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.cmp-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; } .dot.bad { background: var(--bad); } .dot.good { background: var(--good); }
.cmp-screen { height: 170px; border-radius: 10px; background: var(--bg2); position: relative; overflow: hidden; padding: 6px; display: flex; gap: 6px; }
.cmp-track { position: absolute; top: 6px; bottom: 6px; left: 6px; display: flex; gap: 6px; transition: transform .55s var(--spring); }
.cw { border-radius: 7px; flex: 1; min-width: 0; transition: flex .45s var(--spring), width .45s; color: #fff; font: 700 13px/1 "JetBrains Mono", monospace; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cmp-track .cw { flex: none; }
.cmp-note { margin: 10px 2px 0; font-size: 13.5px; color: var(--ink2); }
.cmp-btns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 17px; margin-bottom: 6px; } .card p { margin: 0; color: var(--ink2); font-size: 15px; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.feat { background: var(--card); padding: 24px; }
.feat i { font-style: normal; display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.feat h3 { font-size: 16px; margin-bottom: 4px; } .feat p { margin: 0; color: var(--ink2); font-size: 14.5px; }

/* shortcuts */
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.keycol { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.keycol h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); margin-bottom: 8px; }
.krow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.krow:last-child { border-bottom: 0; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; align-items: stretch; }
@media (max-width: 980px) { .prices { grid-template-columns: repeat(2, 1fr); } }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.price.hot { border: 2px solid var(--accent); box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--accent) 50%, transparent); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price h3 { font-size: 16px; color: var(--ink2); }
.amt { font-size: 44px; font-weight: 800; letter-spacing: -.04em; margin-top: 8px; }
.per { margin: 0 0 16px; color: var(--ink3); font-size: 14px; }
.price ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price li { padding: 6px 0 6px 24px; position: relative; font-size: 15px; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 26px; }
summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink3); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink2); margin: 10px 0 0; }

/* final */
.final { text-align: center; padding-bottom: 80px; }
.final .sec-lead { margin-left: auto; margin-right: auto; }
.price .alt { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--ink3); }
.price .alt:hover { color: var(--accent); }
.price-note { text-align: center; margin-top: 22px; line-height: 1.7; }
.price-note a { color: var(--ink2); text-decoration: underline; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 14px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .trust, .three, .feat-grid, .keys, .prices { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .dock button { width: 32px; height: 32px; font-size: 12px; }
  .wbody { padding: 9px; font-size: 11px; }
  .menubar > span:nth-of-type(n+3):not(.mb-right) { display: none; }
  .menubar { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .win, .cmp-track, .mm-view, .mm-col { transition-duration: .01s !important; }
}

/* two-column cards, mini displays, spec table */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.mini { display: flex; gap: 10px; margin-bottom: 16px; }
.mini-screen { flex: 1; height: 110px; border-radius: 10px; background: linear-gradient(135deg, var(--wall1), var(--wall2)); display: flex; gap: 6px; padding: 10px; overflow: hidden; }
.mini-screen.wide .mw { flex: 1.2; }
.mw { flex: 1; min-width: 0; background: var(--card); border-radius: 6px; font: 600 10px/1 Inter, sans-serif; color: var(--ink3); padding: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.mw.on { box-shadow: 0 0 0 2px var(--accent); color: var(--ink); }
.spec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px; align-self: start; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec div:last-child { border-bottom: 0; }
.spec span { color: var(--ink3); } .spec b { font-weight: 600; text-align: right; }
.feat code { font: 12px "JetBrains Mono", monospace; background: var(--bg2); padding: 2px 6px; border-radius: 5px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* ---------- guides / articles ---------- */
.article { max-width: 780px; padding-top: 36px; padding-bottom: 60px; }
.crumbs { font-size: 13.5px; color: var(--ink3); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.article h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 12px; text-align: left; }
.byline { color: var(--ink3); font-size: 14px; margin: 0 0 22px; }
.article-lead { font-size: 19px; color: var(--ink2); margin: 0 0 26px; }
.toc { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 30px; font-size: 14.5px; }
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--ink2); } .toc a:hover { color: var(--accent); }
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: clamp(24px, 3.2vw, 30px); line-height: 1.2; margin: 46px 0 12px; scroll-margin-top: 80px; }
.prose h3 { font-size: 20px; margin: 30px 0 8px; scroll-margin-top: 80px; }
.prose h4 { font-size: 17px; margin: 22px 0 6px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a, .faq a, .callout a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose code, .faq code { font: 14px "JetBrains Mono", ui-monospace, monospace; background: var(--bg2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.prose pre { background: #16161d; color: #d4d4e0; border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 0 0 20px; font: 13.5px/1.6 "JetBrains Mono", ui-monospace, monospace; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.callout { background: color-mix(in srgb, var(--accent) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 22px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg2); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; }
.cta-card { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 44px 0 10px; box-shadow: var(--shadow); }
.cta-card .mini { margin: 0; }
.cta-card h3 { font-size: 19px; margin-bottom: 6px; }
.cta-card p { margin: 0; color: var(--ink2); font-size: 15px; }
.cta-row.left { justify-content: flex-start; margin: 16px 0 0; }
.faq { margin-top: 40px; }
.faq h2, .keep-reading h2, .guide-group h2 { font-size: clamp(24px, 3.2vw, 30px); }
.faq details:first-of-type { margin-top: 12px; }
.keep-reading { margin-top: 46px; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.rel { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: border-color .15s, transform .15s; }
.rel:hover { border-color: var(--accent); transform: translateY(-1px); }
.rel b { font-size: 15.5px; } .rel span { font-size: 14px; color: var(--ink2); }
.guides-page { max-width: 1000px; }
.guides-page .rel-grid { grid-template-columns: repeat(3, 1fr); }
.guide-group { margin-top: 40px; }
.foot-guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 50px; padding-bottom: 30px; border-top: 1px solid var(--line); }
.foot-guides h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); margin-bottom: 10px; }
.foot-guides ul { list-style: none; margin: 0; padding: 0; }
.foot-guides li { padding: 4px 0; font-size: 14px; color: var(--ink2); }
.foot-guides a:hover { color: var(--accent); }
.foot-guides + .foot { border-top: 0; padding-top: 10px; }
@media (max-width: 860px) {
  .rel-grid, .guides-page .rel-grid { grid-template-columns: 1fr; }
  .foot-guides { grid-template-columns: 1fr 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .prose { font-size: 16.5px; }
}
kbd.lit { background: var(--accent); color: #fff; border-color: var(--accent); transition: background .1s; }
#shortcuts .demo-hint { margin-top: 22px; }
.legal h3 { font-size: 18px; margin: 32px 0 8px; }
.legal p { color: var(--ink2); }
