/* ================================================================
   EMAILMINDS — Global Design System
   ================================================================ */

/* ---- Custom Properties ---------------------------------------- */
:root {
  --em-navy:      #050D1E;
  --em-navy-mid:  #0C1A36;
  --em-navy-card: #0F2040;
  --em-blue:      #1A47CC;
  --em-cyan:      #00C2FF;
  --em-orange:    #FF5C00;
  --em-orange-lt: #FF7A30;
  --em-white:     #FFFFFF;
  --em-off-white: #F0F4FF;
  --em-gray:      #8A9BB8;
  --em-border:    rgba(255,255,255,.08);

  --em-font-head: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --em-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --em-radius:    12px;
  --em-radius-lg: 20px;
  --em-shadow:    0 4px 32px rgba(0,0,0,.35);
  --em-shadow-lg: 0 16px 64px rgba(0,0,0,.5);

  --em-max:       1200px;
  --em-section:   100px;
}

/* ---- Reset extras --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---- Typography ----------------------------------------------- */
.em-h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.em-h2 { font-size: clamp(1.8rem, 3.5vw, 3rem);  font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.em-h3 { font-size: clamp(1.2rem, 2vw, 1.6rem);  font-weight: 600; line-height: 1.3; }
.em-h4 { font-size: 1.1rem; font-weight: 600; }
.em-lead { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--em-gray); }
.em-small { font-size: .85rem; color: var(--em-gray); }

.em-gradient-text {
  background: linear-gradient(135deg, var(--em-cyan) 0%, var(--em-blue) 60%, var(--em-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Layout helpers ------------------------------------------- */
.em-container {
  max-width: var(--em-max);
  margin-inline: auto;
  padding-inline: 24px;
}
.em-section {
  padding-block: var(--em-section);
}
.em-section-sm {
  padding-block: 60px;
}

/* ---- Buttons -------------------------------------------------- */
.em-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  white-space: nowrap;
}
.em-btn:hover { transform: translateY(-2px); opacity: .92; }
.em-btn:active { transform: translateY(0); }

.em-btn-primary {
  background: linear-gradient(135deg, var(--em-orange) 0%, var(--em-orange-lt) 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255,92,0,.35);
}
.em-btn-primary:hover { box-shadow: 0 12px 40px rgba(255,92,0,.5); }

.em-btn-secondary {
  background: transparent;
  color: var(--em-white);
  border: 2px solid rgba(255,255,255,.25);
}
.em-btn-secondary:hover { border-color: var(--em-cyan); color: var(--em-cyan); }

.em-btn-cyan {
  background: linear-gradient(135deg, var(--em-cyan) 0%, var(--em-blue) 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,194,255,.25);
}

.em-btn-lg { padding: 18px 44px; font-size: 1.1rem; }
.em-btn-xl { padding: 20px 52px; font-size: 1.2rem; }

/* ---- Badge / Tag ---------------------------------------------- */
.em-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,194,255,.12);
  border: 1px solid rgba(0,194,255,.3);
  color: var(--em-cyan);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.em-badge-orange {
  background: rgba(255,92,0,.12);
  border-color: rgba(255,92,0,.3);
  color: var(--em-orange-lt);
}
.em-badge-green {
  background: rgba(0,220,130,.12);
  border-color: rgba(0,220,130,.3);
  color: #00DC82;
}

/* ---- Cards ---------------------------------------------------- */
.em-card {
  background: var(--em-navy-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-lg);
  padding: 36px 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.em-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--em-shadow);
  border-color: rgba(0,194,255,.2);
}

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

/* ---- Glowing orb backgrounds ---------------------------------- */
.em-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .35;
}

/* ---- Stat counter --------------------------------------------- */
.em-stat-number {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--em-cyan), var(--em-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.em-stat-label {
  font-size: .9rem;
  color: var(--em-gray);
  margin-top: 6px;
}

/* ---- Animated underline link ---------------------------------- */
.em-link {
  color: var(--em-cyan);
  text-decoration: none;
  position: relative;
}
.em-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--em-cyan);
  transition: width .3s;
}
.em-link:hover::after { width: 100%; }

