/*
 * The shared base for every store: layout, type scale, forms, the builder, checkout, the payment
 * widget, prose and tables. It decides structure and behaviour, not character. Each store's own
 * stylesheet (sites/<domain>/public/css/store.css) is appended to this one in the same file
 * (lib/assets.js) and sets its fonts, palette, shapes and the look of its home page, mostly by
 * overriding the tokens below.
 *
 * No build step: this file is what is served. Contrast for every store's palette is checked in
 * test/contrast.test.js, and scripts/check.js refuses generic fonts and pulsing indicators.
 */

:root {
  color-scheme: light dark;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display-weight: 650;
  --display-tracking: -.02em;
  --display-transform: none;
  --display-stretch: normal;
  --display-leading: 1.1;
  --h1: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem);
  --h2: clamp(1.55rem, 1.15rem + 1.5vw, 2.2rem);
  --h3: 1.15rem;
  --body-leading: 1.6;

  --bg: #f7f7f5; --surface: #ffffff; --surface-2: #efefec; --sunken: #e9e9e5;
  --line: #dcdcd6; --line-strong: #bdbdb5;
  --ink: #111111; --ink-2: #2e2e2e; --ink-3: #595959;
  --ok: #17703a; --ok-soft: #e4f3e9; --warn: #934604; --warn-soft: #fbf0d9; --err: #b3201f; --err-soft: #fbe7e7; --info: #1d4ed8; --info-soft: #e5ecfc;
  --accent-soft: color-mix(in oklab, var(--accent) 9%, var(--surface));
  --accent-line: color-mix(in oklab, var(--accent) 40%, var(--line));

  --radius: 10px; --radius-sm: 6px; --radius-lg: 14px; --radius-btn: 8px; --radius-chip: 999px;
  --shadow-pop: 0 14px 36px rgb(0 0 0 / .14);
  --container: 76rem; --gutter: clamp(1rem, 4vw, 2rem); --header-h: 4rem;
  --section: clamp(3rem, 7vw, 5.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0e; --surface: #151516; --surface-2: #1c1c1e; --sunken: #101011;
    --line: #2a2a2d; --line-strong: #3c3c40;
    --ink: #f3f3f1; --ink-2: #d2d2ce; --ink-3: #a3a39e;
    --ok: #63d98f; --ok-soft: rgb(99 217 143 / .13); --warn: #f2b84b; --warn-soft: rgb(242 184 75 / .13); --err: #ff8f8f; --err-soft: rgb(255 143 143 / .13); --info: #93b3ff; --info-soft: rgb(147 179 255 / .13);
    --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--surface));
    --shadow-pop: 0 14px 36px rgb(0 0 0 / .55);
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0e; --surface: #151516; --surface-2: #1c1c1e; --sunken: #101011;
  --line: #2a2a2d; --line-strong: #3c3c40;
  --ink: #f3f3f1; --ink-2: #d2d2ce; --ink-3: #a3a39e;
  --ok: #63d98f; --ok-soft: rgb(99 217 143 / .13); --warn: #f2b84b; --warn-soft: rgb(242 184 75 / .13); --err: #ff8f8f; --err-soft: rgb(255 143 143 / .13); --info: #93b3ff; --info-soft: rgb(147 179 255 / .13);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--surface));
  --shadow-pop: 0 14px 36px rgb(0 0 0 / .55);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--font-body); font-size: 1rem; line-height: var(--body-leading); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); line-height: var(--display-leading); letter-spacing: var(--display-tracking); text-transform: var(--display-transform); font-stretch: var(--display-stretch); text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -.01em; }
