/* ============================================================
   MailPro Pilot — Global Stylesheet
   Shared across all pages
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Brand colours */
  --purple:        #3f2d95;
  --purple-mid:    #5040b8;
  --purple-vivid:  #6d4aff;
  --purple-muted:  #EEEDF9;
  --purple-pale:   #F5F4FC;
  --accent:        #00C6D4;
  --navy:          #12103a;

  /* Text */
  --text:   #1A1836;
  --text-2: #4a4870;
  --text-3: #8e8cb0;

  /* Surfaces & borders */
  --border:     #E8E7F2;
  --border-2:   #d4d2e8;
  --white:      #FFFFFF;
  --off-white:  #FAFAFE;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(18,16,58,.06), 0 1px 2px rgba(18,16,58,.04);
  --shadow-md: 0 4px 16px rgba(18,16,58,.09), 0 2px 6px rgba(18,16,58,.05);
  --shadow-lg: 0 16px 48px rgba(18,16,58,.12), 0 4px 16px rgba(18,16,58,.06);
  --shadow-xl: 0 32px 80px rgba(18,16,58,.15);

  /* Layout */
  --max: 1180px;
  --hh:  68px;           /* header height */

  /* Animation */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t:    .22s;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── LAYOUT UTILITIES ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.sec  { padding: 96px 0; }
.sec-alt { background: var(--off-white); }
.sc   { text-align: center; }
.sc .lead { margin: 0 auto 56px; }

/* ── TYPOGRAPHY ── */
.h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--navy);
}
.h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 14px;
}
.h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 10px;
}
.lead {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 540px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple-vivid);
  background: var(--purple-muted);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(63,45,149,.32);
}
.btn-primary:hover {
  background: var(--purple-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(63,45,149,.4);
}
.btn-ghost {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--purple-vivid);
  color: var(--purple);
  background: var(--purple-pale);
}
.btn-white-solid {
  background: var(--white);
  color: var(--purple);
  font-weight: 700;
}
.btn-white-solid:hover {
  background: var(--purple-pale);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,.18); }
.btn-sm { padding: 10px 20px; font-size: .875rem; }
.btn-lg { padding: 16px 34px; font-size: 1.0625rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── HEADER ── */
#hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hh);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(232,231,242,.8);
  z-index: 9999;
  transition: box-shadow var(--t) var(--ease);
}
#hdr.scrolled { box-shadow: var(--shadow-md); }
.hdr-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hh);
  gap: 20px;
}
.hdr-logo { display: flex; align-items: center; }
.hdr-logo img { height: 36px; width: auto; }
.hdr-nav { display: flex; align-items: center; gap: 30px; }
.hdr-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t);
  position: relative;
}
.hdr-nav a:hover { color: var(--purple); }
.hdr-nav a.active { color: var(--purple); font-weight: 600; }
.hdr-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--purple-vivid);
  border-radius: 2px;
}
.hdr-end { display: flex; align-items: center; gap: 10px; }

/* Mobile burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t) var(--ease);
}
.mob-nav {
  display: none;
  position: fixed;
  inset: var(--hh) 0 0 0;
  background: var(--white);
  padding: 28px;
  flex-direction: column;
  z-index: 9998;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.mob-nav a.active { color: var(--purple); font-weight: 600; }
.mob-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* ── PAGE HERO (shared inner pages) ── */
.page-hero {
  padding-top: calc(var(--hh) + 64px);
  padding-bottom: 64px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .lead { margin: 12px auto 0; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 20px;
  justify-content: center;
}
.breadcrumb a { color: var(--text-3); transition: color var(--t); }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb span { color: var(--text-2); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: all var(--t) var(--ease);
}
.card:hover {
  border-color: rgba(109,74,255,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.ico-p { background: var(--purple-muted); }
.ico-c { background: rgba(0,198,212,.1); }
.ico-g { background: rgba(16,185,129,.1); }
.ico-a { background: rgba(245,158,11,.1); }
.ico-r { background: rgba(239,68,68,.1); }
.ico-s { background: rgba(100,116,139,.1); }
.card-title { font-size: 1.0625rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card-desc  { font-size: .9rem; color: var(--text-2); line-height: 1.65; }

/* ── FEATURE GRID ── */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }

/* ── STEPS / HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  position: relative;
  margin-top: 56px;
}
.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-vivid));
  z-index: 0;
}
.step { text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.2rem; font-weight: 800; color: var(--purple);
  box-shadow: 0 0 0 6px var(--off-white), 0 0 0 7px var(--border);
  transition: all var(--t) var(--ease);
}
.step:hover .step-num {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--off-white), 0 4px 20px rgba(63,45,149,.3);
}
.step-title { font-weight: 700; font-size: .9375rem; color: var(--navy); margin-bottom: 8px; }
.step-desc  { font-size: .875rem; color: var(--text-2); line-height: 1.6; }

/* ── PRICING CARDS ── */
.pgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; margin-top: 56px; }
.pcard {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 30px;
  position: relative;
  transition: all var(--t) var(--ease);
}
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pcard.pop {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple), var(--shadow-xl);
}
.pop-tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: white;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.p-tier { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-vivid); margin-bottom: 6px; }
.p-name { font-size: 1.375rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.p-amt  { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 4px; }
.pa-c   { font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 2; }
.pa-n   { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pa-u   { font-size: .8125rem; color: var(--text-3); margin-bottom: 8px; }
.p-note { font-size: .8rem; color: var(--text-3); padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.p-feats { margin-bottom: 28px; }
.pfi  { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: .9rem; color: var(--text-2); }
.pfc  { color: var(--success); font-size: 1rem; flex-shrink: 0; font-weight: 700; }

/* ── FAQ ── */
.faq-list  { max-width: 760px; margin: 56px auto 0; }
.faq-item  { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 22px 2px;
  background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--navy);
  text-align: left; gap: 16px;
  transition: color var(--t);
}
.faq-q:hover { color: var(--purple); }
.faq-ico {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--text-3);
  flex-shrink: 0; transition: all var(--t) var(--ease);
}
.faq-item.open .faq-ico { background: var(--purple); border-color: var(--purple); color: var(--white); transform: rotate(180deg); }
.faq-a { display: none; padding: 0 2px 22px; font-size: .9375rem; color: var(--text-2); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── SUPPORT / DARK SECTION ── */
.dark-sec {
  background: var(--navy);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.dark-sec::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: var(--purple-vivid);
  border-radius: 50%;
  filter: blur(140px);
  opacity: .1;
  top: -200px; right: -100px;
  pointer-events: none;
}
.dark-sec > .wrap { position: relative; z-index: 1; }
.dark-h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -.02em; line-height: 1.2;
  margin-bottom: 14px;
}
.dark-desc { color: rgba(255,255,255,.6); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--purple) 60%, var(--purple-vivid) 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cta-inner { position: relative; }
.cta-h   { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; color: var(--white); letter-spacing: -.02em; margin-bottom: 14px; }
.cta-sub { color: rgba(255,255,255,.72); font-size: 1.0625rem; margin-bottom: 36px; }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.titem { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--text-2); }
.titem svg { width: 16px; height: 16px; color: var(--purple-vivid); flex-shrink: 0; }

