/* ==========================================================================
   Local Business Protection — Design System
   Built from LBP Brand Basics v3.1
   Two typefaces, each with one job: Inter (everything) / Mulish (logo only)
   ========================================================================== */

:root {
  /* Brand palette (v3.1) */
  --lbp-blue: #1772FD;
  --lbp-blue-hover: #135FD1;
  --lbp-red: #E53632;
  --lbp-text-dark: #242424;
  --lbp-text-gray: #505050;

  /* Extensions derived from the brand blue, for layout needs the guide
     doesn't cover yet: a deep "shield" navy for contrast bands, and a
     faint tint for alternating section backgrounds. */
  --lbp-navy: #001C47;
  --lbp-navy-soft: #0A2D6B;
  --lbp-tint: #EEF4FF;
  --lbp-gray-light: #F1F2F5;
  --lbp-white: #FFFFFF;
  --lbp-border: #E1E8F5;

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

/* Reset ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--lbp-text-dark);
  background: var(--lbp-white);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--lbp-blue);
  outline-offset: 3px;
}

/* Type scale --------------------------------------------------------------*/
h1, h2, h3, h4 {
  font-weight: 500;
  color: var(--lbp-text-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lbp-blue);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--lbp-blue);
  display: inline-block;
}

.h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.08; }
.h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.16; }
.h3 { font-size: 1.25rem; line-height: 1.3; }

.lede {
  font-size: 1.15rem;
  color: var(--lbp-text-gray);
  line-height: 1.6;
  max-width: 46ch;
}

.tabular { font-variant-numeric: tabular-nums; font-weight: 500; }

/* Layout helpers ------------------------------------------------------------*/
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: var(--space-2xl) 0;
}
.section--tint { background: var(--lbp-tint); }
.section--navy {
  background: var(--lbp-navy);
  color: rgba(255,255,255,0.92);
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lede { color: rgba(255,255,255,0.68); }

.section-head {
  max-width: 640px;
  margin: 0 0 var(--space-lg);
}
.section-head + .section-head { margin-top: 0; }

/* Buttons ------------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.7em;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--lbp-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--lbp-blue-hover); }
.btn-secondary {
  background: transparent;
  border-color: var(--lbp-blue);
  color: var(--lbp-blue);
}
.section--navy .btn-secondary {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.section--navy .btn-secondary:hover { border-color: #fff; }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Nav ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lbp-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 76px;
}
.brand-logo { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 0.95rem;
  font-weight: 400;
}
.nav-links a { color: var(--lbp-text-dark); }
.nav-links a:hover { color: var(--lbp-blue); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--lbp-text-dark);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--lbp-border);
    padding: 0.25rem 1.5rem 1.25rem;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav-links > a { width: 100%; padding: 0.75rem 0; border-bottom: 1px solid var(--lbp-border); }
  .nav-links > a:last-of-type { border-bottom: 0; }
  body.nav-open .nav-links { display: flex; }
  .nav-actions a.btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-cta-row { display: none; }
@media (max-width: 900px) {
  .mobile-cta-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--lbp-border);
  }
  .mobile-cta-row .btn { width: 100%; }
}

/* Cards ------------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--lbp-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
a.card { transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: var(--lbp-blue); transform: translateY(-2px); }
.card-grid {
  display: grid;
  gap: var(--space-md);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.flag-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(229,54,50,0.09);
  color: var(--lbp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}
.flag-icon svg { width: 20px; height: 20px; }

/* Process steps ------------------------------------------------------------*/
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  border-top: 2px solid var(--lbp-blue);
  padding-top: var(--space-sm);
}
.step p { color: var(--lbp-text-gray); }
.step-num {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lbp-blue);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-xs);
}

