/* Marketing pages (/, /how-it-works, /audiences, /pricing…) and /admin. Paper and a highlighter read as the brand;
   dark follows the visitor's device unless they pick light or dark with the header's switch (/theme.js), with the same yellow.
   Prices are copied from worker/src/api/billing.ts PACKS and worker/src/run/spec.ts PRICES. */
:root {
  color-scheme: light;
  --canvas: #fbfaf6; --plate: #ffffff; --band: #f3f1ea; --line: #e6e3d9; --line-2: #d4d0c3;
  --ink: #141413; --ink-2: #3f3e3a; --ink-3: #6e6c64;
  --highlight: #ffe45c; --highlight-soft: #fff4b8;
  --ok: #1e7a46; --ok-tint: #e5f4ea; --warn: #9a5b00; --warn-tint: #fff1cf; --err: #c4281c; --err-tint: #fdebe8;
  --novice: #7a3db8; --novice-tint: #f3ecfb; --manager: #1f5fbf; --manager-tint: #eaf1fc;
  --expert: #0f7a6e; --expert-tint: #e3f4f1; --agent: #4a4a46; --agent-tint: #efefec;
  --display: 'Newsreader', Georgia, serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(20,20,19,.04), 0 8px 28px rgba(20,20,19,.06);
  --on-ink: #ffffff; --on-highlight: #141413; --on-err: #ffffff;
}
/* Keyed on <html data-theme>, which /theme.js sets from the visitor's pick or their device, so a page without it stays light. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #121211; --plate: #1b1b19; --band: #181816; --line: #2f2f2b; --line-2: #42413c;
  --ink: #f2f2ee; --ink-2: #c8c7bf; --ink-3: #9b9990;
  --highlight-soft: #3a3418;
  --ok: #5fc98c; --ok-tint: #16291e; --warn: #f0b552; --warn-tint: #2f2511; --err: #ff7468; --err-tint: #361815;
  --novice: #bb93ec; --novice-tint: #2a2037; --manager: #86b0f5; --manager-tint: #1b2638;
  --expert: #4fc6b6; --expert-tint: #132b28; --agent: #b8b7b0; --agent-tint: #272724;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 28px rgba(0,0,0,.3);
  --on-ink: #111111; --on-err: #111111;
}
[data-theme="dark"] pre { border: 1px solid var(--line) }
/* The yellow band stays paper inside: its form and button read as they do in light. */
[data-theme="dark"] .cta-band { --ink: #141413; --ink-2: #3f3e3a; --ink-3: #6e6c64; --plate: #ffffff; --line: #e6e3d9; --line-2: #d4d0c3; --on-ink: #ffffff; color: var(--ink); color-scheme: light }
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body { background: var(--canvas); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased }
a { color: inherit }
img, svg { display: block; max-width: 100% }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.12; font-weight: 600 }
mark, .hl { background: var(--highlight); color: var(--on-highlight); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent }
.top.scrolled { border-bottom-color: var(--line) }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px }
.logo { font: 700 1.45rem var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap }
.logo b { background: var(--highlight); color: var(--on-highlight); padding: 0 4px 0 1px; font-weight: 700 }
.links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: .95rem }
.links a { text-decoration: none; color: var(--ink-2) }
.links a:hover, .links a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--highlight); text-decoration-thickness: 3px; text-underline-offset: 6px }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: .72rem 1.2rem; border-radius: 12px; background: var(--ink); color: var(--on-ink) !important; font-weight: 600; text-decoration: none !important; white-space: nowrap; border: 1px solid var(--ink); transition: transform .12s }
.btn:hover { transform: translateY(-1px) }
.btn.ghost { background: var(--plate); color: var(--ink) !important; border-color: var(--line-2) }
.btn.yellow { background: var(--highlight); color: var(--on-highlight) !important; border-color: var(--ink) }

