/* --u is owned by setLockedUnit() (see this page's own inline <script>). Locked once per portrait session; native 1vh in landscape. */
:root {
  --primary: #1e5bb8;
  --primary-dark: #154a96;
  --accent: #3b82f6;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #059669;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAV ========== */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.more_tokens{
  border-radius: 6px;
  color:red;
  font-weight: bold;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 91, 184, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-disabled, .btn-disabled:hover {
  background: transparent;
  color: var(--muted);
  border: 2px solid var(--border);
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 12px;
}

/* ========== HERO ========== */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
}
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========== SECTION COMMON ========== */
section {
  padding: 100px 0;
}
.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 0;
}

/* ========== Z-PATTERN FEATURES ========== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
}
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-text { order: 1; }
.feature.reverse .feature-image { order: 2; }

.feature-image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  background: #fff;
}
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}

.feature-points {
  list-style: none;
  margin-top: 28px;
}
.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: var(--text);
}
.feature-points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #dcfce7;
  color: var(--success);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========== REPORTS STRIP ========== */
.reports-section {
  background: #0f172a;
  color: #fff;
  padding: 90px 0;
}
.reports-section .section-label { color: #93c5fd; }
.reports-section .section-title { color: #fff; }
.reports-section .section-desc { color: #94a3b8; }

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.report-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 24px;
  transition: background 0.2s;
}
.report-card:hover { background: rgba(255,255,255,0.1); }
.report-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.report-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ========== PRICING ========== */
.pricing {
  background: #fff;
  padding: 100px 0 110px;
}
.pricing-header {
  text-align: center;
  margin-bottom: 56px;
}
.pricing-header .section-desc {
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.price-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  transition: all 0.2s;
}
.price-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px -15px rgba(30, 91, 184, 0.15);
  transform: translateY(-4px);
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 40px -15px rgba(30, 91, 184, 0.18);
}
.price-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.price-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.price-card .price {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 16px 0 4px;
  color: var(--text);
}
.price-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.price-card .price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.98rem;
  border-bottom: 1px solid #f1f5f9;
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: linear-gradient(135deg, #1e5bb8 0%, #3b82f6 100%);
  color: #fff;
  text-align: center;
  padding: 90px 0;
}
.final-cta h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.final-cta p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .btn {
  background: #fff;
  color: var(--primary);
}
.final-cta .btn:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* ========== FOOTER ========== */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}
footer a { color: #93c5fd; text-decoration: none; }

/* ========== SYSTEM MESSAGE BANNER (config.php SYSTEM_MESSAGE) ========== */
.system_message_banner{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  box-sizing:border-box;
  background-color:rgb(153, 27, 27);
  color:rgb(255,255,255);
  padding:calc(var(--u) * 1.5) 3vw;
  font-size:calc(var(--u) * 2);
  font-weight:bold;
  text-align:center;
  z-index:9000;
  opacity:1;
  transition:opacity 1s;
}
.system_message_banner_fade{
  opacity:0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-grid,
  .feature,
  .feature.reverse,
  .pricing-cards,
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .feature.reverse .feature-text,
  .feature.reverse .feature-image {
    order: unset;
  }
  .hero h1 { font-size: 2.3rem; }
  .section-title { font-size: 1.9rem; }
  .hero { padding: 50px 0 70px; }
  section { padding: 70px 0; }
  .feature { margin-bottom: 80px; gap: 32px; }
  .nav-links { display: none; }
}

/* Phone-width nav: logo + Log In + Get Started were overflowing/wrapping
   mid-word at full desktop button size once nav-links were hidden above -
   shrink them so all three fit on one line, with a wrap fallback (instead
   of overlapping) if a screen is narrower still. */
@media (max-width: 480px) {
  .nav {
    height: auto;
    min-height: 72px;
    padding: 12px 0;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .logo {
    font-size: 1.1rem;
  }
  .nav-cta-group {
    gap: 8px;
  }
  .nav-cta-group .btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}
