/* ===========================================================================
   ProMail — product marketing site
   Modern design system layered on Bootstrap 5.3.2.
   Brand tokens live as CSS variables so the palette is tweakable in one place.
   =========================================================================== */

:root {
  --pm-primary: #405189;          /* app primary (navy #405189) */
  --pm-primary-2: #5b6bb0;        /* lighter navy (gradient end) */
  --pm-primary-dark: #2f3d68;
  --pm-accent: #0ab39c;           /* teal accent (app success) */
  --pm-ink: #0f172a;              /* near-black headings                      */
  --pm-body: #475569;             /* body text                               */
  --pm-muted: #94a3b8;
  --pm-soft: #f6f7fb;             /* soft section bg                         */
  --pm-border: #e8ebf3;
  --pm-grad: linear-gradient(135deg, #405189 0%, #5b6bb0 100%);
  --pm-grad-soft: linear-gradient(135deg, #eef1fb 0%, #f4f6fc 100%);
  --pm-shadow: 0 18px 50px rgba(64,81,137, .14);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--pm-body);
  line-height: 1.65;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--pm-ink); font-weight: 700; letter-spacing: -.02em; }
.fw-black { font-weight: 800 !important; }
.lead { color: var(--pm-body); }

/* ---- Helpers ----------------------------------------------------------- */
.text-gradient {
  background: var(--pm-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-grad { background: var(--pm-grad) !important; }
.bg-grad-soft { background: var(--pm-grad-soft) !important; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-soft { background: var(--pm-soft); }
.rounded-2xl { border-radius: 1.25rem !important; }
.rounded-3xl { border-radius: 1.75rem !important; }
.shadow-soft { box-shadow: 0 12px 40px rgba(15, 23, 42, .07) !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  text-transform: uppercase; letter-spacing: 1.4px; font-size: .75rem;
  font-weight: 700; color: var(--pm-primary);
  background: #eef1fb; padding: .4rem .85rem; border-radius: 2rem;
}
.eyebrow.on-dark { color: #fff; background: rgba(255,255,255,.14); }
.section-title { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.5rem); }

/* ---- Buttons ----------------------------------------------------------- */
.btn { border-radius: .7rem; font-weight: 600; transition: all .25s ease; }
.btn-lg { padding: .8rem 1.7rem; }
.btn-primary {
  --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
  background: var(--pm-grad); border: none; color: #fff;
  box-shadow: 0 8px 22px rgba(64,81,137,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(64,81,137,.45); color:#fff; }
.btn-outline-primary {
  --bs-btn-color: var(--pm-primary); --bs-btn-border-color: #d6d9ec;
  --bs-btn-hover-bg: var(--pm-primary); --bs-btn-hover-border-color: var(--pm-primary);
  --bs-btn-active-bg: var(--pm-primary);
  background:#fff;
}
.btn-outline-primary:hover { transform: translateY(-2px); }
.btn-light { font-weight: 600; }
.btn-light:hover { transform: translateY(-2px); }
.text-primary { color: var(--pm-primary) !important; }
a { color: var(--pm-primary); text-decoration: none; }

/* ---- Navbar ------------------------------------------------------------ */
.navbar {
  transition: box-shadow .3s ease, background .3s ease, padding .3s ease;
  padding: 1rem 0;
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(15,23,42,.08); padding: .6rem 0; }
.navbar-brand img { height: 36px; }
.navbar .nav-link {
  font-weight: 600; color: #334155; padding: .5rem 1rem; position: relative;
}
.navbar .nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .25rem;
  height: 2px; background: var(--pm-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--pm-primary); }
.navbar .nav-link.active::after, .navbar .nav-link:hover::after { transform: scaleX(1); }

/* ---- Hero (dark, image-backed) ----------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(115deg, rgba(20,27,52,.96) 0%, rgba(47,61,104,.9) 52%, rgba(64,81,137,.82) 100%),
    url("../images/hero-bg.jpg");
  background-size: cover; background-position: center;
  padding: 7rem 0 5rem;
}
.hero .blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35;
  z-index: 0; animation: float 9s ease-in-out infinite;
}
.hero .blob-1 { width: 340px; height: 340px; background: #5b6bb0; top: -90px; right: -60px; }
.hero .blob-2 { width: 280px; height: 280px; background: #0ab39c; bottom: -90px; left: -60px; animation-delay: 1.5s; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero .text-secondary { color: rgba(255,255,255,.8) !important; }
.hero .eyebrow { color: #fff; background: rgba(255,255,255,.14); }
/* highlighted word -> light gradient so it reads on the dark hero */
.hero .text-gradient {
  background: linear-gradient(135deg, #cdd6ee 0%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-26px) translateX(14px); }
}

/* hero product mock */
.hero-mock {
  background: #fff; border-radius: 1.25rem; box-shadow: var(--pm-shadow);
  border: 1px solid var(--pm-border); overflow: hidden;
}
.hero-mock .mock-bar { background: #f1f3f9; padding: .6rem .9rem; display: flex; gap: .4rem; }
.hero-mock .mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cdd3e3; }

/* page hero (interior pages — image-backed with navy overlay).
   Each page sets its own relevant photo via a modifier class; the navy
   overlay (--hdr) is shared so the look stays consistent on-brand. */
.page-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  --hdr: linear-gradient(120deg, rgba(20,27,52,.92) 0%, rgba(47,61,104,.88) 60%, rgba(64,81,137,.82) 100%);
  background-image: var(--hdr), url("../images/page-title-bg.jpg");
  background-size: cover; background-position: center;
  padding: 6rem 0 5rem;
}
.page-hero.hero-features { background-image: var(--hdr), url("../images/features-bg.jpg"); }
.page-hero.hero-pricing  { background-image: var(--hdr), url("../images/pricing-bg.jpg"); }
.page-hero.hero-about    { background-image: var(--hdr), url("../images/about-bg.jpg"); }
.page-hero.hero-contact  { background-image: var(--hdr), url("../images/contact-bg.jpg"); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 18% 18%, rgba(91,107,176,.35), transparent 42%),
              radial-gradient(circle at 82% 0%, rgba(10,179,156,.18), transparent 38%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.9); }

/* ---- Logo / trust strip ----------------------------------------------- */
.logo-strip { filter: grayscale(1); opacity: .55; }
.logo-strip .logo-item { font-weight: 800; font-size: 1.2rem; color: #64748b; letter-spacing: -.5px; }

/* ---- Feature cards ----------------------------------------------------- */
.feature-card {
  background: #fff; border: 1px solid var(--pm-border); border-radius: 1.1rem;
  padding: 1.9rem; height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--pm-shadow); border-color: #c7cdf0; }
.feature-icon {
  width: 56px; height: 56px; border-radius: .95rem; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.7rem; color: #fff;
  background: var(--pm-grad); margin-bottom: 1.1rem;
  box-shadow: 0 8px 18px rgba(64,81,137,.3);
}
.feature-card h5 { margin-bottom: .5rem; }

/* alternating detail row image */
.detail-visual {
  background: var(--pm-grad-soft); border: 1px solid var(--pm-border);
  border-radius: 1.25rem; padding: 2rem; box-shadow: var(--pm-shadow);
}
.detail-icon {
  width: 46px; height: 46px; border-radius: .8rem; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.3rem;
  background: #eef1fb; color: var(--pm-primary);
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .35rem 0; display: flex; gap: .6rem; align-items: flex-start; }
.check-list li i { color: var(--pm-accent); font-size: 1.15rem; margin-top: .1rem; }

/* ---- Stats ------------------------------------------------------------- */
.stat-band { background: var(--pm-grad); color: #fff; }
.stat-band h3 { color: #fff; font-weight: 800; font-size: 2.5rem; }
.stat-band p { color: rgba(255,255,255,.85); margin: 0; }
.stat-card .num { font-weight: 800; font-size: 2.3rem; color: var(--pm-primary); }

/* ---- Steps ------------------------------------------------------------- */
.step { position: relative; padding: 1.75rem; }
.step-num {
  width: 50px; height: 50px; border-radius: 50%; background: var(--pm-grad);
  color: #fff; font-weight: 800; font-size: 1.2rem; display: inline-flex;
  align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(64,81,137,.3);
}

/* ---- Integrations ------------------------------------------------------ */
.integration-chip {
  background: #fff; border: 1px solid var(--pm-border); border-radius: 1rem;
  padding: 1.25rem; text-align: center; height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.integration-chip:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow); }
.integration-chip i { font-size: 2rem; color: var(--pm-primary); }

/* ---- Testimonials ------------------------------------------------------ */
.testimonial {
  background: #fff; border: 1px solid var(--pm-border); border-radius: 1.1rem;
  padding: 1.9rem; height: 100%;
}
.testimonial .stars i { color: #f59e0b; }
.testimonial .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--pm-grad);
  color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* ---- Pricing ----------------------------------------------------------- */
.price-card {
  border: 1px solid var(--pm-border); border-radius: 1.25rem; background: #fff;
  padding: 2.2rem; height: 100%; transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--pm-shadow); }
.price-card.featured { border: 2px solid var(--pm-primary); box-shadow: var(--pm-shadow); position: relative; }
.price-card.featured .badge-pop {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--pm-grad); color: #fff; padding: .35rem 1rem; border-radius: 2rem;
  font-size: .75rem; font-weight: 700; box-shadow: 0 6px 16px rgba(64,81,137,.35);
}
.price-amount { font-size: 3rem; font-weight: 800; color: var(--pm-ink); }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { padding: .4rem 0; display: flex; gap: .55rem; }
.price-list i { color: var(--pm-accent); margin-top: .15rem; }
.billing-toggle .btn-check:checked + .btn { background: var(--pm-grad); color:#fff; border-color: transparent; }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--pm-grad);
  color: #fff; border-radius: 1.75rem; padding: 3.5rem;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 40%);
}
.cta-band > * { position: relative; z-index: 1; }

/* ---- Accordion --------------------------------------------------------- */
.accordion-button:not(.collapsed) { color: var(--pm-primary); background: #eef1fb; box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--pm-border); }
.accordion-item { border-radius: .8rem !important; overflow: hidden; margin-bottom: .75rem; border: 1px solid var(--pm-border); }

/* ---- Contact ----------------------------------------------------------- */
.contact-info-icon {
  width: 48px; height: 48px; border-radius: .85rem; background: #eef1fb;
  color: var(--pm-primary); display: inline-flex; align-items: center;
  justify-content: center; font-size: 1.35rem;
}
.form-control, .form-select { border-radius: .65rem; padding: .7rem .9rem; border-color: #dfe3ef; }
.form-control:focus, .form-select:focus {
  border-color: var(--pm-primary); box-shadow: 0 0 0 .22rem rgba(64,81,137,.16);
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: #0b1220; color: #9aa4b8; padding: 4.5rem 0 1.75rem; }
.site-footer a { color: #9aa4b8; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-weight: 700; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding-top: 1.5rem; }
.social-ico {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.social-ico:hover { background: var(--pm-primary); }

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero .blob { animation: none; }
  html { scroll-behavior: auto; }
}