/* ---- Checklist ------------------------------------------------ */
.em-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.em-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--em-off-white);
  font-size: 1rem;
  line-height: 1.5;
}
.em-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--em-cyan), var(--em-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' fill='none'%3E%3Cpath d='M1 4l3.5 3.5L11 1' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ---- Form elements -------------------------------------------- */
.em-input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 14px 18px;
  color: var(--em-white);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.em-input::placeholder { color: var(--em-gray); }
.em-input:focus { border-color: var(--em-cyan); }

.em-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--em-gray);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---- Testimonial ---------------------------------------------- */
.em-testimonial {
  background: var(--em-navy-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-lg);
  padding: 32px;
}
.em-testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--em-off-white);
  font-style: italic;
  margin-bottom: 20px;
}
.em-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.em-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--em-cyan), var(--em-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}
.em-testimonial-name { font-weight: 600; color: var(--em-white); font-size: .95rem; }
.em-testimonial-role { font-size: .8rem; color: var(--em-gray); }

/* ---- Stars ---------------------------------------------------- */
.em-stars { color: #FFB800; font-size: 1rem; letter-spacing: 2px; }

/* ---- Section header ------------------------------------------- */
.em-section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 64px;
}
.em-section-header .em-badge { margin-bottom: 16px; }
.em-section-header .em-h2 { color: var(--em-white); margin-bottom: 16px; }
.em-section-header .em-lead { color: var(--em-gray); }

/* ---- Process step --------------------------------------------- */
.em-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.em-step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--em-cyan), var(--em-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}
.em-step-content h4 { color: var(--em-white); margin-bottom: 8px; }
.em-step-content p  { color: var(--em-gray); font-size: .95rem; line-height: 1.6; margin: 0; }

/* ---- Pricing card --------------------------------------------- */
.em-pricing-card {
  background: var(--em-navy-card);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-lg);
  padding: 40px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.em-pricing-card.em-featured {
  border-color: var(--em-cyan);
  box-shadow: 0 0 60px rgba(0,194,255,.15);
}
.em-price-tag {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--em-white);
  line-height: 1;
}
.em-price-period { font-size: .85rem; color: var(--em-gray); }

/* ---- Responsive grid helpers ---------------------------------- */
.em-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.em-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.em-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .em-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .em-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .em-grid-4,
  .em-grid-3,
  .em-grid-2 { grid-template-columns: 1fr; }
  :root { --em-section: 64px; }
}

/* ---- Utility -------------------------------------------------- */
.em-text-center { text-align: center; }
.em-text-white  { color: var(--em-white); }
.em-text-gray   { color: var(--em-gray); }
.em-text-cyan   { color: var(--em-cyan); }
.em-text-orange { color: var(--em-orange-lt); }
.em-mt-8  { margin-top: 8px; }
.em-mt-16 { margin-top: 16px; }
.em-mt-24 { margin-top: 24px; }
.em-mt-32 { margin-top: 32px; }
.em-mt-48 { margin-top: 48px; }
.em-mb-8  { margin-bottom: 8px; }
.em-mb-16 { margin-bottom: 16px; }
.em-mb-24 { margin-bottom: 24px; }
.em-mb-32 { margin-bottom: 32px; }
.em-gap-8  { gap: 8px; }
.em-gap-16 { gap: 16px; }
.em-gap-24 { gap: 24px; }
.em-flex   { display: flex; }
.em-flex-center { display: flex; align-items: center; }
.em-flex-wrap { flex-wrap: wrap; }
.em-relative { position: relative; overflow: hidden; }

