/* =============================================================================
   PrepTrack UK — Landing Page Stylesheet (Isolated Namespace: .lp-*)
   Strictly scoped under #landing-view to prevent bleeding into application themes.
   ============================================================================= */

/* Landing visibility controls */
body:not(.landing-mode) #landing-view {
  display: none !important;
}

body.landing-mode .app {
  display: none !important;
}

body.landing-mode {
  background-color: #060913 !important;
  color: #f8fafc !important;
  overflow-x: hidden;
}

#landing-view {
  display: block;
  background-color: #060913;
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(34, 211, 238, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 15% 35%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 50%);
  color: #f8fafc;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  width: 100%;
  overflow-x: hidden;

  /* Scoped CSS Custom Properties */
  --lp-bg-deep: #060913;
  --lp-bg-card: #0c1326;
  --lp-bg-surface: #101935;
  --lp-border: #1e2d5a;
  --lp-border-glow: #22d3ee;
  --lp-text-primary: #f8fafc;
  --lp-text-secondary: #94a3b8;
  --lp-text-muted: #64748b;
  --lp-cyan: #22d3ee;
  --lp-cyan-dark: #0891b2;
  --lp-violet: #a78bfa;
  --lp-emerald: #34d399;
  --lp-magenta: #e879f9;
  --lp-amber: #fbbf24;
}

/* Tactical dot grid overlay ONLY within #landing-view */
#landing-view::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(34, 211, 238, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Base typography resets inside #landing-view */
#landing-view *,
#landing-view *::before,
#landing-view *::after {
  box-sizing: border-box;
}

#landing-view h1,
#landing-view h2,
#landing-view h3,
#landing-view h4,
#landing-view h5 {
  margin: 0;
  color: #f8fafc !important;
  font-family: inherit;
  font-weight: 700;
}

#landing-view p {
  margin: 0;
  color: var(--lp-text-secondary);
}

#landing-view a {
  text-decoration: none;
  color: var(--lp-cyan);
  transition: all 0.2s ease;
}

/* Layout Container */
.lp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(6, 9, 19, 0.88);
  border-bottom: 1px solid rgba(30, 45, 90, 0.7);
}

.lp-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.lp-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.lp-brand-logo {
  width: 40px;
  height: 40px;
  display: block;
}

.lp-brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc !important;
}

.lp-brand-text span {
  color: var(--lp-cyan);
}

.lp-brand-sub {
  font-size: 11px;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.lp-nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-text-secondary);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.lp-nav-menu a:hover {
  color: #f8fafc;
  border-bottom-color: var(--lp-cyan);
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.lp-btn-primary {
  background: linear-gradient(135deg, var(--lp-cyan) 0%, var(--lp-cyan-dark) 100%);
  color: #060913 !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.lp-btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, var(--lp-cyan) 100%);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.55);
  transform: translateY(-1px);
}

.lp-btn-ghost {
  background-color: transparent;
  color: #f8fafc !important;
  border-color: var(--lp-border);
}

.lp-btn-ghost:hover {
  border-color: var(--lp-cyan);
  color: var(--lp-cyan) !important;
  background-color: rgba(34, 211, 238, 0.05);
}

.lp-btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

/* Hero Section */
.lp-hero {
  padding: 80px 0 60px 0;
  position: relative;
  width: 100%;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.lp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(11, 19, 41, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.35);
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.lp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--lp-emerald);
  box-shadow: 0 0 8px var(--lp-emerald);
}

.lp-hero-title {
  font-size: 56px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #f8fafc !important;
  margin-bottom: 20px !important;
}

.lp-hero-title .lp-gradient-text {
  background: linear-gradient(135deg, #f8fafc 30%, var(--lp-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-hero-tagline {
  font-size: 20px !important;
  line-height: 1.4 !important;
  color: var(--lp-text-secondary) !important;
  margin-bottom: 24px !important;
}

.lp-hero-description {
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: var(--lp-text-muted) !important;
  margin-bottom: 32px !important;
  max-width: 580px;
}

.lp-hero-description strong {
  color: #f8fafc;
}

.lp-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: var(--lp-bg-surface);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text-secondary);
}

.lp-chip-cyan { color: var(--lp-cyan) !important; }
.lp-chip-emerald { color: var(--lp-emerald) !important; }
.lp-chip-violet { color: var(--lp-violet) !important; }
.lp-chip-pink { color: var(--lp-magenta) !important; }

.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.lp-hero-footnote {
  font-size: 12px;
  color: var(--lp-text-muted);
}

/* Tactical Telemetry Card (Hero Right) */
.lp-telemetry-card {
  background-color: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.lp-telemetry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lp-cyan) 0%, var(--lp-violet) 50%, var(--lp-magenta) 100%);
}

.lp-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-text-muted);
}

.lp-telemetry-shield-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
}

.lp-telemetry-shield {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.45));
}

.lp-telemetry-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lp-telemetry-stat {
  background-color: var(--lp-bg-surface);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 14px;
}

.lp-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-text-muted);
  margin-bottom: 4px;
}

.lp-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.lp-stat-val span {
  font-size: 12px;
  font-weight: 400;
  color: var(--lp-text-secondary);
}

/* Sections */
.lp-section {
  padding: 90px 0;
  position: relative;
}

.lp-section-dark {
  background-color: rgba(12, 19, 38, 0.4);
  border-top: 1px solid rgba(30, 45, 90, 0.5);
  border-bottom: 1px solid rgba(30, 45, 90, 0.5);
}

.lp-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.lp-section-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lp-section-title {
  font-size: 38px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #f8fafc !important;
  margin-bottom: 16px !important;
}

.lp-section-subtitle {
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: var(--lp-text-secondary) !important;
}