/* page furniture */
.hero { padding-block: 64px 56px; display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: center }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -.03em }
.hero.center { display: block; text-align: center; padding-block: 96px 24px }
.hero.center h1 { max-width: 12.5em; margin-inline: auto }
.hero.center .lead { margin: 22px auto 0; max-width: 38rem }
.hero.center .start { margin: 32px auto 0 }
.faces { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: .95rem; color: var(--ink-3) }
.faces .av { width: 40px; height: 40px; box-shadow: 0 0 0 3px var(--p) } .faces .av + span { margin-left: 8px }
.page-head { padding-block: 64px 24px; max-width: 760px }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em }
.lead { margin-top: 18px; font-size: 1.17rem; color: var(--ink-2); max-width: 36rem }
.cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap }
.fine { margin-top: 12px; font-size: .85rem; color: var(--ink-3) }
.kicker { font: 600 .78rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px }
section { padding: 64px 0 }
section > .wrap > h2, .sec-h { font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 30ch }
.sec-lead { margin-top: 12px; color: var(--ink-2); max-width: 44rem }
.band { background: var(--band); border-block: 1px solid var(--line) }
.card { background: var(--plate); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow) }
.card h3 { font-size: 1.25rem }
.card p { margin-top: 8px; color: var(--ink-2); font-size: .97rem }
.card code, .doc code { overflow-wrap: anywhere }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 600; text-decoration-color: var(--highlight); text-decoration-thickness: 3px; text-underline-offset: 4px }
.grid2, .grid3, .grid4 { margin-top: 32px; display: grid; gap: 18px }
.grid2 { grid-template-columns: repeat(2, 1fr) } .grid3 { grid-template-columns: repeat(3, 1fr) } .grid4 { grid-template-columns: repeat(4, 1fr) }
.split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center }
.step { font: 700 1.5rem var(--display); display: inline-block; background: var(--highlight); color: var(--on-highlight); padding: 0 9px; margin-bottom: 10px }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .6rem; border-radius: 99px; margin-bottom: 10px }
ul.ticks { list-style: none; margin-top: 14px } ul.ticks li { padding-left: 26px; position: relative; color: var(--ink-2); margin-top: 8px }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) }

