/* MintScan TCG website. Brand colours as in the app (CLAUDE.md): gold, graphite and cream; the hero
   uses the icon's gold (#F0BC1D) so the logo pieces sit on it with no edge. */

@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/assets/fonts/Nunito-400.ttf) format('truetype'); }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/assets/fonts/Nunito-600.ttf) format('truetype'); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/assets/fonts/Nunito-800.ttf) format('truetype'); }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(/assets/fonts/Nunito-900.ttf) format('truetype'); }

:root {
  --gold: #f9c927;
  --bright: #ffd93d;
  --cream: #fce38a;
  --icon-gold: #f0bc1d;
  --graphite: #1c1d1e;
  --ink: #1c1d1e;
  --bg: #161718;
  --surface: #222326;
  --surface-2: #2a2b2f;
  --line: #333438;
  --text: #f4f2ec;
  --muted: #a9a9ae;
  --radius: 24px;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Nunito, ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--bright); }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--gold); font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--gold);
  font: 800 17px/1 Nunito, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { color: var(--bright); background: #000; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- Header ---------- */

.top { position: sticky; top: 0; z-index: 20; background: rgba(22, 23, 24, .82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top { transition: background-color .25s ease, border-color .25s ease; }
.top--gold { background: rgba(240, 188, 29, .9); border-bottom-color: rgba(28, 29, 30, .08); }
.top--gold.is-past { background: rgba(22, 23, 24, .82); border-bottom-color: var(--line); }
.top--gold.is-past .brand, .top--gold.is-past .top__lang { color: var(--text); }
.top--gold.is-past .top__link { color: var(--muted); }
.top--gold.is-past .btn--small { background: var(--gold); color: var(--ink); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.top--gold .brand, .top--gold .top__link, .top--gold .top__lang { color: var(--ink); }
.top__nav { display: flex; align-items: center; gap: 6px; }
.top__link, .top__lang { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; }
.top__link:hover, .top__lang:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.top--gold .top__link:hover, .top--gold .top__lang:hover { color: var(--ink); background: rgba(28, 29, 30, .08); }
.top__lang { font-weight: 900; letter-spacing: .04em; }
.top .btn--small { background: var(--gold); color: var(--ink); }
.top .btn--small:hover { background: var(--bright); color: var(--ink); }
.top--gold .btn--small, .top--gold .btn--small:hover { background: var(--ink); color: var(--gold); }

/* ---------- Hero (gold, like the app's first screen) ---------- */

.hero { background: var(--icon-gold); color: var(--ink); padding: 24px 0 72px; overflow: hidden; }
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { font-weight: 900; font-size: clamp(40px, 6.6vw, 72px); letter-spacing: -.025em; line-height: 1.04; max-width: 20ch; }
.lead { margin-top: 18px; max-width: 34em; font-size: clamp(17px, 2.1vw, 20px); font-weight: 600; color: rgba(28, 29, 30, .78); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 20px; padding: 7px 14px;
  border-radius: 999px; background: rgba(28, 29, 30, .1); font-weight: 800; font-size: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.badge .dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .5; } }

/* The app's logo: the cards, and the four cream corners coming in and then "focusing". */
.logo { position: relative; width: min(64vw, 300px); aspect-ratio: 1; container-type: inline-size; margin-bottom: 4px; }
.logo img { position: absolute; display: block; }
.logo__cards { inset: 0; width: 100%; height: 100%; animation: fade .6s ease both; }
.logo__corner { --dx: 1; --dy: 1; animation: come .9s cubic-bezier(.2, .9, .3, 1.25) .15s both, breathe 2.2s ease-in-out 1.3s infinite; }
.logo__corner--tl { --dx: -1; --dy: -1; }
.logo__corner--tr { --dy: -1; }
.logo__corner--bl { --dx: -1; }
@keyframes fade { from { opacity: 0; } }
@keyframes come { from { opacity: 0; transform: translate(calc(var(--dx) * 16cqw), calc(var(--dy) * 16cqw)); } }
@keyframes breathe { 50% { transform: translate(calc(var(--dx) * 2.2cqw), calc(var(--dy) * 2.2cqw)); } }

/* Waitlist form */
.join { width: min(100%, 520px); margin-top: 32px; }
.join__row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(28, 29, 30, .1); }
.join input[type='email'] {
  flex: 1; min-width: 0; height: 56px; padding: 0 22px; border: 2px solid transparent; border-radius: 999px;
  background: #fff8dc; color: var(--ink); font: 700 17px Nunito, system-ui, sans-serif;
}
.join input[type='email']::placeholder { color: rgba(28, 29, 30, .45); }
.join input[type='email']:focus { outline: none; border-color: var(--ink); }
.join input[aria-invalid='true'] { border-color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; text-align: left; font-size: 14px; font-weight: 600; line-height: 1.45; color: rgba(28, 29, 30, .8); cursor: pointer; }
.join__consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.join__consent a, .hero a { color: var(--ink); font-weight: 800; }
.join__status { min-height: 1.5em; margin-top: 12px; font-weight: 800; font-size: 15px; }
.join__status.is-error { color: #8a1c12; }
.join.is-done .join__row, .join.is-done .join__consent { display: none; }
.join.is-done .join__status { padding: 16px 20px; border-radius: 18px; background: var(--ink); color: var(--gold); font-size: 16px; }
.hero__note { margin-top: 6px; font-size: 14px; font-weight: 700; color: rgba(28, 29, 30, .6); }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section--tight { padding: 24px 0; }
.h2 { font-weight: 900; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.02em; text-align: center; }
.sub { margin: 12px auto 0; max-width: 32em; text-align: center; color: var(--muted); font-size: 18px; }

.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.tile { padding: 20px 20px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tile h3 { margin-top: 22px; font-weight: 900; font-size: 22px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.tile p { margin-top: 8px; color: var(--muted); }
.tile .tile__note { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--cream); }
.tag { padding: 3px 9px; border-radius: 999px; background: rgba(249, 201, 39, .14); color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }

/* Feature pictures */
.art {
  position: relative; display: grid; place-items: center; height: 240px; overflow: hidden; border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(249, 201, 39, .16), transparent 60%), var(--bg);
}
.panel { width: min(86%, 300px); padding: 18px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.panel__label { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.panel__value { margin-top: 2px; font-size: 32px; font-weight: 900; letter-spacing: -.02em; }
.panel__source { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.panel__source .dot { background: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(249, 201, 39, .14); color: var(--gold); font-size: 13px; font-weight: 800; }
.spark { display: block; width: 100%; height: 48px; margin-top: 10px; }
.spark polyline { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.mini-card { width: 74px; height: 103px; border-radius: 9px; border: 4px solid var(--gold); background: radial-gradient(circle at 50% 46%, transparent 15px, var(--gold) 15px 18px, transparent 18px), linear-gradient(160deg, #2a2b2f, #121314); }
.mini-card--big { width: 112px; height: 156px; border-radius: 12px; border-width: 6px; background: radial-gradient(circle at 50% 46%, transparent 22px, var(--gold) 22px 26px, transparent 26px), linear-gradient(160deg, #2a2b2f, #121314); }
.viewfinder { position: relative; display: grid; place-items: center; width: 180px; height: 200px; }
.viewfinder i { position: absolute; width: 38px; height: 38px; border: 6px solid var(--cream); }
.viewfinder i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.viewfinder i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.viewfinder i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.viewfinder i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.art--scan { gap: 0; }
.art--scan .chip { position: absolute; bottom: 16px; margin: 0; background: var(--gold); color: var(--ink); }
.tick { width: 14px; height: 8px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
.grade { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; font-weight: 800; }
.grade em { font-style: normal; color: var(--text); }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--bright)); }
.w80 { width: 80%; } .w90 { width: 90%; } .w95 { width: 95%; }
.art--collection { grid-template-columns: auto auto; gap: 20px; }
.fan { position: relative; width: 120px; height: 130px; }
.fan .mini-card { position: absolute; left: 22px; top: 12px; }
.fan .mini-card:nth-child(1) { transform: rotate(-14deg) translateX(-18px); }
.fan .mini-card:nth-child(3) { transform: rotate(12deg) translateX(20px); }
.panel--total { width: auto; }

/* Promise */
.promise { display: flex; gap: 24px; align-items: center; padding: 32px; border-radius: var(--radius); border: 1px solid rgba(249, 201, 39, .28); background: linear-gradient(135deg, rgba(249, 201, 39, .1), rgba(249, 201, 39, .02)); }
.promise h2 { font-weight: 900; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.015em; }
.promise p { margin-top: 8px; color: var(--muted); max-width: 44em; }
.promise__icon { flex: none; width: 64px; height: 64px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq .h2 { text-align: left; position: sticky; top: 100px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--gold); font-size: 20px; font-weight: 800; transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 44px 22px 0; color: var(--muted); }

/* Final call */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: var(--radius); background: var(--icon-gold); color: var(--ink); }
.cta h2 { font-weight: 900; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; }
.cta p { margin-top: 6px; font-weight: 700; color: rgba(28, 29, 30, .72); }

/* ---------- Footer ---------- */

.foot { margin-top: 72px; padding: 56px 0 40px; border-top: 1px solid var(--line); background: #121314; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot__brand p { margin-top: 12px; color: var(--muted); max-width: 22em; }
.foot__title { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot ul a:hover { color: var(--gold); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- Legal and help pages ---------- */

.doc { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 56px 0 24px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc__title { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 700; }
.toc a:hover { color: var(--text); background: var(--surface); }
.prose { max-width: 720px; }
.eyebrow { color: var(--gold); font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.prose h1, .missing h1 { margin-top: 10px; font-weight: 900; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.02em; }
.updated { margin-top: 12px; color: var(--muted); font-size: 15px; font-weight: 700; }
.intro { margin-top: 24px; font-size: 19px; }
.prose section { margin-top: 40px; padding-top: 8px; }
.prose h2 { font-weight: 900; font-size: 24px; letter-spacing: -.01em; }
.prose section p, .prose section ul, .prose section ol { margin-top: 12px; color: #d9d7d1; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); }
.back { margin-top: 56px; font-weight: 800; }
.missing { padding: 96px 0; text-align: center; }
.missing p { margin-top: 14px; color: var(--muted); }
.missing .btn { margin-top: 28px; background: var(--gold); color: var(--ink); }

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .bento, .faq, .doc { grid-template-columns: 1fr; }
  .faq { gap: 24px; }
  .faq .h2 { position: static; text-align: center; }
  .toc { display: none; }
  .doc { padding-top: 32px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top__link { display: none; }
  .brand span { font-size: 16px; }
  .hero { padding-bottom: 56px; }
  .join__row { flex-direction: column; border-radius: 28px; }
  .join input[type='email'] { flex: none; width: 100%; }
  .join .btn { width: 100%; }
  .section { padding: 64px 0; }
  .art { height: 220px; }
  .promise { flex-direction: column; align-items: flex-start; padding: 24px; }
  .qa p { padding-right: 0; }
  .cta .btn { width: 100%; }
}

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

/* Logo corners (from build.mjs) */
.logo__corner--tl{left:9.961%;top:9.570%;width:27.441%;height:25.781%}
.logo__corner--tr{left:63.281%;top:9.473%;width:27.539%;height:25.586%}
.logo__corner--bl{left:9.863%;top:63.281%;width:27.637%;height:25.488%}
.logo__corner--br{left:63.086%;top:63.379%;width:27.734%;height:25.391%}
