/* ==========================================================================
   Spectrum Authorized Retailer — landing page
   Mobile-first. Breakpoints: 860px (desktop), 1180px (wide footer grid)
   ========================================================================== */

:root {
  --blue: #0073D1;
  --blue-dark: #005a9e;
  --blue-hero: #1279E8;
  --blue-band: #0F62E6;
  --navy: #06283C;
  --yellow: #FFC61E;
  --ink: #101820;
  --ink-mid: #4A5560;
  --ink-soft: #6A737D;
  --ink-faint: #8A929B;
  --card-blue: #F1F6FD;
  --card-blue-2: #E7EFF9;
  --line: #E3E8EE;
  --line-blue: #DCE6F4;
  --gutter: clamp(16px, 4vw, 28px);
  --maxw: 1120px;
  --radius: 10px;
  --font: Figtree, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
  overflow-x: hidden;
  padding-bottom: 76px; /* room for the sticky call bar */
}

img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 100;
  background: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
  display: block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  padding: 12px 28px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(0,48,87,.18); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--blue); color: var(--blue); font-size: 16px; }
.btn-outline:hover { background: #F0F7FF; color: var(--blue); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; font-size: 14px; padding: 9px 22px; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.logo { display: block; flex: 0 0 auto; }
.logo img { display: block; width: clamp(148px, 42vw, 208px); height: auto; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.header-cta { background: #F5F7FA; border-top: 1px solid var(--line); }
.header-cta-inner { display: flex; justify-content: center; padding-block: 10px; }
.header-cta .btn { padding: 11px 26px; }

/* ---------- hero ---------- */
.hero-section { padding: 20px 0 0; }
.hero {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-photo { padding-inline: 16px; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.hero-copy { padding: 20px 16px 28px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.hero-title {
  margin: 0 0 16px;
  font-size: clamp(38px, 10.4vw, 60px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.028em;
  color: var(--blue-hero);
}
.hero-sub {
  margin: 0 0 26px;
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 33em;
}
.hero-cta { width: 100%; }

/* ---------- generic section type ---------- */
.section { padding: 44px 0 40px; }
.h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.024em;
  color: var(--ink);
}
.h3 {
  margin: 14px 0 7px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
}
.h4 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.012em;
  color: var(--ink);
}
.lede { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--ink-mid); max-width: 44em; }
.body-sm { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-mid); }
.fineprint { margin: 0; font-size: 11px; line-height: 1.5; color: var(--ink-faint); }
.kicker {
  margin: 16px 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.on-blue { color: #fff; }
.on-blue-sub { color: #D8E7FF; margin-bottom: 20px; }

/* ---------- horizontal rails (swipe on mobile, static on desktop) ---------- */
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
.rail > * { scroll-snap-align: start; }

.rail-plans { padding: 28px var(--gutter) 18px; }
.rail-uses { padding: 0 var(--gutter) 14px; }
.rail-coverage { padding: 0 var(--gutter) 6px; }
.rail-reviews { padding: 0 var(--gutter) 8px; }

/* ---------- plan cards ---------- */
.plan-card {
  position: relative;
  flex: 0 0 min(324px, 78vw);
  display: flex;
  flex-direction: column;
  background: var(--card-blue);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--yellow);
  color: #3A2B00;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.plan-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.plan-name { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.plan-speed { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.plan-who { margin: 0 0 18px; font-size: 13px; line-height: 1.45; color: var(--ink-mid); min-height: 3.9em; }
.price { margin: 0 0 2px; display: flex; align-items: flex-end; gap: 2px; }
.price-num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price-per { font-size: 16px; font-weight: 600; color: var(--ink-mid); padding-bottom: 6px; }
.price-term { margin: 0 0 14px; font-size: 12px; color: var(--ink-soft); }
.offer-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--blue); }
.offer-text { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--ink-mid); min-height: 2.9em; }

.feature-list {
  margin: 0 0 18px;
  padding: 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--card-blue-2);
  border-radius: 8px;
}
.feature-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.check { flex: 0 0 auto; color: var(--blue); font-weight: 800; }
.plan-body .btn-block { margin-top: auto; padding: 13px 18px; }

/* ---------- use-case cards ---------- */
.use-card { flex: 0 0 min(258px, 72vw); }
.use-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: #EDF1F6 center / cover no-repeat;
}

/* ---------- coverage band ---------- */
.section-blue { background: var(--blue-band); padding: 44px 0 46px; }
.cov-card {
  flex: 0 0 min(316px, 78vw);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 14px 22px;
}
.cov-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  background: #EDF1F6 center / cover no-repeat;
}
.cov-card .h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.15; letter-spacing: -.018em; }