/* the run card */
.lane { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line) }
.lane:first-of-type { border-top: 0 }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem }
.lane .nm { font-weight: 600 } .lane .sub { font-size: .85rem; color: var(--ink-3) }
.pill { font-size: .78rem; font-weight: 600; padding: .22rem .62rem; border-radius: 99px; white-space: nowrap }
.ok { background: var(--ok-tint); color: var(--ok) } .bad { background: var(--err-tint); color: var(--err) } .mid { background: var(--warn-tint); color: var(--warn) }
.quote { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--band); font-size: .93rem; color: var(--ink-2); border-left: 4px solid var(--highlight) }
.dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px } .dots i { width: 12px; height: 12px; border-radius: 50%; display: block }
.dots .y { background: var(--ok) } .dots .m { background: #e0a21a } .dots .n { background: var(--err) }
.dots.big { gap: 7px; max-width: 420px } .dots.big i { width: 22px; height: 22px }
.dots-cap { margin-top: 8px; font-size: .86rem; color: var(--ink-3) }

/* report excerpt */
.report { padding: 0; overflow: hidden }
.report .rh { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: baseline }
.report .rh h3 { font-size: 1.35rem }
.report .rb { padding: 20px 24px }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 4px }
.kpi { background: var(--band); border-radius: 14px; padding: 12px 14px }
.kpi b { display: block; font: 600 1.6rem var(--display) } .kpi span { font-size: .8rem; color: var(--ink-3) }
.kpi .up { color: var(--ok); font-size: .8rem; font-weight: 600 } .kpi .down { color: var(--err); font-size: .8rem; font-weight: 600 }
.finding { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line) }
.sev { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; height: fit-content; margin-top: 3px }
.sev.critical { background: var(--err); color: var(--on-err) } .sev.major { background: #e0a21a; color: var(--on-highlight) } .sev.minor { background: var(--band); color: var(--ink-2); border: 1px solid var(--line-2) }
.finding h4 { font: 600 1.02rem var(--body) } .finding p { margin-top: 4px; color: var(--ink-2); font-size: .93rem }
.finding .fix { margin-top: 8px; font-size: .93rem } .finding .fix b { background: var(--highlight-soft); padding: 0 4px }
.finding .who { margin-top: 6px; font-size: .82rem; color: var(--ink-3) }
.status { font-size: .72rem; font-weight: 600; color: var(--ink-3); margin-left: 6px }

/* tables, code, chart */
table { width: 100%; border-collapse: collapse; font-size: .96rem }
th, td { text-align: left; padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: top }
thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; border-top: 0 }
td.n, th.n { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap }
.scroll { overflow-x: auto }
pre { background: #161614; color: #f2f1ea; border-radius: 16px; padding: 18px 20px; overflow-x: auto; font: .84rem/1.6 var(--mono) }
pre .c { color: #9c9a8f } pre .s { color: #ffe45c }
code { font-family: var(--mono); font-size: .88em; background: var(--band); padding: 1px 6px; border-radius: 6px }
.chart text { font: 12px var(--body); fill: var(--ink-3) }

/* pricing */
.packs { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 32px }
.pack { position: relative; display: flex; flex-direction: column }
.pack.best { border: 2px solid var(--ink) }
.pack .flag { position: absolute; top: -13px; left: 22px; background: var(--highlight); color: var(--on-highlight); border: 1px solid var(--ink); font-size: .75rem; font-weight: 700; padding: .12rem .6rem; border-radius: 99px }
.pack .price { font: 600 2.8rem var(--display); margin-top: 10px; letter-spacing: -.02em }
.pack .per { color: var(--ink-3); font-size: .92rem }
.pack ul { margin-bottom: 20px } .pack .btn { margin-top: auto; justify-content: center }
.examples .card b.cr { font: 600 1.8rem var(--display); display: block; margin-top: 6px }

/* faq, cta band, footer */
details { border-top: 1px solid var(--line); padding: 18px 0 }
details:last-of-type { border-bottom: 1px solid var(--line) }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px }
summary::after { content: "+"; font: 400 1.4rem/1 var(--body); color: var(--ink-3) } details[open] summary::after { content: "–" }
details p { margin-top: 10px; color: var(--ink-2); max-width: 46rem }
.cta-band { background: var(--highlight); border-block: 1px solid var(--ink) }
.cta-band .wrap { padding: 56px 16px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 22ch }
footer { padding: 48px 0 56px; font-size: .9rem; color: var(--ink-3) }
.foot { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px }
.foot h4 { font: 600 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px }
.foot a { display: block; text-decoration: none; margin-top: 6px } .foot a:hover { color: var(--ink) }
.credit { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem }

@media (max-width: 900px) {
  .hero, .split, .grid2, .grid3, .grid4, .packs, .foot { grid-template-columns: 1fr }
  .hero { padding-top: 32px; gap: 32px }
  .kpis { grid-template-columns: repeat(2, 1fr) }
  .nav { flex-wrap: wrap; gap: 0 16px; padding-block: 10px }
  .menu-btn { display: block }
  .links { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 4px 0 12px }
  .top.open .links { display: flex }
  .top.open { border-bottom-color: var(--line); background: var(--canvas) }
  .links a { padding: 13px 2px; border-top: 1px solid var(--line); font-size: 1.05rem; color: var(--ink) }
  .links .btn { justify-content: center; margin-top: 12px; color: var(--on-ink) }
  .start { flex-direction: column } .start .btn { justify-content: center }
  section { padding: 48px 0 }
}

/* portraits and tester cards, as in the app's tester picker */
.av { overflow: hidden; flex: none }
.av img { width: 100%; height: 100%; object-fit: cover }
.lane .av { width: 52px; height: 52px; box-shadow: 0 0 0 2px var(--plate), 0 0 0 4px var(--p, var(--line-2)) }
.av.agent { background: var(--band); padding: 6px }
.tester { --p: var(--ink-3); --pt: var(--band); display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--p) }
.tester[data-p="novice"] { --p: var(--novice); --pt: var(--novice-tint) }
.tester[data-p="manager"] { --p: var(--manager); --pt: var(--manager-tint) }
.tester[data-p="expert"] { --p: var(--expert); --pt: var(--expert-tint) }
.t-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center }
.t-h .av { width: 84px; height: 84px; box-shadow: 0 0 0 3px var(--plate), 0 0 0 5px var(--p) }
.t-kind { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p) }
.t-name { font: 600 1.35rem/1.15 var(--display) }
.t-role { font-size: .86rem; color: var(--ink-3); margin-top: 3px }
.t-bio { color: var(--ink-2); font-size: .95rem }
.traits { display: grid; gap: 7px }
.trait { display: grid; grid-template-columns: 6.5rem auto 1fr; gap: 10px; align-items: center; font-size: .85rem }
.trait > span:first-child { color: var(--ink-3) } .trait b { font-weight: 600; color: var(--ink-2) }
.meter { display: flex; gap: 4px } .meter i { width: 9px; height: 9px; border-radius: 50%; background: var(--line) } .meter i.f { background: var(--p) }
.t-uses { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem } .t-uses span { padding: 3px 10px; border-radius: 99px; background: var(--pt); color: var(--ink-2) }
.agents-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 18px }
.agent-tile { text-align: center; padding: 18px 12px }
.agent-tile img { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50% }
.agent-tile b { display: block; font-size: .92rem } .agent-tile span { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 2px }
@media (max-width: 900px) { .agents-row { grid-template-columns: repeat(2, 1fr) } }