/* ---- Navbar (used in homepage template) ----------------------- */
.em-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 20px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.em-nav.scrolled {
  background: rgba(5,13,30,.95);
  backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 4px 32px rgba(0,0,0,.4);
}
.em-nav-inner {
  max-width: var(--em-max);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.em-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--em-white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.em-logo span { color: var(--em-cyan); }
.em-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.em-nav-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.em-nav-links a:hover { color: var(--em-white); }
.em-nav-cta { margin-left: 8px; }
.em-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.em-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--em-white);
  border-radius: 2px;
  transition: all .3s;
}
@media (max-width: 768px) {
  .em-hamburger { display: flex; }
  .em-nav-links, .em-nav-cta-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5,13,30,.98);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-top: 1px solid var(--em-border);
  }
  .em-nav-links.open, .em-nav-cta-wrap.open { display: flex; }
}

/* ---- Footer --------------------------------------------------- */
.em-footer {
  background: var(--em-navy);
  border-top: 1px solid var(--em-border);
  padding-block: 64px 32px;
}
.em-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.em-footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--em-white); margin-bottom: 16px; }
.em-footer-logo span { color: var(--em-cyan); }
.em-footer-desc { color: var(--em-gray); font-size: .9rem; line-height: 1.7; }
.em-footer-col h5 { color: var(--em-white); font-weight: 600; margin-bottom: 16px; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.em-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.em-footer-links a { color: var(--em-gray); text-decoration: none; font-size: .9rem; transition: color .2s; }
.em-footer-links a:hover { color: var(--em-cyan); }
.em-footer-bottom {
  border-top: 1px solid var(--em-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.em-footer-bottom p { color: var(--em-gray); font-size: .85rem; margin: 0; }
.em-social-links { display: flex; gap: 12px; }
.em-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--em-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--em-gray);
  text-decoration: none;
  font-size: .85rem;
  transition: border-color .2s, color .2s;
}
.em-social-link:hover { border-color: var(--em-cyan); color: var(--em-cyan); }
@media (max-width: 900px) {
  .em-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .em-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Countdown timer ------------------------------------------ */
.em-countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.em-countdown-block {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 16px 24px;
  min-width: 80px;
  text-align: center;
}
.em-countdown-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--em-cyan);
  line-height: 1;
}
.em-countdown-label { font-size: .7rem; color: var(--em-gray); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* ---- FAQ accordion -------------------------------------------- */
.em-faq-item {
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.em-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  color: var(--em-white);
  font-weight: 600;
  font-size: 1rem;
  background: var(--em-navy-card);
  border: none;
  width: 100%;
  text-align: left;
  transition: background .2s;
  gap: 16px;
}
.em-faq-q:hover { background: rgba(255,255,255,.06); }
.em-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--em-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform .3s, border-color .2s;
  color: var(--em-cyan);
}
.em-faq-item.open .em-faq-icon { transform: rotate(45deg); border-color: var(--em-cyan); }
.em-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  color: var(--em-gray);
  font-size: .95rem;
  line-height: 1.7;
  padding: 0 24px;
  background: var(--em-navy-card);
}
.em-faq-item.open .em-faq-a { max-height: 400px; padding: 0 24px 20px; }

/* ---- Table ---------------------------------------------------- */
.em-comparison-table { width: 100%; border-collapse: collapse; }
.em-comparison-table th, .em-comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--em-border);
  font-size: .95rem;
}
.em-comparison-table th { color: var(--em-gray); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.em-comparison-table td { color: var(--em-off-white); }
.em-comparison-table tr:last-child td { border-bottom: none; }
.em-comparison-table .check { color: #00DC82; }
.em-comparison-table .cross { color: #FF5C5C; }

/* ---- Progress bar --------------------------------------------- */
.em-progress-bar {
  background: rgba(255,255,255,.08);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin-top: 8px;
}
.em-progress-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--em-cyan), var(--em-blue));
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ---- Page-specific base --------------------------------------- */
body.em-page {
  background: var(--em-navy) !important;
  color: var(--em-off-white);
  font-family: var(--em-font-body);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* Kill every Astra structural wrapper that could add white bg / outlines */
body.em-page #page,
body.em-page #content,
body.em-page .site,
body.em-page .ast-container,
body.em-page .entry-content,
body.em-page .ast-article-post,
body.em-page #primary,
body.em-page .ast-separate-container,
body.em-page .hfeed {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