/* ---------- switch and save ---------- */
.switch-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  background: linear-gradient(180deg, #EEF4FD, #E4EDFA);
  border: 1px solid var(--line-blue);
  border-radius: 12px;
  padding: 30px clamp(20px, 5vw, 44px);
}
.switch-band .h2 { font-size: clamp(24px, 6.6vw, 34px); line-height: 1.14; }
.switch-band .lede { margin-bottom: 18px; }

/* ---------- reviews ---------- */
.review-card {
  flex: 0 0 min(316px, 78vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.stars { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.star-glyphs { font-size: 15px; letter-spacing: 1px; color: var(--blue); }
.score { font-size: 13px; font-weight: 700; }
.review-card .body-sm { margin-bottom: 18px; }
.review-name { margin: auto 0 2px; font-size: 13px; font-weight: 700; }
.review-place { margin: 0; font-size: 12px; color: var(--ink-faint); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #DCE6EE; padding: 44px 0 48px; }
.footer-inner { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.legal-head { margin: 0 0 12px; font-size: 12px; font-weight: 700; color: #fff; }
.legal { margin: 0 0 20px; font-size: 11px; font-weight: 300; line-height: 1.6; color: #C4D2DD; }
.rule { border: 0; height: 1px; background: rgba(255,255,255,.16); margin: 6px 0 22px; }

.loc-label { margin: 0 0 16px; font-size: 12px; color: #C4D2DD; }
.loc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 26px;
  padding-left: 12px;
}
.loc {
  position: relative;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .01em;
  color: #DCE6EE;
  cursor: default;
  outline: none;
  overflow-wrap: anywhere;
}
.loc-city { text-decoration: underline; text-underline-offset: 3px; }
.loc-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  z-index: 5;
  width: max-content;
  max-width: min(220px, 72vw);
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 400;
  padding: 7px 10px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s ease;
}
.loc:hover > .loc-tip,
.loc:focus-visible > .loc-tip,
.loc.is-open > .loc-tip { opacity: 1; visibility: visible; }

.policy-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 18px; }
.policy-links a {
  font-size: 11.5px;
  font-weight: 300;
  color: #DCE6EE;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-links a:hover { color: #fff; }

.copyright { margin: 0 0 26px; font-size: 11.5px; font-weight: 300; color: #C4D2DD; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-logo { display: block; width: 186px; height: auto; filter: brightness(0) invert(1); }
.sitemap { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.sitemap a { font-size: 11.5px; font-weight: 600; color: #9FB6C6; text-decoration: none; }
.sitemap a:hover { color: #fff; }

.reseller-note { margin: 18px 0 0; font-size: 11px; font-weight: 300; line-height: 1.6; color: #7E97A8; }
.reseller-note a { color: #fff; font-weight: 700; text-decoration: none; }

/* ---------- sticky mobile call bar ---------- */
.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(16,24,32,.1);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.sticky-call .btn { font-size: 16px; padding: 15px 18px; }

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 860px) {

  body { padding-bottom: 0; }
  .sticky-call { display: none; }

  /* hero: full-bleed photo with the copy overlaid on a white fade */
  .hero-section { padding: 24px var(--gutter) 0; }
  .hero {
    flex-direction: row;
    align-items: center;
    min-height: 420px;
    border-radius: 2px;
    background-image:
      linear-gradient(90deg, #fff 0%, #fff 34%, rgba(255,255,255,.92) 46%, rgba(255,255,255,0) 62%),
      url('../assets/hero-desktop.webp');
    background-size: cover, cover;
    background-position: center left, center right;
    background-repeat: no-repeat, no-repeat;
  }
  .hero-photo { display: none; }
  .hero-copy { flex: 0 1 min(620px, 62%); padding: 56px 36px 56px 40px; }
  .hero-title { font-size: clamp(34px, 4.6vw, 54px); }
  .hero-cta { width: auto; }

  /* rails stop scrolling and fit the row */
  .rail { overflow-x: visible; scroll-snap-type: none; }
  .rail > article { flex: 1 1 0; min-width: 0; }

  /* switch and save goes horizontal */
  .switch-band { flex-direction: row; align-items: center; text-align: left; }

  .loc-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .sticky-call { position: static; }
  .section-blue { background: #fff; color: #000; }
}