/* ── PLATFORMS ── */
.plat-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 14px;
  margin-top: 48px;
}

.pp{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;

  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:var(--r-md);
  padding:18px 10px;

  font-size:.8rem;
  font-weight:600;
  color:var(--text-2);
}


.pp:hover{
  border-color: var(--purple-vivid);
  color: var(--purple);
  background: var(--purple-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pp-em{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:10px;
}

.pp-em img{
  width:28px;
  height:28px;
  object-fit:contain;
}

.pp-em svg{
  width:28px;
  height:28px;
}

/* ── SUPPORT CHANNELS ── */
.sup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.sup-chs  { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.sch {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: 22px 16px; text-align: center;
  transition: all var(--t) var(--ease);
}
.sch:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.sch-ico    { font-size: 1.75rem; margin-bottom: 10px; }
.sch-name   { font-weight: 700; color: var(--white); font-size: .9375rem; margin-bottom: 4px; }
.sch-detail { color: rgba(255,255,255,.45); font-size: .78rem; }

/* ── FOOTER ── */
#footer { background: var(--navy); padding: 64px 0 32px; }
.fg { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.fg-logo img  { height: 34px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.fg-desc { font-size: .875rem; line-height: 1.65; max-width: 270px; margin-bottom: 24px; color: rgba(255,255,255,.45); }
.fg-soc  { display: flex; gap: 10px; }
.soc {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .9rem;
  transition: all var(--t);
}
.soc:hover { background: rgba(255,255,255,.14); color: var(--white); }
.fg-head { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.fg-links { display: flex; flex-direction: column; gap: 11px; }
.fg-links a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color var(--t); }
.fg-links a:hover { color: var(--white); }
.f-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.f-copy  { font-size: .8125rem; color: rgba(255,255,255,.3); }
.f-legal { display: flex; gap: 22px; }
.f-legal a { font-size: .8125rem; color: rgba(255,255,255,.3); transition: color var(--t); }
.f-legal a:hover { color: rgba(255,255,255,.65); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: .875rem; font-weight: 600;
  color: var(--text); margin-bottom: 7px;
}
.form-label span { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  font-family: inherit; font-size: .9375rem; color: var(--text);
  background: var(--white); border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--purple-vivid);
  box-shadow: 0 0 0 3px rgba(109,74,255,.12);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: .8rem; color: var(--text-3); margin-top: 5px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── BADGES / STATUS ── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.badge-purple { background: var(--purple-muted); color: var(--purple); }
.badge-green  { background: rgba(16,185,129,.12); color: #059669; }
.badge-amber  { background: rgba(245,158,11,.12); color: #d97706; }
.badge-blue   { background: rgba(59,130,246,.12); color: #2563eb; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ── SCROLL REVEAL ── */
[data-r] { opacity: 0; transform: translateY(22px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-r].vis { opacity: 1; transform: translateY(0); }
[data-r="2"] { transition-delay: .1s; }
[data-r="3"] { transition-delay: .2s; }
[data-r="4"] { transition-delay: .3s; }
[data-r="5"] { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .pgrid { grid-template-columns: repeat(2,1fr); }
  .plat-grid { grid-template-columns: repeat(4,1fr); }
  .fg { grid-template-columns: 1fr 1fr; }
  .sup-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 768px) {
  .hdr-nav, .hdr-end { display: none; }
  .burger { display: flex; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .steps::before { display: none; }
  .pgrid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: repeat(3,1fr); }
  .sup-chs { grid-template-columns: 1fr; }
  .fg { grid-template-columns: 1fr; gap: 36px; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .plat-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; }
  .trust-row { gap: 20px; }
  .cta-btns { flex-direction: column; align-items: center; }
}
