/* ============================================================
   The Orange Button — home page
   Plain, light, the button is the star.
   ============================================================ */

:root {
    --orange: #F7931A;
    --orange-hi: #FFA53A;
    --orange-edge: #C9700D;
    --orange-tint: #FFF4E6;
    --orange-tint-2: #FFE9CF;
    --orange-glow: rgba(247, 147, 26, .32);

    --ink: #15181F;
    --ink-2: #4A5160;
    --ink-3: #7A8291;
    --line: #E9E5DE;
    --paper: #FFFFFF;
    --paper-2: #FAF7F2;
    --paper-3: #F3EFE8;
    --navy: #243B53;
    --green: #1F9D55;
    --green-tint: #E6F6EC;
    --red: #C0392B;
    --red-tint: #FBEAE7;
    --amber: #B7791F;
    --amber-tint: #FFF6E0;

    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

    --r-sm: 8px;
    --r: 14px;
    --r-lg: 22px;
    --wrap: 1120px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    font-size: 17px;
    overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--orange-edge);
}
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint-2); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 20px; font-weight: 700; }

.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); font-size: 19px; margin-top: 14px; }

.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }

/* ---------- The Orange Button component ---------- */
.obtn {
    --edge: 6px;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: var(--orange); color: #fff;
    font-weight: 700; font-size: 18px; letter-spacing: -.01em;
    border: 0; border-radius: 14px; padding: 15px 28px;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 var(--edge) 0 var(--orange-edge), 0 14px 30px -8px var(--orange-glow);
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
    user-select: none;
}
.obtn:hover { background: var(--orange-hi); transform: translateY(-2px); box-shadow: 0 calc(var(--edge) + 2px) 0 var(--orange-edge), 0 20px 36px -8px var(--orange-glow); }
.obtn:active, .obtn.pressed { transform: translateY(calc(var(--edge) - 2px)); box-shadow: 0 2px 0 var(--orange-edge), 0 6px 14px -6px var(--orange-glow); }
.obtn svg { width: 1.05em; height: 1.05em; }

.obtn.big {
    --edge: 10px;
    font-size: clamp(26px, 4vw, 40px);
    padding: clamp(20px, 3vw, 30px) clamp(36px, 6vw, 68px);
    border-radius: clamp(18px, 2.4vw, 26px);
    gap: 18px;
    box-shadow: 0 var(--edge) 0 var(--orange-edge), 0 34px 70px -18px var(--orange-glow);
}
.obtn.big:hover { box-shadow: 0 calc(var(--edge) + 2px) 0 var(--orange-edge), 0 44px 80px -18px var(--orange-glow); }
.obtn.big:active, .obtn.big.pressed { transform: translateY(8px); box-shadow: 0 2px 0 var(--orange-edge), 0 10px 26px -12px var(--orange-glow); }

.obtn.small { --edge: 4px; font-size: 15px; padding: 10px 18px; border-radius: 10px; gap: 8px; }
.obtn.block { display: flex; width: 100%; }
.obtn:disabled, .obtn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; box-shadow: 0 var(--edge) 0 var(--orange-edge); }
.obtn:disabled:hover { background: var(--orange); transform: none; }

.ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--ink);
    border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 20px;
    font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ghost:hover { border-color: var(--ink-3); background: var(--paper-2); }
.ghost:disabled { opacity: .55; cursor: default; }
.ghost.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.ghost svg { width: 1em; height: 1em; }

/* ---------- Views (one document, several pages) ---------- */
.view { display: none; }
.view.active { display: block; }
.page { width: min(600px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 72px; }
.page.wide { width: min(820px, calc(100% - 40px)); }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); }
.page-head p { color: var(--ink-2); margin-top: 8px; }
.placeholder { color: var(--ink-3); font-size: 15px; text-align: center; padding: 60px 0; }

/* the nav on other views: brand and CTA go home, the section anchors are hidden */
body:not([data-view="v-landing"]) .nav-links .anchor { display: none; }