/* Feature Pillars Grid */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lp-feature-card {
  background-color: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: all 0.25s ease;
}

.lp-feature-card:hover {
  border-color: var(--lp-border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.lp-feature-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}

.lp-badge-core {
  background-color: rgba(52, 211, 153, 0.12);
  color: var(--lp-emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.lp-badge-pro {
  background-color: rgba(52, 211, 153, 0.12);
  color: var(--lp-emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.lp-feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--lp-bg-surface);
  border: 1px solid var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}

.lp-feature-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  margin-bottom: 12px !important;
}

.lp-feature-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-text-secondary);
}

/* Security Box */
.lp-security-box {
  background: linear-gradient(135deg, rgba(16, 25, 53, 0.7) 0%, rgba(12, 19, 38, 0.9) 100%);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lp-security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.lp-security-item h4 {
  font-size: 16px !important;
  color: #f8fafc !important;
  margin-bottom: 8px !important;
}

.lp-security-item p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-text-secondary);
}

/* Leaderboard Showcase */
.lp-lb-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.lp-lb-tier-card {
  background-color: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 28px;
}

.lp-lb-tier-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.lp-lb-tier-title h3 {
  font-size: 18px !important;
  color: #f8fafc !important;
}

.lp-lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lp-lb-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--lp-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--lp-border);
}

.lp-lb-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(30, 45, 90, 0.4);
  color: #f8fafc;
}

.lp-lb-rank {
  font-weight: 700;
  color: var(--lp-cyan);
}

.lp-lb-callsign {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-lb-metric {
  text-align: right;
  font-weight: 700;
}

/* Pricing Grid */
.lp-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.lp-pricing-card {
  background-color: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  padding: 44px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.lp-pricing-card.featured {
  border-color: var(--lp-cyan);
  box-shadow: 0 0 35px rgba(34, 211, 238, 0.2);
  background: linear-gradient(180deg, rgba(16, 25, 53, 0.9) 0%, rgba(12, 19, 38, 0.95) 100%);
}

.lp-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--lp-cyan) 0%, var(--lp-violet) 100%);
  color: #060913;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 999px;
}

.lp-pricing-plan {
  font-size: 24px !important;
  color: #f8fafc !important;
  margin-bottom: 6px !important;
}

.lp-pricing-sub {
  font-size: 13px;
  color: var(--lp-text-muted);
  margin-bottom: 24px;
}

.lp-pricing-price {
  font-size: 44px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 28px;
}

.lp-pricing-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-text-muted);
}

.lp-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.lp-pricing-features li {
  font-size: 14px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-pricing-features li strong {
  color: #f8fafc;
}

.lp-check-cyan {
  color: var(--lp-cyan);
  font-weight: 700;
}

/* Call to Action */
.lp-cta-section {
  text-align: center;
  padding: 70px 40px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.12) 0%, transparent 70%), var(--lp-bg-card);
  border: 1px solid rgba(34, 211, 238, 0.3);
  margin: 40px 0 80px 0;
}

.lp-cta-title {
  font-size: 36px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  margin-bottom: 14px !important;
}

.lp-cta-body {
  font-size: 17px !important;
  color: var(--lp-text-secondary) !important;
  max-width: 620px;
  margin: 0 auto 32px auto !important;
}

/* Footer */
.lp-footer {
  background-color: #04070e;
  border-top: 1px solid rgba(30, 45, 90, 0.6);
  padding: 60px 0 40px 0;
  font-size: 13px;
  color: var(--lp-text-muted);
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.lp-footer-col h5 {
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f8fafc !important;
  margin-bottom: 18px !important;
}

.lp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-footer-links a {
  color: var(--lp-text-secondary);
}

.lp-footer-links a:hover {
  color: var(--lp-cyan);
}

.lp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(30, 45, 90, 0.4);
  font-size: 12px;
}

/* Responsive Media Queries */
@media (max-width: 1000px) {
  .lp-hero-grid,
  .lp-pricing-grid,
  .lp-features-grid,
  .lp-security-grid,
  .lp-lb-preview-grid,
  .lp-footer-grid {
    grid-template-columns: 1fr;
  }

  .lp-hero-title {
    font-size: 42px !important;
  }

  .lp-nav-menu {
    display: none;
  }
}

/* CSP-Compliant Utility & Subscription Confirmation Classes */
.lp-text-emerald {
  color: var(--lp-emerald);
}

.lp-text-violet {
  color: var(--lp-violet);
}

.lp-text-cyan {
  color: var(--lp-cyan);
}

.lp-text-amber {
  color: var(--lp-amber);
}

.lp-text-magenta {
  color: var(--lp-magenta);
}

.lp-text-muted {
  color: var(--lp-text-muted);
}

.lp-text-right {
  text-align: right !important;
}

.lp-security-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.lp-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.lp-footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.lp-footer-brand-title {
  color: #f8fafc;
  font-size: 16px;
}

.lp-footer-desc {
  margin-bottom: 14px;
  max-width: 320px;
  color: var(--lp-text-secondary);
}

.lp-footer-emergency {
  font-size: 11px;
  color: var(--lp-text-muted);
}

.confirm-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.confirm-card {
  background: var(--surface, #111827);
  border: 1px solid var(--border, #1f2937);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 40px -20px var(--cyan, #22d3ee);
}

.confirm-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: inline-block;
}

.confirm-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 12px;
}

.confirm-desc {
  color: var(--muted, #94a3b8);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.confirm-perks {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: left;
}

.confirm-perks-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.confirm-perks li {
  margin: 8px 0;
  color: #e2e8f0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirm-btn-primary {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  display: inline-block;
}

.confirm-btn-ghost {
  padding: 10px 20px;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 12px;
}