h4 { font-size: 1rem; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-text); text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
strong { color: var(--ink); font-weight: 600; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--accent) 70%, transparent); outline-offset: 2px; }
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: .7rem; }
.section-head p { color: var(--ink-3); font-size: 1.05rem; }
.section-more { margin-top: 1.5rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--accent-text); letter-spacing: .01em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { min-height: var(--header-h); display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 2rem; height: 2rem; }
.brand-long { display: none; }
.nav { display: none; margin-left: auto; gap: .15rem; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: .45rem .7rem; font-size: .95rem; border-radius: var(--radius-sm); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.header-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.header-cta { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-btn); border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(19rem, calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: .4rem; display: grid; }
.menu-panel a { padding: .75rem .9rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.menu-panel a:hover { background: var(--surface-2); }
@media (min-width: 64rem) {
  .nav { display: flex; }
  .menu { display: none; }
  .header-actions { margin-left: 0; }
  .header-cta { display: inline-flex; }
  .brand-long { display: inline; }
  .brand-short { display: none; }
}

/* ---------- buttons and links ---------- */
.btn { --b: var(--line-strong); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.2rem; border-radius: var(--radius-btn); border: 1px solid var(--b); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .975rem; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { --b: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; --b: transparent; }
.btn-ghost:hover { --b: var(--line); }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.025rem; }
.btn-sm { padding: .5rem .85rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- hero (each store shapes its own) ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy h1 { margin-top: .9rem; }
.lede { font-size: clamp(1.05rem, .97rem + .4vw, 1.22rem); color: var(--ink-3); max-width: 40rem; margin-top: 1.2rem; line-height: 1.55; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.grid { display: grid; gap: 1rem; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-3); }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s; }
.card-link:hover { border-color: var(--line-strong); text-decoration: none; }

.product-card, .preset-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s; min-width: 0; }
.product-card:hover, .preset-card:hover { border-color: var(--line-strong); text-decoration: none; }
.product-plate, .preset-plate { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-3); overflow: hidden; }
.product-plate .icon, .preset-plate .icon { width: 2.8rem; height: 2.8rem; }
.product-plate img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: grid; gap: .3rem; flex: 1; align-content: start; }
.product-brand { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.product-name, .preset-name { font-size: 1.05rem; line-height: 1.25; }
.product-sum, .preset-tagline { font-size: .9rem; color: var(--ink-3); line-height: 1.45; }
.product-facts { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .15rem; font-size: .8rem; color: var(--ink-2); }
.product-facts .k { color: var(--ink-3); }
.product-foot, .preset-foot { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.product-cta { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--accent-text); }
.preset-kicker { font-size: .8rem; color: var(--ink-3); }
.preset-specs { margin: .2rem 0 0; display: grid; gap: .2rem; font-size: .82rem; }
.preset-specs div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; }
.preset-specs dt { color: var(--ink-3); }
.preset-specs dd { margin: 0; color: var(--ink-2); }
.preset-kit { font-size: .8rem; color: var(--ink-3); }
.price { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
.price small { font-weight: 500; color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: var(--radius-sm); font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-err { background: var(--err-soft); color: var(--err); border-color: transparent; }

/* ---------- home blocks: base shapes ---------- */
.facts-band { border-block: 1px solid var(--line); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.facts > div { padding: 1rem 1.1rem; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: .78rem; color: var(--ink-3); }
.facts dd { margin: .2rem 0 0; color: var(--ink); font-weight: 550; }

.compare th[scope="row"] { color: var(--ink-3); font-weight: 500; width: 28%; }
.compare thead th { color: var(--ink); font-size: 1rem; }
.compare-note { margin-top: 1rem; color: var(--ink-3); font-size: .95rem; }

.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); counter-reset: note; }
.notes li { counter-increment: note; display: grid; gap: .4rem; align-content: start; }
.notes li::before { content: counter(note, decimal-leading-zero); font-family: var(--font-mono); font-size: .8rem; color: var(--accent-text); }
.notes p { color: var(--ink-3); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.step { display: grid; gap: .5rem; align-content: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step-icon { color: var(--accent-text); }
.step-icon .icon { width: 1.6rem; height: 1.6rem; }
.step p { color: var(--ink-3); }

.coins-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.coins-head h2 { font-size: 1.15rem; }
.coin-strip { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.coin-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem .4rem .45rem; border-radius: var(--radius-chip); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 550; font-size: .92rem; }
.coin-pill:hover { border-color: var(--line-strong); text-decoration: none; }
.coin-sym { color: var(--ink-3); font-weight: 500; font-size: .82rem; }
.coin-img { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface-2); flex: none; object-fit: cover; }
.coin-mono { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-mono); font-size: .6rem; font-weight: 700; color: var(--ink-2); flex: none; }
.coin-img-lg, .coin-mono.coin-img-lg { width: 3rem; height: 3rem; font-size: .8rem; }

.faq-layout { display: grid; gap: 1.5rem; }
@media (min-width: 62rem) { .faq-layout { grid-template-columns: 20rem 1fr; gap: 3rem; align-items: start; } }
.faq { display: grid; gap: .5rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--ink); display: flex; gap: 1rem; justify-content: space-between; align-items: center; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s var(--ease); color: var(--ink-3); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 1.2rem 1.15rem; color: var(--ink-2); max-width: 46rem; }

.guides-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; max-width: none; }
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; gap: .25rem; padding: 1.1rem 0; text-decoration: none; color: inherit; }
.guide-list a:hover .guide-title { color: var(--accent-text); text-decoration: underline; }
.guide-title { font-family: var(--font-display); font-weight: var(--display-weight); color: var(--ink); font-size: 1.1rem; }
.guide-desc { color: var(--ink-3); font-size: .95rem; max-width: 52rem; }
.guide-meta { font-size: .8rem; color: var(--ink-3); }
@media (min-width: 52rem) { .guide-list a { grid-template-columns: 1fr 1.3fr auto; gap: 2rem; align-items: baseline; } }

.closing { display: grid; gap: 1.25rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.closing p { color: var(--ink-3); margin-top: .5rem; max-width: 40rem; }
@media (min-width: 52rem) { .closing { grid-template-columns: 1fr auto; } }

.aside-links { margin-block: 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--line-strong); color: var(--ink-3); font-size: .95rem; }
.aside-links p + p { margin-top: .5rem; }

.cat-group + .cat-group { margin-top: 2rem; }
.cat-group-title { font-size: 1rem; margin-bottom: .75rem; color: var(--ink-3); }
.cat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.cat { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; height: 100%; }
.cat:hover { border-color: var(--line-strong); text-decoration: none; }
.cat-icon { grid-row: span 3; color: var(--accent-text); }
.cat-icon .icon { width: 1.6rem; height: 1.6rem; }
.cat-label { font-weight: 650; color: var(--ink); }
.cat-blurb { font-size: .88rem; color: var(--ink-3); }
.cat-meta { font-size: .8rem; color: var(--ink-3); }

