:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #5b6b7c;
  --line: #e6ebf1;
  --brand: #5283fc;            /* CryptoNow blue */
  --brand-ink: #2b57d6;
  --brand-soft: #eef3ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 8px 24px rgba(15,27,45,.06);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Sora', var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Demo banner */
.demo-banner { background:#fef3c7; color:#92400e; font-size:13.5px; font-weight:500; text-align:center; padding:9px 16px; border-bottom:1px solid #fde68a; }
.demo-banner b { font-weight:700; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.brand .mark { width: 28px; height: 28px; object-fit: contain; display: inline-block; }
.brand .accent { color: var(--brand); }
.tagpill { font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid #dbe6ff; border-radius: 999px; padding: 3px 9px; font-family: var(--font); }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { padding: 56px 0 28px; }
.hero h1 { font-family: var(--display); font-size: 40px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; max-width: 18ch; }
.hero p { color: var(--muted); font-size: 17px; margin: 0; max-width: 52ch; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* How-to button (hidden inside iframe via howto.js) */
.howto { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--brand-ink); background: var(--surface); border: 1px solid var(--brand); border-radius: 10px; padding: 10px 16px; text-decoration: none; transition: .12s; }
.howto:hover { background: var(--brand-soft); }

/* Landing hub */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 12px 0 72px; }
@media (max-width: 880px) { .hub { grid-template-columns: 1fr; } }
.hub-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; transition: .15s; }
.hub-card:hover { box-shadow: 0 2px 4px rgba(15,27,45,.05), 0 14px 40px rgba(82,131,252,.14); transform: translateY(-2px); }
.hub-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 16px; }
.hub-card .ic img { width: 26px; height: 26px; object-fit: contain; }
.hub-card h3 { font-family: var(--display); font-size: 18px; margin: 0 0 8px; }
.hub-card p { color: var(--muted); font-size: 14px; margin: 0 0 20px; flex: 1; }
.hub-card .open { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14.5px; padding: 11px; border-radius: 10px; text-decoration: none; transition: .12s; }
.hub-card .open:hover { background: var(--brand-ink); }
.hub-card .guide { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--brand-ink); text-decoration: none; font-weight: 500; }
.hub-card .guide:hover { text-decoration: underline; }