/* Segment cards (Who We Help) ---------------------------------------------*/
.segment-card {
  display: block;
  background: #fff;
  border: 1px solid var(--lbp-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.segment-card:hover {
  border-color: var(--lbp-blue);
  transform: translateY(-2px);
}
.segment-card img { width: 46px; height: 46px; margin-bottom: var(--space-sm); }
.segment-card .arrow { color: var(--lbp-blue); font-weight: 500; margin-top: var(--space-sm); display: inline-block; }

/* Testimonials ------------------------------------------------------------*/
.testimonial-card {
  background: #fff;
  border: 1px solid var(--lbp-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.testimonial-video {
  position: relative;
  aspect-ratio: 16/9;
  background: #0c1424;
}
.testimonial-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.testimonial-body { padding: var(--space-md); }
.testimonial-quote {
  font-size: 0.98rem;
  color: var(--lbp-text-dark);
  margin-bottom: var(--space-sm);
}
.testimonial-attr { font-size: 0.85rem; color: var(--lbp-text-gray); }

/* FAQ accordion ------------------------------------------------------------*/
.faq-item {
  border-bottom: 1px solid var(--lbp-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--lbp-text-dark);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker,
.faq-question::marker { display: none; content: ""; }
.faq-question .icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--lbp-blue);
  color: var(--lbp-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.faq-item[open] .icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 1.4rem;
  color: var(--lbp-text-gray);
  max-width: 68ch;
}

/* Footer -------------------------------------------------------------------*/
.site-footer {
  background: var(--lbp-gray-light);
  color: var(--lbp-text-gray);
  padding: var(--space-xl) 0 var(--space-md);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  color: var(--lbp-text-dark);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.footer-grid a { color: var(--lbp-text-gray); display: block; margin-bottom: 0.6em; }
.footer-grid a:hover { color: var(--lbp-blue); }
.footer-bottom {
  padding-top: var(--space-md);
  font-size: 0.82rem;
  color: var(--lbp-text-gray);
}
.footer-disclaimer { max-width: 60ch; }
.footer-legal {
  margin-top: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--lbp-text-gray);
}
.footer-legal a { color: var(--lbp-blue); }
.footer-legal a:hover { color: var(--lbp-blue-hover); }
.footer-legal span[aria-hidden] { color: rgba(0,0,0,0.2); }

/* Hero ---------------------------------------------------------------------*/
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-2xl);
  align-items: center;
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--space-xl); }
}
.hero-copy .eyebrow { margin-bottom: var(--space-sm); }
.hero-copy h1 { margin-bottom: var(--space-md); }
.hero-copy .lede { margin-bottom: var(--space-lg); max-width: 50ch; }

/* Signature widget: live audit / map-pack visualization -------------------*/
.audit-widget {
  background: var(--lbp-navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #fff;
  box-shadow: 0 30px 60px -20px rgba(0,28,71,0.45);
}
.audit-widget-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}
.audit-widget-head .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lbp-red);
  box-shadow: 0 0 0 0 rgba(229,54,50,0.6);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,54,50,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(229,54,50,0); }
}

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scan-bar {
  position: absolute;
  left: -8px; right: -8px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lbp-red), transparent);
  filter: blur(0.3px);
  animation: scan-sweep 9s ease-in-out infinite;
}
@keyframes scan-sweep {
  0% { transform: translateY(0px); opacity: 0; }
  4% { opacity: 0.9; }
  38% { transform: translateY(128px); opacity: 0.9; }
  43% { opacity: 0; }
  100% { opacity: 0; transform: translateY(128px); }
}

.pack-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: opacity 0.3s ease;
}
.pack-rank {
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.45);
  width: 1.2em;
}
.pack-name { flex: 1; font-size: 0.92rem; }
.pack-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.25em 0.6em;
  border-radius: 999px;
}
.pack-row.you {
  border-color: rgba(23,114,253,0.55);
  background: rgba(23,114,253,0.12);
}
.pack-row.you .pack-tag {
  background: var(--lbp-blue);
  color: #fff;
}
.pack-row.fake-a .pack-tag,
.pack-row.fake-b .pack-tag {
  background: rgba(229,54,50,0.16);
  color: #ff8f8c;
  opacity: 0;
  transform: scale(0.85);
}
.pack-row.fake-a { animation: row-flag-a 9s ease-in-out infinite; }
.pack-row.fake-a .pack-tag { animation: tag-flag-a 9s ease-in-out infinite; }
.pack-row.fake-b { animation: row-flag-b 9s ease-in-out infinite; }
.pack-row.fake-b .pack-tag { animation: tag-flag-b 9s ease-in-out infinite; }