/* "shops like" strip: Simple Icons logos (CC0 artwork; the marks are their owners'), names where no free logo exists */
.like-strip { margin-top: 22px; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px }
.like-strip .lbl { font-size: .85rem; color: var(--ink-3); margin-right: 4px }
.like-strip .brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem }
.like-strip .brand img { width: 24px; height: 24px }
.like-strip .note { flex-basis: 100%; font-size: .78rem; color: var(--ink-3); margin-top: -4px }

/* phones */
.split > *, .hero > * { min-width: 0 }
@media (max-width: 640px) {
  body { font-size: 16px }
  .nav { min-height: 56px }
  .logo { font-size: 1.25rem }
  .hero { padding-block: 20px 40px } .hero.center { padding-block: 32px 16px }
  .hero h1 { font-size: 2.35rem }
  .page-head { padding-block: 32px 8px }
  .lead { font-size: 1.05rem }
  .cta .btn { flex: 1 1 100%; justify-content: center }
  .btn { white-space: normal; text-align: center }
  .card { padding: 18px; border-radius: 16px }
  .report .rh, .report .rb { padding: 16px 18px }
  .lane { grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px }
  .lane .av { width: 44px; height: 44px; grid-row: span 2; align-self: start }
  .lane .pill { grid-column: 2; justify-self: start }
  .t-h .av { width: 68px; height: 68px }
  .trait { grid-template-columns: 5.6rem auto 1fr }
  .agent-tile { padding: 14px 8px } .agent-tile img { width: 52px; height: 52px }
  .like-strip { padding: 16px 18px; gap: 10px 18px } .like-strip .lbl { flex-basis: 100% }
  .kpi { padding: 10px 12px } .kpi b { font-size: 1.35rem }
  pre { font-size: .76rem; padding: 14px 16px }
  .pack .price { font-size: 2.3rem }
  .cta-band .wrap { padding-block: 40px }
  .cta-band .btn { flex: 1 1 100%; justify-content: center }
  section { padding: 40px 0 }
}

