/* ===========================================================================
   BroadbandSwitch.uk homepage sections
   Sections 2, 4, 5, 6 and 8 of the August 2026 homepage rewrite.

   Prefix: .bsw-hp-   Nothing here touches the hero, the nav or the footer.

   NOTE FOR ANY FUTURE SCOPING PASS
   Do not run a line-based "prefix every selector" regex over this file.
   A line beginning with a comment marker will be treated as a selector and
   the rule silently dies. Use postcss-prefix-selector if scoping is ever
   needed. Every class here is already bsw-hp- prefixed, so it is not.
   =========================================================================== */


/* The host page may not set a global border-box reset, and this block must not
   depend on one.  Without it, any width:100% element that also has padding
   overflows its container: the mobile call to action was 22px too wide at
   390px for exactly this reason.  Scoped, so it changes nothing outside. */
.bsw-hp, .bsw-hp *, .bsw-hp *::before, .bsw-hp *::after{ box-sizing:border-box; }

.bsw-hp{
  --hp-ink:#0A0F2C;
  --hp-mute:#4C5480;
  --hp-soft:#6F7794;
  --hp-pink:#C10460;
  --hp-green:#07695C;
  --hp-line:#E6E8F2;
  --hp-wash:#F7F8FC;
  --hp-max:1180px;
  --hp-facts-ring:var(--cream, #FAF7F2);
  font-family:Poppins,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--hp-ink);
}

.bsw-hp section{ padding:64px 0; }
.bsw-hp section + section{ border-top:1px solid var(--hp-line); }
.bsw-hp__in{ max-width:var(--hp-max); margin:0 auto; padding:0 24px; }

.bsw-hp h2{
  font-size:clamp(26px,3.4vw,38px); line-height:1.16; font-weight:800;
  letter-spacing:-.9px; margin:0 0 14px; color:var(--hp-ink);
}
.bsw-hp h3{
  font-size:19px; line-height:1.3; font-weight:700;
  letter-spacing:-.3px; margin:0 0 8px; color:var(--hp-ink);
}
.bsw-hp p{ font-size:16.5px; line-height:1.62; color:var(--hp-mute); margin:0 0 16px; }
.bsw-hp p:last-child{ margin-bottom:0; }
.bsw-hp strong{ color:var(--hp-ink); font-weight:650; }
.bsw-hp__lede{ font-size:18px; line-height:1.6; max-width:62ch; margin-bottom:34px; }

.bsw-hp a{ color:var(--hp-pink); text-decoration:underline; text-underline-offset:2px; }
.bsw-hp a:hover{ text-decoration-thickness:2px; }
.bsw-hp a:focus-visible{ outline:3px solid var(--hp-pink); outline-offset:3px; border-radius:3px; }

