/* Shared sticky header — used by landing + marketing pages via site-nav.js */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  min-height: 72px;
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo-wrap {
  display: inline-flex;
  align-items: center;
}

.site-logo-wrap img {
  height: 56px;
  width: auto;
  max-height: 56px;
  display: block;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.35rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-btn-primary {
  background: linear-gradient(135deg, #00c3f5 0%, #0084c7 100%);
  color: #fff;
}

.site-btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* Shared marketing site: nav dropdown, how-it-works, app badges */

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* Extend hover hit-area so the pointer can reach the submenu */
  padding-bottom: 0.65rem;
  margin-bottom: -0.65rem;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown:hover .nav-dropdown-toggle {
  color: #0b1a2e;
}

.nav-dropdown-chevron {
  font-size: 1.15rem;
  line-height: 1;
  margin-left: 0.1rem;
  display: inline-block;
  transform: translateY(1px);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  /* Overlap the parent padding bridge — no dead gap for the mouse */
  top: 100%;
  left: 0;
  min-width: 13.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 0.35rem;
  z-index: 60;
  overflow: visible;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.7rem;
  height: 0.7rem;
}

.how-step[id],
.feature-group[id],
#how-it-works,
#features,
#sequencing,
#leads,
#deliverability,
#analytics,
#faq {
  scroll-margin-top: 10rem;
}

/* Sticky in-section pill nav (How it Works / Platform) */
.section-sticky-nav {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 95;
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.section-sticky-nav[hidden] {
  display: none !important;
}

.section-sticky-nav.is-visible {
  display: flex;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.section-sticky-nav-track {
  width: 100%;
  display: flex;
  justify-content: center;
}

.section-sticky-nav-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.15rem;
  padding: 0.4rem 0.5rem;
  background: #f4f6f8;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1);
  width: max-content;
  max-width: min(100%, 1240px);
}

.section-sticky-nav-pill--platform a {
  font-size: 0.78rem;
  padding: 0.38rem 0.65rem;
}

.section-sticky-nav-pill--how a {
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
}

@media (max-width: 900px) {
  .section-sticky-nav-pill {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    border-radius: 999px;
  }

  .section-sticky-nav-pill::-webkit-scrollbar {
    display: none;
  }

  .section-sticky-nav-pill a {
    font-size: 0.78rem;
    padding: 0.38rem 0.65rem;
  }
}

.section-sticky-nav-pill a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.section-sticky-nav-pill a:hover {
  color: #0284c7;
  background: rgba(255, 255, 255, 0.7);
}

.section-sticky-nav-pill a.is-active {
  background: #fff;
  color: #0284c7;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* Desktop: open on hover / keyboard focus — no click required */
@media (min-width: 1101px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
  }
}

/* Compact: open only after tapping the parent */
@media (max-width: 1100px) {
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #334155 !important;
  text-decoration: none !important;
  font-weight: 500;
}

.nav-dropdown-menu a:hover {
  background: #f1f5f9;
  color: #0b1a2e !important;
}

.site-nav-mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  color: #0b1a2e;
  font: 700 22px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
}

.site-nav-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.site-nav-features-mobile,
.site-nav-about-mobile {
  display: none;
}

.site-nav-features-mobile summary,
.site-nav-about-mobile summary {
  cursor: pointer;
  font-size: 0.95rem;
  color: #475569;
  font-weight: 500;
  list-style: none;
}

.site-nav-features-mobile summary::-webkit-details-marker,
.site-nav-about-mobile summary::-webkit-details-marker {
  display: none;
}

.site-nav-features-mobile[open] summary,
.site-nav-about-mobile[open] summary {
  color: #0b1a2e;
}

.site-nav-features-mobile .sub-links,
.site-nav-about-mobile .sub-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0 0 0.75rem;
}

.site-nav-features-mobile .sub-links a,
.site-nav-about-mobile .sub-links a {
  font-size: 0.9rem;
  color: #64748b;
}

