/* Premium Design System — brand overrides */
:root {
  --primary: #0B2545;
  --secondary: #2E6DB4;
  --primary-light: color-mix(in srgb, #0B2545 75%, var(--text-on-primary));
  --accent: #2E6DB4;
  --accent-soft: color-mix(in srgb, #0B2545 8%, var(--bg-secondary));
  --border: var(--border-color);
  /* Legacy aliases used in template CSS */
  --navy: var(--primary);
  --navy-light: color-mix(in srgb, var(--primary) 75%, var(--text-on-primary));
  --gold: var(--secondary);
  --gold-light: color-mix(in srgb, var(--secondary) 80%, var(--bg-main));
  --blue: var(--secondary);
  --light: var(--bg-secondary);
  --ink: var(--text-main);
  --muted: var(--text-muted);
  --bg: var(--bg-main);
  --surface: var(--bg-secondary);
  --white: var(--bg-main);
  --border: var(--border-color);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0;  color: var(--text-main); background: var(--bg-main); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
/* .container defined in premium-design-system.css */

header { padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.header-row { display: flex; align-items: center; justify-content: space-between; position: relative; gap: 12px; flex-wrap: wrap; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-toggle { display: none; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 1rem; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.logo b { color: var(--blue); }
nav a { margin-left: 20px; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.btn { display: inline-flex; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; }
.btn-primary { background: var(--navy); color: var(--text-on-primary); }
.btn-gold { background: var(--gold); color: var(--navy); }

.hero { padding: 80px 0; text-align: center; background: linear-gradient(180deg, var(--light) 0%, #fff 100%); }
.hero h1 { margin: 0 0 16px; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; color: var(--navy); max-width: 700px; margin-inline: auto; }
.hero p { margin: 0 auto 32px; max-width: 560px; color: var(--text-muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

section { padding: 5rem 1rem; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 10px; font-size: 1.8rem; color: var(--navy); }
.section-head p { margin: 0; color: var(--text-muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 28px; border: 1px solid var(--border-color); border-radius: 14px; }
.feature .icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 1rem; color: var(--navy); }
.feature p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

.pricing { background: var(--light); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px 24px; text-align: center; }
.plan.featured { border-color: var(--blue); box-shadow: 0 8px 32px rgba(46,109,180,0.15); transform: scale(1.03); }
.plan h3 { margin: 0 0 8px; color: var(--navy); }
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin: 16px 0; }
.plan .price span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; text-align: left; font-size: 0.9rem; color: var(--text-muted); }
.plan li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.plan li::before { content: "✓ "; color: var(--blue); font-weight: 700; }

.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial { background: var(--light); border-radius: 14px; padding: 24px; }
.testimonial p { margin: 0 0 12px; font-style: italic; color: var(--text-main); }
.testimonial cite { font-size: 0.85rem; color: var(--text-muted); font-style: normal; }

.cta { background: var(--navy); color: var(--text-on-primary); text-align: center; padding: 64px 0; }
.cta h2 { margin: 0 0 12px; }
.cta p { margin: 0 0 24px; opacity: 0.8; }

footer { padding: 32px 0; text-align: center; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid #e2e8f0; }

@media (max-width: 800px) {
  .features, .plans, .testimonials { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .nav-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-main);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 50;
  }
  nav.open { display: flex; }
  nav a { margin: 8px 0 0; }
}

.page:not(.active) { display: none; }
nav a.active { color: var(--navy); font-weight: 700; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-img { width: 100%; border-radius: 14px; object-fit: cover; box-shadow: 0 12px 40px rgba(11,37,69,0.15); }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.feature-tabs, .billing-toggle, .testimonial-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.feature-tab, .billing-btn, .t-tab { padding: 8px 18px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-main); cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.feature-tab.active, .billing-btn.active, .t-tab.active { background: var(--navy); color: var(--text-on-primary); border-color: var(--navy); }
.feature-panels { margin-bottom: 40px; }
.feature-panel { display: none; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.feature-panel.active { display: grid; }
.feature-panel img { width: 100%; border-radius: 12px; object-fit: cover; }
.t-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.testimonials { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: var(--text-on-primary); padding: 12px 20px; border-radius: 8px; opacity: 0; transition: opacity 0.3s; z-index: 100; }
.toast.show { opacity: 1; }
@media (max-width: 800px) { .hero-inner, .feature-panel.active { grid-template-columns: 1fr; } }

/* Dark mode */

[data-theme="dark"] .site-header, body.dark .site-header, body.dark-mode .site-header, body.dark-mode header { background: rgba(15,23,42,0.95); border-color: #334155; }
body.dark-mode .site-footer, body.dark-mode footer { background: #020617; }
body.dark-mode .product-card, body.dark-mode .team-card, body.dark-mode .cat-card,
body.dark-mode .testimonial-card, body.dark-mode .faq-item, body.dark-mode .stat-counter,
body.dark-mode .menu-card, body.dark-mode .pricing-card {
  background: #1e293b; border-color: #334155;
}
.theme-toggle {
  background: none; border: 1px solid var(--border-color); border-radius: 8px;
  padding: 6px 10px; cursor: pointer; font-size: 1rem; line-height: 1;
}
body.dark-mode .theme-toggle { border-color: #475569; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; padding: 48px 0; text-align: center; }
.stat-counter .num { font-size: 2.2rem; font-weight: 800; display: block; }
.stat-counter .lbl { font-size: 0.85rem; color: var(--text-muted); }
.testimonials { padding: 56px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--white, #fff); border: 1px solid var(--border-color); border-radius: var(--radius, 12px); padding: 24px; }
.testimonial-card .stars { color: #f59e0b; margin-bottom: 10px; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-card .author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.faq-section { padding: 56px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--text-muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 20px 16px; color: var(--text-muted); font-size: 0.95rem; }
.newsletter-cta { background: linear-gradient(135deg, var(--navy, #0B2545), var(--navy-light, #1a3a5c)); color: var(--text-on-primary); padding: 48px 24px; text-align: center; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 200px; padding: 12px 16px; border: 0; border-radius: 8px; }
.cta-banner { background: linear-gradient(90deg, var(--gold, #D4A843), var(--gold-light, #E8C96A)); color: var(--navy, #0B2545); padding: 32px 24px; text-align: center; }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding: 32px 0; font-size: 0.9rem; color: var(--text-muted); }
.why-choose { padding: 56px 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.why-card { text-align: center; padding: 24px 16px; }
.why-card .icon { font-size: 2rem; margin-bottom: 12px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.animate-in { animation: fadeUp 0.5s ease both; }

.home-extras.hidden { display: none !important; }
