/* Collector's Pocket Book — marketing site
   Brand tokens from Collectors pocket book website/00-BRAND-KIT.md.
   Brand colors are constant; only neutrals change between modes. Dark is default. */

:root {
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-100: #ccfbf1;
  --amber: #eab308;
  --indigo: #6366f1;

  --bg: #020617;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --border: #1e293b;
  --border-strong: #334155;
  --text: #e2e8f0;
  --text-strong: #ffffff;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --glow: rgba(20, 184, 166, 0.16);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1160px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-strong: #020617;
  --text-muted: #475569;
  --text-faint: #64748b;
  --glow: rgba(20, 184, 166, 0.12);
  --shadow: 0 30px 70px -35px rgba(15, 23, 42, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--text-strong); margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: 16px;
}
.lead { font-size: clamp(17px, 2.1vw, 21px); color: var(--text-muted); max-width: 640px; }
.muted { color: var(--text-muted); }
.grad { background: linear-gradient(100deg, var(--brand-500), var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.brand-by { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-muted); margin-top: 2px; }
.nav-links { display: none; gap: 26px; margin-left: 12px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-strong); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="light"] .theme-sun { display: block; }
:root[data-theme="light"] .theme-moon { display: none; }
.signin { display: none; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.signin:hover { color: var(--text-strong); }
.menu-btn { display: grid; }
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 12px 16px 20px; }
.mobile-menu.open { display: grid; gap: 4px; }
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
@media (min-width: 900px) {
  .nav-links, .signin { display: flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-500); color: #021b18; }
.btn-primary:hover { background: #2dd4bf; }
.btn-ghost { border-color: var(--border-strong); color: var(--text-strong); }
.btn-ghost:hover { border-color: var(--text-faint); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; position: relative; }
@media (min-width: 900px) { section { padding: 120px 0; } }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 96px 0 120px; } }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; gap: 56px; align-items: center; position: relative; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { font-size: clamp(42px, 7vw, 80px); font-weight: 900; margin-bottom: 24px; }
.hero h1 em { font-style: italic; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 20px; }
.fine { font-size: 13px; color: var(--text-faint); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
@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: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; line-height: 1.25; }
.card p { color: var(--text-muted); font-size: 15px; margin: 0; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: color-mix(in srgb, var(--brand-500) 12%, transparent); color: var(--brand-500);
}
.card .ico svg { width: 22px; height: 22px; }
.card .ico.amber { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); }
.card .ico.indigo { background: color-mix(in srgb, var(--indigo) 16%, transparent); color: #818cf8; }
.tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-faint); margin-left: 6px; vertical-align: middle;
}
.tag.live { border-color: color-mix(in srgb, var(--brand-500) 50%, transparent); color: var(--brand-500); }
.tag.soon { border-color: color-mix(in srgb, var(--amber) 45%, transparent); color: var(--amber); }

