/* Homepage only: the hero's live checkout demo (hx-) and the FAQ (hf-).
   Hand-written because the marketing Tailwind build is precompiled.
   Tokens (--grn, --ink, --bd, --soft, --grn-tint) come from landing.css. */

/* ── Hero checkout demo ─────────────────────────────────────────────── */
.hx { position:relative; width:100%; max-width:404px; margin:0 auto; padding:10px 0 34px; }
.hx::before {
    content:''; position:absolute; z-index:0; inset:6% -14% 4%;
    background:radial-gradient(closest-side, rgba(8,160,90,.16), transparent 72%);
    pointer-events:none;
}
.dark .hx::before { background:radial-gradient(closest-side, rgba(22,196,124,.14), transparent 72%); }

/* the second checkout peeking out underneath */
.hx-peek {
    position:absolute; z-index:0; left:22px; right:22px; bottom:18px; height:48px;
    border-radius:0 0 20px 20px; background:#fff; border:1px solid var(--bd); border-top:0;
    box-shadow:0 14px 30px -22px rgba(10,14,26,.35);
}
.dark .hx-peek { background:#0d121c; box-shadow:none; }

.hx-card {
    position:relative; z-index:1; overflow:hidden; border-radius:22px;
    background:#fff; border:1px solid var(--bd);
    box-shadow:0 30px 60px -32px rgba(10,14,26,.35), 0 10px 22px -14px rgba(10,14,26,.14);
}
.dark .hx-card {
    background:linear-gradient(180deg, #131a28 0%, #0e131d 100%);
    border-color:rgba(255,255,255,.09);
    box-shadow:0 40px 80px -40px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.04);
}
.hx-card::before {
    content:''; position:absolute; left:14%; right:14%; top:0; height:1px;
    background:linear-gradient(90deg, transparent, var(--grn), transparent); opacity:.75;
}

.hx-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 20px; border-bottom:1px solid var(--bd); }
.hx-brand { display:flex; align-items:center; gap:9px; font-family:'Space Grotesk', Inter, system-ui, sans-serif; font-weight:700; font-size:15px; letter-spacing:-.02em; color:var(--ink); }
.hx-brand img { width:24px; height:24px; display:block; }
.hx-secure {
    display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
    font-size:11.5px; font-weight:600; color:#64748b;
    padding:5px 10px; border-radius:999px; background:var(--soft); border:1px solid var(--bd);
}
.dark .hx-secure { color:#94a3b8; }
.hx-secure svg { width:12px; height:12px; color:var(--grn); }

.hx-body { padding:18px 20px 20px; }
.hx-label { display:block; font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:#94a3b8; }
.hx-amt { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:7px; }
.hx-total { font-family:'Space Grotesk', Inter, system-ui, sans-serif; font-weight:700; font-size:34px; line-height:1; letter-spacing:-.035em; color:var(--ink); }
.hx-crypto { font-size:13px; font-weight:600; color:#475569; padding-bottom:3px; white-space:nowrap; }
.dark .hx-crypto { color:#cbd5e1; }

.hx-coins { display:flex; gap:8px; margin-top:16px; }
.hx-coin {
    flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; gap:7px; height:40px;
    border-radius:12px; border:1px solid var(--bd); background:var(--soft);
    font-size:12.5px; font-weight:700; color:#475569;
    transition:border-color .35s ease, background-color .35s ease, box-shadow .35s ease, color .35s ease;
}
.dark .hx-coin { color:#cbd5e1; }
.hx-coin img { width:20px; height:20px; display:block; }
.hx-coin.is-on { border-color:var(--grn); background:var(--grn-tint); color:var(--ink); box-shadow:0 0 0 3px rgba(8,160,90,.12); }
.hx-more { flex:0 0 auto; padding:0 11px; color:#64748b; }
.dark .hx-more { color:#94a3b8; }

.hx-pay {
    display:grid; grid-template-columns:132px minmax(0, 1fr); gap:16px; align-items:center;
    margin-top:14px; padding:14px; border-radius:16px; border:1px solid var(--bd); background:var(--soft);
}
.hx-qr { position:relative; width:132px; height:132px; padding:8px; border-radius:14px; background:#fff; box-shadow:0 1px 2px rgba(10,14,26,.08), 0 0 0 1px rgba(10,14,26,.04); }
.hx-qr > img { width:100%; height:100%; display:block; transition:opacity .4s ease, filter .4s ease; }
.hx-qr-badge {
    position:absolute; left:50%; top:50%; width:30px; height:30px; transform:translate(-50%, -50%);
    display:grid; place-items:center; border-radius:9px; background:#fff; box-shadow:0 0 0 2px #fff, 0 1px 4px rgba(10,14,26,.18);
    transition:opacity .4s ease;
}
.hx-qr-badge img { width:22px; height:22px; display:block; }
.hx-scan {
    position:absolute; left:10px; right:10px; top:10px; height:2px; border-radius:2px;
    background:linear-gradient(90deg, transparent, var(--grn), transparent);
    box-shadow:0 0 12px 2px rgba(8,160,90,.45);
    animation:hxScan 2.6s ease-in-out infinite;
}
@keyframes hxScan { 0%, 100% { transform:translateY(0); opacity:0; } 12%, 88% { opacity:1; } 50% { transform:translateY(110px); } }
.hx-qr-ok { position:absolute; inset:0; display:grid; place-items:center; opacity:0; transform:scale(.7); transition:opacity .3s ease, transform .45s cubic-bezier(.2, .9, .3, 1.35); }
.hx-qr-ok span { width:52px; height:52px; border-radius:50%; display:grid; place-items:center; color:#fff; background:var(--grn); box-shadow:0 10px 26px -8px rgba(8,160,90,.65); }
.hx-qr-ok svg { width:26px; height:26px; }

.hx-meta { display:flex; flex-direction:column; gap:11px; min-width:0; }
.hx-row { display:flex; flex-direction:column; gap:3px; min-width:0; }
.hx-row > span { font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#94a3b8; }
.hx-row > b, .hx-row > code { font-size:13px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hx-row > code { display:flex; align-items:center; gap:6px; font-family:'JetBrains Mono', ui-monospace, Menlo, monospace; font-size:12.5px; }
.hx-row > code svg { flex:0 0 13px; width:13px; height:13px; color:#94a3b8; }
.hx-timer { font-family:'JetBrains Mono', ui-monospace, Menlo, monospace; font-variant-numeric:tabular-nums; }

.hx-status { position:relative; height:46px; margin-top:14px; overflow:hidden; border-radius:12px; border:1px solid var(--bd); font-size:13px; font-weight:600; transition:background-color .35s ease, border-color .35s ease; }
.hx-st { position:absolute; inset:0; display:flex; align-items:center; gap:10px; padding:0 14px; opacity:0; transform:translateY(10px); transition:opacity .35s ease, transform .35s ease; }
.hx-st-wait { color:var(--grn); }
.hx-st-conf { color:var(--ink); }
.hx-st-paid { color:#fff; }
.hx-st svg { width:16px; height:16px; flex:0 0 16px; }
.hx-dot { width:8px; height:8px; flex:0 0 8px; border-radius:50%; background:var(--grn); animation:hxPulse 1.6s ease-out infinite; }
@keyframes hxPulse { 0% { box-shadow:0 0 0 0 rgba(8,160,90,.55); } 100% { box-shadow:0 0 0 9px rgba(8,160,90,0); } }
.hx-spin { width:15px; height:15px; flex:0 0 15px; border-radius:50%; border:2px solid var(--bd); border-top-color:var(--grn); animation:hxSpin .8s linear infinite; }
@keyframes hxSpin { to { transform:rotate(360deg); } }
.hx-bar { position:absolute; inset-inline-start:0; bottom:0; width:100%; height:2px; background:var(--grn); transform:scaleX(0); transform-origin:left; }
[dir="rtl"] .hx-bar { transform-origin:right; }

.hx-toast {
    position:absolute; z-index:2; inset-inline-end:-22px; bottom:2px;
    display:flex; align-items:center; gap:10px; padding:10px 16px 10px 10px;
    border-radius:14px; background:#fff; border:1px solid var(--bd);
    box-shadow:0 20px 44px -20px rgba(10,14,26,.4);
    opacity:0; transform:translateY(14px) scale(.96); transition:opacity .4s ease, transform .5s cubic-bezier(.2, .9, .3, 1.2);
}
.dark .hx-toast { background:#151c2b; border-color:rgba(255,255,255,.1); box-shadow:0 24px 50px -22px rgba(0,0,0,.9); }
.hx-toast-ico { width:34px; height:34px; flex:0 0 34px; border-radius:10px; display:grid; place-items:center; color:var(--grn); background:var(--grn-tint); }
.hx-toast-ico svg { width:18px; height:18px; }
.hx-toast b { display:block; font-size:13.5px; font-weight:700; color:var(--ink); font-family:'JetBrains Mono', ui-monospace, Menlo, monospace; }
.hx-toast small { display:block; font-size:11.5px; color:#64748b; }
.dark .hx-toast small { color:#94a3b8; }

/* states, driven by assets/js/home.js (the page renders in "wait") */
.hx[data-state="wait"] .hx-st-wait,
.hx[data-state="conf"] .hx-st-conf,
.hx[data-state="paid"] .hx-st-paid { opacity:1; transform:none; }
.hx[data-state="conf"] .hx-bar { transform:scaleX(1); transition:transform 2.2s linear; }
.hx[data-state="conf"] .hx-scan,
.hx[data-state="paid"] .hx-scan { display:none; }
.hx[data-state="paid"] .hx-status { background:var(--grn); border-color:var(--grn); }
.hx[data-state="paid"] .hx-qr > img,
.hx[data-state="paid"] .hx-qr-badge { opacity:.1; filter:blur(1px); }
.hx[data-state="paid"] .hx-qr-ok { opacity:1; transform:none; }
.hx[data-state="paid"] .hx-toast { opacity:1; transform:none; }
.hx-swap { transition:opacity .25s ease; }
.hx.is-swapping .hx-swap { opacity:0; }

@media (max-width: 479px) {
    .hx-toast { inset-inline-end:6px; }
    .hx-pay { grid-template-columns:112px minmax(0, 1fr); gap:12px; padding:12px; }
    .hx-qr { width:112px; height:112px; padding:7px; }
    .hx-qr-badge { width:26px; height:26px; }
    .hx-qr-badge img { width:19px; height:19px; }
    .hx-total { font-size:30px; }
    .hx-coin { font-size:12px; gap:5px; }
    .hx-coin img { width:18px; height:18px; }
    @keyframes hxScan { 0%, 100% { transform:translateY(0); opacity:0; } 12%, 88% { opacity:1; } 50% { transform:translateY(92px); } }
}
@media (prefers-reduced-motion: reduce) {
    .hx-scan, .hx-dot, .hx-spin { animation:none; }
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.hf { border-top:1px solid var(--bd); }
.hf-wrap { max-width:80rem; margin:0 auto; padding:88px 20px; display:grid; gap:40px; }
@media (min-width: 1024px) {
    .hf-wrap { grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:72px; align-items:start; padding:110px 20px; }
    .hf-side { position:sticky; top:110px; }
}
.hf-kicker { display:inline-flex; align-items:center; gap:10px; font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--grn); }
.hf-kicker::before { content:''; width:22px; height:2px; border-radius:2px; background:var(--grn); }
.hf-title { margin:16px 0 0; font-size:clamp(30px, 4vw, 46px); font-weight:800; line-height:1.07; letter-spacing:-.035em; color:var(--ink); }
.hf-lead { margin:18px 0 0; max-width:30rem; font-size:16.5px; line-height:1.65; color:#475569; }
.dark .hf-lead { color:#94a3b8; }
.hf-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.hf-btn {
    display:inline-flex; align-items:center; gap:8px; padding:12px 18px; border-radius:12px;
    font-size:14.5px; font-weight:600; color:#fff; background:var(--grn); border:1px solid var(--grn);
    transition:background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hf-btn:hover { background:var(--grn-600); border-color:var(--grn-600); }
.hf-btn svg { width:16px; height:16px; }
.hf-btn.ghost { color:var(--ink); background:transparent; border-color:var(--bd); }
.hf-btn.ghost:hover { border-color:var(--grn); color:var(--grn); }
.hf-mail { display:inline-flex; align-items:center; gap:9px; margin-top:22px; font-size:14px; font-weight:500; color:#64748b; transition:color .15s ease; }
.hf-mail:hover { color:var(--grn); }
.hf-mail svg { width:17px; height:17px; }
.dark .hf-mail { color:#94a3b8; }

.hf-list {
    border-radius:20px; border:1px solid var(--bd); background:#fff; overflow:hidden;
    box-shadow:0 1px 2px rgba(10,14,26,.04), 0 24px 50px -40px rgba(10,14,26,.3);
    interpolate-size:allow-keywords;
}
.dark .hf-list { background:#0f1420; box-shadow:none; }
.hf-item { position:relative; }
.hf-item + .hf-item { border-top:1px solid var(--bd); }
.hf-item::before { content:''; position:absolute; inset-inline-start:0; top:20px; bottom:20px; width:3px; border-start-end-radius:3px; border-end-end-radius:3px; background:var(--grn); opacity:0; transition:opacity .25s ease; }
.hf-item[open]::before { opacity:1; }
.hf-item summary { display:flex; align-items:center; gap:18px; padding:22px 26px; cursor:pointer; list-style:none; }
.hf-item summary::-webkit-details-marker { display:none; }
.hf-item summary:focus-visible { outline:2px solid var(--grn); outline-offset:-4px; border-radius:16px; }
.hf-n { flex:0 0 22px; font-family:'JetBrains Mono', ui-monospace, Menlo, monospace; font-size:12px; font-weight:600; color:#94a3b8; transition:color .2s ease; }
.hf-q { flex:1 1 auto; margin:0; font-family:'Space Grotesk', Inter, system-ui, sans-serif; font-size:17px; font-weight:700; line-height:1.35; letter-spacing:-.015em; color:var(--ink); transition:color .2s ease; }
.hf-item summary:hover .hf-q { color:var(--grn); }
.hf-ico { position:relative; flex:0 0 32px; width:32px; height:32px; border-radius:10px; border:1px solid var(--bd); color:#64748b; transition:background-color .25s ease, border-color .25s ease, color .25s ease; }
.hf-ico::before, .hf-ico::after { content:''; position:absolute; left:50%; top:50%; width:12px; height:2px; border-radius:2px; background:currentColor; transform:translate(-50%, -50%); transition:transform .3s ease; }
.hf-ico::after { transform:translate(-50%, -50%) rotate(90deg); }
.hf-item[open] .hf-n { color:var(--grn); }
.hf-item[open] .hf-ico { color:#fff; background:var(--grn); border-color:var(--grn); }
.hf-item[open] .hf-ico::after { transform:translate(-50%, -50%) rotate(0deg); }
.hf-a { padding-block:0 24px; padding-inline:66px 74px; }
.hf-a p { margin:0; max-width:42rem; font-size:15px; line-height:1.72; color:#475569; }
.dark .hf-a p { color:#94a3b8; }
.hf-item::details-content { block-size:0; overflow:hidden; transition:block-size .32s ease, content-visibility .32s allow-discrete; }
.hf-item[open]::details-content { block-size:auto; }
@media (max-width: 639px) {
    .hf-item summary { gap:12px; padding:18px 18px; }
    .hf-n { display:none; }
    .hf-q { font-size:16px; }
    .hf-a { padding-block:0 20px; padding-inline:18px; }
    .hf-item::before { top:16px; bottom:16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hf-item::details-content { transition:none; }
}