/* Compact desktop (13–14" laptops): keep one row, tighter spacing */
@media (max-width: 1280px) and (min-width: 1101px) {
  .site-header-inner {
    padding: 0.65rem 1.25rem;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .site-logo-wrap img {
    height: 48px;
    max-height: 48px;
  }

  .site-nav-panel {
    gap: 0.85rem;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .site-nav-panel > a,
  .site-nav-panel .nav-dropdown-toggle {
    font-size: 0.9rem;
  }

  .site-btn,
  .site-btn-demo,
  .site-btn-primary {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }
}

/* Tablet + phone + narrow laptops: hamburger drawer */
@media (max-width: 1100px) {
  .site-header-inner {
    flex-wrap: wrap;
    padding: 0.65rem 1rem;
    gap: 0.5rem;
  }

  .site-logo-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .site-logo-wrap img {
    height: 44px;
    max-height: 44px;
  }

  .site-nav-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .site-nav-panel {
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 0 0.35rem;
    border-top: 1px solid #eef2f7;
    margin-top: 0.25rem;
  }

  .site-header-inner.menu-open .site-nav-panel {
    display: flex;
  }

  .site-nav-panel > a,
  .site-nav-panel .nav-dropdown,
  .site-nav-panel .site-nav-features-mobile,
  .site-nav-panel .site-nav-about-mobile {
    width: 100%;
  }

  .site-nav-panel > a,
  .site-nav-panel .nav-dropdown-toggle,
  .site-nav-panel .site-nav-features-mobile summary,
  .site-nav-panel .site-nav-about-mobile summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.15rem;
    font-size: 1rem;
    white-space: normal;
  }

  .site-nav-panel .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav-panel .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0.35rem 0.85rem;
    display: none;
    overflow: visible;
    min-width: 0;
  }

  .site-nav-panel .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-features-desktop,
  .site-nav-panel .nav-about-desktop {
    display: none;
  }

  .site-nav-features-mobile,
  .site-nav-about-mobile {
    display: block;
  }

  .site-nav-panel .site-btn,
  .site-nav-panel .nav-cta-group {
    width: 100%;
    text-align: center;
  }

  .nav-cta-group {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.35rem;
  }

  .site-nav-panel .site-btn-demo,
  .site-nav-panel .site-btn-primary {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .site-header-inner {
    padding: 0.55rem 0.75rem;
  }

  .site-logo-wrap img {
    height: 40px;
    max-height: 40px;
  }
}

/* How it works */
.how-it-works {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 5.5rem 0;
}

.how-it-works-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.how-step {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.how-step:last-child {
  margin-bottom: 0;
}

.how-step.reverse {
  direction: rtl;
}

.how-step.reverse > * {
  direction: ltr;
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #00c3f5, #0084c7);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.how-step h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: #0f172a;
}

.how-step p {
  margin: 0;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 34rem;
}

.how-mockup {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.how-mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.how-mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.how-mockup-bar span:nth-child(1) { background: #f87171; }
.how-mockup-bar span:nth-child(2) { background: #fbbf24; }
.how-mockup-bar span:nth-child(3) { background: #34d399; }

.how-mockup-url {
  flex: 1;
  margin-left: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
  font-size: 0.68rem;
  color: #94a3b8;
}

.how-mockup-body {
  padding: 1.25rem;
  min-height: 200px;
}

.feature-group-label {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
}

.features-grid-expanded {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 1rem;
}

.feature-group-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.features-grid-expanded .feature-card {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-mockup {
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  flex-shrink: 0;
}

.feature-mockup .how-mockup-bar {
  padding: 0.4rem 0.65rem;
}

.feature-mockup .how-mockup-url {
  font-size: 0.58rem;
  padding: 0.1rem 0.45rem;
}

.feature-mockup-body {
  padding: 0.75rem 0.85rem;
  min-height: 118px;
  max-height: 130px;
  overflow: hidden;
  background: #fff;
}

.feature-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.features-grid-expanded .feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.features-grid-expanded .feature-card p {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

.features-grid-expanded .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.landing-signup-btn:hover {
  filter: brightness(1.05);
}

.hero-how-link:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

header nav .landing-nav-panel > a,
header nav .landing-nav-panel .nav-dropdown-toggle {
  font-size: 0.95rem;
  color: #475569;
  font-weight: 500;
  text-decoration: none;
}

/* App store badges */
[data-site-app-badges],
[data-landing-app-badges] {
  text-align: center;
  border-top: 1px solid #1e3a5f;
  padding: 1.25rem 0 0.5rem;
  margin-bottom: 0;
}

.app-download-tagline {
  color: #b6c8d9;
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}

.app-badge-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
}

.app-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.85;
  cursor: not-allowed;
}

.app-badge svg {
  height: 44px;
  width: auto;
  display: block;
}

.app-badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer-inner > [data-site-app-badges] + .site-footer-bottom,
.site-footer-inner > [data-landing-app-badges] + .site-footer-bottom {
  border-top: none;
  padding-top: 0.75rem;
}

.nav-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.site-btn-demo,
.landing-demo-btn {
  padding: 0.625rem 1.35rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, #f26522 0%, #ff8c1a 52%, #ffb347 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 22px rgba(242, 101, 34, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-btn-demo:hover,
.landing-demo-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(242, 101, 34, 0.45);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0b1a2e;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.back-to-top[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .how-step,
  .how-step.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }

  .feature-group-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section-sticky-nav-pill a {
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
  }

  .feature-group-cards {
    grid-template-columns: 1fr;
  }

  .feature-mockup-body {
    min-height: 108px;
    max-height: 120px;
    padding: 0.65rem 0.75rem;
  }

  .how-it-works-inner {
    padding: 0 1rem;
  }
}

/* Landing nav dropdown on mobile */
@media (max-width: 767px) {
  header nav .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 0.75rem;
    overflow: visible;
  }

  header nav .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  header nav .nav-features-mobile {
    display: block;
  }

  header nav .nav-features-desktop {
    display: none;
  }

  header nav .nav-cta-group {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  header nav .landing-demo-btn,
  header nav .landing-signup-btn {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) {
  header nav .nav-features-mobile {
    display: none;
  }
}

@media (min-width: 1101px) {
  .site-nav-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }
}

.site-nav-panel > a,
.site-nav-panel .nav-dropdown-toggle {
  font-size: 0.95rem;
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-panel > a:hover {
  color: #0b1a2e;
}

[data-site-footer-product] a {
  display: block;
  color: #b6c8d9;
  margin-bottom: 0.6rem;
  text-decoration: none;
}

[data-site-footer-product] a:hover {
  color: #fff;
}