/* ---------- Panel: the white card every view is made of ---------- */
.panel {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px; box-shadow: 0 24px 60px -30px rgba(20, 24, 31, .25);
}
.panel + .panel { margin-top: 18px; }
.panel.center { text-align: center; }
.panel.center .obtn { margin-top: 22px; }
.panel h2 { font-size: 24px; margin-bottom: 8px; }
.panel h3 { font-size: 17px; margin-bottom: 6px; }
.panel .lead { color: var(--ink-2); font-size: 15.5px; }
.panel-mark { width: 56px; height: 56px; margin: 0 auto 16px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; }
.panel-head .sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.divider { border: 0; border-top: 1px dashed var(--line); margin: 22px 0; }

/* ---------- Fields shared by every form on the site ---------- */
.field + .field { margin-top: 16px; }
.field label .opt { font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.field .in.tall { height: auto; align-items: stretch; }
.field textarea { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px; outline: none; font-size: 16px; color: var(--ink); min-height: 96px; resize: vertical; }
.field textarea::placeholder { color: var(--ink-3); }
.field .in.err { border-color: var(--red); }
.field .in.ok { border-color: var(--green); }
.field .help { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
.field .status { font-size: 13px; margin-top: 6px; min-height: 18px; color: var(--ink-3); line-height: 1.45; }
.field .status.ok { color: var(--green); }
.field .status.err { color: var(--red); }
.field .status.checking { color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row > .field { margin-top: 0; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .field-row > .field + .field { margin-top: 16px; } }

/* the wallet check line under an address field */
.wallet-hint { font-size: 13.5px; line-height: 1.45; margin-top: 7px; color: var(--ink-2); animation: rise .3s var(--ease); }
.wallet-hint strong { font-weight: 600; }
.wallet-hint.ok { color: var(--green); }
.wallet-hint.ok strong { color: var(--green); }
.wallet-hint.off { color: var(--amber); }
.wallet-hint.warn { color: var(--red); }

/* ---------- Notices ---------- */
.notice { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; background: var(--paper-2); color: var(--ink-2); margin-top: 18px; }
.notice strong { color: var(--ink); }
.notice.ok { background: var(--green-tint); border-color: rgba(31, 157, 85, .3); color: #17603A; }
.notice.warn { background: var(--amber-tint); border-color: rgba(183, 121, 31, .35); color: #6B4A12; }
.notice.warn strong { color: #6B4A12; }
.notice.err { background: var(--red-tint); border-color: rgba(192, 57, 43, .3); color: #8E2A20; }
.notice .emailed { margin-top: 10px; font-size: 14px; }
.notice .retry { display: block; margin-top: 12px; padding: 8px 16px; font-size: 14px; background: var(--paper); }

/* ---------- Key / value rows ---------- */
.kv { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 18px; background: var(--paper-2); }
.kv .row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv .row:first-child { border-top: 0; }
.kv .k { color: var(--ink-3); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; line-height: 22px; }
.kv .v { color: var(--ink); word-break: break-word; min-width: 0; }
.kv .v.mono { font-family: var(--mono); font-size: 13.5px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.table th { border-top: 0; background: var(--paper-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); font-weight: 600; }
.table td.num { text-align: right; font-family: var(--mono); font-size: 13px; }
.table td.wrap-cell { white-space: normal; max-width: 260px; }
.table .ok { color: var(--green); font-weight: 700; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(21, 24, 31, .55); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
    position: relative; width: min(540px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
    background: var(--paper); border-radius: var(--r-lg); padding: 30px 28px 28px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
    animation: rise .3s var(--ease);
}
.modal-close {
    position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: 22px; line-height: 1;
}
.modal-close:hover { border-color: var(--ink-3); color: var(--ink); }
.modal-hd { padding-right: 40px; margin-bottom: 20px; }
.modal-hd h2 { font-size: 26px; margin-bottom: 8px; }
.modal-hd .eyebrow { margin-bottom: 10px; }
.modal-hd p { color: var(--ink-2); font-size: 15px; }
.modal-bd .kv { margin-top: 18px; }
.modal-bd .obtn.block { margin-top: 20px; }
.modal .print-kit { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.modal .print-kit h3 { font-size: 17px; margin-bottom: 4px; }
.modal .print-kit p { font-size: 14px; }
@media (max-width: 560px) { .modal { padding: 24px 18px 20px; } .modal-hd h2 { font-size: 22px; } }

/* ---------- Embed shell: the pay view alone, inside someone else's page ----------
   embed\index.html carries the pay view and nothing else; body.embed is set in
   its markup and again by the router, so the frame never flashes the site chrome. */
body.embed { background: transparent; }
body.embed .nav, body.embed footer, body.embed .claim-prompt { display: none; }
body.embed .page { width: 100%; padding: 8px; }
body.embed .panel { box-shadow: none; }
body.embed .pay-card { padding: 24px 20px 20px; }
body.embed .placeholder { padding: 30px 0; }
body.embed .toast { bottom: 12px; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-cta .short { display: none; }
@media (max-width: 760px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-cta .full { display: none; }
    .nav-cta .short { display: inline; }
    .brand { font-size: 17px; gap: 9px; }
    .brand-mark { width: 30px; height: 30px; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; position: relative; }
.hero::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1;
    background:
        radial-gradient(900px 420px at 50% 0%, var(--orange-tint) 0%, transparent 70%);
}
.hero h1 { font-size: clamp(40px, 6.6vw, 76px); max-width: 20ch; margin: 18px auto 0; }
.hero h1 em { font-style: normal; color: var(--orange); }
@media (min-width: 761px) { .hero h1 em { white-space: nowrap; } }
.hero .lede { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }

.stage { margin: 48px auto 0; max-width: 760px; }
.stage-button { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 22px 0 6px; }
.stage-caption {
    display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px;
    font-size: 15px; color: var(--ink-2); min-height: 24px;
}
.stage-caption strong { color: var(--ink); font-weight: 600; }
.stage-caption .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.stage-hint { font-size: 14px; color: var(--ink-3); }
.stage-hint.pulse { color: var(--orange-edge); animation: nudge .5s var(--ease); }
@keyframes nudge { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* maker card */
.maker {
    margin-top: 32px; text-align: left;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 22px; box-shadow: 0 24px 60px -30px rgba(20, 24, 31, .25);
}
.maker-grid { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr; gap: 14px; }
.maker-grid > .field { min-width: 0; margin-top: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .in {
    display: flex; align-items: center; height: 50px; width: 100%;
    border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
    transition: border-color .15s, box-shadow .15s;
}
.field .in:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint-2); }
.field input, .field select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 14px; outline: none; font-size: 16px; color: var(--ink); }
.field input::placeholder { color: var(--ink-3); }
.field .in .prefix { padding-left: 14px; color: var(--ink-3); font-size: 15px; }
.field .in .prefix + input { padding-left: 4px; }
.field select { flex: 0 0 84px; width: 84px; border-left: 1.5px solid var(--line); border-radius: 0 12px 12px 0; padding: 0 10px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); cursor: pointer; }

.maker-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .sw { width: 44px; height: 26px; border-radius: 13px; background: var(--paper-3); border: 1.5px solid var(--line); position: relative; transition: background .15s, border-color .15s; flex: 0 0 auto; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked + .sw { background: var(--orange); border-color: var(--orange); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle .t { font-size: 15px; font-weight: 500; }
.toggle .t small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }

/* output */
.output { display: none; margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 22px; }
.output.vis { display: block; animation: rise .4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.out-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.out-tab { white-space: nowrap; border: 1.5px solid var(--line); background: var(--paper); border-radius: 100px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.out-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.out-panel { display: none; }
.out-panel.active { display: block; }
.urlbox {
    display: flex; align-items: center; gap: 10px;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.urlbox code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13.5px; color: var(--ink); word-break: break-all; line-height: 1.5; }
.copy { flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--paper); border-radius: 9px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.copy:hover { border-color: var(--ink-3); }
.copy.done { border-color: var(--green); color: var(--green); }
.out-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.out-note { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.out-note a { color: var(--orange-edge); font-weight: 600; }
pre.code {
    background: #1B1F27; color: #E8E6E1; border-radius: 12px; padding: 16px 18px;
    font-family: var(--mono); font-size: 13px; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
}
pre.code .k { color: #FFB454; } pre.code .s { color: #A6E3A1; } pre.code .c { color: #8B93A6; }
.btn-preview { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; background: var(--paper-2); }
.btn-preview span { font-size: 14px; color: var(--ink-3); }
.qr-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.qr-wrap canvas { border-radius: 12px; border: 1px solid var(--line); }
.qr-wrap p { font-size: 14.5px; color: var(--ink-2); max-width: 340px; }

.hero-proof { margin-top: 34px; display: flex; justify-content: center; gap: 10px 26px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--green); }

@media (max-width: 760px) {
    .hero { padding-top: 40px; }
    .hero .eyebrow { font-size: 12px; }
    .maker { padding: 16px; }
    .maker-grid { grid-template-columns: 1fr; }
    .stage-caption { flex-direction: column; gap: 4px; }
    .stage-caption .dot { display: none; }
}

/* ---------- Benefits ---------- */
.benefits { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px;
    transition: transform .2s var(--ease), box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(20, 24, 31, .3); }
.card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--orange-tint); color: var(--orange-edge); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--ink-2); }
.card.hi { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.hi .ic { background: rgba(255,255,255,.1); color: var(--orange); }
.card.hi p { color: rgba(255,255,255,.74); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 4px 0 var(--orange-edge); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step .art { margin-top: 20px; padding: 16px; background: var(--paper-2); border-radius: 12px; border: 1px solid var(--line); }
.step .art .row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.step .art .row + .row { margin-top: 8px; }
.step .art .row .pill { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.step .art .msg { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.step .art .msg + .msg { margin-top: 8px; }
.step .art .msg b { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.step .art .msg .ok { color: var(--green); font-weight: 700; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* places strip */
.places { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.places .lbl { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-right: 6px; }
.chip { border: 1.5px solid var(--line); border-radius: 100px; padding: 8px 14px; font-size: 14px; font-weight: 500; background: var(--paper); display: inline-flex; gap: 7px; align-items: center; }
.chip svg { width: 15px; height: 15px; color: var(--orange-edge); }

/* ---------- Schema ---------- */
.schema { background: var(--ink); color: #fff; }
.schema .section-head p { color: rgba(255,255,255,.7); }
.schema .eyebrow { color: var(--orange); }
.schema .eyebrow::before { box-shadow: 0 0 0 4px rgba(247,147,26,.25); }
.schema-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.schema pre.code { background: #0F1218; border: 1px solid rgba(255,255,255,.08); font-size: 14px; padding: 22px; }
.schema pre.code .k { color: var(--orange); }
.schema pre.code .c { color: #6B7385; }
.schema pre.code .s { color: #9BE3A6; }
.params { border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); overflow: hidden; }
.params .row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14.5px; }
.params .row:first-child { border-top: 0; }
.params .row code { font-family: var(--mono); color: var(--orange); font-size: 13.5px; }
.params .row span { color: rgba(255,255,255,.78); }
.params .row span em { font-style: normal; color: rgba(255,255,255,.45); font-size: 12.5px; margin-left: 6px; }
.schema-foot { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.schema-foot .ghost { color: #fff; border-color: rgba(255,255,255,.22); }
.schema-foot .ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.5); }
.schema-foot p { font-size: 14.5px; color: rgba(255,255,255,.62); }
@media (max-width: 900px) { .schema-grid { grid-template-columns: 1fr; } .params .row { grid-template-columns: 96px 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 26px; color: var(--orange-edge); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 720px; }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding: 100px 0; }
.final h2 { font-size: clamp(32px, 5vw, 56px); max-width: 22ch; margin: 0 auto 26px; }
.final p { color: var(--ink-2); margin-top: 22px; font-size: 15px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer .brand { font-size: 16px; }
footer .brand-mark { width: 26px; height: 26px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer .legacy { width: 100%; font-size: 13px; color: var(--ink-3); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(90px);
    background: var(--ink); color: #fff; border-radius: 100px; padding: 11px 20px; font-size: 14px; font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 200; pointer-events: none; opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .2s, visibility .2s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

/* ---------- Pay page ---------- */
.pay-card { padding: 30px 28px 24px; }
.pay-head { text-align: center; padding-bottom: 22px; border-bottom: 1px dashed var(--line); margin-bottom: 22px; }
.pay-seller { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.pay-product { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-edge); overflow-wrap: anywhere; }
.pay-amount { font-size: clamp(38px, 8vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 8px; }
.pay-sats { font-size: 16px; color: var(--ink-2); margin-top: 6px; min-height: 22px; }
.pay-to { font-size: 14px; color: var(--ink-3); margin-top: 12px; overflow-wrap: anywhere; }
.pay-to strong { color: var(--ink-2); font-weight: 600; }

.pay-buyer-note { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.45; }
.pay-buyer .obtn.block { margin-top: 18px; }

.pay-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 0; color: var(--ink-2); font-size: 15px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--orange); animation: spin .8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-card .notice { margin-top: 0; }

.pay-qr { text-align: center; animation: rise .35s var(--ease); }
.qr-box { display: block; width: max-content; margin: 0 auto; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; line-height: 0; }
.qr-box canvas { border-radius: 8px; }
.pay-qr .obtn { margin-top: 18px; }
.pay-qr .urlbox { margin-top: 14px; text-align: left; }
.pay-qr .urlbox code { font-size: 12.5px; }
.pay-hint { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--green); }
.pay-hint svg { width: 16px; height: 16px; }

.pay-paid { text-align: center; padding: 6px 0 2px; animation: rise .4s var(--ease); }
.paid-mark { width: 66px; height: 66px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.paid-mark svg { width: 34px; height: 34px; }
.pay-paid h2 { font-size: 32px; color: var(--green); margin-bottom: 4px; }
.paid-amt { font-size: 18px; font-weight: 600; }
.pay-paid .muted { font-size: 14.5px; margin-top: 10px; }
.pay-close { margin-top: 18px; }
.delivery { margin-top: 22px; text-align: left; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; animation: rise .35s var(--ease); }
.delivery h3 { font-size: 15px; margin-bottom: 8px; }
.delivery .msg { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; color: var(--ink); line-height: 1.5; }
.delivery .out-actions { margin-top: 12px; }
.delivery .out-actions:empty { display: none; }
.delivery .emailed { margin-top: 12px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }

.pay-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.out-actions.center { justify-content: center; }

.claim-prompt { margin-top: 18px; padding: 16px 18px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.claim-prompt strong { color: var(--ink); }
.claim-prompt .ghost { margin-top: 12px; }

@media (max-width: 560px) { .pay-card { padding: 24px 18px 20px; } }

/* ---------- Storefront ---------- */
.store-head { text-align: center; margin-bottom: 22px; }
.store-head h2 { overflow-wrap: anywhere; }
.store-list { display: flex; flex-direction: column; gap: 10px; }
.store-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.store-item .name { font-weight: 600; overflow-wrap: anywhere; }
.store-item .price { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.store-item .obtn { flex: 0 0 auto; }

/* ---------- Edit page ---------- */
.edit-head h1 { overflow-wrap: anywhere; }
.edit-head h1 span { color: var(--orange-edge); }
.edit-head .out-actions { margin-top: 18px; }
.edit-section .lead { margin-bottom: 18px; }
.edit-section .field + .field-row, .edit-section .field-row + .field { margin-top: 16px; }
.edit-section .field + .field { margin-top: 16px; }
.edit-toggle { display: flex; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.edit-toggle .sw { margin-top: 2px; }
.edit-toggle .t small { margin-top: 2px; }
.edit-toggle + .field { margin-top: 20px; }
.edit-section .notice.warn { margin: 0 0 18px; }
.edit-section .help a { color: var(--orange-edge); font-weight: 600; }

/* the delivery file */
.file-box { border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper-2); }
.file-current { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.file-current svg { width: 20px; height: 20px; color: var(--orange-edge); flex: 0 0 auto; }
.file-current .file-name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.file-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-pick .help { margin: 0; flex: 1; min-width: 200px; }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.progress .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--paper-3); border: 1px solid var(--line); overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--orange); transition: width .15s linear; }
.progress .pct { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); min-width: 38px; text-align: right; }
.file-box .status { margin-top: 8px; min-height: 0; }
.file-box .status:empty { display: none; }

/* sales */
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.totals > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper-2); }
.totals span { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.totals strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.sales-note { margin-top: 16px; font-size: 14.5px; line-height: 1.5; }
.table td.when { color: var(--ink-2); font-size: 13px; }
.table td .ok { font-size: 15px; }
.table td .none { color: var(--ink-3); }
@media (max-width: 560px) { .totals { grid-template-columns: 1fr 1fr; } .totals > div:last-child { grid-column: 1 / -1; } }

/* the "More" section, closed until asked */
.more-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.more-toggle > span { min-width: 0; }
.more-toggle h2 { margin-bottom: 4px; }
.more-toggle .sub { display: block; color: var(--ink-3); font-size: 14px; line-height: 1.45; }
.more-toggle .chev { width: 26px; height: 26px; flex: 0 0 auto; color: var(--ink-3); transition: transform .2s var(--ease); }
.more-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
#editMore { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); animation: rise .3s var(--ease); }
#editMore .notice { margin: 0 0 20px; }
.sub-section h3 { display: flex; align-items: center; gap: 10px; }
.sub-section > .help { margin: 0 0 14px; font-size: 14px; }
.sub-section .field + .field { margin-top: 16px; }
.sub-section pre.code { margin-top: 4px; }
.sub-section .out-actions .help { margin: 0; }
.sub-section .edit-toggle { margin-top: 10px; }
.pro-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; background: var(--orange-tint-2); color: var(--orange-edge); }

/* storefront products */
.sf-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sf-list:empty { display: none; }
.sf-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.sf-item .name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.sf-item .price { font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.sf-item .x { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: 18px; line-height: 1; flex: 0 0 auto; }
.sf-item .x:hover { border-color: var(--red); color: var(--red); }
.sf-add { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 12px; align-items: end; }
.sf-add .field { margin-top: 0; min-width: 0; }
.sf-add .ghost { height: 50px; }
.field .in .suffix { padding: 0 14px 0 4px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
#editProdStatus { min-height: 0; margin-top: 8px; }
#editProdStatus:empty { display: none; }
@media (max-width: 560px) { .sf-add { grid-template-columns: 1fr; } .sf-add .ghost { justify-content: center; } }

/* save */
.edit-save {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 18px; padding: 14px 0 16px;
    background: var(--paper); border-top: 1px solid var(--line);
}
@media (max-width: 560px) { .edit-save { padding: 12px 0 14px; } .edit-save .muted { font-size: 13px; } }
.edit-save .muted { font-size: 14px; }
.edit-save .obtn { margin-left: auto; }
#editError { margin-top: 18px; }
#editError:not([hidden]) { animation: rise .3s var(--ease); }

/* ---------- Docs ---------- */
.docs-head p { font-size: 17px; max-width: 660px; }
.docs-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; }
.docs-toc a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 1.5px solid var(--line); border-radius: 100px; padding: 7px 14px; background: var(--paper); transition: border-color .15s, color .15s; }
.docs-toc a:hover { border-color: var(--ink-3); color: var(--ink); }
.docs-section { padding: 34px 0 30px; border-top: 1px dashed var(--line); scroll-margin-top: 84px; }
.docs-section h2 { font-size: 26px; margin-bottom: 12px; overflow-wrap: anywhere; }
.docs-section h3 { font-size: 18px; margin: 26px 0 8px; scroll-margin-top: 84px; }
.docs-section p { color: var(--ink-2); font-size: 16px; }
.docs-section p + p, .docs-section ul + p, .docs-section ol + p, .docs-section .snippet + p, .docs-section .table-wrap + p { margin-top: 12px; }
.docs-section ul, .docs-section ol { color: var(--ink-2); font-size: 16px; padding-left: 22px; margin: 12px 0; }
.docs-section li + li { margin-top: 8px; }
.docs-section li strong { color: var(--ink); }
.docs-section code { font-family: var(--mono); font-size: .86em; background: var(--paper-3); border-radius: 6px; padding: 2px 6px; color: var(--ink); overflow-wrap: anywhere; }
.docs-section a { color: var(--orange-edge); font-weight: 600; }
.docs-section .table-wrap { margin: 14px 0; }
.docs-table td.desc { white-space: normal; min-width: 280px; line-height: 1.5; color: var(--ink-2); }
.docs-table td.desc code { white-space: nowrap; }
.docs-table td.req { color: var(--orange-edge); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.docs-table td.opt { color: var(--ink-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.docs-table td:first-child code { background: transparent; padding: 0; font-size: 13.5px; }

/* a code block with its copy button in the corner */
.snippet { position: relative; margin: 14px 0; }
.snippet pre.code { margin: 0; padding-right: 84px; }
.snippet .copy { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.snippet .copy:hover { border-color: rgba(255,255,255,.5); }
.snippet .copy.done { border-color: #A6E3A1; color: #A6E3A1; }

.docs-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 30px; border-top: 1px dashed var(--line); }
@media (max-width: 560px) {
    .docs-section { padding: 26px 0 22px; }
    .docs-section h2 { font-size: 22px; }
    .snippet pre.code { padding-right: 18px; padding-top: 44px; }
}
