/* Cash Register storefront — no framework, no build step. */

/* ---- self-hosted fonts (OFL, latin subset, font-display: swap) ------------ */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #505765; /* fallback for engines without color-mix: ink @ 72% over bg */
  --muted: color-mix(in srgb, var(--ink) 72%, var(--bg));
  --line: rgba(15, 23, 42, 0.1);
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #f0fdfa;
  --good: #047857;
  --good-soft: #ecfdf5;
  --bad: #b91c1c;
  --bad-soft: rgba(220, 38, 38, 0.12);
  --banner-ink: #92400e;
  --warn-bg: #fffbeb;
  --warn-line: #f59e0b;
  --option-bg: #ffffff;
  --option-ink: #0f172a;
  --placeholder: #5b6472;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* teal→green CTA gradient; the literal is also kept in .btn.primary (smoke suite counts 2) */
  --grad-cta: linear-gradient(135deg, #14b8a6, #059669);
  --grad-text: linear-gradient(135deg, #0d9488, #6366f1);
  --hover-wash: rgba(15, 23, 42, 0.04);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --card-shadow-hover: 0 1px 2px rgba(15, 23, 42, 0.06), 0 16px 32px -8px rgba(15, 23, 42, 0.16);
  /* ambient depth: light mode = almost-invisible warm tint top-right */
  --glow-1: radial-gradient(900px 560px at 88% -12%, rgba(253, 186, 116, 0.07), transparent 62%);
  --glow-2: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  --knob: #ffffff;
}

/* ---- dark mode: pure CSS variables, no frameworks ------------------------
 * Default = OS preference (set pre-paint by the head snippet); the nav toggle
 * persists an explicit choice in localStorage["cr.theme"].
 * Both palettes meet WCAG AA (body ink >= 7:1, muted >= 4.5:1 on their bg).
 */
[data-theme="dark"] {
  --bg: #0a0e1a;
  --surface: rgba(255, 255, 255, 0.03);
  --ink: #e2e8f0;
  --option-bg: #151c2e;
  --option-ink: #e2e8f0;
  --placeholder: #8b93a1;
  --muted: #a6abb4; /* fallback for engines without color-mix: ink @ 72% over bg */
  --muted: color-mix(in srgb, var(--ink) 72%, var(--bg));
  --line: rgba(148, 163, 184, 0.16);
  --accent: #2dd4bf;
  --accent-ink: #052e2b;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --good: #34d399;
  --good-soft: #0f2e23;
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.14);
  --banner-ink: #fbbf24;
  --warn-bg: #2a2410;
  --warn-line: #d97706;
  --grad-text: linear-gradient(135deg, #2dd4bf, #818cf8);
  --hover-wash: rgba(255, 255, 255, 0.05);
  --card-shadow: none;
  --card-shadow-hover: 0 16px 32px -12px rgba(0, 0, 0, 0.5);
  /* ambient depth: indigo glow top-left, teal glow bottom-right (B2) */
  --glow-1: radial-gradient(1000px 640px at 12% -8%, rgba(79, 70, 255, 0.06), transparent 65%);
  --glow-2: radial-gradient(880px 560px at 88% 106%, rgba(20, 184, 166, 0.05), transparent 65%);
  --knob: #f1f5f9;
}

/* QR boxes and the printable invoice sheet must stay light in both modes:
 * wallet scanners expect dark modules on a white background. */
[data-theme="dark"] .qrbox .qr,
[data-theme="dark"] .qrbox img,
[data-theme="dark"] .qrbox svg,
[data-theme="dark"] .sheet {
  background: #fff;
  border-color: #e2e8f0;
}
[data-theme="dark"] .sheet { color: #0f172a; }

/* theme toggle button */
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* pill switch (index nav markup): 44x24 track, sliding 18px knob, sun/moon
 * crossfade. Gated on :has(.knob) so the shared stylesheet keeps the legacy
 * round emoji button above working on every other page. store.js already
 * manages aria-pressed ("true" = dark), so the knob state is pure CSS. */
.theme-toggle:has(.knob) {
  position: relative;
  width: 44px; height: 24px; padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.2);
  color: transparent; font-size: 0;   /* store.js keeps writing the legacy emoji; hide it */
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.15s ease;
}
.theme-toggle:has(.knob):hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.theme-toggle:has(.knob) .knob {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--knob);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
  display: grid; place-items: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle:has(.knob)[aria-pressed="true"] .knob { transform: translateX(20px); }
.theme-toggle:has(.knob) .knob svg {
  position: absolute; inset: 0; margin: auto;   /* stack both icons centered */
  transition: opacity 0.2s ease;
}
.theme-toggle:has(.knob) .i-sun { color: #f59e0b; }
.theme-toggle:has(.knob) .i-moon { color: #94a3b8; opacity: 0; }
.theme-toggle:has(.knob)[aria-pressed="true"] .i-sun { opacity: 0; }
.theme-toggle:has(.knob)[aria-pressed="true"] .i-moon { opacity: 1; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; } /* full-bleed sticky nav must not add horizontal scroll */
body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: var(--glow-1), var(--glow-2);
  background-attachment: fixed, fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
/* headings + brand get Space Grotesk */
h1, h2, h3, h4, .brand, .nav .brand, .btn, .chip, .trust label {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.92em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* nav: sticky translucent glass bar, contained in the reading column so it
 * can never push the page wider than the viewport (the old 50vw full-bleed
 * trick overflowed by half a scrollbar on desktop browsers). */
.nav {
  position: sticky; top: 10px; z-index: 40;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  min-height: 64px;
  margin: 14px 0 0;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
  border-radius: 14px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 12px 32px -22px rgba(2, 6, 23, 0.55);
}
.nav .brand { font-weight: 700; letter-spacing: -0.02em; }
.nav .spacer { flex: 1; }
.nav a:not(.btn) { color: var(--ink); opacity: 0.72; font-size: 0.875rem; transition: opacity 0.16s ease; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: none; }
.nav a.brand { color: var(--ink); opacity: 1; text-decoration: none; }
.nav .btn.navcta {
  padding: 7px 14px; font-size: 0.85rem; border-radius: 999px; flex: 0 0 auto;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.nav .btn.navcta:hover { text-decoration: none; filter: brightness(1.07); }
@media (max-width: 480px) {
  .nav { gap: 8px 12px; }
  .nav .brand { width: 100%; }        /* brand on its own line, links wrap below */
  .nav a:not(.btn) { font-size: 0.85rem; }
  /* Low-priority links are duplicated in the footer; dropping them here keeps
     the sticky bar to two rows instead of three on a phone. */
  .nav a[href="#how"],
  .nav a[href$="status.html"],
  .nav a[href$="changelog.html"] { display: none; }
}
footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 40px; color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 640px) { footer { margin-top: 56px; } }
:target { scroll-margin-top: 96px; }
/* 3-column footer (index); other pages keep their single-row footnav */
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; align-items: start; }
.foot-cols .brand { font-weight: 700; font-size: 0.9rem; }
.foot-cols p { margin: 8px 0 0; }
@media (max-width: 640px) { .foot-cols { grid-template-columns: 1fr; gap: 14px; } }

/* hero */
.hero { padding: 54px 0 30px; max-width: 720px; }
.hero h1 { font-size: clamp(2.05rem, 1.2rem + 3.4vw, 2.75rem); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.03em; }
.hero p { font-size: 1.1rem; color: var(--muted); color: color-mix(in srgb, var(--ink) 72%, var(--bg)); margin: 0 0 22px; max-width: 52ch; }
/* gradient accent on the headline payoff phrase only (theme-dependent stops) */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 600; border: none;
  font-size: 1rem; cursor: pointer; text-align: center;
  transition: transform 0.17s ease, box-shadow 0.17s ease, filter 0.17s ease,
              background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--hover-wash); }
.btn.small { padding: 7px 12px; font-size: 0.9rem; }
/* the one gradient CTA (spec: max ONE per viewport) — primary actions only */
.btn.primary {
  background: linear-gradient(135deg, #14b8a6, #059669);
  color: #052e2b; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 24px rgba(20, 184, 166, 0.25);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 28px rgba(20, 184, 166, 0.32);
}
.btn.primary:active { transform: translateY(0); filter: brightness(0.98); }

/* ---- motion (calm confidence) -------------------------------------------
 * Scroll reveal: fade+rise 12px, 500ms ease-out, 60ms stagger (motion.js).
 * Gated on html.js (set pre-paint) so no-JS visitors never see hidden content;
 * reduced-motion users get everything visible + zero animation.
 */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}
.js .reveal.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
/* safety: if motion.js never runs, un-hide after 1.2s */
.js.reveal-fallback .reveal:not(.revealed) { opacity: 1 !important; transform: none !important; }

/* hover: cards lift 3px + accent border + soft shadow; nothing bounces */
@media (hover: hover) {
  .card, .tool-card, .steps li, .faq details {
    transition: transform 0.17s ease, border-color 0.17s ease, box-shadow 0.17s ease,
                background-color 0.25s ease, color 0.25s ease;
  }
  .card:hover, .tool-card:hover, .faq details:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    box-shadow: var(--card-shadow-hover);
  }
}

