/* VeriMails Shared Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111827;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #4f46e5; text-decoration: none; }
a:hover { color: #4338ca; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 22px; font-weight: 800; color: #111827;
  text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo span { color: #4f46e5; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a, .nav-trigger {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: #374151;
  background: none; border: none; cursor: pointer;
  text-decoration: none; font-family: inherit;
}
.nav-item > a:hover, .nav-trigger:hover { background: #f3f4f6; color: #111827; }
.nav-trigger svg { width: 12px; height: 12px; transition: transform 0.15s; }
.nav-item:hover .nav-trigger svg { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-login { font-size: 14px; font-weight: 500; color: #374151; padding: 8px 14px; border-radius: 6px; }
.nav-login:hover { background: #f3f4f6; color: #111827; }
.nav-cta {
  font-size: 14px; font-weight: 600; color: #fff;
  background: #4f46e5; padding: 8px 20px; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(79,70,229,0.3);
}
.nav-cta:hover { background: #4338ca; color: #fff; }

/* Mega menu */
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  min-width: 240px;
}

.mega-menu.wide { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mega-label { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.mega-link {
  display: block; padding: 6px 0; font-size: 14px; color: #374151; font-weight: 500;
}
.mega-link:hover { color: #4f46e5; }

/* Mobile nav */
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle svg { width: 24px; height: 24px; color: #374151; }


/* Desktop-only mega menu hover */
@media (min-width: 769px) {
  .nav-item:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-right { display: none; }
  .nav-mobile-toggle { display: block; }
  
  body.nav-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 8px 0;
    overflow-y: auto;
    z-index: 999;
    gap: 0;
  }
  
  body.nav-open .nav-right {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    z-index: 1000;
    gap: 8px;
  }
  
  body.nav-open .nav-right .nav-cta {
    text-align: center;
    display: block;
  }
  
  /* Mobile nav items */
  body.nav-open .nav-item {
    border-bottom: 1px solid #f3f4f6;
  }
  
  body.nav-open .nav-item > a,
  body.nav-open .nav-trigger {
    padding: 12px 24px;
    width: 100%;
    font-size: 15px;
    border-radius: 0;
  }
  
  /* Mobile mega menus — accordion style */
  body.nav-open .mega-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 24px 12px 40px;
    display: none;
    min-width: unset;
    background: #f9fafb;
  }
  
  body.nav-open .mega-menu.wide {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: unset;
  }
  
  /* Show mega menu when nav-item has .open class */
  body.nav-open .nav-item.open .mega-menu,
  body.nav-open .nav-item.open .mega-menu.wide {
    display: block;
  }
  
  body.nav-open .mega-link {
    padding: 8px 0;
    font-size: 14px;
  }
  
  body.nav-open .mega-label {
    margin-top: 8px;
    margin-bottom: 4px;
  }
  

}

/* ── SECTIONS ── */
section { padding: 80px 0; }
section:nth-child(even) { background: #f5f5f7; }
.section-alt { background: #f5f5f7; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -1px; color: #111827; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; color: #111827; margin-bottom: 16px; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.3; color: #111827; margin-bottom: 12px; }
p { color: #6b7280; line-height: 1.7; margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ── HERO ── */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
}
.page-hero p { max-width: 680px; margin: 16px auto 0; font-size: 18px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px;
  font-size: 13px; color: #9ca3af; margin-bottom: 24px;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #4f46e5; }
.breadcrumb span { color: #d1d5db; }

/* ── CARDS ── */
.card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 32px;
}
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ── TABLES ── */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  margin: 32px 0;
}
.compare-table th {
  background: #f9fafb; padding: 14px 20px;
  font-size: 13px; font-weight: 600; color: #6b7280;
  text-align: left; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid #e5e7eb;
}
.compare-table td {
  padding: 14px 20px; border-bottom: 1px solid #f3f4f6;
  font-size: 14px; color: #374151;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .highlight-cell { color: #4f46e5; font-weight: 600; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 12px 28px;
  background: #4f46e5; color: #fff; font-weight: 600;
  font-size: 15px; border-radius: 8px; border: none; cursor: pointer;
  box-shadow: 0 1px 3px rgba(79,70,229,0.3);
  text-decoration: none;
}
.btn:hover { background: #4338ca; color: #fff; }
.btn-outline {
  background: #fff; color: #4f46e5; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.btn-outline:hover { background: #f5f5f7; color: #4338ca; }
.btn-lg { padding: 14px 36px; font-size: 16px; }

/* ── CTA BOX ── */
.cta-box {
  text-align: center; padding: 64px 32px;
  background: #f5f5f7; border-radius: 16px; margin: 48px 0;
}
.cta-box h2 { margin-bottom: 12px; }
.cta-box p { max-width: 520px; margin: 0 auto 28px; }
.cta-trust { font-size: 13px; color: #9ca3af; margin-top: 12px; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid #e5e7eb; padding: 24px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { font-size: 15px; }

/* ── PRICING CARDS ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.pricing-card {
  background: #fff; border-radius: 14px; padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 2px solid transparent;
}
.pricing-card.featured { border-color: #4f46e5; }
.pricing-card .price { font-size: 36px; font-weight: 800; color: #111827; margin: 8px 0; }
.pricing-card .price small { font-size: 16px; font-weight: 400; color: #6b7280; }
.pricing-card ul { list-style: none; margin: 20px 0; }
.pricing-card li { padding: 6px 0; font-size: 14px; color: #374151; padding-left: 22px; position: relative; }
.pricing-card li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; background: #4f46e5; border-radius: 50%; }
.brand-label { font-size: 14px; font-weight: 700; color: #4f46e5; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── CONTENT SECTIONS ── */
.content-section { margin: 48px 0; }
.content-section h2 { margin-bottom: 20px; }
.content-section h3 { margin-top: 32px; margin-bottom: 12px; }
.content-section p { font-size: 16px; }
.content-section ul { margin: 12px 0 16px 20px; }
.content-section li { padding: 4px 0; color: #374151; font-size: 15px; }

/* ── INDEX / LISTING CARDS ── */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.listing-card {
  display: block; background: #fff; border-radius: 14px; padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  text-decoration: none; color: inherit;
}
.listing-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.listing-card h3 { color: #111827; margin-bottom: 8px; font-size: 18px; }
.listing-card p { font-size: 14px; margin: 0; }

/* ── FOOTER ── */
.site-footer { background: #fff; color: #6b7280; padding: 48px 0 24px; margin-top: 0; border-top: 1px solid #e5e7eb; }
.footer-grid {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 40px;
}
.footer-col h4 { color: #111827; font-size: 12px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-col a { display: block; font-size: 13px; color: #6b7280; padding: 3px 0; text-decoration: none; }
.footer-col a:hover { color: #4f46e5; }
.footer-bottom { max-width: 1100px; margin: 32px auto 0; padding: 16px 24px 0; border-top: 1px solid #e5e7eb; font-size: 12px; color: #9ca3af; }

@media (max-width: 768px) {
  section { padding: 48px 0; }
  .page-hero { padding: 48px 0 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-menu.wide { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Enhanced Mobile ── */
@media (max-width: 600px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  p { font-size: 14px; }
  section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .page-hero { padding: 40px 0 24px; }
  .page-hero p { font-size: 15px; }
  .breadcrumb { font-size: 12px; margin-bottom: 16px; }
  .card { padding: 20px; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-card { padding: 20px; }
  .listing-card h3 { font-size: 16px; }
  .listing-card p { font-size: 13px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
  .btn { padding: 10px 20px; font-size: 14px; width: 100%; text-align: center; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }
  .cta-box { padding: 40px 20px; }
  .cta-box h2 { font-size: 22px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card .price { font-size: 28px; }
  .faq-item h3 { font-size: 15px; }
  .faq-item p { font-size: 13px; }
  .content-section p { font-size: 14px; }
  .content-section li { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { font-size: 12px; }
  .nav-inner { height: 56px; padding: 0 16px; }
  .nav-logo { font-size: 18px; }
  .site-footer { padding: 40px 0 24px; margin-top: 48px; }
}

@media (max-width: 380px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .compare-table { display: block; overflow-x: auto; }
}
