/* ============================================================================
   pages.css — inner marketing pages (originals, skinified, licensing, company,
   sweepstakes) in the terminal/bracket identity. Reuses tokens.css.
   ============================================================================ */

.pg-main { padding-top: 72px; }

/* ---- page hero --------------------------------------------------------- */
.pg-hero {
  position: relative;
  padding: clamp(64px, 12vh, 140px) var(--gutter) clamp(48px, 8vh, 90px);
  max-width: 1120px;
  margin-inline: auto;
  overflow: hidden;
}
.pg-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pg-hero-eyebrow b { color: var(--lime-deep); font-weight: 600; }
.pg-hero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--t-display-2);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  max-width: 16ch;
}
.pg-hero h1 .brk { color: var(--lime-deep); }
.pg-hero h1 .hl {
  background: linear-gradient(100deg, var(--lime-deep), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pg-hero-sub {
  margin-top: 22px;
  max-width: 56ch;
  font-size: var(--t-body-lg);
  color: var(--ink-soft);
}
.pg-cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.pg-pills { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pg-pill {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pg-pill::before { content: '✓'; color: var(--lime-deep); font-weight: 700; }

/* ---- generic section --------------------------------------------------- */
.pg-section { max-width: 1120px; margin-inline: auto; padding: clamp(48px, 8vh, 110px) var(--gutter); }
.pg-section-head { max-width: 60ch; margin-bottom: 40px; }
.pg-section-head .pg-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-deep);
}
.pg-section-head h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--t-heading-1);
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}
.pg-section-head p { margin-top: 12px; color: var(--ink-mute); font-size: var(--t-body); }

/* ---- feature / game cards (bracket corners) ---------------------------- */
.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pg-card {
  position: relative;
  padding: 22px;
  background: var(--canvas-paper);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-module);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
}
.pg-card:hover { transform: translateY(-4px); border-color: var(--lime-deep); box-shadow: var(--shadow-2); }
.pg-card::before,
.pg-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--lime-deep);
  opacity: 0;
  transition: opacity 0.4s;
}
.pg-card::before { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.pg-card::after { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; }
.pg-card:hover::before, .pg-card:hover::after { opacity: 1; }
.pg-card .pc-glyph {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--lime-deep);
  display: block;
  margin-bottom: 12px;
}
.pg-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--t-heading-4); margin: 0; }
.pg-card p { margin: 8px 0 0; font-size: var(--t-body-sm); color: var(--ink-mute); line-height: 1.55; }

/* ---- terminal showcase block ------------------------------------------- */
.pg-terminal {
  background: var(--surface-dark);
  color: #e8eaf0;
  border-radius: var(--radius-hero);
  padding: clamp(22px, 4vw, 40px);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  line-height: 1.9;
  overflow: hidden;
  position: relative;
}
.pg-terminal .tl-bar { display: flex; gap: 7px; margin-bottom: 18px; }
.pg-terminal .tl-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.pg-terminal .tl-bar i:first-child { background: var(--lime); }
.pg-terminal .tl-row { white-space: pre-wrap; }
.pg-terminal .tl-key { color: var(--violet-soft); }
.pg-terminal .tl-val { color: var(--lime); }
.pg-terminal .tl-cmt { color: rgba(232,234,240,0.4); }

.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }

/* ---- FAQ (reuses accordion look, scoped) ------------------------------- */
.pg-faq { max-width: 800px; margin-inline: auto; }
.pg-faq-item { border-bottom: 1px solid var(--ink-line); }
.pg-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--t-heading-4);
  color: var(--ink);
}
.pg-faq-q::after {
  content: '{+}';
  position: absolute;
  right: 0;
  top: 18px;
  font-family: var(--font-display);
  color: var(--lime-deep);
  transition: transform 0.3s;
}
.pg-faq-item.open .pg-faq-q::after { content: '{–}'; }
.pg-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out-expo); }
.pg-faq-item.open .pg-faq-a { max-height: 320px; }
.pg-faq-a p { padding: 0 40px 22px 0; margin: 0; color: var(--ink-mute); font-size: var(--t-body-sm); line-height: 1.6; }

