/* tcgview.life. Written by hand (make_pages.py writes the pages, not this file).
   The look of the approved store art (TCGView-branding/BRAND.md): a deep black-to-navy field with a soft
   holo-foil glow (violet #9943E1, blue #4666E3, magenta #E544B1), white Inter 800 headlines with the last
   line on a gold #FBD436 marker, ink #1E1600 on the gold. Dark only, like the app's Midnight gold. */

@font-face {
  font-family: "Inter TCG";
  src: url("/assets/inter-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07070a;
  --surface: #111116;
  --surface-2: #18181f;
  --line: #2a2a33;
  --ink: #f4f4f6;
  --text: #d6d6de;
  --muted: #a3a3ae;
  --gold: #fbd436;
  --gold-ink: #1e1600;
  --violet: #9943e1;
  --blue: #4666e3;
  --magenta: #e544b1;
  --display: "Inter TCG", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 36rem at 8% -6rem, rgba(153, 67, 225, 0.20), transparent 70%),
    radial-gradient(56rem 34rem at 96% 2rem, rgba(70, 102, 227, 0.20), transparent 70%),
    radial-gradient(40rem 30rem at 50% 30rem, rgba(229, 68, 177, 0.07), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 0.12em; text-underline-offset: 0.2em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--gold); color: var(--gold-ink); font-weight: 700; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 20px; }

/* Headlines: white Inter 800, the last line on the gold marker. */
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h1 mark, h2 mark {
  display: table;
  margin-top: 0.08em;
  padding: 0.02em 0.16em 0.06em;
  border-radius: 0.14em;
  background: var(--gold);
  color: var(--gold-ink);
}

