/* Megaphone — standalone static site
   Palette and type lifted from the original bootbox WordPress theme. */

:root {
  --brand:        #4e63d7;
  --brand-dark:   #3f52c4;
  --brand-light:  #76bfe9;
  --navy:         #101f41;
  --body:         #858585;
  --tint:         #f3f5ff;
  --white:        #ffffff;
  --heading-font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body-font:    "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  color: var(--navy);
  margin: 0 0 18px;
  line-height: 1.3;
}
h1 { font-size: 32px; font-weight: 600; }
h2 { font-size: 28px; font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
p  { margin: 0 0 18px; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section--tint { background: var(--tint); }

/* Wave shape the original theme layers over the light sections. */
.section--overlay { position: relative; z-index: 0; }
.section--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg-overlay.svg") no-repeat top center / cover;
  z-index: -1;
}
.section--gradient {
  background-image: linear-gradient(to right, var(--brand) 0%, var(--brand-light) 100%);
  color: rgba(255, 255, 255, .9);
}
.section--gradient h2, .section--gradient h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.section-head p { margin-bottom: 0; }

.rule {
  width: 60px; height: 3px; border: 0; border-radius: 2px;
  margin: 0 auto 24px; background: var(--brand);
}
.section--gradient .rule { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  padding: 12px 28px;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: all .25s ease;
  cursor: pointer;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: var(--tint); color: var(--brand); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 22px 0;
}
.site-header.is-stuck {
  position: fixed;
  padding: 12px 0;
  background: var(--brand);
  box-shadow: 0 2px 14px rgba(16, 31, 65, .12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__logo img { display: block; width: 175px; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px 0;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav__menu a {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
}
.nav__menu a:hover { color: #fff; }
.nav__cta { margin-left: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(to right, var(--brand) 0%, var(--brand-light) 100%);
  padding: 175px 0 110px;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/banner-bg2.svg") no-repeat center / cover;
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: #fff; font-size: 45px; font-weight: 500; }
.hero p { color: rgba(255, 255, 255, .92); font-size: 17px; max-width: 460px; }

/* ---------- Integration logos ---------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(111, 173, 229, .25);
}
.logos img {
  height: 42px;
  width: auto;
  opacity: .75;
  filter: grayscale(100%);
  transition: all .25s ease;
}
.logos img:hover { opacity: 1; filter: none; }

/* ---------- Two-column split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* ---------- Feature cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature {
  background: #fff;
  border-radius: 8px;
  padding: 34px 28px;
  box-shadow: 0 6px 24px rgba(16, 31, 65, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(16, 31, 65, .1); }
.feature__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.feature__icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h4 { margin-bottom: 10px; }
.feature p { margin-bottom: 0; font-size: 15px; }

/* ---------- Pricing ---------- */
.plan {
  background: #fff;
  border: 1px solid rgba(78, 99, 215, .14);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 24px rgba(16, 31, 65, .05);
}
.plan__top {
  background: var(--tint);
  padding: 32px 24px 26px;
}
.plan__top h4 { margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.plan__price {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 600;
  color: var(--brand);
  display: block;
}
.plan__period { font-size: 13px; text-transform: capitalize; }
.plan__features {
  list-style: none;
  margin: 0;
  padding: 28px 28px 8px;
  text-align: left;
  flex: 1;
}
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  padding: 7px 0;
}
.plan__features svg {
  flex: 0 0 auto;
  width: 15px; height: 15px;
  margin-top: 6px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan__action { padding: 20px 28px 32px; }

/* ---------- Blog ---------- */
.grid-blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(16, 31, 65, .06);
}
.post-card img { display: block; width: 100%; }
.post-card__body { padding: 26px 24px 30px; }
.post-card__date {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 10px;
}
.post-card h4 { font-size: 17px; margin-bottom: 10px; }
.post-card p { font-size: 15px; margin-bottom: 0; }

/* ---------- Interior pages ---------- */
.page-hero {
  background-image: linear-gradient(to right, var(--brand) 0%, var(--brand-light) 100%);
  padding: 160px 0 70px;
  text-align: center;
  color: rgba(255, 255, 255, .9);
}
.page-hero h1 { color: #fff; }
.page-hero p { margin-bottom: 0; }

.prose { max-width: 860px; margin: 0 auto; }
.prose h2 {
  font-size: 20px;
  margin-top: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(78, 99, 215, .14);
}
.prose h2:first-child { margin-top: 0; }
.prose img { margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--brand);
  background-image: url("../images/footer-bg.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  color: rgba(255, 255, 255, .85);
  padding: 150px 0 30px;
}
.site-footer h4 {
  color: #fff;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 26px;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 2px;
  background: rgba(255, 255, 255, .5);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; }
.footer-logo { width: 175px; margin-bottom: 22px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 35px; height: 35px;
  border-radius: 50%;
  background: #6893e1;
  box-shadow: 0 3px 2px 0 #516cd9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.socials a:hover { background: #679fe3; }
.socials svg { width: 16px; height: 16px; fill: #fff; }
.contact-info li { display: flex; gap: 10px; align-items: flex-start; }
.contact-info svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 7px; fill: rgba(255, 255, 255, .85); }
.copyright {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .grid-3, .grid-blog { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 38px; }
}

@media (max-width: 767px) {
  .section { padding: 60px 0; }
  .nav__toggle { display: block; order: 3; }
  .nav__menu {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 16px 0 0;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .25);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { width: 100%; padding: 8px 0; }
  .nav__cta { margin: 8px 0 0; }
  .nav { flex-wrap: wrap; }
  .hero { padding: 130px 0 80px; }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-blog, .footer-grid { grid-template-columns: 1fr; }
  .logos { justify-content: center; gap: 24px; }
  .logos img { height: 34px; }
  .page-hero { padding: 130px 0 60px; }
}