/* ---- the postcode call to action, used twice ---------------------------- */
.bsw-hp-cta{
  display:inline-flex; align-items:center; gap:10px;
  min-height:52px; padding:0 26px; border-radius:999px;
  background:var(--hp-pink, #C10460); color:#FFFFFF !important;
  font-size:16.5px; font-weight:650; letter-spacing:-.2px;
  text-decoration:none !important; border:0; cursor:pointer;
  box-shadow:0 6px 18px rgba(193,4,96,.22);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.bsw-hp-cta:hover{ background:#A80354; transform:translateY(-1px); box-shadow:0 9px 24px rgba(193,4,96,.28); }
.bsw-hp-cta:active{ transform:translateY(0); }
.bsw-hp-cta:focus-visible{ outline:3px solid #C10460; outline-offset:3px; }
.bsw-hp-cta svg{ width:17px; height:17px; flex:none; }
.bsw-hp-cta--ghost{
  background:#fff; color:var(--hp-ink) !important;
  border:1.5px solid var(--hp-ink); box-shadow:none;
}
.bsw-hp-cta--ghost:hover{ background:var(--hp-ink); color:#fff !important; box-shadow:none; }
.bsw-hp-cta__note{
  display:block; font-size:14px; color:var(--hp-soft); margin-top:12px;
}

/* ---- section 2: the three steps ---------------------------------------- */
.bsw-hp-steps{
  display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin:0 0 34px;
  padding:0; list-style:none; counter-reset:hpstep;
}
.bsw-hp-steps > li{
  position:relative; padding:26px 24px 24px; border-radius:16px;
  background:var(--hp-wash); border:1px solid var(--hp-line);
}
.bsw-hp-steps > li::before{
  counter-increment:hpstep; content:counter(hpstep);
  display:grid; place-items:center; width:34px; height:34px; margin-bottom:14px;
  border-radius:50%; background:var(--hp-ink); color:#fff;
  font-size:15px; font-weight:700; font-variant-numeric:tabular-nums;
}
.bsw-hp-steps h3{ font-size:17.5px; }
.bsw-hp-steps p{ font-size:15.5px; margin-bottom:0; }

.bsw-hp-facts{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
  margin:52px 0 0; padding:0; list-style:none;
}
.bsw-hp-facts > li{
  position:relative;
  padding:36px 22px 22px; border-radius:16px;
  background:#fff; border:1px solid var(--hp-line);
  box-shadow:0 6px 18px rgba(10,15,44,.05);
}
.bsw-hp-facts > li::before{
  content:""; position:absolute; top:-22px; left:20px;
  width:44px; height:44px; border-radius:50%;
  box-shadow:0 0 0 5px var(--hp-facts-ring, #FAF7F2);
}
.bsw-hp-facts > li::after{
  content:""; position:absolute; top:-11px; left:31px;
  width:22px; height:22px; background:#fff;
}
.bsw-hp-facts > li:nth-child(1)::before{ background:var(--hp-ink); }
.bsw-hp-facts > li:nth-child(2)::before{ background:var(--hp-green); }
.bsw-hp-facts > li:nth-child(3)::before{ background:var(--hp-pink); }
.bsw-hp-facts > li:nth-child(1)::after{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v4.8l3.2 1.9'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v4.8l3.2 1.9'/%3E%3C/svg%3E") center/contain no-repeat;
}
.bsw-hp-facts > li:nth-child(2)::after{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66'/%3E%3Cpath d='M18.5 2.5v4h-4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66'/%3E%3Cpath d='M18.5 2.5v4h-4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.bsw-hp-facts > li:nth-child(3)::after{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='12' rx='2'/%3E%3Cpath d='M8.5 21h7'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='12' rx='2'/%3E%3Cpath d='M8.5 21h7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.bsw-hp-facts b{
  display:block; font-size:15.5px; font-weight:700;
  margin-bottom:6px; color:var(--hp-ink);
}
.bsw-hp-facts span{
  display:block; font-size:14.5px; line-height:1.55; color:var(--hp-mute);
}

/* ---- section 4: ranking ------------------------------------------------- */
.bsw-hp-rank{ background:var(--hp-wash); }
.bsw-hp-rank .bsw-hp-fig{
  margin:30px 0 0; padding:0; background:#fff;
  border:1px solid var(--hp-line); border-radius:16px; overflow:hidden;
}
.bsw-hp-fig img{ display:block; width:100%; height:auto; }
.bsw-hp-fig figcaption{
  font-size:14px; line-height:1.55; color:var(--hp-soft);
  padding:14px 20px; border-top:1px solid var(--hp-line);
}
.bsw-hp-split{ display:grid; grid-template-columns:1.05fr .95fr; gap:44px; align-items:start; }
.bsw-hp-points{ margin:0 0 22px; padding:0; list-style:none; }
.bsw-hp-points > li{ position:relative; padding-left:30px; margin-bottom:16px; }
.bsw-hp-points > li:last-child{ margin-bottom:0; }
.bsw-hp-points > li::before{
  content:""; position:absolute; left:0; top:7px; width:18px; height:18px;
  border-radius:50%; background:var(--hp-green);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.bsw-hp-points p{ font-size:15.5px; margin:0; }
.bsw-hp-points b{ color:var(--hp-ink); }
.bsw-hp-meta{ font-size:14.5px; color:var(--hp-soft); margin-top:24px; }
.bsw-hp-meta a{ color:var(--hp-mute); }

/* ---- section 5: costs --------------------------------------------------- */
.bsw-hp-cost{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; margin-top:32px; }
.bsw-hp-card{
  padding:26px 26px 24px; border-radius:16px;
  border:1px solid var(--hp-line); background:#fff;
}
.bsw-hp-card--wide{ grid-column:1 / -1; }
.bsw-hp-card--flag{ border-color:#BFDDD3; background:#F1F9F6; }
.bsw-hp-card p{ font-size:15.5px; }
.bsw-hp-stat{
  display:block; font-size:clamp(30px,4vw,40px); line-height:1; font-weight:800;
  letter-spacing:-1.4px; color:var(--hp-pink); margin-bottom:10px;
  font-variant-numeric:tabular-nums;
}
.bsw-hp-card--flag .bsw-hp-stat{ color:var(--hp-green); }
.bsw-hp-src{ display:block; font-size:13.5px; line-height:1.5; color:var(--hp-soft); margin-top:12px; }
.bsw-hp-src a{ color:var(--hp-soft); }

/* ---- section 6: FAQ ----------------------------------------------------- */
.bsw-hp-faq{ display:grid; grid-template-columns:repeat(2,1fr); gap:0 44px; margin-top:26px; }
.bsw-hp-q{
  border-bottom:1px solid var(--hp-line); padding:18px 0;
}
.bsw-hp-q h3{
  font-size:16.5px; margin-bottom:7px;
  display:grid; grid-template-columns:auto 1fr;
  column-gap:11px; align-items:center;
}
.bsw-hp-q__ic{
  width:30px; height:30px; padding:6px;
  border-radius:9px; background:rgba(7,105,92,.10);
  color:var(--hp-green); flex:none;
}
.bsw-hp-q p{ font-size:15.5px; margin:0; padding-left:41px; }
@media (max-width:760px){
  .bsw-hp-q p{ padding-left:0; }
}

/* ---- section 8: close --------------------------------------------------- */
.bsw-hp-close{ background:var(--hp-ink); color:#fff; text-align:center; }
.bsw-hp-close h2{ color:#fff; }
.bsw-hp-close p{ color:#B9C0DA; max-width:52ch; margin-left:auto; margin-right:auto; }
.bsw-hp-close .bsw-hp-cta{ margin-top:26px; }
.bsw-hp-close .bsw-hp-cta__note{ color:#6F7794; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width:1000px){
  .bsw-hp-split{ grid-template-columns:1fr; gap:32px; }
  .bsw-hp-steps{ grid-template-columns:1fr; gap:16px; }
  .bsw-hp-facts{ grid-template-columns:1fr; gap:34px; margin-top:48px; }
  .bsw-hp-faq{ grid-template-columns:1fr; gap:0; }
}
@media (max-width:760px){
  .bsw-hp section{ padding:48px 0; }
  .bsw-hp__in{ padding:0 18px; }
  .bsw-hp__lede{ font-size:16.5px; margin-bottom:26px; }
  .bsw-hp-cost{ grid-template-columns:1fr; gap:16px; }
  .bsw-hp-card{ padding:22px 20px; }
  .bsw-hp-cta{ width:100%; justify-content:center; padding:0 20px; }
}

@media (prefers-reduced-motion:reduce){
  .bsw-hp *{ transition:none !important; animation:none !important; }
}
