/* ============================================================
   Tenacity Games | pages.css
   Sub-pages (/clips, /clips/terms, /privacy). Loaded after styles.css and reuses its tokens,
   buttons, nav, eyebrow, section titles, steps and footer. No JavaScript needed.
   ============================================================ */

/* Nav is always the glass state on sub-pages (no scroll script). */
.nav--solid {
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(132px, 16vw, 200px) 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.page-hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero__fx::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(50% 70% at 100% 40%, rgba(232, 121, 249, 0.16), transparent 70%),
    radial-gradient(45% 60% at 10% 0%, rgba(92, 200, 255, 0.14), transparent 70%);
}
.page-hero__fx::after {
  /* faint grid, like the TG Discord banners */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.page-hero .sec-title { font-size: clamp(2.6rem, 8vw, 6rem); }
.page-hero__lead { margin-top: 28px; max-width: 34em; color: var(--fg-muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.page-hero__note { margin-top: 16px; color: var(--fg-dim); font-size: 0.9rem; }

/* Thin cyan to magenta accent bar (brand) */
.accent-bar {
  display: block; width: 120px; height: 3px; border-radius: 3px; margin-top: 28px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
}

/* ---------- Content ---------- */
.page-section { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.page-section:last-of-type { border-bottom: 0; }
.page-section .sec-title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 28px; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.prose { max-width: 46rem; color: var(--fg-muted); }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2.4em; color: var(--fg);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; font-stretch: 85%; font-style: italic;
  text-transform: uppercase; letter-spacing: 0;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; color: var(--fg); font-size: 1.12rem; line-height: 1.3; letter-spacing: 0; }
.prose strong { color: var(--fg); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--violet); }
.prose a { color: var(--fg); border-bottom: 1px solid var(--line-2); transition: color var(--dur), border-color var(--dur); }
.prose a:hover { color: var(--cyan); border-color: var(--cyan); }
.prose code { font-family: var(--mono); font-size: 0.86em; color: var(--fg); background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }

/* Panels: short version, consent text, notes */
.panel {
  position: relative; padding: 26px 26px 28px; border-radius: 20px;
  border: 1px solid var(--line); background: linear-gradient(to bottom, var(--surface), var(--bg-2));
  color: var(--fg-muted);
}
.panel::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
}
.panel__label { display: block; margin-bottom: 14px; color: var(--cyan); }
.panel > * + * { margin-top: 0.8em; }
.panel strong { color: var(--fg); }
.panel ul { list-style: disc; padding-left: 1.3em; }
.panel li + li { margin-top: 0.4em; }
.quote { color: var(--fg); font-size: 1.04rem; }

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

/* Requirements */
.reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 56rem; }
.reqs li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg-muted); }
.reqs li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.62em; border-radius: 50%; background: var(--cyan); }
.reqs strong { color: var(--fg); }

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; color: var(--fg); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); color: var(--cyan); font-size: 1.2rem; transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--fg-muted); max-width: 44rem; }
.faq details > div > * + * { margin-top: 0.7em; }

/* Tables (retention, ages) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; max-width: 100%; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 32rem; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { color: var(--fg); font-weight: 650; background: var(--surface); font-size: 0.88rem; }
.table-wrap td { color: var(--fg-muted); }
.table-wrap td:first-child { color: var(--fg); }

/* Placeholder Alex must fill before upload (build_zip.py refuses it without --allow-placeholders) */
.todo { color: var(--gold); border-bottom: 1px dashed var(--gold); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-muted);
  font-size: 0.88rem; transition: color var(--dur), border-color var(--dur);
}
.toc a:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.4); }

.meta-line { color: var(--fg-dim); font-size: 0.9rem; }
.footer__legal { margin-top: 18px; color: var(--fg-dim); font-size: 0.86rem; }

@media (max-width: 860px) {
  .steps--3, .grid-2, .reqs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero__actions .btn { flex: 1 1 auto; }
  .panel { padding: 22px 18px 24px; }
  .panel::before { left: 18px; right: 18px; }
}
