/* ============================================================
   KVRNL — "Nocturnal Engineering"
   Display: Bricolage Grotesque · Body: Hanken Grotesk · Mono: JetBrains Mono
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Hanken+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg: #0a0a0d;
    --bg-2: #0d0d11;
    --surface: #131218;
    --surface-2: #18171f;
    --line: #24222c;
    --line-2: #322f3b;
    --text: #ece9e3;          /* warm white */
    --muted: #9b968c;         /* warm gray */
    --faint: #5b574f;
    --amber: #F5A623;
    --amber-bright: #FFC152;
    --amber-dim: rgba(245, 166, 35, 0.09);
    --amber-glow: rgba(245, 166, 35, 0.20);
    --blue: #4466DD;
    --blue-bright: #7E97FF;
    --blue-dim: rgba(68, 102, 221, 0.10);
    --teal: #2DD4BF;
    --teal-bright: #5FEAD6;
    --teal-dim: rgba(45, 212, 191, 0.10);
    --ok: #5fd88a;
    --bad: #ff7a7a;
    --font-display: 'Bricolage Grotesque', Georgia, serif;
    --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    --maxw: 1180px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* atmosphere: faint blueprint grid fading from the top */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .35;
    -webkit-mask-image: radial-gradient(ellipse 120% 70% at 50% -10%, #000 0%, transparent 65%);
    mask-image: radial-gradient(ellipse 120% 70% at 50% -10%, #000 0%, transparent 65%);
}

/* atmosphere: film grain */
.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

nav, main, footer { position: relative; z-index: 3; }

::selection { background: var(--amber); color: #0a0a0d; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- TYPE ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 18px;
}
.eyebrow.blue { color: var(--blue-bright); }
.eyebrow.teal { color: var(--teal-bright); }
.eyebrow.muted { color: var(--muted); }

h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.02;
    color: var(--text);
}

