/* ==========================================================================
   BackLocal — Marketing pages (about / for-business / for-customers)
   Builds on backlocal-base.css tokens (--bl-blue, --bl-red, fonts, .btn, etc.)
   Load order on each page:  backlocal-base.css  ->  backlocal-marketing.css
   ========================================================================== */

.mkt {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(29, 69, 141, 0.08), transparent 60%),
    radial-gradient(1000px 520px at -10% 10%, rgba(209, 84, 67, 0.07), transparent 55%),
    var(--bl-bg);
}

/* ---------- Header ---------- */
.mkt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.mkt-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.mkt-nav-link {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bl-text-muted);
  transition: 160ms ease;
}
.mkt-nav-link:hover { color: var(--bl-blue); background: rgba(29, 69, 141, 0.06); }
.mkt-nav-link.is-active { color: var(--bl-blue); background: rgba(29, 69, 141, 0.08); }
@media (max-width: 720px) {
  .mkt-nav-link.mkt-hide-sm { display: none; }
}

/* ---------- Generic section rhythm ---------- */
.mkt-section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.mkt-section--tight { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.mkt-eyebrow {
  margin: 0 0 1rem;
  color: var(--bl-red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}
.mkt-eyebrow--blue { color: var(--bl-blue); }
.mkt-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  color: var(--bl-text);
}
.mkt-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  color: var(--bl-text);
}
.mkt-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--bl-text-muted);
  max-width: 60ch;
  margin: 0 0 1.75rem;
}
.mkt-center { text-align: center; }
.mkt-center .mkt-lead { margin-left: auto; margin-right: auto; }
.mkt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.mkt-center .mkt-cta-row { justify-content: center; }
.btn-red {
  background: var(--bl-red);
  color: #fff;
  box-shadow: 0 14px 32px rgba(209, 84, 67, 0.24);
}
.btn-red:hover { background: #b8442f; }
.btn-lg { min-height: 54px; padding: 1rem 1.6rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.mkt-hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.mkt-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 880px) {
  .mkt-hero-grid { grid-template-columns: 1fr; }
}
.mkt-hero-media {
  position: relative;
  border-radius: var(--bl-radius-lg);
  overflow: hidden;
  box-shadow: var(--bl-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.mkt-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-hero-media--tall { aspect-ratio: 4 / 3.4; }
.mkt-hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--bl-blue);
  box-shadow: var(--bl-shadow-sm);
}
.mkt-hero-badge .dot {
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: #2faa55; box-shadow: 0 0 0 4px rgba(47, 170, 85, 0.18);
}

/* pill list under hero */
.mkt-checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.mkt-checks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--bl-text);
  font-weight: 500;
}
.mkt-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15rem;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--bl-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.78rem no-repeat;
}

/* ---------- Audience split cards (about hub) ---------- */
.mkt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (max-width: 820px) { .mkt-split { grid-template-columns: 1fr; } }
.mkt-path {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bl-surface);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-lg);
  overflow: hidden;
  box-shadow: var(--bl-shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.mkt-path:hover { transform: translateY(-4px); box-shadow: var(--bl-shadow-lg); }
.mkt-path-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bl-surface-soft); }
.mkt-path-media img { width: 100%; height: 100%; object-fit: cover; }
.mkt-path-body { padding: clamp(1.4rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.mkt-path-tag {
  align-self: flex-start;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bl-blue); background: rgba(29, 69, 141, 0.08);
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.mkt-path-tag--red { color: var(--bl-red); background: rgba(209, 84, 67, 0.1); }
.mkt-path h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0.3rem 0 0; color: var(--bl-text); }
.mkt-path p { color: var(--bl-text-muted); margin: 0; }
.mkt-path .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Feature rows (alternating image / text) ---------- */
.mkt-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.mkt-feature + .mkt-feature { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
@media (max-width: 820px) {
  .mkt-feature { grid-template-columns: 1fr; }
  .mkt-feature .mkt-feature-media { order: -1; }
}
.mkt-feature--rev .mkt-feature-media { order: 2; }
@media (max-width: 820px) {
  .mkt-feature--rev .mkt-feature-media { order: -1; }
}
.mkt-feature-media {
  border-radius: var(--bl-radius-md);
  overflow: hidden;
  border: 1px solid var(--bl-border);
  box-shadow: var(--bl-shadow-md);
  background: #fff;
}
.mkt-feature-media img { width: 100%; display: block; }
.mkt-feature h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: 0 0 0.7rem;
  color: var(--bl-text);
}
.mkt-feature p { color: var(--bl-text-muted); font-size: 1.05rem; line-height: 1.65; margin: 0 0 0.75rem; }
.mkt-feature-kicker {
  color: var(--bl-red); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.78rem; margin: 0 0 0.6rem;
}

/* ---------- Value / benefit grid ---------- */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.mkt-card {
  background: var(--bl-surface);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-md);
  padding: clamp(1.3rem, 2.5vw, 1.75rem);
  box-shadow: var(--bl-shadow-sm);
}
.mkt-card-ico {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(29, 69, 141, 0.09);
  color: var(--bl-blue);
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}
.mkt-card-ico--red { background: rgba(209, 84, 67, 0.1); color: var(--bl-red); }
.mkt-card h4 { margin: 0 0 0.4rem; font-size: 1.15rem; color: var(--bl-text); }
.mkt-card p { margin: 0; color: var(--bl-text-muted); font-size: 0.98rem; line-height: 1.6; }

