/* Wallet of Satoshi site styles: shared tokens and components (nav, buttons, badges, counter, footer, cookie banner).
   Colours and type follow the WoS design system, which mirrors the app (src/theme/variables.scss). */
@font-face { font-family: "Seven Segment"; src: url("../fonts/Seven%20Segment.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: dark;
  --background: #000000; --card-background: #1e1e1e; --step-150: #363636;
  --text: #ffffff; --medium: #989aa2;
  --primary: #dfab29; --primary-tint: #e2b33e; --on-primary-action: #1e1e1e;
  --btc-orange: #f7931a; --usdb-green: #00875a; --success: #2fdf75;
  --sc-background: #0f1923; --sc-card: #2b3444;
  --segment-track: rgba(152, 154, 162, 0.18); --segment-indicator: rgba(223, 171, 41, 0.22);
  --ink-on-color: #000000;
  --font-tight: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-inter: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", "Inter Tight", system-ui, sans-serif; /* opsz 32 = Inter Display */
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --font-counter: "Seven Segment", "Inter Tight", monospace;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --r: 20px; --pill: 999px; --gutter: 16px; --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

html { background: var(--background); scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 400 16px/1.5 var(--font-tight); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
iframe { color-scheme: normal; } /* third-party widgets (Freshworks) keep a transparent frame on our dark page */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--font-display); font-variation-settings: "opsz" 32; font-weight: 800; letter-spacing: -.028em; }

/* Icons: single-ink SVGs from the app, coloured with currentColor */
.icon { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
.i-btc { --i: url("../images/icons/bitcoin.svg"); }
.i-usd { --i: url("../images/icons/circle-dollar.svg"); }
.i-bolt { --i: url("../images/icons/bolt.svg"); }

/* Buttons (app ion-button: 20px radius, bold) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: var(--r); border: 1px solid transparent; font: 700 18px/1 var(--font-tight); text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--primary); color: var(--on-primary-action); }
.btn-solid:hover { background: var(--primary-tint); }
.btn-outline { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn-ghost { color: var(--text); border-color: var(--medium); background: transparent; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Nav: logo left, menu right */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav .wrap { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.nav-logo { margin-right: auto; }
.nav-logo img { height: 26px; width: auto; }
.nav-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--segment-track); color: var(--text); cursor: pointer; }
.nav-btn:hover { background: rgba(152, 154, 162, .3); }
.menu-ico { width: 18px; display: grid; gap: 4px; }
.menu-ico i { height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav[data-open] .menu-ico i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav[data-open] .menu-ico i:nth-child(2) { opacity: 0; }
.nav[data-open] .menu-ico i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { position: absolute; top: calc(100% + 8px); right: var(--gutter); width: min(320px, calc(100vw - 2 * var(--gutter))); padding: 8px; border-radius: 24px; background: var(--card-background); box-shadow: 0 0 0 1px var(--step-150), 0 30px 60px -20px rgba(0, 0, 0, .7); display: grid; }
.menu a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border-radius: 14px; text-decoration: none; font: 600 17px/1 var(--font-tight); }
.menu a:hover, .menu a[aria-current] { background: var(--segment-track); }
.menu hr { border: 0; height: 1px; background: var(--step-150); margin: 6px 12px; }

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges img { height: 52px; width: auto; }
.badges .ios img { border: 2px solid #77787a; border-radius: 11px; }
.badges-lg { align-items: center; gap: 14px; flex-wrap: nowrap; }
.badges-lg img { height: clamp(56px, 6vw, 68px); }
.badges-lg .ios img { border-radius: 13px; }
@media (max-width: 479px) { .badges-lg { gap: 10px; } .badges-lg a { flex: 1 1 0; min-width: 0; } .badges-lg img { width: 100%; height: auto; } }

/* Live payments counter: each digit in a fixed-width cell so it never changes width */
.count { display: flex; font-family: var(--font-counter); color: var(--primary); font-variant-numeric: tabular-nums; }
.count .d { display: inline-block; width: var(--dw, .62em); text-align: center; }
.count .c { display: inline-block; width: var(--cw, .28em); text-align: center; }
.counter-card { display: grid; align-content: center; justify-items: center; text-align: center; gap: 4px; padding: 8px 16px 10px; border-radius: var(--r); background: var(--card-background); }
.counter-card .count { justify-content: center; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; }
.count-lbl { display: flex; align-items: center; gap: 8px; font: 500 15px/1.3 var(--font-tight); color: var(--medium); }
.live { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--success); animation: blink 1.5s linear infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Page shell for inner pages (media, pos, square, download) */
.page { padding-block: calc(112px + env(safe-area-inset-top, 0px)) clamp(64px, 9vw, 112px); }
.page-head { max-width: 46em; }
.page-head h1 { margin-top: 14px; font: 800 clamp(40px, 6.4vw, 88px)/.94 var(--font-display); font-variation-settings: "opsz" 32; letter-spacing: -.028em; text-wrap: balance; }
.page-head p { margin-top: 20px; font-size: clamp(17px, 1.7vw, 20px); color: var(--medium); max-width: 36em; }
.card { border-radius: var(--r); background: var(--card-background); padding: clamp(22px, 3vw, 32px); }
.card h2, .card h3 { font: 700 22px/1.2 var(--font-tight); }
.card p { margin-top: 10px; color: #c3c5cc; }
.link { color: var(--primary); }

/* Footer: one centred column */
footer { padding-block: 56px 40px; border-top: 1px solid rgba(152, 154, 162, .14); text-align: center; }
footer .wrap { display: grid; justify-items: center; gap: 28px; }
footer .foot-logo { height: 30px; width: auto; }
footer .badges { justify-content: center; }
@media (max-width: 479px) { footer .badges { width: 100%; } }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 15px; }
footer nav a { color: var(--text); text-decoration: none; opacity: .85; }
footer nav a:hover { opacity: 1; color: var(--primary); }
.foot-help { font-size: 17px; } .foot-help a { color: var(--primary); }
footer .social { display: flex; gap: 12px; }
footer .social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--segment-track); color: var(--text); transition: background-color .15s, color .15s; }
footer .social a:hover { background: var(--primary); color: #000; }
footer .social svg { width: 20px; height: 20px; }
footer .legal { max-width: 40em; padding-top: 24px; border-top: 1px solid rgba(152, 154, 162, .14); width: 100%; font: 400 14px/1.7 var(--font-inter); color: var(--medium); }
footer .legal a { color: var(--medium); }
footer .legal a:hover { color: var(--text); }

/* Cookie banner (shown and hidden by cookie.js via #cookieBanner style.display) */
#cookieBanner { position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: 720px; margin: 0 auto; padding: 18px 20px; border-radius: var(--r); background: var(--card-background); box-shadow: 0 0 0 1px var(--step-150), 0 30px 60px -20px rgba(0, 0, 0, .8); }
#cookieBanner .cb-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
#cookieBanner p { flex: 1 1 280px; font-size: 15px; color: #d0d2d8; }
#cookieBanner p b { color: var(--text); }
#cookieBanner a { color: var(--primary); }
#cookieBanner .cb-btns { display: flex; gap: 10px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