@keyframes row-flag-a {
  0%, 15% { opacity: 1; }
  18%, 82% { opacity: 0.4; }
  88%, 100% { opacity: 1; }
}
@keyframes tag-flag-a {
  0%, 15% { opacity: 0; transform: scale(0.85); }
  18%, 82% { opacity: 1; transform: scale(1); }
  88%, 100% { opacity: 0; transform: scale(0.85); }
}
@keyframes row-flag-b {
  0%, 32% { opacity: 1; }
  36%, 82% { opacity: 0.4; }
  88%, 100% { opacity: 1; }
}
@keyframes tag-flag-b {
  0%, 32% { opacity: 0; transform: scale(0.85); }
  36%, 82% { opacity: 1; transform: scale(1); }
  88%, 100% { opacity: 0; transform: scale(0.85); }
}
.pack-row.fake-a .pack-name { animation: name-strike-a 9s ease-in-out infinite; }
.pack-row.fake-b .pack-name { animation: name-strike-b 9s ease-in-out infinite; }
@keyframes name-strike-a {
  0%, 15% { text-decoration: none; color: rgba(255,255,255,0.92); }
  18%, 82% { text-decoration: line-through; color: rgba(255,255,255,0.5); }
  88%, 100% { text-decoration: none; color: rgba(255,255,255,0.92); }
}
@keyframes name-strike-b {
  0%, 32% { text-decoration: none; color: rgba(255,255,255,0.92); }
  36%, 82% { text-decoration: line-through; color: rgba(255,255,255,0.5); }
  88%, 100% { text-decoration: none; color: rgba(255,255,255,0.92); }
}

.audit-widget-foot {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
}
.audit-widget-foot strong { color: #fff; font-weight: 500; }

/* Steps modifier: 3-column variant for shorter sequences ------------------*/
.steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps.cols-3 { grid-template-columns: 1fr; } }

/* Industry chip list --------------------------------------------------------*/
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.chip {
  background: #fff;
  border: 1px solid var(--lbp-border);
  border-radius: 999px;
  padding: 0.7em 1.3em;
  font-size: 0.92rem;
  color: var(--lbp-text-dark);
}

/* Checklist ------------------------------------------------------------- */
.checklist { display: flex; flex-direction: column; gap: var(--space-md); }
.checklist-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--lbp-border);
}
.checklist-item:last-child { border-bottom: 0; padding-bottom: 0; }
.check-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--lbp-tint);
  color: var(--lbp-blue);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.checklist-item h3 { margin-bottom: 0.3rem; }
.checklist-item p { color: var(--lbp-text-gray); margin: 0; }

/* Agency dashboard widget --------------------------------------------------*/
.dash-widget {
  background: var(--lbp-navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #fff;
  box-shadow: 0 30px 60px -20px rgba(0,28,71,0.45);
}
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 12px;
}
.dash-row:last-child { margin-bottom: 0; }
.dash-client { font-size: 0.92rem; }
.dash-rank {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-variant-numeric: tabular-nums;
}
.dash-rank .after { color: #7CC4FF; font-weight: 500; }
.dash-widget-foot {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* Tutorial video embed --------------------------------------------------*/
.video-embed {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0c1424;
  box-shadow: 0 20px 50px -20px rgba(0,28,71,0.35);
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9rem;
  color: var(--lbp-text-gray);
}
.back-link:hover { color: var(--lbp-blue); }

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