/* Header and footer */
.site-header { padding: 18px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: var(--ink); }
.top-nav { display: flex; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; }
.top-nav a, .switch { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0; }
.top-nav a:hover, .switch:hover { color: var(--gold); }
.switch { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.2em; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.site-footer p { margin: 0 0 8px; max-width: 52rem; }
.site-footer a { color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; font-size: 15px; }

/* The product page */
.hero { padding: 24px 0 40px; }
.hero-row { display: grid; gap: 40px; align-items: center; }
.app-name { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; line-height: 1.15; }
.app-name img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(251, 212, 54, 0.25), 0 10px 30px rgba(0, 0, 0, 0.5); }
.app-name small { display: block; font-family: var(--body); font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.hero h1 { font-size: clamp(2.6rem, 5.2vw + 1rem, 5.2rem); line-height: 1.02; }
.lead { font-size: 1.15rem; color: var(--text); margin: 22px 0 26px; max-width: 34rem; }
.fine { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

/* Apple's badge: 48 px high (the minimum is 40), clear space of a quarter of its height (12 px) that
   nothing else enters, never changed or dimmed. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.badge { display: inline-flex; align-items: center; padding: 12px; margin: -12px 0 -12px -12px; border-radius: 12px; text-decoration: none; }
.badge img { width: 144px; height: 48px; }
.soon-label { margin-left: 24px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.android { flex-basis: 100%; margin: 14px 0 0; color: var(--muted); font-size: 15px; }

.phone {
  margin: 0 auto;
  width: min(300px, 76vw);
  padding: 9px;
  border-radius: 15.5% / 7.2%;
  background: linear-gradient(160deg, #34343c, #131317 40%, #1d1d23);
  box-shadow: 0 0 0 1px #3b3b45, 0 40px 90px -20px rgba(0, 0, 0, 0.8), 0 0 80px -10px rgba(153, 67, 225, 0.35);
}
.phone img { width: 100%; border-radius: 12.8% / 5.9%; background: #000; }

.feature { padding: 64px 0; }
.feature-row { display: grid; gap: 40px; align-items: center; }
.feature-text { max-width: 34rem; }
.feature h2 { font-size: clamp(2rem, 3vw + 1rem, 3.4rem); line-height: 1.05; margin-bottom: 20px; }
.feature p { margin: 0 0 14px; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px !important; }
.points { list-style: none; padding: 0; margin: 18px 0 0; }
.points li { position: relative; padding-left: 22px; margin: 0 0 8px; }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.film { padding: 48px 0 24px; }
.small-h { font-size: 15px; font-family: var(--body); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.film-frame { position: relative; margin: 0; }
.film-frame video { width: 100%; aspect-ratio: 1280 / 548; border-radius: 22px; background: #0b0b12; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(70, 102, 227, 0.5); }
.film-frame figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }
.film-toggle {
  position: absolute; right: 14px; top: 14px;
  font: 600 14px/1 var(--body); color: var(--ink); background: rgba(7, 7, 10, 0.72);
  border: 1px solid #44444f; border-radius: 999px; padding: 9px 16px; min-height: 36px; cursor: pointer;
}
.film-toggle:hover { border-color: var(--gold); }

.plans { display: grid; gap: 14px; margin: 24px 0 4px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.plan-gold { border-color: rgba(251, 212, 54, 0.7); box-shadow: 0 0 40px -18px rgba(251, 212, 54, 0.55); }
.plan h3 { font-size: 1.3rem; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.amount { color: var(--gold); font-size: 1.05rem; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { position: relative; padding-left: 22px; margin: 0 0 6px; font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 1px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

.private { padding: 64px 0; }
.private h2 { font-size: clamp(2rem, 3vw + 1rem, 3.4rem); line-height: 1.05; margin-bottom: 28px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.facts h3 { font-size: 1.15rem; margin-bottom: 6px; }
.facts p { margin: 0; font-size: 16px; }

.cta { padding: 24px 0 72px; }
.cta-box {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  padding-top: 48px; padding-bottom: 48px; border-radius: 28px;
  background:
    radial-gradient(30rem 16rem at 20% 0, rgba(153, 67, 225, 0.25), transparent 70%),
    radial-gradient(30rem 16rem at 80% 100%, rgba(70, 102, 227, 0.25), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  max-width: calc(72rem - 40px);
}
.cta-box img { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 22px; }
.cta-box h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1.05; }
.cta-box h2 mark { margin-left: auto; margin-right: auto; }
.cta-box p { margin: 16px 0 24px; }
.cta-box .stores { justify-content: center; }
.cta-box .badge { margin: -12px; }
.cta-box .android { text-align: center; margin-top: 18px; }

/* Support, Privacy, Terms */
.doc { padding-top: 32px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(2rem, 3vw + 1.2rem, 3rem); line-height: 1.1; margin: 0 0 10px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.doc h2 { font-family: var(--body); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 36px 0 8px; }
.doc p { margin: 0 0 14px; overflow-wrap: anywhere; }
.doc ul { margin: 0 0 14px; padding-left: 1.3em; }
.doc li { margin: 0 0 8px; overflow-wrap: anywhere; }
.doc .lead { margin-top: 0; }
.updated { color: var(--muted); font-size: 15px; }
.covers { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 16px; }
.verbatim { white-space: pre-line; color: var(--muted); font-size: 15px; }
.note { margin-top: 36px !important; color: var(--muted); }

.platforms { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px 2px; margin: 8px 0 16px; }
li.platforms { list-style: none; margin-left: -1.3em; padding-bottom: 2px; }
.platforms p { margin: 0 0 12px; }
.os {
  display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid #3a3a44; color: var(--gold);
  font-size: 13px; font-weight: 700; line-height: 1.6; vertical-align: 1px; white-space: nowrap;
}

.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 32px 14px 0; font-weight: 650; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--gold); font-weight: 400; font-size: 24px; line-height: 1.4; }
.faq details[open] summary::after { content: "\2212"; }
.answer { padding: 0 0 10px; }

.notfound { padding-top: 64px; padding-bottom: 96px; }

/* Wider screens */
@media (min-width: 560px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero-row { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .feature { padding: 88px 0; }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .phone { order: -1; }
  .feature .phone, .hero .phone { width: 340px; }
  .feature.flip .feature-text { justify-self: start; }
  .feature:not(.flip) .feature-text { justify-self: end; }
  .private { padding: 88px 0; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .price .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .top-nav a[href="#features"] { display: none; }
  .feature { padding: 44px 0; }
  .hero-row, .feature-row { gap: 32px; }
}
