/* trapgod — landing surface ported from trapgod4 (index4 design).
 * Scoped under .tg4-landing so it never touches the shared Bootstrap chrome.
 * Design tokens live on the wrapper; all tg4-/lp- classes inherit them. */

.tg4-landing {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1120px;

  /* Dark theme (trapgod4 default) */
  --bg: #0C0C17;
  --surface: #14141F;
  --surface-2: #1B1B29;
  --text: #EAF2EC;
  --muted: #8A9A8E;
  --primary: #53AD6E;
  --primary-ink: #04140A;
  --accent: #53AD6E;
  --border: #242433;
  --glow: rgba(83, 173, 110, .35);
  --hero-grid: rgba(83, 173, 110, .08);

  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

/* Let the dark surface fill the shared <main class="py-4"> wrapper edge-to-edge. */
main:has(> .tg4-landing) { padding: 0 !important; }

.tg4-landing h1,
.tg4-landing h2,
.tg4-landing h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
.tg4-landing a { color: var(--primary); text-decoration: none; }
.tg4-landing a:hover { text-decoration: underline; }

/* ---- Layout + shared components (namespaced, safe globally) ---- */
.tg4-container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.tg4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, filter .2s ease, background .2s ease;
}
.tg4-btn:hover { text-decoration: none; }
.tg4-btn:active { transform: translateY(1px); }
.tg4-btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 22px -8px var(--glow); }
.tg4-btn-primary:hover { filter: brightness(1.06); color: var(--primary-ink); }
.tg4-btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.tg4-btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.tg4-btn-gold { background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #1a1204; }
.tg4-btn-gold:hover { color: #1a1204; filter: brightness(1.04); }

/* Button label color must beat the scoped `.tg4-landing a` link color (green),
 * Bootstrap link styles, and :visited/:hover states. Without !important the
 * green link color wins and Subscribe renders green-on-green (unreadable). */
.tg4-landing a.tg4-btn-primary,
.tg4-landing a.tg4-btn-primary:link,
.tg4-landing a.tg4-btn-primary:visited,
.tg4-landing a.tg4-btn-primary:hover,
.tg4-landing a.tg4-btn-primary:focus,
.tg4-landing .tg4-btn-primary { color: var(--primary-ink) !important; }
.tg4-landing a.tg4-btn-ghost,
.tg4-landing a.tg4-btn-ghost:link,
.tg4-landing a.tg4-btn-ghost:visited,
.tg4-landing a.tg4-btn-ghost:hover,
.tg4-landing a.tg4-btn-ghost:focus,
.tg4-landing .tg4-btn-ghost { color: var(--text) !important; }
.tg4-landing a.tg4-btn-gold,
.tg4-landing a.tg4-btn-gold:link,
.tg4-landing a.tg4-btn-gold:visited,
.tg4-landing a.tg4-btn-gold:hover,
.tg4-landing a.tg4-btn-gold:focus,
.tg4-landing .tg4-btn-gold { color: #1a1204 !important; }
.tg4-landing .tg4-btn:hover { text-decoration: none; }
.tg4-btn-block { width: 100%; }

.tg4-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--muted); font-size: .72rem; font-weight: 600;
}

/* ---- Landing (index4-style marketing surface) ---- */
.lp-section { padding: 64px 0; }
.lp-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.lp-eyebrow {
  display: inline-block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin-bottom: 10px;
}
.lp-lead { color: var(--muted); font-size: 1.02rem; max-width: 620px; }

.lp-hero {
  position: relative; overflow: hidden;
  padding: 84px 0 72px;
  background: radial-gradient(1200px 500px at 50% -10%, var(--hero-grid), transparent 70%);
}
.lp-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.lp-hero p.lp-lead { font-size: 1.12rem; margin: 14px 0 26px; }
.lp-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.lp-phone {
  /* Size-capped so the hero graphic never dominates the layout on large screens. */
  justify-self: center; width: clamp(220px, 24vw, 280px); max-width: 100%;
  border: 1px solid var(--border); border-radius: 28px; background: var(--surface);
  padding: 18px; box-shadow: 0 24px 60px -34px var(--glow);
}
.lp-phone .lp-avatar {
  width: 74px; height: 74px; border-radius: 50%; margin: 8px auto 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; color: var(--primary-ink);
  font-size: 1.6rem; font-weight: 800;
}
.lp-phone .lp-handle { text-align: center; font-weight: 700; }
.lp-phone .lp-sub { text-align: center; color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.lp-phone .lp-link {
  display: block; text-align: center; padding: 11px; margin: 8px 0;
  border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  background: var(--surface-2); font-size: .9rem; font-weight: 600;
}

.lp-grid { display: grid; gap: 16px; margin-top: 28px; }
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lp-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.lp-tile h3 { font-size: 1.05rem; }
.lp-tile p { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.lp-tile .lp-tag { margin-top: 12px; }

.lp-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lp-chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: .86rem; font-weight: 500;
}

.lp-theme-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.lp-theme-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); text-align: left;
}
.lp-theme-swatch { height: 96px; }
.lp-theme-card .lp-theme-body { padding: 14px 16px; }
.lp-theme-card h3 { font-size: 1rem; margin: 0 0 4px; }
.lp-theme-card p { color: var(--muted); font-size: .84rem; margin: 0; }
.lp-swatch-dark { background: linear-gradient(135deg, #0C0C17, #14141F 60%, #53AD6E); }
.lp-swatch-light { background: linear-gradient(135deg, #EEF0F1, #FFFFFF 55%, #2F7D52); }
.lp-swatch-metal { background: linear-gradient(135deg, #040407, #33363F 55%, #D0D0D3); }

.lp-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.lp-price {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px;
  display: flex; flex-direction: column;
}
.lp-price h3 { font-size: 1.1rem; }
.lp-price .lp-amt { font-size: 1.8rem; font-weight: 800; margin: 6px 0; }
.lp-price .lp-amt small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.lp-price ul { list-style: none; padding: 0; margin: 12px 0 18px; color: var(--muted); font-size: .9rem; }
.lp-price ul li { padding: 4px 0; }
.lp-price ul li i { color: var(--primary); margin-right: 8px; }
.lp-price .tg4-btn { margin-top: auto; }
.lp-price-featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 20px 60px -30px var(--glow); }
.lp-price-featured .tg4-badge { align-self: flex-start; margin-bottom: 8px; color: var(--primary); border-color: var(--primary); }
.lp-price-tagline { color: var(--muted); font-size: .86rem; margin: 0 0 4px; min-height: 34px; }

.lp-faq { max-width: 780px; margin: 26px auto 0; }
.lp-faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  padding: 4px 16px; margin-bottom: 10px;
}
.lp-faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.lp-faq details p { color: var(--muted); margin: 0 0 12px; }

.lp-center { text-align: center; }
.lp-center .lp-lead { margin-left: auto; margin-right: auto; }
.lp-cta-final { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-phone { order: -1; }
  .lp-grid-3, .lp-theme-cards, .lp-price-grid { grid-template-columns: 1fr; }
  .lp-grid-2 { grid-template-columns: 1fr; }
}
