/* cardratcg.com's one stylesheet: Cardra/GUIDELINES.md §2 and §3 on the web.
   The app's palette, its wordmark (weight 400, the pink C) and the phone's own
   system font, as in the app: no web fonts, nothing loaded from elsewhere.
   /get keeps its own copy of the few rules it needs, so that its redirect waits
   for nothing; the sign-in pages keep theirs inside their own CSP. */
:root {
  --bg0: #0F0F1E;
  --bg1: #1a1030;
  --bg2: #221540;
  --border: #2d1f4e;
  --violet: #7c3aed;
  --pink: #E879F9;
  --green: #1D9E75;
  --amber: #EF9F27;
  --text: #ffffff;
  --text-2: rgba(255,255,255,0.64);
  --text-3: rgba(255,255,255,0.42);
  --muted: rgba(192,132,252,0.55);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg0); scroll-padding-top: 80px; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg0); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
a { color: var(--pink); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 760px; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }

/* The section label, as the app's: small, bold, spaced capitals, muted violet. */
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Header and footer, the same on every page. */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(16,11,26,0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.wordmark img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.wordmark span { font-size: 18px; font-weight: 400; letter-spacing: 0.24em; }
.wordmark b { font-weight: 400; color: var(--pink); }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-nav a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
/* The way to the web app (app.cardratcg.com): a quiet outline beside the
   links, the one button in the header. Kept at a phone's width, where
   Features and Pricing go. */
.site-nav a.signin { color: var(--text); font-weight: 600; padding: 7px 16px; border: 1px solid var(--violet); border-radius: 999px; white-space: nowrap; }
.site-nav a.signin:hover { background: var(--violet); }
/* A 320-wide phone: the outline kept on one line beside Support. */
@media (max-width: 360px) { .site-nav { gap: 14px; } .site-nav a.signin { padding: 6px 12px; } }

.site-footer { border-top: 1px solid var(--border); margin-top: 72px; padding: 28px 0 40px; color: var(--text-3); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.disclaimer { margin-top: 10px; font-size: 12px; line-height: 1.55; max-width: 860px; }
.credit { margin-top: 10px; font-size: 12px; line-height: 1.55; }
.credit a { color: var(--text-2); }

/* The stores' own badges, unaltered: both 48 tall where they show. Google's
   file carries 41 of clear space on every side of a 564 × 168 badge, so it is
   drawn at 250/168 of the height and pulled in by that space; the gap of 16 is
   the quarter of the badge's height both stores ask for. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.store { display: block; line-height: 0; border-radius: 9px; }
.store img { display: block; }
.store.ios img { height: 48px; width: auto; }
.store.android { margin: -11.71px; border-radius: 20.71px; }
.store.android img { height: 71.43px; width: auto; }
.store.android:focus-visible { outline-offset: -8.71px; }
.availability { margin-top: 16px; font-size: 13px; color: var(--text-3); }

/* The real app, framed like a phone screen. */
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; border: 1px solid var(--border); box-shadow: 0 24px 64px rgba(0,0,0,0.5); }

/* A plain block of the page with a hairline above it. */
.band { padding: 72px 0 8px; }
.band h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 650; line-height: 1.15; }
.band .sub { margin-top: 8px; color: var(--text-2); max-width: 60ch; }

/* Cards: a bordered surface on bg1. */
.card { background: var(--bg1); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.card h3 { font-size: 16px; font-weight: 650; }
.card p { color: var(--text-2); margin-top: 6px; }

/* Documents: the legal pages. */
.doc-head { padding: 56px 0 8px; }
.doc-head h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 650; line-height: 1.1; }
.doc-head .meta { margin-top: 8px; color: var(--text-3); font-size: 14px; }
.doc-head .lede { margin-top: 18px; color: var(--text-2); }
.callout { margin-top: 20px; background: var(--bg1); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.callout p { color: var(--text-2); }
.callout strong { color: var(--text); }
.doc section { padding: 28px 0; border-top: 1px solid var(--border); }
.doc section:first-of-type { margin-top: 28px; }
.doc h2 { font-size: 22px; font-weight: 650; margin-bottom: 12px; }
.doc h3 { font-size: 16px; font-weight: 650; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc .label { color: var(--muted); }
.doc .caps { font-size: 14px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 10px 0 0 22px; }
.doc li { margin-bottom: 6px; }
.doc .table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--text); font-weight: 600; background: var(--bg1); }
.doc pre { margin-top: 12px; padding: 16px 18px; background: var(--bg1); border: 1px solid var(--border); border-radius: 12px; color: var(--text-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Small pills, for what is deleted and what is kept. */
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.tag.deleted { color: var(--pink); background: rgba(232,121,249,0.08); }
.tag.kept { color: var(--amber); background: rgba(239,159,39,0.08); }

@media (max-width: 640px) {
  .site-nav .wide { display: none; }
  .band { padding-top: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .foot-links a, .site-nav a { transition: color 120ms ease; }
}
