/* CardScout website — colors and type follow the app (src/theme/palette.json, dark) */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-700Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("../fonts/inter-800ExtraBold.woff2") format("woff2"); }

:root {
  --canvas: #0c0c0e;
  --surface: #141417;
  --raised: #1c1c21;
  --elevated: #2a2a31;
  --line: #26262c;
  --ink: #f4f1ea;
  --sub: #b9b5ac;
  --muted: #8a8780;
  --faint: #6b6862;
  --gold: #c9a96e;
  --gold-bright: #e6cf9d;
  --gold-deep: #8e713f;
  --gold-soft: rgba(201, 169, 110, 0.12);
  --on-gold: #14110b;
  --live: #f0565b;

  --radius-card: 22px;
  --radius-lg: 28px;
  --gutter: 16px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, 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; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.brand-mark { width: 30px; height: 30px; }
.brand img.brand-word { height: 18px; width: auto; }
.nav { display: none; gap: 28px; }
.nav a { color: var(--sub); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font: 600 14px/1 "Inter", sans-serif; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--faint); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.gold-text {
  background: linear-gradient(100deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; margin-top: 14px; }
.section-head p { color: var(--sub); font-size: 17px; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(201, 169, 110, 0.18), rgba(201, 169, 110, 0) 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.25;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 104px; } .hero .container { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 800; letter-spacing: -0.035em; margin-top: 18px; }
.hero-lede { color: var(--sub); font-size: clamp(17px, 2vw, 19px); max-width: 540px; margin-top: 22px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.store-badge { position: relative; display: inline-flex; border-radius: 10px; transition: transform 0.2s var(--ease), opacity 0.2s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 52px; width: auto; }
.store-badge.is-coming-soon { cursor: default; }
.store-badge.is-coming-soon:hover { transform: none; }
.store-badge.is-coming-soon img { opacity: 0.55; filter: grayscale(0.4); }
.store-badge .soon-tag {
  /* Sits above the badge so it never covers the official artwork */
  display: none; position: absolute; top: -19px; right: -4px;
  background: var(--gold); color: var(--on-gold);
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.store-badge.is-coming-soon .soon-tag { display: block; }

/* ---------- Phone mockup ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 620px; flex: none;
  border-radius: 50px; padding: 12px;
  background: linear-gradient(145deg, #2c2c33, #121215 60%);
  box-shadow: 0 0 0 1px #34343c, 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 30px 80px -40px rgba(201, 169, 110, 0.35);
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 72px; border-radius: 0 3px 3px 0; background: #2a2a31;
}
.screen { position: relative; height: 100%; border-radius: 40px; background: var(--canvas); overflow: hidden; display: flex; flex-direction: column; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0; height: 46px; font-size: 12px; font-weight: 600; }
.statusbar .sys { display: flex; gap: 5px; align-items: center; }
.statusbar .sys i { display: block; width: 15px; height: 9px; border-radius: 2px; border: 1.5px solid var(--ink); position: relative; }
.statusbar .sys i::after { content: ""; position: absolute; inset: 1px; right: 3px; background: var(--ink); border-radius: 1px; }
.statusbar .sys b { display: block; width: 14px; height: 9px; background: linear-gradient(90deg, var(--ink) 0 22%, transparent 22% 30%, var(--ink) 30% 52%, transparent 52% 60%, var(--ink) 60% 82%, transparent 82%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.app-body { flex: 1; padding: 6px 16px 0; overflow: hidden; }
.app-title { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.app-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.chips { display: flex; gap: 6px; margin: 12px 0 14px; }
.chip { font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--raised); color: var(--sub); white-space: nowrap; }
.chip.is-on { background: var(--gold); color: var(--on-gold); }

.show-card { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; margin-bottom: 10px; overflow: hidden; }
.show-card-main { display: flex; gap: 11px; padding: 12px; align-items: center; }
.date-tile { flex: none; width: 44px; height: 48px; border-radius: 13px; background: var(--gold-soft); border: 1px solid rgba(201, 169, 110, 0.25); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-tile .m { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.date-tile .d { font-size: 19px; font-weight: 800; margin-top: 3px; }
.show-meta { min-width: 0; flex: 1; }
.show-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-when, .show-where { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-where::before { content: "⌖ "; color: var(--faint); }
.heart { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; color: var(--muted); }
.heart.is-on { color: var(--gold); background: var(--gold-soft); }
.heart svg { width: 14px; height: 14px; }
.show-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin: 0 12px; padding: 9px 0; font-size: 11px; color: var(--muted); }
.going { display: flex; align-items: center; gap: 6px; }
.going .stack { display: flex; }
.going .stack span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -6px; font-size: 8px; font-weight: 700; display: grid; place-items: center; color: var(--on-gold); }
.going .stack span:first-child { margin-left: 0; }
.pill { font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--raised); color: var(--sub); }

.tabbar { display: flex; justify-content: space-around; padding: 10px 8px 20px; border-top: 1px solid var(--line); background: rgba(20, 20, 23, 0.92); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 600; color: var(--faint); }
.tab svg { width: 19px; height: 19px; }
.tab.is-on { color: var(--gold); }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 18px;
  background: rgba(28, 28, 33, 0.86); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.8);
  font-size: 12.5px; max-width: 240px;
}
.float-card .ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.float-card .ic svg { width: 18px; height: 18px; }
.float-card strong { display: block; font-size: 12.5px; }
.float-card small { color: var(--muted); font-size: 11.5px; }
/* Anchored to the phone; they overlap only its frame, never the screen content */
.float-card.notif { top: -30px; left: -130px; }
.float-card.vouch { bottom: -22px; right: -110px; }
@media (min-width: 960px) and (max-width: 1180px) { .float-card.notif { left: -90px; } .float-card.vouch { right: -40px; } }
@media (max-width: 640px) { .float-card { display: none; } }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 20, 23, 0.6), rgba(12, 12, 14, 0)); }
.stats .container { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .stats .container { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 30px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 819px) { .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
.stat strong { display: block; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Feature grid ---------- */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius-card);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.feature:hover { border-color: rgba(201, 169, 110, 0.4); transform: translateY(-3px); }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 20px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--sub); font-size: 15px; margin-top: 8px; }

/* ---------- Spotlights ---------- */
.spotlight { display: grid; gap: 48px; align-items: center; }
.spotlight + .spotlight { margin-top: 112px; }
@media (min-width: 920px) {
  .spotlight { grid-template-columns: 1fr 1fr; gap: 80px; }
  .spotlight.flip .spot-visual { order: -1; }
}
.spot-copy h3 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; margin-top: 14px; }
.spot-copy > p { color: var(--sub); font-size: 17px; margin-top: 16px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--sub); font-size: 15.5px; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.checks strong { color: var(--ink); font-weight: 600; }