/* ---------- Mock device (illustration, not a screenshot) ---------- */
.device {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 32px; padding: 18px;
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--brand-500) 18%, transparent);
  max-width: 440px; margin: 0 auto; width: 100%;
}
.device-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 16px; font-size: 12px; color: var(--text-faint); font-weight: 600; }
.device-bar b { color: var(--text-strong); font-style: italic; font-weight: 900; letter-spacing: -0.01em; font-size: 14px; }
.vault-total { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 18px; margin-bottom: 12px; }
.vault-total small { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.vault-total strong { font-size: 32px; color: var(--text-strong); font-weight: 800; letter-spacing: -0.02em; }
.vault-total .up { color: var(--brand-500); font-size: 13px; font-weight: 700; margin-left: 6px; }
.spark { height: 46px; margin-top: 8px; }
.piece { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--border); margin-top: 8px; background: var(--bg); }
.thumb { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.t1 { background: linear-gradient(135deg, #f97316, #eab308); }
.t2 { background: linear-gradient(135deg, #64748b, #cbd5e1); }
.t3 { background: linear-gradient(135deg, #6366f1, #14b8a6); }
.piece div { min-width: 0; flex: 1; }
.piece b { display: block; color: var(--text-strong); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.piece span { font-size: 12px; color: var(--text-faint); }
.piece em { font-style: normal; font-weight: 700; color: var(--text-strong); font-size: 14px; }

/* ---------- Promises ---------- */
.promise { padding: 34px; }
.promise .num { font-size: 13px; font-weight: 800; color: var(--text-faint); letter-spacing: .2em; margin-bottom: 18px; display: block; }
.promise h3 { font-size: 26px; margin-bottom: 14px; }
.promise ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.promise li { display: flex; gap: 10px; font-size: 15px; color: var(--text-muted); }
.promise li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); margin-top: 9px; }

/* ---------- Provenance timeline ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.timeline { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.timeline h4 { font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.timeline h4 span { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.tl li { position: relative; padding: 0 0 20px 32px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.tl li.k::before { border-color: var(--brand-500); background: color-mix(in srgb, var(--brand-500) 25%, var(--surface)); }
.tl li.x::before { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 25%, var(--surface)); }
.tl b { color: var(--text-strong); font-size: 15px; display: block; }
.tl span { font-size: 13px; color: var(--text-faint); }
.handoff { margin: 6px 0 20px 32px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }

/* ---------- Network diagram ---------- */
.network { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand-500) 5%, transparent) 40%, transparent); }
.net-figure { position: relative; max-width: 760px; margin: 0 auto 60px; }
.net-figure svg { width: 100%; height: auto; }
.net-figure .node-label { font: 600 13px Inter, sans-serif; fill: var(--text); }
.net-figure .hub-label { font: 900 16px Inter, sans-serif; fill: var(--text-strong); font-style: italic; }
.net-figure .line { stroke: var(--border-strong); stroke-width: 1.5; }
.net-figure .pulse { stroke: var(--brand-500); stroke-width: 2; stroke-dasharray: 6 10; animation: flow 3.5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -64; } }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 18px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 40px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.03em; margin: 12px 0 2px; }
.plan .price small { font-size: 15px; color: var(--text-faint); font-weight: 600; letter-spacing: 0; }
.plan .tagline { font-size: 14px; color: var(--text-muted); min-height: 44px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; font-size: 14px; color: var(--text-muted); flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 16px; height: 16px; color: var(--brand-500); margin-top: 3px; }
.plan.featured { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), var(--shadow); }
.plan.premium { border-color: color-mix(in srgb, var(--indigo) 60%, transparent); }
.badge { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #1c1400; background: var(--amber); padding: 5px 10px; border-radius: 999px; margin-bottom: 8px; }
.plan .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq h3 { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--brand-500); margin: 48px 0 12px; }
details { border-bottom: 1px solid var(--border); }
summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--text-strong); display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-faint); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-muted); padding: 0 0 20px; margin: 0; max-width: 720px; }

/* ---------- Prose (legal, about) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand-500); text-decoration: underline; text-underline-offset: 3px; }
.notice { border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 8%, transparent); color: var(--text); border-radius: 14px; padding: 14px 18px; font-size: 14px; margin: 20px 0 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: 64px 28px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand-500) 22%, var(--surface)), color-mix(in srgb, var(--indigo) 22%, var(--surface)));
  border: 1px solid var(--border-strong);
}
.cta-band h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; font-size: 14px; color: var(--text-faint); }
.foot { display: grid; gap: 32px; }
@media (min-width: 820px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a:hover { color: var(--text-strong); }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Phones: the hero CTA sits right below, so the nav button goes; brand may shrink. */
@media (max-width: 560px) {
  .nav-right > .btn { display: none; }
  .brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .nav .wrap { gap: 12px; }
}
.piece span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-grid > *, .split > * { min-width: 0; }
