/*
 * pages.css — shared styles for LineVerse review / legal pages
 * (tiktok.html, terms.html, privacy.html). Uses the design tokens
 * from colors_and_type.css. Page-specific extras live in each page's
 * <style> block only if they are genuinely page-unique.
 */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  background: var(--lv-ink, #0a0a08);
  color: var(--lv-cream, #f1ead8);
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--lv-yellow, #FFD400); }
a:hover { opacity: .85; }

.wrap { max-width: 760px; margin: 0 auto; padding: 24px 20px 64px; }
.wrap--wide { max-width: 980px; }

/* Header strip */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lv-line, #2a2a23);
  flex-wrap: wrap; gap: 10px;
}
.brand {
  font-family: var(--font-display, Anton, sans-serif);
  text-transform: uppercase; letter-spacing: .02em;
  font-size: 22px; color: var(--lv-yellow, #FFD400);
  text-decoration: none;
}
.brand b { color: var(--lv-mint, #2EE6A6); font-weight: inherit; }
.top .back {
  font-family: var(--font-pixel, "Press Start 2P", monospace);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
}

/* Typography */
h1 {
  font-family: var(--font-display, Anton, sans-serif);
  text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(28px, 5vw, 38px); margin: 24px 0 10px;
  color: var(--lv-cream, #f1ead8);
}
h2 {
  font-family: var(--font-display, Anton, sans-serif);
  text-transform: uppercase; letter-spacing: .02em;
  font-size: 20px; margin: 26px 0 8px;
  color: var(--lv-yellow, #FFD400);
}
h3 {
  font-family: var(--font-pixel, monospace);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 8px; color: var(--lv-yellow, #FFD400);
}
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { padding: 3px 0; }

.lede { color: var(--lv-muted-2, #9b9482); margin: 0 0 16px; }
.meta {
  font-family: var(--font-pixel, monospace);
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--lv-muted-2, #9b9482);
}

code, .mono {
  font-family: var(--font-mono, monospace);
  background: rgba(255, 212, 0, .06);
  padding: 1px 6px; border: 1px solid var(--lv-line, #2a2a23);
  font-size: 12px; color: var(--lv-cream, #f1ead8);
}

/* Section divider — dashed rule between blocks on the tiktok page.
   Element selector is fine: these pages only link pages.css, so it
   never collides with the homepage's section styling in styles.css. */
section {
  padding: 24px 0;
  border-bottom: 1px dashed var(--lv-line, #2a2a23);
}
section:last-of-type { border-bottom: 0; }
section.hero { border-bottom: 1px solid var(--lv-line, #2a2a23); }

/* Cards / grids — used on tiktok.html for the API-access and account blocks */
.grid-3, .grid-2 { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.box {
  border: 1px solid var(--lv-line, #2a2a23);
  background: rgba(255, 212, 0, .02);
  padding: 14px 16px;
}
.box.yellow { border-color: var(--lv-yellow, #FFD400); }
.kv { display: flex; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.kv .k {
  font-family: var(--font-pixel, monospace);
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--lv-muted-2, #9b9482); min-width: 110px;
}
.kv .v { color: var(--lv-cream, #f1ead8); }

/* Disabled-by-design demo button (tiktok.html "Connect TikTok") */
.btn {
  display: inline-block; margin-top: 10px;
  padding: 12px 18px;
  border: 2px solid var(--lv-yellow, #FFD400);
  background: transparent;
  color: var(--lv-yellow, #FFD400);
  font-family: var(--font-pixel, monospace);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  cursor: not-allowed; opacity: .55;
}
.btn[disabled] { cursor: not-allowed; }
.btn-note {
  display: block; margin-top: 8px;
  font-size: 12px; color: var(--lv-muted-2, #9b9482);
}

/* Mock video rows (tiktok.html "Recent TikTok videos") */
.video-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 12px;
  align-items: center; padding: 10px 0;
  border-top: 1px solid var(--lv-line, #2a2a23);
}
.video-row:first-of-type { border-top: 0; }
.video-thumb {
  width: 96px; height: 56px;
  border: 1px solid var(--lv-line, #2a2a23);
  background:
    linear-gradient(rgba(255,212,0,.05) 1px, transparent 1px) 0 0/12px 12px,
    linear-gradient(90deg, rgba(255,212,0,.05) 1px, transparent 1px) 0 0/12px 12px,
    #0a0a08;
  display: flex; align-items: center; justify-content: center;
  color: var(--lv-yellow, #FFD400);
  font-family: var(--font-pixel, monospace);
  font-size: 9px;
}
.video-caption { color: var(--lv-cream, #f1ead8); font-size: 13px; }
.video-meta {
  font-family: var(--font-pixel, monospace);
  font-size: 9px; letter-spacing: .06em;
  color: var(--lv-muted-2, #9b9482); white-space: nowrap;
}

ol.steps { margin: 0; padding-left: 22px; }
ol.steps li { padding: 4px 0; }
ul.safety { margin: 0; padding-left: 18px; }
ul.safety li { padding: 3px 0; color: var(--lv-cream, #f1ead8); }

/* Footer common to all three pages — element selector (these pages
   link only pages.css; the homepage footer styling lives in styles.css). */
footer {
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid var(--lv-line, #2a2a23);
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-pixel, monospace);
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--lv-muted-2, #9b9482);
}
footer a { text-decoration: none; }

/* Hero chip — used on tiktok.html */
.chip {
  display: inline-block;
  font-family: var(--font-pixel, "Press Start 2P", monospace);
  font-size: 10px; letter-spacing: .08em;
  color: var(--lv-mint, #2EE6A6);
  border: 1px solid var(--lv-mint, #2EE6A6);
  padding: 4px 8px; margin-bottom: 14px;
}

@media (max-width: 520px) {
  .video-row { grid-template-columns: 72px 1fr; }
  .video-row .video-meta { grid-column: 2; }
  .video-thumb { width: 72px; height: 42px; }
}