/* ---------- NAV ---------- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 13, 0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo img { height: 28px; width: 28px; border-radius: 7px; }
.nav-logo span {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text);
}
.nav-logo:hover span { color: var(--amber); transition: color .2s; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links > a, .nav-auth a:not(.btn) {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .5px;
    transition: color .2s;
}
.nav-links > a:hover, .nav-auth a:not(.btn):hover { color: var(--amber); }
.nav-auth { display: inline-flex; align-items: center; gap: 18px; }
.nav-auth .btn { padding: 9px 18px; font-size: 12px; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: 9px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--amber); color: #0a0a0d; }
.btn-primary:hover { background: var(--amber-bright); transform: translateY(-2px); box-shadow: 0 10px 34px var(--amber-glow); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn-orange { background: var(--amber); color: #0a0a0d; }
.btn-orange:hover { background: var(--amber-bright); transform: translateY(-2px); box-shadow: 0 10px 34px var(--amber-glow); }
.btn-teal { background: var(--teal); color: #04140f; }
.btn-teal:hover { background: var(--teal-bright); transform: translateY(-2px); box-shadow: 0 10px 34px rgba(45,212,191,.22); }
.btn-blue { background: var(--blue); color: #f3f5ff; }
.btn-blue:hover { background: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 10px 34px rgba(68,102,221,.3); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: default; pointer-events: none; }

/* ---------- LAYOUT ---------- */
main { display: block; }
section, .wrap { max-width: var(--maxw); margin: 0 auto; padding: 110px 40px; }
.wrap-narrow { max-width: 760px; }
.page { padding-top: 70px; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 18px; }
.section-desc { font-size: 17px; color: var(--muted); font-weight: 300; line-height: 1.7; }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 116px 40px 64px;
}
.hero::before {
    content: '';
    position: absolute;
    top: -10%; left: 30%;
    width: 80vw; height: 80vw;
    max-width: 1100px; max-height: 1100px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--amber-glow) 0%, rgba(68,102,221,.07) 38%, transparent 64%);
    pointer-events: none;
    z-index: -1;
    filter: blur(10px);
}
.hero-mark {
    width: 56px; height: 56px; border-radius: 14px; margin-bottom: 30px;
    box-shadow: 0 0 0 1px var(--line-2), 0 20px 50px rgba(0,0,0,.5);
}
.hero-title {
    font-size: clamp(38px, 8vw, 100px);
    line-height: 1.04;
    letter-spacing: -.035em;
    margin-bottom: 26px;
    max-width: 100%;
    overflow-wrap: break-word;
}
.hero-title em {
    display: inline-block;
    padding: 0.04em 0.18em 0.28em 0.02em;
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(105deg, var(--amber) 0%, var(--amber-bright) 45%, var(--blue-bright) 105%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lede {
    font-size: clamp(16px, 1.7vw, 20px);
    color: var(--muted);
    font-weight: 300;
    max-width: 540px;
    margin-bottom: 38px;
    line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .5px;
    color: var(--muted);
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: rgba(255,255,255,.015);
    width: fit-content;
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* subhero for inner pages */
.subhero { min-height: auto; padding: 150px 40px 40px; }
.subhero .hero-title, .subhero .section-title { font-size: clamp(38px, 6vw, 72px); }

/* ---------- STORE / CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px;
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::after {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
}
.card.accent-orange::after { background: linear-gradient(90deg, var(--amber), var(--amber-bright)); }
.card.accent-blue::after { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.card.accent-teal::after { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 26px 60px rgba(0,0,0,.55); }
.card:hover::after { transform: scaleX(1); }
.card-cover { position: absolute; inset: 0; z-index: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card-num { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 1px; }
.chip {
    font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .8px;
    text-transform: uppercase; padding: 4px 10px; border-radius: 100px; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.chip-live { color: var(--ok); border: 1px solid rgba(95,216,138,.22); background: rgba(95,216,138,.06); }
.card-name { font-size: 23px; margin-bottom: 7px; }
.card-tag { font-family: var(--font-mono); font-size: 12.5px; margin-bottom: 14px; }
.accent-orange .card-tag { color: var(--amber-bright); }
.accent-blue .card-tag { color: var(--blue-bright); }
.accent-teal .card-tag { color: var(--teal-bright); }
.card-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.card-feats { list-style: none; margin-bottom: 26px; }
.card-feats li { font-size: 13px; color: var(--muted); padding: 5px 0 5px 18px; position: relative; }
.card-feats li::before { content: ''; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; }
.accent-orange .card-feats li::before { background: var(--amber); }
.accent-blue .card-feats li::before { background: var(--blue); }
.accent-teal .card-feats li::before { background: var(--teal); }
.card-cta {
    margin-top: auto; position: relative; z-index: 2;
    font-family: var(--font-mono); font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px; width: fit-content;
}
.accent-orange .card-cta { color: var(--amber); }
.accent-blue .card-cta { color: var(--blue-bright); }
.accent-teal .card-cta { color: var(--teal-bright); }
.card-cta .arrow { transition: transform .25s var(--ease); }
.card:hover .card-cta .arrow { transform: translateX(5px); }

/* ---------- PRODUCT DETAIL ---------- */
.pd { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; max-width: var(--maxw); margin: 0 auto; padding: 56px 40px 110px; }
.back-link { font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-decoration: none; }
.back-link:hover { color: var(--amber); }
.pd-title { font-size: clamp(40px, 6vw, 76px); line-height: .96; margin: 18px 0 14px; }
.pd-tag { font-family: var(--font-mono); font-size: 16px; margin-bottom: 32px; }
.pd-tag.accent-orange { color: var(--amber-bright); }
.pd-tag.accent-blue { color: var(--blue-bright); }
.pd-tag.accent-teal { color: var(--teal-bright); }
.pd-body p { font-size: 16.5px; color: var(--muted); line-height: 1.85; margin-bottom: 22px; }
.pd-feats { list-style: none; margin-top: 10px; }
.pd-feats li { font-size: 15px; color: var(--text); padding: 9px 0 9px 24px; position: relative; }
.pd-feats li::before { content: '+'; font-family: var(--font-mono); position: absolute; left: 0; top: 8px; font-size: 14px; }
.pd-feats.accent-orange li::before { color: var(--amber); }
.pd-feats.accent-blue li::before { color: var(--blue-bright); }
.pd-feats.accent-teal li::before { color: var(--teal-bright); }
.get-box {
    position: sticky; top: 96px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    border: 1px solid var(--line); border-radius: 18px; padding: 30px;
}
.get-box h3 { font-size: 19px; margin-bottom: 6px; }
.get-box .price { font-family: var(--font-mono); color: var(--ok); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; display: inline-block; margin-bottom: 22px; }
.get-box .meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); margin-top: 16px; line-height: 1.8; }

/* ---------- ABOUT / VALUES ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.value {
    padding: 30px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; border-left: 2px solid var(--line-2); transition: border-left-color .3s, transform .3s;
}
.value:hover { border-left-color: var(--amber); transform: translateY(-3px); }
.value .vnum { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-bottom: 14px; }
.value h4 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.value p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ---------- FORMS ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 40px; max-width: 440px; margin: 0 auto; }
.form-card h1 { font-size: 28px; margin-bottom: 8px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.input {
    background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
    padding: 13px 15px; color: var(--text); font-size: 15px; font-family: var(--font-body); width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.form-msg { font-family: var(--font-mono); font-size: 12.5px; margin-top: 14px; min-height: 18px; }
.form-msg.error { color: var(--bad); }
.form-msg.ok { color: var(--ok); }
.form-alt { font-size: 13px; color: var(--muted); margin-top: 20px; }
.form-alt a { color: var(--amber); text-decoration: none; }
.form-fineprint { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 14px; line-height: 1.7; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- LICENSE KEY ---------- */
.license-box { background: var(--bg); border: 1px dashed var(--line-2); border-radius: 12px; padding: 20px; margin: 20px 0; }
.license-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.license-key { font-family: var(--font-mono); font-size: 19px; color: var(--amber-bright); letter-spacing: 1.5px; display: block; margin-bottom: 14px; word-break: break-all; }
.license-note { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 12px; line-height: 1.7; }

/* ---------- ACCOUNT ---------- */
.acct-list { display: grid; gap: 16px; }
.acct-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.acct-item h3 { font-size: 18px; margin-bottom: 6px; }
.acct-item .ai-key { font-family: var(--font-mono); font-size: 13px; color: var(--amber-bright); letter-spacing: .5px; }
.acct-item .ai-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-item .ai-meta { margin-top: 9px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.acct-item .ai-device.on { color: var(--ok); }
.ai-release { font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.ai-release:hover { color: var(--amber); }
.ai-release[disabled] { color: var(--faint); cursor: default; text-decoration: none; }
.empty-state { font-family: var(--font-mono); text-align: center; color: var(--muted); padding: 56px 0; font-size: 14px; }

/* ---------- CHANGELOG ---------- */
.cl-entry { border-left: 1px solid var(--line-2); padding: 0 0 34px 28px; position: relative; }
.cl-entry::before { content: ''; position: absolute; left: -4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber-glow); }
.cl-prod { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.cl-ver { font-family: var(--font-mono); font-weight: 600; font-size: 16px; color: var(--text); }
.cl-date { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-left: 10px; }
.cl-list { list-style: none; margin-top: 10px; }
.cl-list li { color: var(--muted); font-size: 14.5px; padding: 4px 0 4px 18px; position: relative; }
.cl-list li::before { content: '—'; position: absolute; left: 0; color: var(--faint); }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 40px; text-align: center; }
.footer-logo { font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 5px; color: var(--amber); opacity: .55; margin-bottom: 14px; }
footer p { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-bottom: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--amber); }

/* ---------- MOTION (orchestrated page load) ---------- */
.reveal { opacity: 0; transform: translateY(20px); animation: reveal .85s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; transform: none; }
    .status .dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
    .pd { grid-template-columns: 1fr; gap: 36px; padding: 40px 22px 80px; }
    .get-box { position: static; }
}
@media (max-width: 680px) {
    nav { padding: 13px 20px; }
    .nav-links { gap: 16px; }
    .nav-links > a, .nav-auth a { font-size: 11.5px; letter-spacing: .3px; }
    .nav-logo span { font-size: 13px; letter-spacing: 3px; }
    section, .wrap, .hero { padding-left: 22px; padding-right: 22px; }
    section, .wrap { padding-top: 70px; padding-bottom: 70px; }
    .hero { padding-top: 130px; }
    .cards { grid-template-columns: 1fr; }
    .values { grid-template-columns: 1fr; }
    .store-grid { grid-template-columns: 1fr; }
}