/* ---------- Steps ---------- */
.mkt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); counter-reset: step; }
.mkt-step { background: var(--bl-surface); border: 1px solid var(--bl-border); border-radius: var(--bl-radius-md); padding: 1.6rem 1.4rem; position: relative; box-shadow: var(--bl-shadow-sm); }
.mkt-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--bl-blue); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.mkt-step h4 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.mkt-step p { margin: 0; color: var(--bl-text-muted); font-size: 0.96rem; }

/* ---------- Eligibility / fine print band ---------- */
.mkt-band {
  background: linear-gradient(135deg, var(--bl-blue), var(--bl-blue-dark));
  color: #fff;
  border-radius: var(--bl-radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  box-shadow: var(--bl-shadow-lg);
}
.mkt-band .mkt-h2, .mkt-band h2, .mkt-band h3 { color: #fff; }
.mkt-band p { color: rgba(255, 255, 255, 0.86); }
.mkt-band .mkt-eyebrow { color: #ffd9d1; }
.mkt-band-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.mkt-band-list li { padding-left: 1.8rem; position: relative; color: rgba(255,255,255,0.92); }
.mkt-band-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #ffd9d1; font-weight: 700;
}

/* ---------- Final CTA ---------- */
.mkt-final {
  text-align: center;
  background: var(--bl-surface);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-lg);
  padding: clamp(2.25rem, 5vw, 4rem);
  box-shadow: var(--bl-shadow-md);
}
.mkt-final img.mkt-final-logo { width: 84px; height: auto; margin: 0 auto 1.25rem; }

/* ---------- App download band ---------- */
.mkt-app {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: linear-gradient(135deg, var(--bl-blue), var(--bl-blue-dark));
  color: #fff;
  border-radius: var(--bl-radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--bl-shadow-lg);
}
@media (max-width: 760px) { .mkt-app { grid-template-columns: 1fr; text-align: center; } }
.mkt-app .mkt-eyebrow { color: #ffd9d1; }
.mkt-app h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.6rem; color: #fff; }
.mkt-app p { color: rgba(255, 255, 255, 0.88); margin: 0 0 1.35rem; font-size: 1.02rem; line-height: 1.6; max-width: 48ch; }
@media (max-width: 760px) { .mkt-app p { margin-left: auto; margin-right: auto; } }
.mkt-store-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 760px) { .mkt-store-badges { justify-content: center; } }
.mkt-store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #0e1b2e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.6rem 1.05rem;
  cursor: default;
}
.mkt-store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.mkt-store-badge .mkt-store-badge__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.mkt-store-badge__txt small { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.09em; opacity: 0.82; }
.mkt-store-badge__txt b { font-size: 1.04rem; font-weight: 700; }
.mkt-app-visual { display: flex; justify-content: center; }
.mkt-app-visual svg { width: min(220px, 60vw); height: auto; filter: drop-shadow(0 18px 36px rgba(0,0,0,0.32)); }

/* ---------- Footer ---------- */
.mkt-footer { padding: 2.5rem 0 3rem; text-align: center; color: var(--bl-text-muted); }
.mkt-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: center; margin: 0 0 1rem; }
.mkt-footer-links a { color: var(--bl-text-muted); font-weight: 600; font-size: 0.92rem; }
.mkt-footer-links a:hover { color: var(--bl-blue); }
.mkt-footer p { margin: 0.2rem 0; font-size: 0.86rem; }

/* ---------- Phone header: keep the nav to two tidy rows ----------
   Without this, the brand and the pill links wrap unpredictably and
   the CTA button can land on top of the logo at ~390px. */
@media (max-width: 640px) {
  .mkt-nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.4rem;
    padding: 0.6rem 0;
  }
  .mkt-nav .brand-logo {
    width: 84px;
    height: 38px;
  }
  .mkt-nav-links {
    justify-content: center;
    gap: 0.3rem;
  }
  .mkt-nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.88rem;
  }
  .mkt-nav-links .btn {
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
  }
  /* Headlines: keep presence without filling the whole screen */
  .mkt-h1 { font-size: 1.9rem; }
  .mkt-h2 { font-size: 1.55rem; }
}