.teaser { display: grid; gap: 2rem; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.teaser p { color: var(--ink-3); margin-top: .75rem; max-width: 38rem; }
.teaser-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); counter-reset: ts; }
.teaser-steps li { display: flex; gap: .5rem; align-items: center; font-size: .92rem; color: var(--ink-2); }
.teaser-presets { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.teaser-presets a { display: grid; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; background: var(--surface); }
.tp-name { font-weight: 650; color: var(--ink); }
.tp-tag { font-size: .82rem; color: var(--ink-3); }
.tp-price { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
@media (min-width: 62rem) { .teaser { grid-template-columns: 1.1fr .9fr; align-items: center; } }

.pricing-layout { display: grid; gap: 1.5rem; }
.pricing-rows { margin: 0; display: grid; border-top: 1px solid var(--line); }
.pricing-rows div { display: grid; gap: .3rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.pricing-rows dt { font-weight: 650; color: var(--ink); }
.pricing-rows dd { margin: 0; color: var(--ink-3); }
@media (min-width: 46rem) { .pricing-rows div { grid-template-columns: 11rem 1fr; gap: 1.5rem; } }
.pricing-example { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); align-self: start; }
.pricing-example-title { font-size: .85rem; color: var(--ink-3); margin-bottom: .6rem; }
.pricing-example dl { margin: 0; display: grid; gap: .4rem; }
.pricing-example dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.pricing-example dd { margin: 0; }
.pricing-example .total { border-top: 1px solid var(--line); padding-top: .5rem; font-weight: 650; color: var(--ink); }
@media (min-width: 62rem) { .pricing-layout { grid-template-columns: 1fr 1.4fr .9fr; gap: 2.5rem; align-items: start; } .pricing-layout .section-head { margin-bottom: 0; } }

.privacy-cols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.privacy-col { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.privacy-col h3 { margin-bottom: .75rem; }
.privacy-col ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; color: var(--ink-2); }
.privacy-more { margin-top: 1.25rem; }

/* ---------- forms ---------- */
.field { display: grid; gap: .4rem; }
.label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.label .opt { color: var(--ink-3); font-weight: 500; }
.input, .select, .textarea { width: 100%; padding: .72rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; line-height: 1.4; transition: border-color .15s, box-shadow .15s; appearance: none; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 55%, calc(100% - .85rem) 55%; background-size: .3rem .3rem; background-repeat: no-repeat; padding-right: 2.4rem; }
.textarea { min-height: 7rem; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .85; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.field.has-error .input, .field.has-error .select { border-color: var(--err); }
.hint { font-size: .85rem; color: var(--ink-3); }
.error-text { font-size: .875rem; color: var(--err); font-weight: 550; display: flex; gap: .4rem; align-items: flex-start; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .wide { grid-column: 1 / -1; } }
.check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: .8rem; padding: .95rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); align-items: flex-start; }
.notice .icon { margin-top: .15rem; }
.notice-info { background: var(--info-soft); border-color: transparent; color: var(--ink); }
.notice-info .icon { color: var(--info); }
.notice-warn { background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.notice-warn .icon { color: var(--warn); }
.notice-error { background: var(--err-soft); border-color: transparent; color: var(--ink); }
.notice-error .icon { color: var(--err); }
.notice-ok { background: var(--ok-soft); border-color: transparent; color: var(--ink); }
.notice-ok .icon { color: var(--ok); }
.notice strong { display: block; margin-bottom: .15rem; }
.list-filter { max-width: 26rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-link { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-chip); color: var(--ink-2); text-decoration: none; font-size: .88rem; background: var(--surface); }
.chip-link:hover { border-color: var(--ink-3); text-decoration: none; }
.chip-link[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-link .count { font-size: .78rem; opacity: .7; }
.filter-empty { padding: 2rem 0; color: var(--ink-3); }

/* ---------- builder ---------- */
.builder { display: grid; gap: 1.5rem; padding-block: 1.5rem 6rem; align-items: start; }
@media (min-width: 64rem) { .builder { grid-template-columns: minmax(0, 1fr) 24rem; gap: 2rem; padding-bottom: 4rem; } .builder-aside { position: sticky; top: calc(var(--header-h) + 1rem); } }
.builder-head { display: grid; gap: .9rem; padding-block: 2rem 0; }
.presets-bar { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.presets-bar .label { margin-right: .25rem; }
.preset-chip { padding: .42rem .85rem; border-radius: var(--radius-chip); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.preset-chip:hover { background: var(--surface-2); }
.preset-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bstep { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 1rem); }
.bstep + .bstep { margin-top: 1rem; }
.bstep-head { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.bstep-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--accent-text); flex: none; }
.bstep-icon .icon { width: 1.35rem; height: 1.35rem; }
.bstep-title { flex: 1; min-width: 0; }
.bstep-title h2 { font-size: 1.12rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.bstep-num { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.bstep-title p { color: var(--ink-3); font-size: .9rem; margin-top: .15rem; }
.bstep-pick { font-size: .85rem; color: var(--ink-3); text-align: right; max-width: 12rem; }
.bstep-pick strong { display: block; font-size: .9rem; }
@media (max-width: 40rem) {
  /* The chosen part moves to its own row, so the title and help text are not squeezed into a sliver. */
  .bstep-head { flex-wrap: wrap; align-items: flex-start; padding: 1rem; row-gap: .75rem; }
  .bstep-pick { flex: 1 1 100%; max-width: none; text-align: left; padding-top: .75rem; border-top: 1px dashed var(--line); }
  .bstep-pick:empty { display: none; }
}
.bstep.is-invalid { border-color: color-mix(in oklab, var(--err) 55%, var(--line)); }
.options { display: grid; gap: .7rem; padding: 1.05rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.option { position: relative; display: grid; gap: .45rem; align-content: start; padding: .95rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: var(--line-strong); }
.option input[type="radio"], .option input[type="checkbox"] { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option:has(input:focus-visible) { outline: 3px solid color-mix(in oklab, var(--accent) 70%, transparent); outline-offset: 2px; }
.option.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.option-top { display: flex; gap: .75rem; justify-content: space-between; align-items: flex-start; }
.option-name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.option-sum { font-size: .875rem; color: var(--ink-3); line-height: 1.45; }
.option-price { text-align: right; flex: none; }
.option-delta { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.option-tick { position: absolute; top: .6rem; right: .6rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: none; place-items: center; }
.option-tick .icon { width: .85rem; height: .85rem; }
.option.is-selected .option-tick { display: grid; }
.option.has-tick .option-top { padding-right: 1.8rem; }
.option.is-disabled { cursor: not-allowed; background: var(--surface-2); }
.option.is-disabled .option-name, .option.is-disabled .option-sum, .option.is-disabled .price { opacity: .55; }
.option.is-disabled:hover { border-color: var(--line); }
.option.is-disabled .option-delta { visibility: hidden; }
.option-reason { display: flex; gap: .4rem; align-items: flex-start; font-size: .8rem; font-weight: 550; color: var(--warn); line-height: 1.35; }
.option-reason .icon { width: 1rem; height: 1rem; margin-top: .05rem; }
.spec-list { display: flex; flex-wrap: wrap; gap: .3rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.spec-list li { padding: .12rem .45rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .76rem; color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; gap: .15rem; border: 1px solid var(--line-strong); border-radius: var(--radius-chip); background: var(--surface); width: fit-content; position: relative; z-index: 1; }
.qty button { width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.qty button:hover:not(:disabled) { background: var(--surface-2); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 1.5rem; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.summary-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.summary-body { padding: 1rem 1.2rem; display: grid; gap: .55rem; max-height: max(11rem, calc(100dvh - 27rem)); overflow: auto; }
@media (max-width: 63.99rem) { .summary-body { max-height: none; } }
.summary-body:empty { display: none; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; align-items: baseline; }
.summary-line .what { color: var(--ink-2); min-width: 0; }
.summary-line .what small { display: block; color: var(--ink-3); font-size: .78rem; }
.summary-line.empty .what { color: var(--ink-3); font-style: italic; }
.summary-total { padding: 1rem 1.2rem; border-top: 1px solid var(--line); background: var(--surface-2); display: grid; gap: .3rem; }
.summary-total .big { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; color: var(--ink); font-weight: 650; }
.summary-total .big .price { font-size: 1.55rem; }
.summary-foot { padding: 1.1rem 1.2rem; display: grid; gap: .8rem; border-top: 1px solid var(--line); }
.verdict { display: flex; gap: .65rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 550; line-height: 1.4; }
.verdict.ok { background: var(--ok-soft); color: var(--ok); }
.verdict.bad { background: var(--err-soft); color: var(--err); }
.verdict.info { background: var(--surface-2); color: var(--ink-2); }
.verdict ul { margin: .25rem 0 0; padding-left: 1.1rem; font-weight: 500; }
.facts-line { font-size: .85rem; color: var(--ink-3); display: flex; gap: .5rem; flex-wrap: wrap; }
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.mobile-bar .price { font-size: 1.25rem; }
@media (min-width: 64rem) { .mobile-bar { display: none; } }
.noscript-note { margin-bottom: 1rem; }

/* ---------- checkout ---------- */
.checkout { display: grid; gap: 2rem; padding-block: 2rem 4rem; align-items: start; }
@media (min-width: 62rem) { .checkout { grid-template-columns: minmax(0, 1fr) 24rem; } .checkout-aside { position: sticky; top: calc(var(--header-h) + 1rem); } }
.checkout-main { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.15rem, 3vw, 1.7rem); }
.panel + .panel { margin-top: 1.2rem; }
.grid > .panel + .panel { margin-top: 0; }
.panel > h2 { font-size: 1.2rem; display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.panel > h2 .num { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 700; font-family: var(--font-body); letter-spacing: 0; }
.order-lines { display: grid; gap: .7rem; padding: 0; margin: 0; list-style: none; }
.order-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .925rem; }
.order-line .what { min-width: 0; color: var(--ink-2); }
.totals { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; display: grid; gap: .5rem; }
.totals .line { display: flex; justify-content: space-between; font-size: .925rem; }
.totals .grand { font-size: 1.2rem; color: var(--ink); font-weight: 650; padding-top: .6rem; border-top: 1px dashed var(--line-strong); margin-top: .35rem; }
.totals .grand .price { font-size: 1.5rem; }
.coin-picker { display: grid; gap: 1rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.coin-tools { display: grid; gap: .75rem; }
.coin-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.coin-filter { padding: .35rem .8rem; border-radius: var(--radius-chip); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: none; display: inline-block; }
.coin-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.coin-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); max-height: 22rem; overflow: auto; padding: .25rem; margin: -.25rem; }
.coin-option { position: relative; display: flex; gap: .65rem; align-items: center; padding: .6rem .75rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; min-width: 0; }
.coin-option:hover { border-color: var(--line-strong); }
.coin-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.coin-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.coin-option:has(input:focus-visible) { outline: 3px solid color-mix(in oklab, var(--accent) 70%, transparent); outline-offset: 2px; }
.coin-option .t { min-width: 0; line-height: 1.2; }
.coin-option .t b { display: block; color: var(--ink); font-weight: 650; font-size: .95rem; }
.coin-option .t span { display: block; color: var(--ink-3); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-empty { padding: 1.5rem; text-align: center; color: var(--ink-3); }
.networks { display: grid; gap: .5rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.networks-all { display: grid; gap: .75rem; }
.network-option { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; position: relative; }
.network-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.network-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.network-option:has(input:focus-visible) { outline: 3px solid color-mix(in oklab, var(--accent) 70%, transparent); outline-offset: 2px; }
.network-option b { color: var(--ink); font-weight: 600; }
.network-option span { color: var(--ink-3); font-size: .85rem; }
.network-option.is-disabled { opacity: .55; cursor: not-allowed; background: var(--surface-2); }
.picked { display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink); }
.disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.disclosure summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; color: var(--ink); }
.disclosure > div { padding: 0 1rem 1rem; }
.big-price { font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.05rem); }

/* ---------- the payment widget ---------- */
.order-page { padding-block: 2rem 4rem; display: grid; gap: 1.5rem; max-width: 62rem; }
.order-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-end; }
.order-head > :first-child { flex: 1 1 24rem; min-width: 0; }
.order-page .grid.cols-2 { align-items: start; }
.order-id { display: grid; gap: .25rem; }
.order-id .id-row { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .45rem .4rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-family: var(--font-mono); font-weight: 600; letter-spacing: .06em; color: var(--ink); font-size: .95rem; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; padding: 0; margin: 0; list-style: none; counter-reset: t; }
.timeline li { position: relative; text-align: center; font-size: .8rem; color: var(--ink-3); font-weight: 550; padding-top: 2.1rem; }
.timeline li::before { counter-increment: t; content: counter(t); position: absolute; top: 0; left: 50%; translate: -50% 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); font-size: .75rem; font-weight: 700; color: var(--ink-3); z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: .78rem; left: calc(50% + .9rem); right: calc(-50% + .9rem); height: 2px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink-2); }
.timeline li.done::before { content: "\2713"; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.timeline li.done::after { background: var(--accent); }
.timeline li.current { color: var(--ink); }
.timeline li.current::before { border-color: var(--accent); color: var(--accent-text); }
.pay { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pay-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; padding: 1rem 1.5rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.live { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink); }
.live .icon { color: var(--accent-text); }
.live-check { font-weight: 400; font-size: .85rem; color: var(--ink-3); }
.countdown { display: inline-flex; align-items: center; gap: .6rem; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .95rem; }
.countdown strong { font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: .02em; }
.countdown.is-low strong { color: var(--err); }
.meter { height: 4px; background: var(--line); }
.meter > i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transition: transform 1s linear; }
.pay-body { display: grid; gap: 2rem; padding: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 52rem) { .pay-body { grid-template-columns: minmax(0, 1fr) 15rem; align-items: start; } }
.pay-fields { display: grid; gap: 1.5rem; min-width: 0; }
.pay-label { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .5rem; }
.pay-label .badge { min-width: 1.4rem; justify-content: center; }
.pay-amount { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.amount { font-family: var(--font-mono); font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; overflow-wrap: anywhere; }
.amount small { font-size: .55em; color: var(--ink-3); font-weight: 500; margin-left: .35rem; letter-spacing: 0; }
.copy-box { display: flex; gap: .6rem; align-items: stretch; }
.copy-box code { flex: 1; min-width: 0; display: block; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; word-break: break-all; line-height: 1.45; font-size: .95rem; }
.copy-btn { display: inline-flex; align-items: center; gap: .45rem; padding: 0 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { background: var(--surface-2); }
.copy-btn.is-done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.net-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .8rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .9rem; }
.net-badge small { color: var(--ink-3); font-weight: 500; }
.qr-col { display: grid; gap: .75rem; justify-items: center; text-align: center; }
.qr { width: 100%; max-width: 15rem; aspect-ratio: 1; padding: .85rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; }
.pay-warning { display: flex; gap: .85rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink); font-size: .925rem; }
.pay-warning .icon { color: var(--warn); margin-top: .12rem; }
.memo-box { padding: 1rem 1.15rem; border-radius: var(--radius-sm); border: 2px solid var(--warn); background: var(--warn-soft); }
.memo-box .pay-label { color: var(--warn); }
.pay-foot { padding: 1rem 1.5rem 1.4rem; display: grid; gap: .9rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.note { display: flex; gap: .6rem; align-items: flex-start; }
.note > .icon { flex: none; margin-top: .2em; color: var(--ink-3); }
.pay-again { margin: 0 clamp(1.25rem, 3vw, 2rem) 1.5rem; }
.pay-again > .pay-body { padding: 0 0 1.25rem; }
.state-card { display: flex; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.state-card .state-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; flex: none; background: var(--surface-2); color: var(--ink-2); }
.state-card .state-icon .icon { width: 1.6rem; height: 1.6rem; }
.state-card.tone-ok .state-icon { background: var(--ok-soft); color: var(--ok); }
.state-card.tone-working .state-icon { background: var(--accent-soft); color: var(--accent-text); }
.state-card.tone-warn .state-icon { background: var(--warn-soft); color: var(--warn); }
.state-card.tone-error .state-icon { background: var(--err-soft); color: var(--err); }
.state-card h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.state-card p + p { margin-top: .6rem; }
.pay > .pay-seen { border: 0; border-radius: 0; background: transparent; }
.spin { animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dl { display: grid; gap: .6rem; margin: 0; }
.dl > div { display: flex; justify-content: space-between; gap: 1.5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); font-size: .925rem; }
.dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; color: var(--ink); font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.dev-bar { padding: 1rem 1.25rem; border: 1px dashed var(--warn); border-radius: var(--radius-sm); background: var(--warn-soft); display: grid; gap: .6rem; }
.dev-bar form { display: flex; gap: .4rem; flex-wrap: wrap; }
@media (max-width: 40rem) {
  .timeline { grid-template-columns: 1fr; gap: .25rem; }
  .timeline li { text-align: left; padding: .2rem 0 .2rem 2.4rem; }
  .timeline li::before { top: .1rem; left: 0; translate: 0 0; }
  .timeline li::after { top: 1.7rem; bottom: -.4rem; left: .78rem; right: auto; width: 2px; height: auto; }
  .copy-box { flex-direction: column; }
  .copy-btn { padding: .7rem 1rem; justify-content: center; }
}

/* ---------- product and preset pages ---------- */
.product-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .product-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.product-plate-lg { aspect-ratio: 16 / 11; }
/* On a phone the name and the price come first; the picture and the spec table follow. */
@media (max-width: 61.99rem) {
  .product-info { order: -1; }
  .product-plate-lg { aspect-ratio: 16 / 7; }
}
@media (max-width: 40rem) { .product-plate, .preset-plate { aspect-ratio: 16 / 6; } }
.product-plate-lg .icon { width: 5rem; height: 5rem; }
.spec-table { margin: 1.25rem 0 0; display: grid; border-top: 1px solid var(--line); }
.spec-table div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table dt { color: var(--ink-3); }
.spec-table dd { margin: 0; color: var(--ink); }
.product-h1 { font-size: clamp(1.8rem, 1.2rem + 2.3vw, 2.7rem); }
.price-breakdown .grand { border-top: 1px dashed var(--line-strong); padding-top: .6rem; }
.qty-field { max-width: 8rem; }
.buy-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .9rem; color: var(--ink-2); }
.buy-notes li { display: flex; gap: .55rem; align-items: flex-start; }
.buy-notes .icon { margin-top: .2rem; color: var(--accent-text); }
.preset-hero { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .preset-hero { grid-template-columns: 1.2fr .8fr; } }
.buy-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.kit-row { padding-top: .75rem; border-top: 1px solid var(--line); }
.preset-facts { list-style: none; padding: 0; margin: 0; }
.preset-facts li { display: flex; gap: .5rem; align-items: flex-start; }
.parts-table th[scope="row"] { color: var(--ink-3); font-weight: 500; }
.total-row th, .total-row td { color: var(--ink); font-weight: 650; }

/* ---------- guides ---------- */
.guide-byline { font-size: .875rem; color: var(--ink-3); }
.guide-body { display: grid; gap: 2rem; align-items: start; padding-bottom: 1rem; }
@media (min-width: 64rem) { .guide-body { grid-template-columns: 15rem minmax(0, 44rem); gap: 3.5rem; } .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.toc { font-size: .9rem; }
.toc-title { font-weight: 650; color: var(--ink); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; color: var(--ink-3); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }
.guide-answer { padding: 1rem 1.2rem; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius); color: var(--ink); margin-bottom: 1.75rem; font-size: 1.05rem; }
.guide-list-full a { padding-block: 1.3rem; }

/* ---------- prose, tables, footer ---------- */
.prose { max-width: 44rem; font-size: 1.07rem; line-height: 1.72; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.8rem); }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .4rem; }
.prose li::marker { color: var(--accent-text); }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.2rem; border-left: 3px solid var(--accent); color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 650; }
.prose code { padding: .1rem .35rem; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.fingerprint code { font-size: 1rem; letter-spacing: .04em; word-spacing: .2em; overflow-wrap: anywhere; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem .5rem; padding: 0; margin: 0 0 1.2rem; list-style: none; font-size: .875rem; color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumbs a { color: var(--ink-3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.table th, .table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { color: var(--ink); font-weight: 650; background: var(--surface-2); font-size: .85rem; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.page-head { padding-block: clamp(2rem, 5vw, 3.25rem) 1rem; display: grid; gap: 1rem; }
.page-head .lede { margin-top: 0; }
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: .925rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer-h { font-size: .85rem; color: var(--ink); margin-bottom: .75rem; font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-stretch: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-brand p { color: var(--ink-3); margin-top: .75rem; max-width: 22rem; }
.footer-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .84rem; display: grid; gap: .5rem; }
.footer-files { margin-left: .5rem; }
.footer-files a { margin-right: .6rem; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .mobile-bar, .hero-art { display: none; } body { background: #fff; color: #000; } }

/* ---------- small utilities (the CSP forbids style attributes, so spacing lives here) ---------- */
.stack-sm > * + * { margin-top: .5rem; }
.stack-md > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.narrow { max-width: 40rem; } .narrow-md { max-width: 46rem; } .narrow-lg { max-width: 56rem; }
.flush { margin-top: 0; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.h3 { font-size: 1.15rem; font-weight: var(--display-weight); color: var(--ink); font-family: var(--font-display); }
.js-only { display: none; }
.js .js-only { display: block; }
.js .coin-tools.js-only { display: grid; }
.js .picked.js-only:not([hidden]) { display: flex; }
.js .networks:not(.is-open) { display: none; }
.request-layout { align-items: start; }
.request-notes { display: grid; gap: 1rem; align-content: start; }
.notes-compact { grid-template-columns: 1fr; gap: 1.1rem; }
.steps-four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.compare-wrap { max-width: 56rem; }

/*
 * buylaptopwithcrypto.com: "blueprint". A modular laptop sold like an engineering drawing:
 * IBM Plex on drafting paper, square corners, hairline rules, part numbers in mono, and a
 * cobalt that turns the dark theme into a blueprint. Appended to public/css/app.css.
 */

@font-face { font-family: "Plex Sans"; font-style: normal; font-display: swap; font-weight: 100 700; font-stretch: 85% 100%; src: url("/fonts/plex-sans-wdth-5.3.0.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("/fonts/plex-mono-400-5.3.0.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("/fonts/plex-mono-500-5.3.0.woff2") format("woff2"); }

:root {
  --font-body: "Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display-weight: 600;
  --display-tracking: -.025em;
  --display-stretch: 92%;
  --display-leading: 1.06;
  --h1: clamp(2.2rem, 1.3rem + 3.4vw, 3.7rem);

  --bg: #f3f3ee; --surface: #fafaf6; --surface-2: #e8e8e1; --sunken: #e1e1d9;
  --line: #d0d0c6; --line-strong: #9f9f93;
  --ink: #121417; --ink-2: #2b2e33; --ink-3: #51565e;
  --radius: 2px; --radius-sm: 2px; --radius-lg: 3px; --radius-btn: 2px; --radius-chip: 2px;
  --grid: color-mix(in oklab, var(--ink) 6%, transparent);
  --header-h: 3.75rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c; --surface: #0f1729; --surface-2: #152039; --sunken: #0b1222;
    --line: #22314f; --line-strong: #3a5282;
    --ink: #eef2fb; --ink-2: #c9d2e6; --ink-3: #97a3bf;
    --grid: rgb(159 179 255 / .07);
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1c; --surface: #0f1729; --surface-2: #152039; --sunken: #0b1222;
  --line: #22314f; --line-strong: #3a5282;
  --ink: #eef2fb; --ink-2: #c9d2e6; --ink-3: #97a3bf;
  --grid: rgb(159 179 255 / .07);
}

/* ---------- type ---------- */
.eyebrow, .bstep-num, .preset-kicker, .facts dt, .guide-meta, .footer-h, .cat-group-title, .compare thead th, .pay-label, .toc-title, .product-brand {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; font-size: .74rem;
}
.eyebrow { color: var(--accent-text); }
.price, .tp-price, .amount, .option-price .price { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.01em; }
.section-head h2::before { content: ""; display: block; width: 2.25rem; height: 2px; background: var(--accent); margin-bottom: 1rem; }

/* ---------- header and footer ---------- */
.site-header { background: color-mix(in oklab, var(--bg) 96%, transparent); border-bottom-color: var(--ink); }
.brand { font-weight: 600; letter-spacing: -.01em; }
.nav a { font-family: var(--font-mono); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; padding: .5rem .75rem; border-radius: 0; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); background: transparent; }
.icon-btn { border-color: var(--line-strong); }
.site-footer { border-top-color: var(--ink); background: var(--bg); }
.footer-note { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .02em; }

/* ---------- buttons ---------- */
.btn { font-weight: 600; letter-spacing: -.005em; }
.btn:not(.btn-primary) { --b: var(--ink); background: transparent; }
.btn:not(.btn-primary):hover { background: var(--ink); color: var(--bg); }
.btn-ghost { --b: transparent !important; }
.btn-ghost:hover { background: var(--surface-2) !important; color: var(--ink) !important; }

/* ---------- hero: drafting paper and an exploded drawing ---------- */
.hero-blueprint { position: relative; border-bottom: 1px solid var(--ink); background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.hero-blueprint h1 { max-width: 15ch; }
.hero-art { margin: 0; }
.exploded { width: 100%; height: auto; overflow: visible; }
.bp-face { stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.bp-top { fill: var(--surface); }
.bp-front { fill: var(--surface-2); }
.bp-side { fill: var(--sunken); }
.bp-board .bp-top { fill: color-mix(in oklab, var(--accent) 10%, var(--surface)); }
.bp-card .bp-top, .bp-small .bp-top { fill: var(--surface); }
.bp-accent { fill: color-mix(in oklab, var(--accent) 7%, transparent); stroke: var(--accent); stroke-width: 1.3; }
.bp-thin { fill: none; stroke: var(--ink-3); stroke-width: .8; }
.bp-guide { stroke: var(--ink-3); stroke-width: .8; stroke-dasharray: 3 5; opacity: .75; }
.bp-leader { fill: none; stroke: var(--ink-3); stroke-width: .8; }
.bp-dot { fill: var(--accent); }
.bp-label { font-family: var(--font-mono); font-size: 16px; fill: var(--ink-2); letter-spacing: .05em; }
.bp-num { fill: var(--accent-text); font-weight: 500; }
@media (max-width: 40rem) { .bp-label { font-size: 19px; } }
@media (min-width: 62rem) { .hero-blueprint .hero-art { margin-right: calc(var(--gutter) * -0.5); } }

/* ---------- facts: a spec table under the hero ---------- */
.facts-band { border-top: 0; border-bottom: 1px solid var(--ink); background: var(--surface); }
.facts > div { border-left-color: var(--line); padding: 1.1rem 1.2rem; }
.facts dd { font-weight: 500; }
@media (max-width: 47.99rem) { .facts > div { border-left: 0; border-top: 1px solid var(--line); } .facts > div:first-child { border-top: 0; } }

/* ---------- preset cards: drawing sheets ---------- */
.preset-card { border-color: var(--ink); padding: 0; gap: 0; background: var(--surface); }
.preset-card:hover { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.preset-plate { display: none; }
.preset-kicker { padding: .7rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.preset-name { padding: 1rem 1rem 0; font-size: 1.3rem; letter-spacing: -.02em; }
.preset-tagline { padding: .35rem 1rem 0; }
.preset-specs { margin: 1rem 0 0; padding: 0 1rem; gap: 0; }
.preset-specs div { grid-template-columns: 5.2rem 1fr; padding: .45rem 0; border-top: 1px dashed var(--line); }
.preset-specs dt { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15rem; }
.preset-foot { margin-top: auto; padding: .85rem 1rem; border-top: 1px solid var(--ink); background: var(--surface-2); flex-wrap: wrap; }
.preset-foot .price { font-size: 1.25rem; }
.preset-kit { font-family: var(--font-mono); font-size: .72rem; }
.preset-card-own { border-style: dashed; justify-content: center; }
.preset-card-own .preset-plate { display: grid; margin: 1rem 1rem 0; aspect-ratio: auto; height: 4rem; background: transparent; color: var(--accent-text); }
.preset-card-own .preset-foot { background: transparent; border-top-style: dashed; }
.presets-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: 1.25rem; }

/* ---------- comparison, notes, steps ---------- */
.compare-wrap { border-color: var(--ink); }
.compare thead th { background: var(--surface-2); border-bottom-color: var(--ink); }
.compare thead th:not(:first-child) { color: var(--ink); }
.compare td:last-child { border-left: 1px dashed var(--line); }
.notes { border-top: 1px solid var(--ink); padding-top: 1.75rem; }
.notes li::before { font-size: 1.6rem; font-weight: 400; line-height: 1; margin-bottom: .4rem; }
.notes h3 { font-size: 1.12rem; }
.steps { gap: 0; border: 1px solid var(--ink); }
.step { border: 0; border-radius: 0; background: var(--surface); padding: 1.4rem; }
.step + .step { border-left: 1px solid var(--line); }
@media (max-width: 52rem) { .step + .step { border-left: 0; border-top: 1px solid var(--line); } }
.step-icon { display: flex; justify-content: space-between; align-items: center; }
.steps { counter-reset: st; }
.step { counter-increment: st; }
.step-icon::after { content: "STEP " counter(st, decimal-leading-zero); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink-3); }

/* ---------- coins, faq, guides, closing ---------- */
.coin-pill { border-radius: 2px; font-size: .88rem; }
.coin-sym { font-family: var(--font-mono); font-size: .75rem; }
.faq details { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; background: transparent; border-bottom-color: var(--line); }
.faq { gap: 0; border-top: 1px solid var(--ink); }
.faq summary { padding-inline: 0; }
.faq .answer { padding-inline: 0; }
.guide-list { border-top-color: var(--ink); }
.guide-title { font-weight: 600; }
.closing { border-color: var(--ink); background-color: var(--surface); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.aside-links { border-left-color: var(--accent); font-size: .92rem; }

/* ---------- builder ---------- */
.bstep { border-color: var(--ink); }
.bstep-head { border-bottom-color: var(--ink); background: var(--surface-2); }
.bstep-icon { background: var(--surface); border: 1px solid var(--line-strong); }
.bstep-num { font-size: .8rem; color: var(--accent-text); }
.option { border-width: 1px; border-color: var(--line-strong); }
.option.is-selected { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 0 transparent; }
.option-tick { border-radius: 0; }
.spec-list li { font-family: var(--font-mono); font-size: .7rem; border: 1px solid var(--line); background: transparent; }
.summary { border-color: var(--ink); }
.summary-head { background: var(--surface-2); border-bottom-color: var(--ink); }
.summary-total { border-top-color: var(--ink); }
.preset-chip { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- checkout and order ---------- */
.panel { border-color: var(--line-strong); }
.panel > h2 .num { border-radius: 0; font-family: var(--font-mono); }
.pay { border-color: var(--ink); }
.pay-head { border-bottom-color: var(--ink); }
.timeline li::before { border-radius: 0; }
.qr { border-radius: 0; }
.guide-answer { border-radius: 0; border-left: 3px solid var(--accent); border-top: 0; border-right: 0; border-bottom: 0; }