/* ============ TIGHT PAGE HEADERS ============ */
.phead { max-width: var(--maxw); margin: 0 auto; padding: 104px 40px 28px; }
.pbody { max-width: var(--maxw); margin: 0 auto; padding: 8px 40px 96px; }
.phead .section-title { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 14px; }

/* ============ COMPACT STORE CARDS ============ */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 16px; }
.scard {
    position: relative; display: flex; flex-direction: column; gap: 9px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    border: 1px solid var(--line); border-radius: 13px; padding: 20px 20px 18px;
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.scard::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.scard.accent-orange::after { background: linear-gradient(90deg, var(--amber), var(--amber-bright)); }
.scard.accent-blue::after { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.scard.accent-teal::after { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.scard:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.scard:hover::after { transform: scaleX(1); }
.scard-cover { position: absolute; inset: 0; z-index: 1; }
.scard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.scard-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; }
.scard-tag { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.scard.accent-orange .scard-tag { color: var(--amber-bright); }
.scard.accent-blue .scard-tag { color: var(--blue-bright); }
.scard.accent-teal .scard-tag { color: var(--teal-bright); }
.scard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; position: relative; z-index: 2; }
.scard-price { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--ok); }
.scard-ver { color: #8b8b93; }
.btn-cart {
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
    padding: 8px 14px; border-radius: 7px; border: 1px solid var(--line-2); background: transparent;
    color: var(--text); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-cart:hover { border-color: var(--amber); color: var(--amber); }
.btn-cart.in-cart { background: var(--amber); border-color: var(--amber); color: #0a0a0d; }
/* Owned — already in the user's account (outlined green, distinct from the amber in-cart fill). */
.btn-cart.owned, .btn.owned { background: transparent; border-color: var(--ok); color: var(--ok); cursor: pointer; }
.btn-cart.owned:hover, .btn.owned:hover { border-color: var(--ok); color: var(--ok); background: rgba(255,255,255,.05); }
.scard-open { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--blue-bright); text-decoration: none; position: relative; z-index: 2; }
.scard-open:hover { color: var(--blue-bright); }

/* ============ CART ICON (nav) ============ */
.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--amber); transition: transform .2s; }
.cart-link:hover { transform: translateY(-1px); }
.cart-link svg { width: 21px; height: 21px; display: block; }
.cart-badge {
    position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 9px; background: var(--amber); color: #0a0a0d; font-family: var(--font-mono);
    font-size: 10px; font-weight: 700; display: none; align-items: center; justify-content: center; line-height: 1;
}
.cart-badge.show { display: inline-flex; }

/* ============ CART PAGE ============ */
.cart-items { display: grid; gap: 12px; margin-bottom: 26px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.cart-row .ci-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.cart-row .ci-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cart-row .ci-right { display: flex; align-items: center; gap: 18px; }
.cart-row .ci-price { font-family: var(--font-mono); font-size: 10.5px; color: var(--ok); text-transform: uppercase; letter-spacing: .5px; }
.ci-remove { font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: none; border: none; cursor: pointer; transition: color .2s; }
.ci-remove:hover { color: var(--bad); }
.cart-summary { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; flex-wrap: wrap; gap: 14px; }
.cart-total { font-family: var(--font-mono); font-size: 14px; }
.cart-total b { color: var(--ok); }

/* ============ CHECKOUT ============ */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.checkout-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; position: sticky; top: 92px; }
.checkout-box h3 { font-size: 17px; margin-bottom: 16px; }
.co-line { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); padding: 6px 0; }
.co-total { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 14px; color: var(--text); border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.co-total b { color: var(--ok); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.checkbox-row input { margin-top: 3px; accent-color: var(--amber); width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-row a { color: var(--amber); text-decoration: none; }
.co-note { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 12px; line-height: 1.7; }
.order-key { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.order-key h4 { font-family: var(--font-display); font-size: 15px; margin-bottom: 10px; }
.order-key .ok-key { font-family: var(--font-mono); font-size: 16px; color: var(--amber-bright); letter-spacing: 1px; display: block; margin-bottom: 12px; word-break: break-all; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-box { position: static; } }

/* ============ LEGAL PROSE ============ */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 22px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose strong { color: var(--text); }
.prose .updated { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-bottom: 8px; }
