/* Shared style for /apps, /downloads and /wallet (same tokens and fonts as index.html). */
@font-face { font-family: 'Joystix'; src: url(/fonts/joystix.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'VT323'; src: url(/fonts/vt323.woff2) format('woff2'); font-display: swap; }
:root {
  --bg: #020602; --panel: #061006; --edge: #0E5A24; --dim: #0B7A2A; --mid: #5FD37A;
  --matrix: #00FF41; --lime: #8CFF00; --ink: #D8FFD8; --gold: #FFD700; --red: #FF4136;
  --fj: 'Joystix', ui-monospace, monospace; --fv: 'VT323', ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); }
body { background: var(--bg); font-family: var(--fv); font-size: 22px; line-height: 1.25; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad); border-bottom: 3px solid var(--edge); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--fj); font-size: 18px; color: var(--lime); text-decoration: none; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; }
.navlinks { display: flex; gap: 18px; font-family: var(--fj); font-size: 13px; color: var(--mid); }
.navlinks a { text-decoration: none; } .navlinks a:hover, .navlinks a[aria-current] { color: var(--lime); }
main { padding: clamp(32px, 7vw, 88px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 1240px; }
.eyebrow { color: var(--matrix); font-size: 24px; }
h1 { font-family: var(--fj); font-weight: 400; font-size: clamp(28px, 5vw, 60px); line-height: 1.08; text-shadow: 4px 4px 0 var(--dim); overflow-wrap: anywhere; }
h1 em { font-style: normal; color: var(--lime); }
h2 { font-family: var(--fj); font-weight: 400; font-size: clamp(17px, 2.3vw, 24px); color: var(--lime); margin-bottom: 10px; }
p { max-width: 62ch; }
ul.list { list-style: none; display: grid; gap: 6px; }
ul.list li::before { content: '> '; color: var(--matrix); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.card { border: 3px solid var(--edge); background: var(--panel); padding: 22px; display: grid; gap: 14px; align-content: start; }
.card .tag { font-family: var(--fj); font-size: 12px; color: var(--bg); background: var(--lime); padding: 4px 8px; justify-self: start; }
.card .tag.warn { background: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--fj); font-size: 16px; padding: 14px 18px 12px; border: 3px solid var(--bg); background: var(--lime); color: var(--bg); box-shadow: 5px 5px 0 var(--dim); text-decoration: none; text-align: center; }
.btn:hover { background: var(--gold); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--ink); box-shadow: 5px 5px 0 var(--edge); }
.btn-ghost:hover { background: var(--panel); color: var(--lime); border-color: var(--lime); }
.ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.status { border: 3px solid var(--gold); background: var(--panel); padding: 16px 18px; color: var(--gold); }
.status b { font-family: var(--fj); font-size: 15px; display: block; margin-bottom: 6px; }
dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; border: 3px solid var(--edge); padding: 16px 18px; background: var(--panel); }
dt { color: var(--mid); }
dd { overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 15px; align-self: center; min-width: 0; }
pre { font-family: ui-monospace, monospace; font-size: 14px; background: var(--panel); border: 3px solid var(--edge); padding: 12px; overflow-x: auto; max-width: 100%; }
.warn { color: var(--gold); }
.small { font-size: 18px; color: var(--mid); }
footer { border-top: 3px solid var(--edge); padding: 26px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 20px; color: var(--mid); }
@media (max-width: 560px) { dl { grid-template-columns: 1fr; } .btn { width: 100%; } .navlinks { gap: 14px; } }
/* App previews: CSS phone frames (illustrations) and the real extension screenshot. */
.btn svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: -2px; }
.phone { width: min(220px, 70%); aspect-ratio: 9 / 18.5; justify-self: center; border: 3px solid var(--edge); border-radius: 26px; background: var(--bg); padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; box-shadow: 6px 6px 0 var(--dim); font-size: 14px; }
.ph-top { display: flex; align-items: center; gap: 8px; font-family: var(--fj); font-size: 10px; color: var(--lime); }
.ph-top img { width: 22px; height: 22px; }
.ph-user { display: flex; align-items: center; gap: 8px; }
.ph-user img { width: 26px; height: 26px; image-rendering: pixelated; border: 2px solid var(--edge); }
.ph-user b { display: block; font-size: 14px; color: var(--ink); font-weight: 400; }
.ph-user small { color: var(--mid); font-size: 12px; }
.ph-media { border: 2px solid var(--edge); aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel); }
.ph-media img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.ph-line { height: 8px; background: var(--edge); width: 90%; } .ph-line.short { width: 55%; }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; border-top: 2px solid var(--edge); padding-top: 8px; }
.ph-tabs i { width: 14px; height: 14px; background: var(--edge); } .ph-tabs i.on { background: var(--lime); }
.ph-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-stats div { border: 2px solid var(--edge); padding: 6px; display: grid; } .ph-stats div.lit { background: var(--dim); }
.ph-stats small, .ph-value small { font-size: 10px; color: var(--mid); } .ph-stats .lit small { color: var(--ink); }
.ph-stats b { font-weight: 400; font-size: 16px; color: var(--ink); }
.ph-value { text-align: center; display: grid; padding: 4px 0; } .ph-value b { font-weight: 400; font-size: 22px; color: var(--gold); }
.ph-row { display: flex; align-items: center; gap: 8px; border: 2px solid var(--edge); padding: 6px 8px; color: var(--ink); }
.ph-row em { margin-left: auto; font-style: normal; color: var(--mid); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.dot.hive { background: #E31337; } .dot.hbd { background: #2EBD6B; } .dot.eth { background: #627EEA; } .dot.btc { background: #F7931A; }
.shot { width: 100%; height: auto; border: 3px solid var(--edge); display: block; }
.appicon { width: 28px; height: 28px; vertical-align: -6px; margin-right: 10px; image-rendering: pixelated; }
.ph-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-actions i { font-style: normal; font-size: 10px; text-align: center; border: 2px solid var(--edge); padding: 6px 0; color: var(--mid); }
.storebadge { display: inline-block; line-height: 0; position: relative; z-index: 101; } /* above the scanline overlay (body::after, z-index 100): official badge shown unaltered */
.storebadge img { width: 206px; height: 58px; }

/* Catalog rhythm: four shared rows keep previews, headings and actions aligned. */
.app-catalog { max-width: 1440px; margin-inline: auto; }
.app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app-card { min-width: 0; padding: 24px; grid-template-rows: subgrid; grid-row: span 4; row-gap: 24px; }
.app-preview { height: 400px; display: flex; align-items: center; justify-content: center; min-width: 0; background: var(--bg); border: 1px solid var(--edge); padding: 16px; }
.app-preview .phone { flex: 0 0 176px; width: 176px; height: 362px; aspect-ratio: auto; padding: 12px 10px; gap: 6px; box-shadow: 4px 4px 0 var(--dim); }
.app-preview .ph-top { font-size: 8px; gap: 6px; }
.app-preview .ph-stats small { font-size: 9px; }
.app-preview .ph-row { font-size: 12px; padding: 5px 6px; gap: 5px; }
.app-preview .ph-actions i { font-size: 9px; }
.app-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.app-heading h2 { font-size: 18px; line-height: 1.4; margin: 0; }
.app-heading .tag { font-size: 10px; line-height: 1.6; padding: 4px 8px; }
.app-heading .appicon { display: none; }
.app-description { display: flex; flex-direction: column; gap: 16px; font-size: 22px; }
.app-description .small { font-size: 18px; line-height: 1.35; }
.app-card .ctas { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 12px; align-self: start; }
.app-card .btn { width: 100%; min-height: 58px; padding: 12px; font-size: 12px; line-height: 1.5; box-shadow: 3px 3px 0 var(--dim); }
.app-card .storebadge { display: flex; align-items: center; justify-content: center; min-height: 58px; align-self: stretch; background: #fff; }
.app-card .storebadge img { display: block; flex: 0 0 auto; }
.browser-preview { width: 100%; border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--dim); }
.browser-toolbar { display: flex; gap: 5px; padding: 8px; background: var(--panel); border-bottom: 2px solid var(--edge); }
.browser-toolbar span { width: 5px; height: 5px; background: var(--mid); border-radius: 50%; }
.browser-preview .shot { border: 0; width: 100%; height: auto; }
@media (max-width: 1050px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; width: 100%; margin-inline: auto; }
  .app-card { grid-row: auto; grid-template-rows: auto; padding: 24px; }
  .app-preview { height: 400px; }
  .browser-preview { max-width: 440px; }
}
@media (max-width: 380px) {
  .app-card { padding: 16px; }
  .app-preview { padding: 12px; }
}

.app-catalog > .small { max-width: 100ch; }