/* mobile menu button, the "which site?" box */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--plate); cursor: pointer; position: relative }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { position: absolute; width: 18px; height: 2px; background: var(--ink); content: ""; transition: transform .2s, background .2s }
.menu-btn i { left: 12px; top: 20px } .menu-btn i::before { left: 0; top: -6px } .menu-btn i::after { left: 0; top: 6px }
@media (max-width: 900px) { .menu-btn { display: block } }
.top.open .menu-btn i { background: transparent } .top.open .menu-btn i::before { transform: translateY(6px) rotate(45deg) } .top.open .menu-btn i::after { transform: translateY(-6px) rotate(-45deg) }
/* light/dark switch (/theme.js puts it before the menu button): last on the bar on desktop, beside the menu button on phones */
.theme-btn { order: 2; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--plate); color: var(--ink); cursor: pointer }
.theme-btn svg { width: 18px; height: 18px }
.theme-btn:hover { border-color: var(--ink) }
@media (max-width: 900px) { .theme-btn { order: 0; margin-left: auto; width: 44px; height: 44px } .theme-btn + .menu-btn { margin-left: 8px } }
.start { margin-top: 28px; display: flex; gap: 8px; max-width: 580px; background: var(--plate); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; box-shadow: var(--shadow) }
.start input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: .65rem .8rem; color: var(--ink); outline: none }
.start:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--highlight) }
.start + .fine { margin-top: 10px }
.cta-band .start { margin-top: 0; flex: 1 1 440px; max-width: 520px; border-color: var(--ink) }

/* use-case pages: pre-built mission cards */
.mission { display: flex; flex-direction: column; gap: 10px }
.mission p { margin-top: 0 }
.mission .done { font-size: .9rem; color: var(--ink-2); background: var(--band); border-radius: 10px; padding: 9px 11px }
.mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px }
.mini span { font-size: .78rem; padding: 3px 9px; border-radius: 99px; background: var(--band); color: var(--ink-2) }
.mission .ag { width: 48px; height: 48px; border-radius: 50% }
.card .more { font-weight: 600; text-decoration: underline; text-decoration-color: var(--highlight); text-decoration-thickness: 3px; text-underline-offset: 4px; color: var(--ink) }
a.card.mission:hover { border-color: var(--ink) }