.spot-visual {
  position: relative; border-radius: var(--radius-lg); padding: 28px;
  background: radial-gradient(120% 90% at 20% 0%, rgba(201, 169, 110, 0.14), rgba(201, 169, 110, 0) 60%), var(--surface);
  border: 1px solid var(--line);
  min-height: 360px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.panel { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.panel-row { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--on-gold); }
.av1 { background: linear-gradient(135deg, #e6cf9d, #a8834a); }
.av2 { background: linear-gradient(135deg, #b9d3f0, #5d7ea6); }
.av3 { background: linear-gradient(135deg, #f0c2b9, #b0675a); }
.av4 { background: linear-gradient(135deg, #c8e6c4, #5f9a6a); }
.av5 { background: linear-gradient(135deg, #d9c8f0, #7d65a8); }
.panel-name { font-weight: 600; font-size: 15px; }
.panel-detail { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 12px; }
.badge-going { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--gold); background: var(--gold-soft); padding: 4px 9px; border-radius: 999px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--sub); }
.quote { color: var(--sub); font-size: 14px; margin-top: 10px; line-height: 1.5; }

.notif-panel { display: flex; gap: 12px; align-items: flex-start; }
.notif-panel .app-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.notif-panel .app-ic img { width: 28px; height: 28px; }
.notif-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.notif-head b { color: var(--sub); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.notif-title { font-weight: 700; font-size: 14.5px; margin-top: 2px; }
.notif-body { color: var(--sub); font-size: 13.5px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.cal span { padding: 7px 0; border-radius: 9px; }
.cal .h { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); }
.cal .ev { background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.cal .today { background: var(--gold); color: var(--on-gold); font-weight: 700; }

.profile-head { text-align: center; padding: 6px 0 4px; }
.profile-head .avatar { width: 72px; height: 72px; font-size: 24px; margin: 0 auto; box-shadow: 0 0 0 3px var(--canvas), 0 0 0 5px var(--gold); }
.profile-head h4 { font-size: 20px; margin-top: 14px; }
.profile-head p { color: var(--muted); font-size: 13px; }
.profile-stats { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.socials-row { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.socials-row span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.qr-mini { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; width: 92px; padding: 8px; background: #fff; border-radius: 12px; }
.qr-mini i { aspect-ratio: 1; background: #0c0c0e; border-radius: 1px; }
.qr-mini i.o { background: transparent; }
@media (max-width: 480px) { .qr-mini { display: none; } }

.map-visual { padding: 0; overflow: hidden; min-height: 380px; justify-content: flex-end; }
.map-bg { position: absolute; inset: 0; background:
  radial-gradient(circle at 30% 40%, rgba(201, 169, 110, 0.09) 0 80px, transparent 81px),
  linear-gradient(115deg, transparent 47%, #1e1e23 47% 49%, transparent 49%),
  linear-gradient(25deg, transparent 62%, #1e1e23 62% 63.5%, transparent 63.5%),
  linear-gradient(160deg, transparent 30%, #1e1e23 30% 31%, transparent 31%),
  linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px),
  #111114;
  background-size: auto, auto, auto, auto, 38px 38px, 38px 38px, auto; }
.pin { position: absolute; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); display: grid; place-items: center; }
.pin::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-gold); }
.pin.shop { background: #e9e5dc; }
.pin.shop::after { background: #0c0c0e; }
.map-sheet { position: relative; margin: 20px; }

/* ---------- Organizers ---------- */
.organizer {
  display: grid; gap: 28px; align-items: center; padding: 44px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.16), rgba(201, 169, 110, 0.02) 55%), var(--surface);
  border: 1px solid rgba(201, 169, 110, 0.3);
}
@media (min-width: 860px) { .organizer { grid-template-columns: 1.4fr 1fr; padding: 56px; } }
.organizer h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-top: 12px; }
.organizer p { color: var(--sub); margin-top: 12px; font-size: 16.5px; }
.organizer .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) { .organizer .actions { justify-content: flex-end; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); font-weight: 500; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--sub); padding: 0 40px 22px 0; }
.faq a { color: var(--gold); }

/* ---------- Final CTA ---------- */
.cta { position: relative; text-align: center; padding: 96px 0 104px; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 900px; height: 520px; background: radial-gradient(closest-side, rgba(201, 169, 110, 0.16), transparent); pointer-events: none; }
.cta .container { position: relative; }
.cta img.cta-icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto; box-shadow: 0 20px 50px -14px rgba(201, 169, 110, 0.45); }
.cta h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin-top: 28px; }
.cta p { color: var(--sub); font-size: 18px; margin: 16px auto 0; max-width: 520px; }
.cta .store-badges { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; transition: color 0.2s; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { margin-top: 14px; max-width: 300px; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--sub); }
.social-links a:hover { color: var(--gold); border-color: rgba(201, 169, 110, 0.5); }
.social-links svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Legal / text pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 0 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; margin-top: 14px; }
.doc .updated { color: var(--muted); margin-top: 12px; font-size: 14px; }
.doc .summary { margin-top: 32px; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--sub); }
.doc .summary strong { color: var(--ink); }
.doc h2 { font-size: 22px; font-weight: 700; margin: 48px 0 12px; scroll-margin-top: 90px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--sub); font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.doc a { color: var(--gold); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--sub); }
.doc th { color: var(--ink); font-weight: 600; background: var(--surface); }
.doc .toc { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc .toc a { text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--sub); }
.doc .toc a:hover { color: var(--ink); border-color: var(--faint); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 60px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 700; display: grid; place-items: center; font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