/* ---- CTA closer -------------------------------------------------------- */
.pg-cta {
  max-width: 1120px;
  margin: clamp(40px,8vh,90px) auto;
  padding: clamp(40px,6vw,72px) var(--gutter);
  text-align: center;
  background: var(--canvas-paper);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-hero);
  position: relative;
  overflow: hidden;
}
.pg-cta h2 { font-family: var(--font-sans); font-weight: 800; font-size: var(--t-heading-1); margin: 0; }
.pg-cta p { margin: 12px auto 0; max-width: 46ch; color: var(--ink-mute); }
.pg-cta .pg-cta-row { justify-content: center; }

/* ---- case-opening reel (skinified) ------------------------------------- */
.pg-reel {
  position: relative;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-hero);
  background: var(--surface-dark);
  padding: 28px 0;
  overflow: hidden;
}
.pg-reel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.pg-reel-marker {
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 2px;
  transform: translateX(-50%);
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime-shadow);
  z-index: 3;
}
.pg-reel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-inline: 14px;
  animation: pgReel 18s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
@keyframes pgReel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.pg-reel-tile {
  flex: none;
  width: 116px;
  height: 116px;
  border-radius: var(--radius-chip);
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  border: 1px solid;
}
.pg-reel-tile .rt-chip { width: 34px; height: 34px; border-radius: 8px; margin-inline: auto; }
.pg-reel-tile .rt-label { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pg-reel-modes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.pg-reel-modes span { font-family: var(--font-mono); font-size: var(--t-mono-sm); color: var(--ink-mute); border: 1px solid var(--ink-line); border-radius: var(--radius-pill); padding: 7px 14px; }
@media (prefers-reduced-motion: reduce) { .pg-reel-track { animation: none; } }

/* ---- blog index cards -------------------------------------------------- */
.bp-grid .pg-card { display: flex; flex-direction: column; }
.bp-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-chip);
  margin-bottom: 14px;
  background: var(--ink-line);
}
.bp-date {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--ink-mute);
}

/* ---- blog article (BabyLoveGrowth content_html) ------------------------ */
.blog-hero-figure { padding-inline: var(--gutter); }
.blog-hero-figure img { width: 100%; border-radius: var(--radius-hero); display: block; }
.blog-article {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.75;
}
.blog-article > *:first-child { margin-top: 0; }
.blog-article h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--t-heading-2);
  color: var(--ink);
  line-height: 1.2;
  margin: 2.2em 0 0.6em;
}
.blog-article h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--t-heading-4);
  color: var(--ink);
  margin: 1.8em 0 0.5em;
}
.blog-article p { margin: 0 0 1.2em; }
.blog-article a { color: var(--lime-deep); text-decoration: underline; text-underline-offset: 2px; }
.blog-article a:hover { color: var(--violet); }
.blog-article strong { color: var(--ink); font-weight: 700; }
.blog-article ul, .blog-article ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.blog-article li { margin: 0.4em 0; }
.blog-article img { max-width: 100%; height: auto; border-radius: var(--radius-chip); display: block; margin: 1.6em auto; }
.blog-article blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--lime-deep);
  color: var(--ink-mute);
  font-style: italic;
}
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: var(--t-body-sm);
  display: block;
  overflow-x: auto;
}
.blog-article th, .blog-article td { border: 1px solid var(--ink-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.blog-article thead th { background: var(--ink-line); color: var(--ink); font-weight: 600; }

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 900px) { .pg-grid { grid-template-columns: repeat(2, 1fr); } .pg-split { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pg-grid { grid-template-columns: 1fr; } .blog-article { font-size: 1.02rem; } }