/* Solutions dropdown: hover or keyboard focus on desktop, an indented group in the phone menu */
.dd { position: relative }
.dd-t::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg) }
.dd-p { display: none; position: absolute; top: 100%; left: -14px; padding-top: 10px; min-width: 310px; z-index: 20 }
.dd-p::before { content: ""; position: absolute; inset: 10px 0 0; background: var(--plate); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: -1 }
.dd:hover .dd-p, .dd:focus-within .dd-p { display: block }
.dd-p a { display: block; margin: 6px; padding: 10px 12px; border-radius: 10px; text-decoration: none !important }
.dd-p a:hover, .dd-p a[aria-current] { background: var(--band) }
.dd-p b { display: block; color: var(--ink); font-weight: 600 } .dd-p span { display: block; font-size: .84rem; color: var(--ink-3); margin-top: 1px }
@media (max-width: 900px) {
  .dd-t { display: block }
  .dd-t::after { display: none }
  .dd-p { display: block; position: static; padding: 0 0 0 16px; min-width: 0 }
  .dd-p::before { display: none }
  .dd-p a { margin: 0; padding: 11px 2px; border-radius: 0; background: none !important }
  .dd-p span { display: none }
  .dd-p b { font-weight: 400; color: var(--ink-2) }
}
.av.brand { background: #fff; border: 1px solid var(--line); padding: 10px; box-shadow: 0 0 0 2px var(--plate), 0 0 0 4px var(--ink) }
.av.brand img { object-fit: contain }

/* the single price */
.deposit { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; max-width: 900px; margin: 8px auto 0; border: 2px solid var(--ink) }
.deposit .price { font: 600 3.2rem var(--display); letter-spacing: -.02em; line-height: 1.1 }
.deposit .per { color: var(--ink-2); font-weight: 600 }
@media (max-width: 900px) { .deposit { grid-template-columns: 1fr; gap: 18px } .deposit .btn { justify-content: center } }

/* docs (/docs, /docs/…): a page list on the left, the page, and "on this page" on the right; public/docs/nav.js fills both lists */
.docs { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 48px; align-items: start }
.docs.home { grid-template-columns: 220px minmax(0, 1fr) }
.wrap.dw { max-width: 1280px }
.dcrumb-h { font: 600 .95rem var(--body); color: var(--ink-3); text-decoration: none; margin-left: -12px }
.dcrumb-h::before { content: "/"; margin-right: 12px; color: var(--line-2) }
.dnav, .dtoc { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; padding: 32px 0 40px; font-size: .9rem }
.dnav b, .dtoc b { display: block; font: 600 .72rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 20px 0 6px }
.dnav b:first-child, .dtoc b:first-child { margin-top: 0 }
.dnav ul, .dtoc ul { list-style: none; border-left: 1px solid var(--line) }
.dnav a, .dtoc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); line-height: 1.35 }
.dnav a:hover, .dtoc a:hover { color: var(--ink); border-left-color: var(--line-2) }
.dnav a[aria-current] { border-left-color: var(--ink); color: var(--ink); font-weight: 600; background: linear-gradient(90deg, var(--highlight-soft), transparent 80%) }
.doc { padding: 36px 0 64px; max-width: 760px; min-width: 0 }
.docs.home .doc { max-width: none }
.dcrumb { font-size: .85rem; color: var(--ink-3) } .dcrumb a { color: inherit }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-top: 8px; letter-spacing: -.03em }
.dlead { margin-top: 12px; font-size: 1.12rem; color: var(--ink-2) }
.doc h2 { font-size: 1.55rem; margin-top: 44px; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px }
.doc h3 { font-size: 1.18rem; margin-top: 26px; scroll-margin-top: 84px }
.doc p { margin-top: 10px; color: var(--ink-2) }
.doc ol, .doc ul:not(.ticks) { margin: 10px 0 0 22px; color: var(--ink-2) }
.doc li { margin-top: 6px; padding-left: 4px }
.doc li > ul, .doc li > ol { margin-top: 4px }
.doc b { color: var(--ink); font-weight: 600 }
.doc p a, .doc li a, .doc td a, .tip a { text-decoration-color: var(--highlight); text-decoration-thickness: 3px; text-underline-offset: 3px }
.doc .scroll { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--plate) }
.doc .scroll table { font-size: .93rem } .doc .scroll th, .doc .scroll td { padding: 10px 14px } .doc .scroll tr:first-child td { border-top-color: var(--line) }
.doc pre { margin-top: 14px }
.tip { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--highlight-soft); border-left: 4px solid var(--highlight); color: var(--ink-2); font-size: .96rem }
.tip.warn { background: var(--warn-tint); border-left-color: var(--warn) }
.dpn { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 14px; flex-wrap: wrap }
.dpn a { flex: 1 1 240px; max-width: 360px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; text-decoration: none; background: var(--plate) }
.dpn a:hover { border-color: var(--ink) }
.dpn span { display: block; font-size: .8rem; color: var(--ink-3) } .dpn b { font-weight: 600 }
.dpn .next { margin-left: auto; text-align: right }
.dcards { margin-top: 32px; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)) }
.dcards .card { display: flex; flex-direction: column }
.dcards ul { list-style: none; margin: 12px 0 16px !important; flex: 1 }
.dcards li { margin-top: 4px; padding: 0 } .dcards li a { text-decoration: none; color: var(--ink) } .dcards li a:hover { text-decoration: underline; text-decoration-color: var(--highlight); text-decoration-thickness: 3px }
.dhelp { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 20px 24px; border-radius: 16px; background: var(--band); border: 1px solid var(--line) }
.dhelp p { margin: 0 }
@media (max-width: 1180px) { .docs { grid-template-columns: 210px minmax(0, 1fr); gap: 40px } .dtoc { display: none } }
@media (max-width: 900px) {
  .docs, .docs.home { grid-template-columns: minmax(0, 1fr); gap: 0 }
  .dcrumb-h { display: none }
  .dnav { display: none; position: static; max-height: none; padding: 16px 0 20px; border-bottom: 1px solid var(--line) }
  .top.open ~ .docs .dnav { display: block }
  .doc { padding-top: 24px }
  .dcards { grid-template-columns: minmax(0, 1fr) }
}
