/* ============================================================
   Page-specific styles
   ============================================================ */

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 7vw, 7rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--c-blue-50) 0%, transparent 60%),
    radial-gradient(ellipse at top right, rgba(245,134,52,0.08), transparent 50%),
    white;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--c-navy-800), var(--c-blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: var(--fs-md);
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  max-width: 50ch;
}
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}
.hero-meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.hero-meta .stat .num {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--c-navy-800);
  line-height: 1;
}
.hero-meta .stat .lbl {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: 4px;
}

/* Fiber illustration */
.fiber-graphic {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin-inline: auto;
}
.fiber-graphic svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 59, 122, 0.2));
}

/* ===================== Feature blocks ===================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* Plans / Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--space-7) var(--space-6);
  position: relative;
  transition: all var(--t-base) var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-blue-100); }
.plan.featured {
  background: linear-gradient(155deg, var(--c-navy-900), var(--c-navy-700));
  color: white;
  border-color: transparent;
}
.plan.featured h3 { color: white; }
.plan.featured .price { color: white; }
.plan.featured .feat-list li { color: rgba(255,255,255,0.88); }
.plan.featured .feat-list svg { stroke: var(--c-orange-400); }
.plan-tag {
  position: absolute;
  top: -12px;
  right: var(--space-6);
  background: var(--c-orange-500);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-full);
}
.plan h3 {
  font-size: var(--fs-lg);
  margin-bottom: 4px;
}
.plan .speed {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-bottom: var(--space-5);
}
.plan.featured .speed { color: rgba(255,255,255,0.7); }
.plan .price {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--c-navy-800);
  line-height: 1;
  margin-bottom: 4px;
}
.plan .price .unit {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  margin-inline-start: 6px;
}
.plan.featured .price .unit { color: rgba(255,255,255,0.7); }
.plan .price-note {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-bottom: var(--space-5);
}
.plan.featured .price-note { color: rgba(255,255,255,0.7); }
.feat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-6);
}
.feat-list li {
  display: flex;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--c-text);
  align-items: flex-start;
}
.feat-list svg {
  width: 18px; height: 18px;
  stroke: var(--c-navy-800);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===================== Process / Steps ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  counter-reset: steps;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step {
  counter-increment: steps;
  position: relative;
  padding: var(--space-6) var(--space-5);
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.step::before {
  content: counter(steps);
  position: absolute;
  top: -18px;
  inset-inline-start: var(--space-5);
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--c-navy-800);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-md);
  font-family: var(--ff-sans);
}
.step h4 { margin: var(--space-3) 0 var(--space-2); }
.step p { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* ===================== Testimonials ===================== */
.quote-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  position: relative;
}
.quote-card .mark {
  font-family: serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--c-blue-100);
  position: absolute;
  top: 8px;
  inset-inline-end: var(--space-4);
}
.quote-card blockquote {
  font-size: var(--fs-md);
  line-height: 1.8;
  margin-bottom: var(--space-4);
  color: var(--c-text);
  position: relative;
  z-index: 1;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.quote-avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--c-blue-500), var(--c-navy-800));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.quote-author .name { font-weight: 600; }
