/* =========================================================
   WiFiAssessment.com — Wireless Design Pros
   Premium single-page Facebook ad funnel. Mobile-first.
   ========================================================= */

:root {
  /* Brand palette (from Wireless Design Pros) */
  --navy:        #0A1B33;
  --navy-deep:   #06122440;
  --navy-2:      #0E2848;
  --blue:        #1789C2;   /* deeper companion of brand blue */
  --blue-bright: #29ABE2;   /* official brand blue (sampled from logo) */
  --blue-dark:   #0F6EA0;
  --orange:      #F97316;   /* minimal accent */
  --white:       #FFFFFF;
  --ink:         #0B1B2E;   /* body text on light */
  --muted:       #5B6B7F;
  --line:        #E4E9F0;
  --bg-soft:     #F4F7FB;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 18px 50px rgba(10, 27, 51, 0.12);
  --shadow-sm:   0 6px 20px rgba(10, 27, 51, 0.08);
  --maxw:        1120px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.accent { color: var(--blue-bright); }

/* ---------------- Buttons ---------------- */
.btn {
  --btn-bg: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .2px;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  border: none;
  border-radius: 999px;
  padding: 15px 30px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(23, 137, 194, 0.38);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(23,137,194,.46); filter: brightness(1.04); }
.btn:active { transform: translateY(0); }
.btn--lg { font-size: 1.15rem; padding: 18px 40px; width: 100%; max-width: 460px; }
.btn--sm { font-size: .9rem; padding: 11px 20px; box-shadow: 0 6px 16px rgba(23,137,194,.32); }
.btn--block { width: 100%; }

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,27,51,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { display: block; width: 35px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.brand__text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: 2px; }
.brand__text em { font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: 3.5px; color: var(--blue-bright); margin-top: 3px; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__phone { display: none; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.15; }
.topbar__phone-label { font-size: .68rem; color: #9fb3cc; }
.topbar__phone-num { font-size: .95rem; font-weight: 700; color: #fff; }
.topbar__cta { display: none; }

/* ---------------- Hero (mobile-first) ---------------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  min-height: 92vh; min-height: 92svh; display: flex;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  /* Mobile: vertical 9:16 crop. Localize: swap to url("../img/hero-mobile.png") */
  background: var(--navy) url("https://d8j0ntlcm91z4.cloudfront.net/user_39FrbxwkC1q6Gj5YSLAow6uoi5A/hf_20260611_112854_edd3c6d9-3577-438d-a8a1-8a6d9f278684.png") center 30% / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,15,30,0.94) 0%, rgba(6,15,30,0.55) 42%, rgba(6,15,30,0.40) 62%, rgba(6,15,30,0.86) 100%);
}
.hero__inner { padding: 92px 22px 64px; display: flex; align-items: center; width: 100%; }
.hero__copy { max-width: 640px; width: 100%; }
.hero__headline {
  font-size: clamp(3.2rem, 16vw, 4.6rem);
  font-weight: 900; line-height: .94; margin: 0 0 16px;
  letter-spacing: -2px;
  text-shadow: 0 6px 34px rgba(0,0,0,.45);
}
.hero__sub { font-size: clamp(1.3rem, 5.4vw, 1.6rem); font-weight: 800; margin: 0 0 12px; line-height: 1.22; letter-spacing: -.3px; }
.hero__sub em { color: var(--blue-bright); font-style: italic; }
.hero__lede { font-size: 1.02rem; color: #d4e0ee; margin: 0 0 26px; max-width: 480px; }

.trustbar { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 13px; }
.trustbar li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.02rem; color: #f1f6fc; }
.trustbar .check {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff; box-shadow: 0 2px 8px rgba(23,137,194,.45);
}
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; min-width: 24px; border-radius: 50%;
  background: rgba(41,171,226,0.18); color: var(--blue-bright); font-size: .8rem; font-weight: 800;
}
.hero__secondary { margin: 16px 0 0; font-size: .92rem; color: #9fb3cc; font-weight: 600; letter-spacing: .3px; }

/* ---------------- Generic section ---------------- */
.section { padding: 58px 0; }
.section__title {
  font-size: clamp(1.9rem, 5.4vw, 2.7rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.6px;
  text-align: center; margin: 0 0 40px;
}
.section__title--light { color: #fff; }
.section__title--left { text-align: left; margin-bottom: 14px; }

/* ---------------- Pains ---------------- */
.section--pains { background: var(--bg-soft); }
.pains {
  list-style: none; margin: 0 auto 38px; padding: 0; max-width: 880px;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.pains li {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 18px; font-weight: 600; font-size: 1.02rem;
  box-shadow: var(--shadow-sm);
}
.pains .dot {
  width: 11px; height: 11px; min-width: 11px; border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
}

/* ---------------- Steps ---------------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: step;
}
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow-sm);
  text-align: center;
}
.step__num {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  box-shadow: 0 8px 18px rgba(23,137,194,.34);
}
.step h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; }
.step p { margin: 0; color: var(--muted); }

/* ---------------- Why we're different ---------------- */
.section--why { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.why__bg {
  position: absolute; inset: 0; z-index: -2;
  /* Localize for production: run scripts/fetch-assets.sh, then swap to url("../img/home-dusk.png") */
  background: var(--navy) url("https://d8j0ntlcm91z4.cloudfront.net/user_39FrbxwkC1q6Gj5YSLAow6uoi5A/hf_20260611_022343_e7a3ee06-34b0-4d89-b8d1-f863a0cee6bc.png") center / cover no-repeat;
}
.why__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,16,32,0.90), rgba(8,20,40,0.93));
}
.why__grid { display: grid; grid-template-columns: 1fr; gap: 34px; max-width: 980px; margin: 0 auto; }
.why__lead { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
.why__lead--accent { color: var(--blue-bright); margin-bottom: 18px; }
.why__copy p { color: #cfdcec; }
.why__list {
  list-style: none; padding: 0; margin: 14px 0 18px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.why__list li {
  background: rgba(41,171,226,0.12); border: 1px solid rgba(41,171,226,0.3);
  color: #eaf2fb; font-weight: 600; padding: 8px 16px; border-radius: 999px; font-size: .95rem;
}
.why__now { font-weight: 700; color: #fff !important; font-size: 1.08rem; }

.authority {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px;
}
.authority__label {
  margin: 0 0 16px; text-transform: uppercase; letter-spacing: 2px;
  font-size: .75rem; font-weight: 700; color: #9fb3cc;
}
.authority__logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.authority__logos li {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: var(--radius-sm);
  padding: 14px 16px; min-height: 64px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: transform .2s var(--ease);
}
.authority__logos li:hover { transform: translateY(-2px); }
.authority__logos img {
  max-height: 34px; width: auto; max-width: 100%; object-fit: contain;
}
/* Universal emblem is square — give it a touch more height */
.authority__logos li:last-child { grid-column: 1 / -1; }
.authority__logos li:last-child img { max-height: 52px; }

/* ---------------- Privacy ---------------- */
.section--privacy { background: var(--bg-soft); }
.privacy__inner {
  display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center;
  max-width: 900px; margin: 0 auto;
}
.privacy__shield { display: flex; justify-content: center; }
.privacy__sub { font-size: 1.15rem; font-weight: 600; color: var(--blue); margin: 0 0 22px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.checklist .check { background: rgba(23,137,194,0.12); color: var(--blue); }
.checklist--2col { grid-template-columns: 1fr; }

/* ---------------- Pricing ---------------- */
.pricing { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 920px; margin: 0 auto; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
}
.plan--main { border: 2px solid var(--blue); position: relative; }
.plan__head { text-align: center; margin-bottom: 22px; }
.plan__name { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.plan__price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.plan__amt { font-size: 3rem; font-weight: 900; color: var(--blue); letter-spacing: -1px; }
.plan__tag {
  display: inline-block; background: var(--orange); color: #fff; font-size: .72rem;
  font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.plan--addon { background: var(--navy); color: #fff; border-color: var(--navy-2); }
.plan--addon .plan__amt { color: var(--blue-bright); }
.plan--addon .checklist .check { background: rgba(41,171,226,0.18); color: var(--blue-bright); }
.plan--addon .plan__note { color: #9fb3cc; }
.plan .checklist { margin-bottom: 24px; }
.plan__note { text-align: center; margin: 0; font-size: .9rem; color: var(--muted); }

.guarantee {
  max-width: 760px; margin: 34px auto 0; text-align: center;
  background: #fff; border: 1px dashed var(--blue); border-radius: var(--radius);
  padding: 20px 24px; color: var(--ink); font-size: .98rem;
}
.guarantee__icon { font-size: 1.2rem; margin-right: 6px; }

/* ---------------- Reviews ---------------- */
.section--reviews { background: var(--bg-soft); }
.reviews { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 1000px; margin: 0 auto; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; margin: 0; box-shadow: var(--shadow-sm);
}
.stars { color: #FFB400; font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 14px; }
.review blockquote { margin: 0 0 16px; font-size: 1.08rem; line-height: 1.5; font-weight: 500; }
.review figcaption { color: var(--muted); font-weight: 700; font-size: .92rem; }

/* ---------------- Outcome band ---------------- */
.outcome { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.outcome__bg {
  position: absolute; inset: 0; z-index: -2;
  /* Localize for production: run scripts/fetch-assets.sh, then swap to url("../img/family.png") */
  background: var(--navy) url("https://d8j0ntlcm91z4.cloudfront.net/user_39FrbxwkC1q6Gj5YSLAow6uoi5A/hf_20260611_022344_4a8647b9-7c82-4fe2-be49-02f935b49fff.png") center 30% / cover no-repeat;
}
.outcome__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,16,32,0.30), rgba(7,16,32,0.78));
}
.outcome__inner { padding: 110px 20px; text-align: center; }
.outcome__title { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -.5px; text-shadow: 0 3px 20px rgba(0,0,0,.4); }
.outcome__sub { font-size: 1.1rem; color: #e3ecf6; max-width: 600px; margin: 0 auto; }

/* ---------------- Risk reversal ---------------- */
.section--risk {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--navy);
}
.section--risk::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/wifi-glow-city.png") center / cover no-repeat;
  opacity: .22;
}
.risk__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.risk__body { font-size: 1.18rem; color: #cfdcec; margin-bottom: 34px; }
.risk__body p { margin: 8px 0; }
.risk__kicker { color: var(--blue-bright) !important; font-weight: 800; font-size: 1.35rem; }

/* ---------------- Scarcity ---------------- */
.section--scarcity { background: var(--bg-soft); text-align: center; padding: 60px 0; }
.scarcity__inner { max-width: 720px; margin: 0 auto; }
.scarcity__body { color: var(--muted); font-size: 1.05rem; margin: 0 auto 28px; max-width: 560px; }
.counter {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff; border: 2px solid var(--blue); border-radius: var(--radius);
  padding: 22px 40px; box-shadow: var(--shadow-sm);
}
.counter__num { font-size: 3.2rem; font-weight: 900; color: var(--orange); line-height: 1; }
.counter__label { font-weight: 700; color: var(--ink); letter-spacing: .3px; }

/* ---------------- Booking ---------------- */
.section--book { padding-bottom: 100px; }
.book__sub { text-align: center; color: var(--muted); font-size: 1.1rem; margin: -22px auto 30px; max-width: 560px; }
.bookpaths {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  max-width: 720px; margin: 0 auto 26px;
}
.bookpath {
  text-align: left; cursor: pointer; background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  display: flex; flex-direction: column; gap: 3px; transition: border-color .2s, box-shadow .2s, transform .2s;
  font-family: inherit;
}
.bookpath:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.bookpath.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,137,194,.12); }
.bookpath__title { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.bookpath__desc { color: var(--muted); font-size: .92rem; }

.bookpanel { max-width: 900px; margin: 0 auto; }
.bookpanel[hidden] { display: none; }
.calendly-inline-widget {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: #fff;
}
.book__fallback { text-align: center; color: var(--muted); }

.callcard {
  text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 46px 28px; box-shadow: var(--shadow);
}
.callcard__lead { font-size: 1.2rem; font-weight: 600; margin: 0 0 22px; }
.callcard__note { color: #9fb3cc; margin: 18px 0 0; font-size: .92rem; }

/* ---------------- Footer ---------------- */
.footer { background: var(--navy); color: #fff; padding: 46px 0 84px; }
.footer__inner { text-align: center; }
.footer__logo { width: 200px; height: auto; margin: 0 auto 24px; }
.footer__badges {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
}
.footer__badges li { color: #cfdcec; font-weight: 600; font-size: .9rem; position: relative; }
.footer__legal { color: #7e93ad; font-size: .82rem; margin: 0; }

/* ---------------- Sticky mobile CTA ---------------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(10,27,51,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 11px 16px;
  transform: translateY(120%); transition: transform .3s var(--ease);
}
.stickybar.is-visible { transform: translateY(0); }
.stickybar__text { display: flex; flex-direction: column; line-height: 1.2; color: #fff; }
.stickybar__text strong { font-size: 1rem; font-weight: 800; }
.stickybar__text span { font-size: .82rem; color: #9fb3cc; }
.stickybar .btn { padding: 13px 22px; font-size: .98rem; white-space: nowrap; }

/* =========================================================
   Scroll animations + CTA attention shake
   (gated behind .has-js so no-JS users see everything;
    disabled under prefers-reduced-motion)
   ========================================================= */
.has-js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* staggered entrance within card groups */
.steps .step:nth-child(2),
.reviews .review:nth-child(2),
.pricing .plan:nth-child(2) { transition-delay: .1s; }
.steps .step:nth-child(3) { transition-delay: .2s; }
.steps .step:nth-child(4) { transition-delay: .3s; }

@keyframes ctaShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  12% { transform: translateX(-7px) rotate(-2deg); }
  26% { transform: translateX(7px) rotate(2deg); }
  40% { transform: translateX(-6px) rotate(-1.4deg); }
  54% { transform: translateX(6px) rotate(1.4deg); }
  68% { transform: translateX(-3px) rotate(-.6deg); }
  82% { transform: translateX(3px) rotate(.6deg); }
}
.btn--shake { animation: ctaShake .72s cubic-bezier(.36,.07,.19,.97) both; }

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  .btn--shake { animation: none; }
}

/* =========================================================
   Responsive — tablet & desktop
   ========================================================= */
@media (min-width: 600px) {
  .btn--lg { width: auto; }
  .pains { grid-template-columns: 1fr 1fr; }
  .checklist--2col { grid-template-columns: 1fr 1fr; }
  .bookpaths { grid-template-columns: 1fr 1fr; }
  .topbar__phone { display: flex; }
}

@media (min-width: 768px) {
  .section { padding: 92px 0; }
  .hero { min-height: 78vh; }
  .hero__inner { padding: 96px 20px 104px; }
  /* Desktop: landscape crop + left-dark gradient for side-by-side copy */
  .hero__bg { background-image: url("https://d8j0ntlcm91z4.cloudfront.net/user_39FrbxwkC1q6Gj5YSLAow6uoi5A/hf_20260611_112856_79d2996f-1258-4cce-bf15-36ccb7e4094b.png"); background-position: center; }
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(6,15,30,0.95) 0%, rgba(7,17,34,0.82) 40%, rgba(7,17,34,0.28) 78%, rgba(7,17,34,0.10) 100%),
      linear-gradient(180deg, rgba(6,15,30,0.45), rgba(6,15,30,0.70));
  }
  .hero__headline { letter-spacing: -2.5px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .pricing { grid-template-columns: 1.15fr 1fr; }
  .privacy__inner { grid-template-columns: 180px 1fr; gap: 40px; }
  .why__grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .topbar__cta { display: inline-flex; }
  /* Sticky bar is mobile-only */
  .stickybar { display: none !important; }
}

@media (min-width: 1024px) {
  .hero__headline { font-size: 6rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .stickybar, .bookpath { transition: none; }
}
