/* ============================================================
   Numu Masar Invest — Main Stylesheet
   Inspired by acorns.com layout & structure
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a2332;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- CSS Variables --- */
:root {
  --green:       #1a6b3a;
  --green-dark:  #104825;
  --green-light: #e8f5ed;
  --gold:        #c5963a;
  --gold-light:  #fdf6e3;
  --slate:       #1a2332;
  --stone:       #4a5568;
  --charcoal:    #2d3748;
  --ecru:        #f7f4ef;
  --white:       #ffffff;
  --light-grey:  #f5f5f5;
  --border:      #e2e8f0;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
  --radius:      12px;
  --radius-lg:   20px;
  --radius-pill: 999px;
  --nav-height:  76px;
  --transition:  all 0.25s ease;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--slate); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { color: var(--stone); line-height: 1.7; }
.tagline { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.lead { font-size: 1.15rem; color: var(--stone); }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }

/* --- Buttons (CTAs) --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,107,58,0.3); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a07828; transform: translateY(-1px); }
.btn-lg { padding: 18px 44px; font-size: 1.1rem; }
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--ecru); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; display: block; }
@media (max-width: 768px) { .nav-logo img { height: 44px; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 8px 14px; font-size: 0.92rem; font-weight: 600;
  color: var(--stone); border-radius: 8px; transition: var(--transition);
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--green); background: var(--green-light); }
.nav-link .arrow { font-size: 0.65rem; margin-top: 1px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login { font-size: 0.92rem; font-weight: 600; color: var(--stone); padding: 8px 16px; border-radius: 8px; }
.nav-login:hover { color: var(--green); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px;
  min-width: 260px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); z-index: 200;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 8px; transition: var(--transition);
}
.dropdown-item:hover { background: var(--green-light); }
.dropdown-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--green-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.dropdown-title { font-weight: 700; font-size: 0.9rem; color: var(--slate); }
.dropdown-sub { font-size: 0.78rem; color: var(--stone); }

/* Mobile Nav */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--slate); border-radius: 2px; transition: var(--transition); }
#mobile-nav {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; overflow-y: auto; padding: 24px;
}
#mobile-nav.open { display: block; }
.mobile-nav-link { display: block; padding: 16px 0; font-size: 1.1rem; font-weight: 600; color: var(--slate); border-bottom: 1px solid var(--border); }
.mobile-nav-link:hover { color: var(--green); }
.mobile-nav-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* Add-header-padding utility */
.add-header-padding { padding-top: var(--nav-height); }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--slate) 0%, var(--green-dark) 60%, var(--green) 100%);
  color: #fff;
}
.hero-content { position: relative; z-index: 2; padding: 80px 0 60px; }
.hero-tagline { color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.hero-headline { color: #fff; margin-bottom: 20px; }
.hero-headline span { color: #7fd4a0; }
.hero-body { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 520px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: absolute; right: 0; bottom: 0; top: 0; width: 50%; max-width: 640px; display: flex; align-items: flex-end; justify-content: center; }
.hero-image img { height: 90%; object-fit: contain; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-pill); padding: 8px 20px; font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 28px; }

/* Hero Carousel (ticker) */
.ticker-bar { background: var(--green); padding: 12px 0; overflow: hidden; }
.ticker-inner { display: flex; white-space: nowrap; }
.ticker-track { display: flex; gap: 48px; animation: ticker 30s linear infinite; }
.ticker-track span { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); white-space: nowrap; padding-right: 48px; border-right: 1px solid rgba(255,255,255,0.3); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Social Proof Banner */
.proof-banner { background: var(--ecru); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.proof-items { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.proof-item { text-align: center; }
.proof-item .proof-tagline { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.proof-item .proof-number { font-size: 1.6rem; font-weight: 800; color: var(--slate); }
.proof-item .proof-label { font-size: 0.82rem; color: var(--stone); }
.proof-divider { width: 1px; height: 48px; background: var(--border); }

/* ============================================================
   CARDS & FEATURES
   ============================================================ */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.card-title { font-size: 1.15rem; font-weight: 700; color: var(--slate); margin-bottom: 10px; }
.card-body { font-size: 0.92rem; color: var(--stone); line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 700; color: var(--green); margin-top: 16px; }
.card-link:hover { gap: 10px; }
.card.card-green { background: var(--green); border-color: var(--green); }
.card.card-green .card-title, .card.card-green p { color: #fff; }
.card.card-slate { background: var(--slate); border-color: var(--slate); }
.card.card-slate .card-title, .card.card-slate p { color: #fff; }

/* Feature Row (image + text) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row.reverse .feature-image { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }
.feature-image { border-radius: var(--radius-lg); overflow: hidden; }
.feature-image img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-lg); }
.feature-image.placeholder-img { width: 100%; height: 380px; background: linear-gradient(135deg, var(--green-light), var(--ecru)); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--green); font-weight: 700; font-size: 0.9rem; }
.feature-image.placeholder-img .ph-icon { font-size: 3rem; opacity: 0.6; }
.feature-copy .tagline { margin-bottom: 12px; }
.feature-copy h2, .feature-copy h3 { margin-bottom: 16px; }
.feature-copy p { margin-bottom: 20px; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; }
.check-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; margin-top: 2px; }
.check-text { font-size: 0.95rem; color: var(--stone); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 28px; background: #fff; transition: var(--transition);
  position: relative; overflow: hidden;
}
.pricing-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.pricing-card.popular { border-color: var(--green); }
.popular-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 20px; border-radius: 0 0 10px 10px;
}
.pricing-tier { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.pricing-name { font-size: 1.5rem; font-weight: 800; color: var(--slate); margin-bottom: 4px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.pricing-price .amount { font-size: 2.2rem; font-weight: 800; color: var(--slate); }
.pricing-price .period { font-size: 0.9rem; color: var(--stone); }
.pricing-price .currency { font-size: 1rem; font-weight: 700; color: var(--stone); margin-bottom: 4px; }
.pricing-desc { font-size: 0.9rem; color: var(--stone); margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--stone); }
.pricing-feature .pf-icon { color: var(--green); font-size: 0.9rem; flex-shrink: 0; margin-top: 3px; }
.pricing-cta { width: 100%; }

/* ============================================================
   ABOUT
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--green); margin: 0 auto 16px; }
.team-name { font-weight: 700; font-size: 1rem; color: var(--slate); }
.team-role { font-size: 0.85rem; color: var(--stone); }

.value-card { text-align: center; padding: 40px 24px; }
.value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.stat-big { font-size: 3rem; font-weight: 800; color: var(--green); }
.stat-label { font-size: 0.9rem; color: var(--stone); }

/* ============================================================
   LEARN / ARTICLES
   ============================================================ */
.article-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.article-thumb { width: 100%; height: 180px; object-fit: cover; }
.article-thumb-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--green-light), var(--ecru)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.article-body { padding: 20px; }
.article-category { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.article-title { font-size: 1rem; font-weight: 700; color: var(--slate); margin-bottom: 8px; line-height: 1.35; }
.article-excerpt { font-size: 0.85rem; color: var(--stone); line-height: 1.6; }
.article-meta { margin-top: 12px; font-size: 0.78rem; color: #999; }

/* Category pills */
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cat-pill { padding: 8px 20px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--stone); transition: var(--transition); cursor: pointer; }
.cat-pill:hover, .cat-pill.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-weight: 700; font-size: 1rem; color: var(--slate);
  cursor: pointer; transition: var(--transition);
}
.faq-question:hover { color: var(--green); }
.faq-toggle { font-size: 1.4rem; color: var(--green); flex-shrink: 0; transition: var(--transition); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding-bottom: 20px; font-size: 0.95rem; color: var(--stone); line-height: 1.7; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 400px; }

/* ============================================================
   SECURITY / TRUST
   ============================================================ */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.security-card { padding: 32px; border-radius: var(--radius-lg); background: var(--ecru); text-align: center; }
.security-icon { font-size: 2.5rem; margin-bottom: 16px; }
.security-title { font-size: 1.05rem; font-weight: 700; color: var(--slate); margin-bottom: 10px; }
.security-text { font-size: 0.9rem; color: var(--stone); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--ecru); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 12px; }
.testimonial-text { font-size: 0.95rem; color: var(--stone); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--slate); }
.testimonial-location { font-size: 0.8rem; color: var(--stone); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); padding: 80px 0; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 560px; margin: 0 auto 36px; }
.cta-banner .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--slate); color: rgba(255,255,255,0.8); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .footer-logo { display: flex; align-items: center; margin-bottom: 16px; }
.footer-brand .footer-logo img { height: 56px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 300px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: #fff; transition: var(--transition); }
.footer-social:hover { background: var(--green); }
.footer-col h4 { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.75); transition: var(--transition); }
.footer-col ul li a:hover { color: #7fd4a0; }
.footer-bottom { padding-top: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.footer-bottom a:hover { color: #7fd4a0; }
.footer-legal { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.7; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07); margin-top: 24px; }
.footer-address { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   PAGE-SPECIFIC HERO VARIANTS
   ============================================================ */
.hero-sm { min-height: 50vh; }
.hero-green { background: linear-gradient(135deg, var(--green-dark) 0%, #1e7a43 100%); }
.hero-gold { background: linear-gradient(135deg, #6b4c12 0%, var(--gold) 100%); }
.hero-dark { background: linear-gradient(135deg, #0d1a2a 0%, var(--slate) 100%); }
.hero-ecru { background: var(--ecru); }
.hero-ecru .hero-headline, .hero-ecru .tagline { color: var(--slate); }
.hero-ecru .hero-body { color: var(--stone); }

/* Section backgrounds */
.bg-white { background: #fff; }
.bg-ecru { background: var(--ecru); }
.bg-green { background: var(--green); }
.bg-green-light { background: var(--green-light); }
.bg-slate { background: var(--slate); }
.bg-gold-light { background: var(--gold-light); }

/* Placeholder image utility */
.placeholder-rect {
  width: 100%; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-light) 0%, var(--ecru) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--green); font-size: 0.85rem; font-weight: 600;
  text-align: center; padding: 40px;
}
.placeholder-rect .ph-big { font-size: 3.5rem; opacity: 0.6; }
.placeholder-rect.h-320 { height: 320px; }
.placeholder-rect.h-420 { height: 420px; }
.placeholder-rect.h-500 { height: 500px; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 32px; }
.step { display: flex; align-items: flex-start; gap: 20px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-body { padding-top: 8px; }
.step-title { font-weight: 700; font-size: 1.05rem; color: var(--slate); margin-bottom: 6px; }
.step-text { font-size: 0.92rem; color: var(--stone); }

/* App badge row */
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--slate); color: #fff; border-radius: 10px; padding: 10px 20px; font-size: 0.85rem; font-weight: 600; }
.app-badge:hover { background: #2d3748; }
.app-badge-icon { font-size: 1.4rem; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 0; }

/* Section header */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-header .tagline { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

/* Table */
.compare-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-lg); overflow: hidden; }
.compare-table th { background: var(--slate); color: #fff; padding: 16px 20px; text-align: left; font-size: 0.85rem; font-weight: 700; }
.compare-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--ecru); }
.compare-table .check { color: var(--green); font-weight: 700; }
.compare-table .cross { color: #cbd5e0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-login { display: none; }
  .grid-2, .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-image { order: unset; }
  .feature-row.reverse .feature-copy { order: unset; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-image { display: none; }
  .hero-content { padding: 100px 0 60px; }
  .footer-top { grid-template-columns: 1fr; }
  .proof-items { gap: 24px; }
  .proof-divider { display: none; }
  .section-header { margin-bottom: 36px; }
  .section { padding: 60px 0; }
  .cta-banner { padding: 60px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .category-pills { gap: 8px; }
  .app-badges { flex-direction: column; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.3s ease both; }

/* Smooth reveal on scroll (JS-driven) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MOBILE OVERFLOW FIX
   Prevents horizontal scroll caused by wide slider tracks,
   ticker bars, and any element exceeding viewport width
   ============================================================ */

/* All slider wrappers must clip overflow */
#hero-slider,
#pi-slider,
#re-slider,
#pr-slider,
#ab-slider,
#lrn-slider,
#ct-slider,
#sec-slider { overflow: hidden; max-width: 100%; }

/* Slider tracks are intentionally 300% wide —
   clip them inside the slider wrapper */
.hs-track,
.pi-track,
.re-track,
.pr-track,
.ab-track,
.lrn-track,
.ct-track,
.sec-track { overflow: hidden; }

/* Each slide must not overflow its column */
.hs-slide,
.pi-slide,
.re-slide,
.pr-slide,
.ab-slide,
.lrn-slide,
.ct-slide,
.sec-slide { overflow: hidden; min-width: 0; }

/* Ticker bar */
.ticker-bar,
.ticker-inner,
.ticker-track { overflow: hidden; }

/* Nav — prevent any item pushing beyond viewport */
#nav { max-width: 100vw; overflow: hidden; }

/* Containers must never exceed viewport */
.container,
.container-wide { max-width: min(1200px, 100%); }

/* Tables can scroll horizontally in their own wrapper only */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Fix for pricing comparison table on mobile */
@media (max-width: 768px) {
  .feature-check-table { min-width: 520px; }
  .feature-check-table th,
  .feature-check-table td { padding: 10px 12px; font-size: 0.82rem; }
  /* Wrap the table so it scrolls inside its own box, not the page */
  section .container > div[style*="overflow-x:auto"] { max-width: 100%; }
}

/* Prevent any absolute-positioned elements from causing scroll */
@media (max-width: 768px) {
  .hs-bg, .pi-bg, .re-bg, .pr-bg, .ab-bg, .lrn-bg, .ct-bg, .sec-bg {
    width: 100%; left: 0; right: 0;
  }
  /* Pricing grid single column already handled, but ensure no overflow */
  .pricing-grid { overflow: hidden; }
  /* Grid cells */
  .grid-2, .grid-3, .grid-4 { overflow: hidden; }
  /* Stats row on homepage */
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .btn-lg { padding: 14px 24px !important; font-size: 1rem !important; }
}