/* theme switch: 250ms color transition on the common surfaces */
.nav, .panel, .card, .tool-card, .faq details, .steps li, .badge, .upsell, .banner,
input, textarea, select, .theme-toggle, .chip {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Native <select> popups do not always follow color-scheme (Linux Chrome paints
   a white list while options inherit the dark theme's light ink). Style the
   options explicitly so the open list is readable in both themes. */
select option, select optgroup {
  background-color: var(--option-bg);
  color: var(--option-ink);
}
select option:checked, select option:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
}

/* Browser-default placeholders are near-invisible on dark inputs. */
input::placeholder, textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .coin-float { animation: none; }
}

/* redesigned product cards (renderHome) */
.tool-card h3 { font-size: 1.25rem; margin-bottom: 2px; }
.tool-card--what {
  color: var(--muted); font-size: 0.85rem; margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tool-card--bullets {
  margin: 0 0 12px; padding-left: 18px; color: var(--ink);
  font-size: 0.92rem;
}
.tool-card--bullets li { margin: 4px 0; }
.tool-card--bullets li::marker { color: var(--accent); }
.price--big { font-size: 1.7rem; }
.price small { font-weight: 400; font-size: 0.8rem; color: var(--muted); font-family: var(--font-body); }
.tool-card .row { margin-top: 4px; }

/* trust strip under hero: guarantees as hairline chips (icons kept) */
.trust {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 0; margin-top: 24px;
}
.trust span {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.trust svg { flex: 0 0 auto; opacity: 0.9; }

/* hero art: inline SVG enamel coins — identical in every browser, zero JS/WebGL */
.hero { padding: 54px 0 30px; max-width: 720px; }
.hero:has(.hero-art) {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr);
  gap: 26px; align-items: center; padding: 54px 0 30px; max-width: 980px;
}
.hero:has(.hero-art) > * { min-width: 0; }
.hero-copy { max-width: 620px; }
.hero-art { position: relative; pointer-events: none; }
.hero-art svg { display: block; width: 100%; height: auto; }
.coin-float {
  animation: coin-float 5.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transform-box: fill-box; transform-origin: center;
  will-change: transform;
}
/* negative delays = coins start mid-cycle, old "staggered start" read as steps */
.coin-eth.coin-float { animation-delay: -2s; }
.coin-sol.coin-float { animation-delay: -3.7s; }
@keyframes coin-float {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(3px, -10px) rotate(1deg); }
  50%  { transform: translate(0, -19px) rotate(0deg); }
  75%  { transform: translate(-3px, -10px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@media (max-width: 767px) {
  .hero:has(.hero-art) { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; }
}

/* bundle emphasis */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 999px;
  background: var(--grad-cta); color: #052e2b;
}
.tool-card--bundle { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

/* footer nav (unified across pages) */
.footnav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.footnav a { color: var(--muted); font-size: inherit; }
.footnav a:hover { color: var(--ink); }

/* bundle upsell banner (tool checkouts) */
.upsell {
  margin-top: 16px; padding: 10px 14px; border: 1px solid var(--accent);
  background: var(--accent-soft); border-radius: 10px; font-size: 0.92rem;
}
.upsell a { font-weight: 600; }

/* store notice: calm accent-tinted bar (was a harsh orange block) */
.banner {
  margin-top: 18px; padding: 10px 14px;
  border: 1px solid var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  background: var(--accent-soft);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 12px; font-size: 0.9rem;
}
.banner::before {
  content: ""; display: inline-block; width: 15px; height: 15px;
  margin-right: 3px; vertical-align: -3px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8h.01M12 11v5'/%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8h.01M12 11v5'/%3E") center / contain no-repeat;
}
.banner strong { color: var(--accent); }

/* tool cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin: 24px 0 32px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.price { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; }
.price small { color: var(--muted); font-weight: 400; }
/* inline price spans (tool hero CTAs, delivery lists) read in the same mono voice */
[data-price-for] { font-family: var(--mono); font-weight: 600; font-size: 0.95em; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* sections: 96px desktop / 56px mobile vertical rhythm (24/32/48 type scale) */
.section { margin: 96px 0; }
@media (max-width: 640px) { .section { margin: 56px 0; } }
.section h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); letter-spacing: -0.02em; margin: 0 0 24px; }

/* eyebrow device: tiny uppercase accent kicker above section titles (Linear-style).
 * store.js replaces [data-*] innerHTML at render time, so the store pages carry the
 * eyebrow as a ::before pseudo on the section — pseudos survive innerHTML swaps. */
.eyebrow, [data-checkout]::before, [data-status]::before, [data-download]::before {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
[data-checkout]::before { content: "Crypto payment"; }
[data-status]::before { content: "Tracking"; }
[data-download]::before { content: "Delivery"; }
.eyebrow + h2, .eyebrow + h3 { margin-top: 0; }
.prose { max-width: 68ch; }
/* numbered step cards with a connecting hairline (checkout + how-it-works + guide) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px; font-weight: 700; font-size: 0.85rem;
  margin-right: 10px; vertical-align: -8px;
}
/* connector only where the grid layout is unambiguous: 4-up desktop / 1-up mobile */
.steps li::after { content: none; }
@media (min-width: 890px) {
  .steps li::after {
    content: ""; position: absolute; top: 30px; left: 100%; width: 16px; height: 1px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), var(--line));
  }
  .steps li:last-child::after { content: none; }
}
@media (max-width: 639px) {
  .steps li::after {
    content: ""; position: absolute; top: 46px; bottom: -17px; left: 30px; width: 1px; height: auto;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 35%, transparent), var(--line));
  }
  .steps li:last-child::after { content: none; }
}
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: baseline; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; color: var(--accent); font-weight: 600;
  font-size: 1.1rem; line-height: 1; transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }

/* checkout */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 20px 0; }
.panel h2, .panel h3 { margin-top: 0; }
.paybox { display: grid; grid-template-columns: minmax(220px, 1fr) 200px; gap: 22px; align-items: start; }
@media (max-width: 640px) { .paybox { grid-template-columns: 1fr; } .qrbox { justify-self: center; } }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 0.95rem; align-items: center; }
.kv .label { color: var(--muted); }
.kv code {
  font-family: var(--mono); font-size: 0.85rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  word-break: break-all; display: block; user-select: all;
}
.copy-btn { margin-top: 4px; }
.chainpick { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.chainpick label {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px;
  cursor: pointer; background: var(--surface); font-size: 0.95rem;
}
.chainpick input { margin-right: 6px; }
.chainpick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.qrbox { text-align: center; }
.qrbox .qr { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.qrbox svg, .qrbox img { display: block; }
.hint {
  color: var(--muted); font-size: 0.9rem; margin: 12px 0;
  padding: 10px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.hint:empty { display: none; } /* e.g. #fxhint before rates resolve */

/* status timeline: generous hairline-separated rows */
.timeline { list-style: none; padding: 0; margin: 18px 0; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: none; }
.timeline li::before { content: "○"; font-size: 1.1rem; line-height: 1.4; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { content: "●"; color: var(--good); }
/* status pills: dot + label, tinted per state */
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; background: var(--accent-soft); color: var(--accent);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; flex: 0 0 auto; }
.badge.paid, .badge.delivered { background: var(--good-soft, #ecfdf5); color: var(--good); }
.badge.awaiting_payment { background: var(--warn-bg); color: var(--banner-ink, #92400e); }
.badge.failed, .badge.refunded { background: var(--bad-soft); color: var(--bad); }

/* download page: one big clear action, delivery details in mono */
[data-download] .btn { padding: 12px 22px; font-size: 1rem; }
[data-download] .muted { font-family: var(--mono); font-size: 0.85rem; }

/* changelog: left-rail release timeline — hairline spine, accent dot per release */
.changelog { border-left: 1px solid var(--line); padding-left: 28px; margin-left: 5px; display: grid; gap: 30px; }
.release { position: relative; }
.release::before {
  content: ""; position: absolute; left: -34px; top: 3px; width: 11px; height: 11px;
  border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.rel-date { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.release-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.release-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.release-card h3:not(:first-child) { margin-top: 20px; }
.release-card h3 + p { margin-top: 0; }

/* forms */
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--surface); color: var(--ink);
}
label.field { display: block; margin: 10px 0; font-size: 0.9rem; color: var(--muted); }
label.field > input, label.field > select, label.field > textarea { margin-top: 4px; color: var(--ink); }

/* generic helpers */
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.mt0 { margin-top: 0; }
.center { text-align: center; }
.hidden { display: none !important; }

/* checkout print: keep the payment details + QR, drop the site chrome */
@media print {
  body.checkout .nav,
  body.checkout footer,
  body.checkout .btn,
  body.checkout .theme-toggle,
  body.checkout #ivepaid,
  body.checkout .upsell { display: none !important; }
  body.checkout { background: #fff !important; }
  body.checkout .wrap { max-width: none; padding: 0; }
  body.checkout .panel { box-shadow: none; border: 1px solid #ddd; }
  body.checkout .qrbox .qr { border: 1px solid #ddd; }
}