/* Shop layout */
.shop { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 16px 0 72px; align-items: start; }
@media (max-width: 880px) { .shop { grid-template-columns: 1fr; } }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.thumb { height: 120px; border-radius: 10px; margin-bottom: 14px; background: var(--brand-soft); position: relative; overflow: hidden; }
.thumb span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; }
.card h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; }
.card .desc { color: var(--muted); font-size: 13px; margin: 0 0 14px; flex: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 700; font-size: 16px; }
.add { border: 1px solid var(--brand); color: var(--brand-ink); background: var(--surface); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: .12s; }
.add:hover { background: var(--brand-soft); }
.cart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 92px; }
.cart h2 { font-family: var(--display); font-size: 16px; margin: 0; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.cart-items { padding: 6px 18px; min-height: 60px; }
.cart-empty { color: var(--muted); font-size: 14px; padding: 18px 0; }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .name { flex: 1; font-size: 14px; }
.line .name small { display: block; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink); }
.qty span { width: 18px; text-align: center; font-size: 14px; }
.cart-foot { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total .t-label { color: var(--muted); font-size: 14px; }
.total .t-val { font-family: var(--display); font-weight: 700; font-size: 22px; }
.pay { width: 100%; border: 0; cursor: pointer; background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; padding: 13px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 9px; transition: .12s; }
.pay:hover { background: var(--brand-ink); }
.pay:disabled { opacity: .5; cursor: not-allowed; }
.pay .coin { width: 17px; height: 17px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; color: var(--brand); font-size: 11px; font-weight: 800; }
.newtab { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.newtab a { color: var(--brand-ink); text-decoration: none; font-weight: 500; }
.newtab a[aria-disabled="true"] { pointer-events: none; opacity: .5; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 13px; }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Success page */
.status-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 460px; margin: 64px auto; padding: 32px; text-align: center; }
.status-card .big { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 30px; }
.status-card .big.pending { background: var(--brand-soft); }
.status-card .big.paid { background: var(--brand); color: #fff; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.status-card h1 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; }
.status-card p { color: var(--muted); margin: 4px 0; font-size: 14px; }
.status-card .meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.status-card .meta code { color: var(--ink); }

/* Embed page */
.embed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 16px 0 72px; align-items: start; }
@media (max-width: 880px) { .embed-grid { grid-template-columns: 1fr; } }
.frame-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.frame-wrap iframe { width: 100%; height: 720px; border: 0; display: block; }
.note { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* Subscription page */
.sub-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; padding: 8px 0 72px; align-items: start; }
@media (max-width: 880px) { .sub-grid { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 26px; }
.panel h3 { font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--bg); }
.step:first-of-type { border-top: 0; padding-top: 0; }
.step .n { flex: 0 0 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.step .t { font-weight: 600; font-size: 15px; }
.step .d { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 12px 34px rgba(82,131,252,.10); }
.plan .cap { background: linear-gradient(180deg, #f3f7ff, #fff); padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.plan .cap img { width: 34px; height: 34px; object-fit: contain; }
.plan .cap .ttl { font-weight: 700; font-size: 17px; font-family: var(--display); }
.plan .cap .st { font-size: 12.5px; color: var(--muted); }
.plan .body { padding: 24px; }
.price-lg { display: flex; align-items: baseline; gap: 8px; }
.price-lg .amt { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.price-lg .cur { font-size: 15px; font-weight: 700; color: var(--muted); }
.price-lg .per { font-size: 15px; color: var(--muted); }
.netline { margin-top: 8px; font-size: 13px; color: var(--muted); }
.netline b { color: var(--ink); font-weight: 600; }
ul.perks { list-style: none; margin: 20px 0 4px; padding: 0; }
ul.perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; padding: 7px 0; color: #334155; }
ul.perks li svg { flex: 0 0 18px; margin-top: 2px; }
.cta { display: block; width: 100%; text-align: center; margin-top: 22px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; padding: 15px; border-radius: 11px; border: 0; cursor: pointer; transition: .15s; }
.cta:hover { background: var(--brand-ink); }
.cta.disabled { background: #cbd5e1; cursor: not-allowed; }
.popnote { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 11px; }
.cfgwarn { display: none; margin-top: 12px; font-size: 13px; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 9px; padding: 10px 12px; }

/* Subscription — stacked full-width layout */
.how-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 8px 0 14px; }
@media (max-width: 800px) { .how-strip { grid-template-columns: 1fr; } }
.hs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.hs-card .n { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 14px; display: grid; place-items: center; margin-bottom: 12px; }
.hs-card .t { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.hs-card .d { font-size: 13.5px; color: var(--muted); }
.demoplan { text-align: center; margin: 0 0 6px; }
.sub-embed { padding: 8px 0 72px; }
.sub-embed .frame-wrap iframe { height: 760px; }

/* Subscription — popup handoff for the sign step */
.sub-cta { max-width: 360px; margin: 0 auto 8px; }
.sub-preview { position: relative; }
.sub-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(255,255,255,0); transition: background .15s; }
.sub-overlay span { opacity: 0; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); transition: opacity .15s; }
.sub-overlay:hover { background: rgba(15,27,45,.04); }
.sub-overlay:hover span { opacity: 1; }

/* Subscription — hero row with feature plan card */
.sub-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding: 52px 0 20px; }
@media (max-width: 920px) { .sub-hero { grid-template-columns: 1fr; gap: 28px; } }
.sub-hero .hero { padding: 0; }
.plan.feature .body { padding: 28px 28px 30px; }
.plan.feature .price-lg { align-items: baseline; }
.plan.feature .price-lg .amt { font-size: 54px; line-height: 1; }
.plan.feature .price-lg .cur { font-size: 17px; }
.plan.feature .price-lg .per { font-size: 17px; }
.plan.feature .netline { font-size: 14px; margin-top: 10px; }
.plan.feature ul.perks li { font-size: 15px; }
.plan.feature .cta { font-size: 17px; padding: 16px; margin-top: 24px; }