.quote-author .role {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* ===================== About page ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-image {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, var(--c-navy-800), var(--c-blue-500));
  position: relative;
  overflow: hidden;
}
.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 30px);
}
.about-image .ph-label {
  position: absolute;
  bottom: var(--space-5);
  inset-inline-start: var(--space-5);
  background: rgba(0,0,0,0.45);
  color: white;
  padding: 6px 14px;
  border-radius: var(--r-md);
  font-family: ui-monospace, monospace;
  font-size: var(--fs-xs);
}
.values-list { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.values-list .v {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--c-surface);
  border-radius: var(--r-md);
}
.values-list .v .ico {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--c-blue-100);
  color: var(--c-navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.values-list .v h4 { font-size: var(--fs-base); margin-bottom: 2px; }
.values-list .v p { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  padding: var(--space-7);
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-item .num {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--c-navy-800);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .num .suf { font-size: var(--fs-lg); color: var(--c-orange-500); }
.stat-item .lbl { font-size: var(--fs-sm); color: var(--c-text-muted); }

/* ===================== FAQ ===================== */
.faq-list { display: grid; gap: var(--space-3); }
.faq-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.faq-cat {
  padding: 8px 16px;
  border: 1px solid var(--c-border);
  background: white;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  cursor: pointer;
  font-family: var(--ff-sans);
  transition: all var(--t-fast) var(--ease);
}
.faq-cat:hover { border-color: var(--c-blue-500); }
.faq-cat.active {
  background: var(--c-navy-800);
  color: white;
  border-color: var(--c-navy-800);
}
.faq-item {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border var(--t-fast) var(--ease);
}
.faq-item[open] { border-color: var(--c-blue-100); box-shadow: var(--sh-xs); }
.faq-item summary {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-weight: 600;
  font-size: var(--fs-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 14px; height: 14px;
  border-inline-end: 2px solid var(--c-navy-800);
  border-bottom: 2px solid var(--c-navy-800);
  transform: rotate(45deg);
  transition: transform var(--t-fast) var(--ease);
  margin-top: -4px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item .answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--c-text-muted);
  line-height: 1.8;
}

/* ===================== Contact ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-7);
  align-items: stretch;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info {
  background: linear-gradient(155deg, var(--c-navy-900), var(--c-navy-700));
  color: white;
  border-radius: var(--r-xl);
  padding: var(--space-7);
  position: relative;
  overflow: hidden;
}
.contact-info::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(245,134,52,0.25), transparent 70%);
  bottom: -100px;
  inset-inline-end: -60px;
  pointer-events: none;
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h2 { color: white; margin-bottom: var(--space-3); }
.contact-info > p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-6); }
.contact-info .info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-info .info-list .row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.contact-info .info-list .ico {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info .info-list .ico svg { width: 22px; height: 22px; stroke: var(--c-orange-400); }
.contact-info .info-list .ttl { font-size: var(--fs-xs); color: rgba(255,255,255,0.65); }
.contact-info .info-list .val { color: white; font-size: var(--fs-md); margin-top: 2px; }
.contact-info .info-list .val a { color: white; }
.contact-info .info-list .val a:hover { color: var(--c-orange-400); }
.contact-info .hours {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
}
.contact-info .hours strong { color: var(--c-orange-400); display: block; margin-bottom: 4px; }

.contact-form-wrap {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--space-7);
}

/* ===================== Affiliate / Jobs ===================== */
.job-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 700px) { .job-card { grid-template-columns: 1fr; } }
.job-meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 16px; height: 16px; stroke: currentColor; }

/* Reasons grid for jobs */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr; } }

/* ===================== Signup tabs ===================== */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--c-surface-2);
  padding: 4px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-7);
  width: fit-content;
  margin-inline: auto;
}
.tab-btn {
  border: 0;
  background: transparent;
  padding: 10px 22px;
  border-radius: var(--r-full);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  font-family: var(--ff-sans);
  transition: all var(--t-fast) var(--ease);
}
.tab-btn.is-active {
  background: white;
  color: var(--c-navy-800);
  box-shadow: var(--sh-sm);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.signup-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--sh-sm);
}
.signup-card h2 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.signup-card > p.lead { margin-bottom: var(--space-6); }

/* ===================== Map ===================== */
.map-wrap {
  position: relative;
  height: clamp(420px, 70vh, 720px);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-md);
}
#cov-map { width: 100%; height: 100%; }
.map-legend {
  position: absolute;
  bottom: var(--space-4);
  inset-inline-start: var(--space-4);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--space-4);
  font-size: var(--fs-sm);
  box-shadow: var(--sh-md);
  z-index: 400;
  min-width: 220px;
}
.map-legend h4 { font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.map-legend .leg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block: 6px;
  color: var(--c-text-muted);
}
.map-legend .leg-swatch {
  width: 18px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.map-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.area-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 700px) { .area-cards { grid-template-columns: 1fr; } }
.area-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.area-card .pin {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--c-blue-50);
  color: var(--c-navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.area-card .pin svg { width: 22px; height: 22px; stroke: currentColor; }
.area-card h4 { margin-bottom: 2px; }
.area-card p { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }

/* Loader for the map */
.map-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: white;
  z-index: 5;
}
.map-loader.hidden { display: none; }
.spin {
  width: 36px; height: 36px;
  border: 3px solid var(--c-blue-100);
  border-top-color: var(--c-navy-800);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== Reveal animation ===================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== Signup Location Map ===================== */
.location-picker {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
}
.location-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
  gap: 8px;
  flex-wrap: wrap;
}
.location-picker-head .lp-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy-800);
  display: flex;
  align-items: center;
  gap: 6px;
}
.signup-map {
  width: 100%;
  height: 280px;
  display: block;
}
.location-picker-foot {
  padding: 8px 14px;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}
.location-picker-foot.has-coords {
  color: var(--c-success);
  font-weight: 600;
}
.lp-gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  background: white;
  color: var(--c-navy-800);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  font-family: var(--ff-sans);
}
.lp-gps-btn:hover { background: var(--c-blue-50); border-color: var(--c-blue-500); }
.lp-gps-btn:disabled { opacity: 0.6; cursor: default; }
/* Custom map pin */
.signup-pin-icon {
  width: 28px;
  height: 40px;
  margin-left: -14px;
  margin-top: -40px;
}
@media (max-width: 600px) {
  .signup-map { height: 220px; }
}
