/* CoinScan website. System fonts only: nothing external is loaded. */
:root {
  --ink: #121214;
  --ink-soft: #1c1c1e;
  --ink-raised: #26262a;
  --gold: #d4af37;
  --gold-light: #e7c766;
  --gold-text: #7a5c12;      /* gold that passes contrast on white */
  --on-gold: #1c1c1e;
  --text: #1c1c1e;
  --muted: #55555c;
  --line: #e7e3d8;
  --surface: #faf8f3;
  --bg: #ffffff;
  --on-ink: #f2f2f4;
  --on-ink-muted: #b9b9c1;
  --radius: 18px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f4;
    --muted: #b4b4bc;
    --line: #2c2c31;
    --surface: #1a1a1d;
    --bg: #121214;
    --gold-text: #e7c766;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 18, 20, 0.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--on-ink); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 0.95rem; cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; color: var(--on-ink-muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 0.95rem; font-weight: 550; }
.site-nav a:hover { color: var(--on-ink); background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: var(--gold-light); }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; padding-bottom: 12px; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px; font-size: 1.05rem; }
}

/* Hero */
.hero { background: radial-gradient(1200px 500px at 20% -10%, rgba(212, 175, 55, 0.18), transparent 60%), linear-gradient(180deg, var(--ink-soft), var(--ink)); color: var(--on-ink); padding: 72px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--on-ink-muted); max-width: 36em; }
.hero-art { position: relative; justify-self: center; width: min(360px, 80vw); aspect-ratio: 1; }
.hero-art img { width: 100%; border-radius: 22%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 120px rgba(212, 175, 55, 0.18); }
.hero-art::before { content: ""; position: absolute; inset: -10%; border-radius: 50%; border: 1px solid rgba(231, 199, 102, 0.22); }
.hero-art::after { content: ""; position: absolute; inset: -22%; border-radius: 50%; border: 1px solid rgba(231, 199, 102, 0.1); }
.page-hero { padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font-weight: 650; text-decoration: none; font-size: 1rem; border: 1px solid transparent; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #b89420); color: var(--on-gold); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: var(--on-ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { background: var(--surface); }
.store-pending { display: inline-flex; flex-direction: column; min-height: 48px; justify-content: center; padding: 8px 18px; border-radius: 14px; border: 1px dashed rgba(231, 199, 102, 0.55); color: var(--gold-light); font-weight: 650; }
.store-pending small { color: var(--on-ink-muted); font-weight: 450; font-size: 0.8rem; }
.light .store-pending { color: var(--gold-text); }
.light .store-pending small { color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
section.alt .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: 8px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(212, 175, 55, 0.14); color: var(--gold-text); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold-light); font-weight: 750; margin-bottom: 14px; }
.steps li p { color: var(--muted); margin: 0; }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.checks li { position: relative; padding-left: 30px; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 2.5px solid var(--gold-text); border-bottom: 2.5px solid var(--gold-text); transform: rotate(-45deg); }
ul.crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.crosses li { position: relative; padding-left: 30px; }
ul.crosses li::before { content: "×"; position: absolute; left: 2px; top: -0.1em; font-size: 1.4rem; color: var(--muted); }
.note { border-left: 4px solid var(--gold); background: var(--surface); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--text); }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Plans table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 480px; background: var(--bg); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
td.num { font-weight: 700; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 650; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--gold-text); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Legal documents */
.doc { max-width: 760px; }
.doc .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.doc h2 { font-size: 1.25rem; margin-top: 2em; scroll-margin-top: 84px; }
.doc p { white-space: pre-line; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { text-decoration: none; }

/* CTA band + footer */
.cta-band { background: linear-gradient(135deg, var(--ink-soft), var(--ink)); color: var(--on-ink); border-radius: 26px; padding: 48px 32px; text-align: center; }
.cta-band p { color: var(--on-ink-muted); max-width: 34em; margin: 0 auto; }
.cta-band .actions { justify-content: center; }
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 40px; font-size: 0.95rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-ink-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 40px; padding-top: 24px; font-size: 0.85rem; }
.footer-legal p { margin: 0 0 6px; }
.preview-banner { background: #8a1c1c; color: #fff; text-align: center; padding: 8px 16px; font-size: 0.9rem; font-weight: 600; }

/* Gentle entrance; disabled for reduced motion and without JS. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Product imagery: real app screens in a phone frame ─────────────────── */
.device { position: relative; margin: 0; width: 100%; max-width: 280px; aspect-ratio: 390 / 844; border-radius: 42px; padding: 9px; background: linear-gradient(160deg, #3a3a40, #121214 45%, #2a2a2f); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #121214; }
.device figcaption { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-size: 0.85rem; color: var(--muted); }

.hero-home { padding: 64px 0 96px; }
.hero-home .wrap { grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-home .wrap { grid-template-columns: 1.05fr 0.95fr; } }
.hero-stack { position: relative; justify-self: center; width: min(520px, 100%); height: clamp(430px, 112vw, 600px); }
.hero-stack .device { position: absolute; max-width: none; }
.hero-stack .front { width: 56%; left: 22%; top: 0; z-index: 2; }
.hero-stack .back-l, .hero-stack .back-r { width: 46%; top: 9%; opacity: 0.9; filter: saturate(0.9); }
.hero-stack .back-l { left: 0; transform: rotate(-7deg); }
.hero-stack .back-r { right: 0; transform: rotate(7deg); }
.hero-stack::before { content: ""; position: absolute; inset: 8% 6% 0; background: radial-gradient(closest-side, rgba(212, 175, 55, 0.28), transparent); filter: blur(10px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.chips li { font-size: 0.85rem; font-weight: 600; color: var(--on-ink); padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.chips li::before { content: "✓"; color: var(--gold-light); margin-right: 6px; }

/* Confidence ladder: how much to rely on a result */
.ladder { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ladder li { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.ladder .level { font-size: 0.78rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.ladder .high { color: #0f6b47; background: rgba(16, 150, 100, 0.12); }
.ladder .medium { color: var(--gold-text); background: rgba(212, 175, 55, 0.16); }
.ladder .low { color: #9a4a10; background: rgba(230, 120, 40, 0.14); }
.ladder .none { color: var(--muted); background: rgba(128, 128, 140, 0.14); }
.ladder p { margin: 0; color: var(--muted); }
@media (prefers-color-scheme: dark) { .ladder .high { color: #5fd4a0; } .ladder .low { color: #f0a465; } }
.label-sample { display: inline-block; font-size: 0.85rem; font-weight: 650; padding: 2px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }

/* Screen gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 28px; overflow-x: auto; padding: 8px 4px 52px; scroll-snap-type: x mandatory; }
.gallery .device { scroll-snap-align: center; justify-self: center; max-width: 260px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
@media (min-width: 900px) { .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.media-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .media-split { grid-template-columns: 1.1fr 0.9fr; } .media-split.flip > :first-child { order: 2; } }
.media-split .device { justify-self: center; }
.kicker { font-size: 0.8rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; display: block; }
.fine { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 959px) {
  .hero-home { padding: 48px 0 40px; }
  .hero-stack { height: clamp(420px, 126vw, 600px); }
  .hero-stack .front { width: 62%; left: 19%; }
  .hero-stack .back-l, .hero-stack .back-r { width: 48%; }
}
@media (max-width: 720px) {
  section { padding: 48px 0; }
  .page-hero { padding: 40px 0 8px; }
}
