/* The Collectibles — TC app site.
   Tokens mirror the app's lib/core/theme.dart: depth from surface value not
   borders, grey-on-black copy (never white), red rationed to accents, one
   lime CTA, one motion curve. */

:root {
  --bg: #000;
  --tile: #0a0a0a;
  --card: #0e0e0e;
  --surface: #141414;
  --inset: #101010;
  --secondary: #1c1c1c;
  --border: #1c1c1c;
  --border-subtle: #161616;

  --text: #9e9e9e;
  --text-strong: #b9b9b9;
  --text-meta: #6a6a6a;
  --text-tertiary: #5a5a5a;
  --label: #3f3f3f;

  --accent: #fd2727;
  --accent-text: #ff4b4b;
  --accent-fill: rgba(253, 39, 39, 0.14);
  --accent-border: rgba(253, 39, 39, 0.55);

  --cta-top: #efff63;
  --cta-bottom: #dcf23d;
  --cta-text: #0a0a0a;

  --success: #27c500;

  --font-display: "Alumni Sans", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(10px, 4vw, 32px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--text-strong); text-decoration: none; }
a:hover { color: var(--accent-text); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */

h1, h2, h3 { color: var(--text-strong); margin: 0; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: 0.005em;
  color: var(--text-strong);
}

h1.display { font-size: clamp(52px, 11vw, 108px); }
h2.display { font-size: clamp(36px, 6.5vw, 60px); }

.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0 0 6px;
}

.lede { font-size: 17px; color: var(--text); max-width: 62ch; }
.meta { font-size: 13px; color: var(--text-meta); }
.tiny { font-size: 12px; color: var(--text-tertiary); }

/* ---------- chrome ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.bar img { height: 19px; width: auto; }

.bar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
}

.bar nav a { color: var(--text); transition: color 0.14s var(--ease); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--accent-fill);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 20px;
  background: var(--secondary);
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom));
  color: var(--cta-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.14s var(--ease), filter 0.14s var(--ease);
}
.cta:hover { color: var(--cta-text); filter: brightness(1.06); transform: translateY(-1px); }

.cta.ghost {
  background: var(--secondary);
  color: var(--text-strong);
  font-weight: 600;
}
.cta.ghost:hover { color: var(--text-strong); background: #242424; }

/* ---------- sections ---------- */

section { padding: clamp(56px, 9vw, 110px) 0; }
section + section { border-top: 1px solid var(--border-subtle); }

.hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero p.lede { margin: 22px 0 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

/* ---------- phone frames ---------- */

.phone {
  border-radius: 26px;
  overflow: hidden;
  background: var(--tile);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
}

.phone img { width: 100%; }

.phone-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.phone-duo .phone:first-child { transform: translateY(18px); }

/* In the hero the phones are set dressing, not the message: cap them so the
   headline and the fold stay in the same screen. */
.hero .phone-duo img {
  max-height: 62vh;
  min-height: 380px;
  object-fit: cover;
  object-position: top;
}

/* ---------- feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px) 0;
}
.feature + .feature { border-top: 1px solid var(--border-subtle); }
.feature.flip > .phone { order: -1; }

.feature h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 0.88;
  font-weight: 700;
  margin-bottom: 14px;
}

.feature ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
}
.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.75;
}

/* ---------- cards & grids ---------- */

.grid { display: grid; gap: 14px; }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tile {
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
}

.tile .n {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.9;
  color: var(--text-strong);
  font-weight: 700;
}

.step .k {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--label);
  text-transform: uppercase;
}

/* ---------- table ---------- */

.table-wrap { overflow-x: auto; border-radius: 16px; background: var(--card); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 620px;
}

th, td {
  text-align: left;
  padding: 15px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 600;
}

tbody tr:last-child td { border-bottom: none; }
td strong { color: var(--text-strong); font-weight: 600; }

/* ---------- compliance list ---------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 14px;
}
.checks .m {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(39, 197, 0, 0.14);
  color: var(--success);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 60px;
  background: var(--tile);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

footer.site h4 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 12px;
  font-weight: 600;
}

footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; font-size: 13.5px; }
footer.site img { height: 18px; width: auto; margin-bottom: 16px; }

.legal-line {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

/* ---------- legal documents ---------- */

.doc { max-width: 780px; padding-top: clamp(40px, 6vw, 72px); }
.doc h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong);
  margin: 40px 0 10px;
}
.doc h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  margin: 26px 0 8px;
}
.doc p, .doc li { font-size: 14.5px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-bottom: 7px; }
.doc .toc {
  background: var(--card);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 28px 0 8px;
}
.doc .toc ol { margin: 0; padding-left: 18px; }
.doc .toc li { margin-bottom: 5px; font-size: 13.5px; }
.doc .note {
  background: var(--card);
  border-left: 2px solid var(--accent-border);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > .phone { order: 0; }
  .feature > .phone, .hero-grid > .phone-duo { max-width: 420px; }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .bar nav a.hide-sm { display: none; }
  .grid.c3, .grid.c4, .grid.c2 { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-duo .phone:first-child { transform: none; }
}
