/* Up North Fibre - shared design system */

:root {
  --blue-700: #2338c4;
  --blue-600: #334fed;
  --blue-500: #4f68ff;
  --blue-300: #8ea0ff;
  --blue-100: #e6ebff;
  --cyan-400: #4fd1e8;
  --lime-400: #b6f36b;

  --ink-950: #050b18;
  --ink-900: #0a1226;
  --ink-800: #101a33;
  --ink-700: #1a2645;
  --line-dark: rgba(255, 255, 255, 0.12);

  --paper: #ffffff;
  --fog: #f4f6fb;
  --mist: #eaeef8;
  --slate-900: #0e1526;
  --slate-600: #4c5670;
  --slate-400: #7c88a6;
  --line-light: #e3e7f2;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 18, 38, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 18, 38, 0.1);
  --shadow-lg: 0 24px 64px rgba(10, 18, 38, 0.16);

  --container: 1180px;

  /* Vertical rhythm between sections. One token so every page and every
     breakpoint stays in step - these scale down together below. */
  --section-y: 84px;
  --section-head-gap: 44px;
  /* Inner padding for the full-width bands (CTA, cross-link, local, giving) */
  --band-pad: 48px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--blue-600);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}
.on-dark .eyebrow { color: var(--cyan-400); }
.on-dark .eyebrow::before { background: var(--cyan-400); }

.accent { color: var(--blue-600); }
.on-dark .accent { color: var(--cyan-400); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-700); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--slate-900);
  border-color: var(--line-light);
}
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-white {
  background: #fff;
  color: var(--ink-950);
}
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline-dark {
  background: transparent;
  color: #fff;
  border-color: var(--line-dark);
}
.btn-outline-dark:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink-950);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  margin-right: 4px;
}
.brand img { height: 32px; width: auto; filter: brightness(0) invert(1); }

.tab-switch {
  display: flex;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--cyan-400);
}

/* Must stay after .nav-links: equal specificity, so source order decides */
.nav-links .tab-switch a {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border-bottom: none;
  color: var(--slate-400);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links .tab-switch a.is-active {
  background: var(--blue-600);
  color: #fff;
}
.nav-links .tab-switch a:not(.is-active):hover {
  color: #fff;
  border-bottom: none;
}
.nav-spacer { flex: 1; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px 10px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; row-gap: 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 480px; padding: 14px 0 18px; }
  .nav-links .tab-switch {
    width: 100%;
    margin-bottom: 10px;
  }
  .nav-links a:not(.btn) { width: 100%; padding: 12px 4px; border-bottom: 1px solid var(--line-dark); }
  .nav-links .tab-switch a {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-bottom: none;
  }
  .nav-links .btn { margin-top: 10px; }
  .nav-spacer { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--ink-950);
  color: #fff;
  /* No overflow:hidden - the background layers are inset:0 so they can't spill,
     and clipping here would cut off the address dropdown on short viewports */
}
/* Holds the rotating hero images. The CSS background is the first slide, so
   there is still a picture when JS has not run; main.js clears it and takes over. */
.hero-glow {
  position: absolute;
  inset: 0;
  /* z-index:0 makes this a stacking context, so the slides' own z-indexes stay
     inside it instead of escaping and painting over the hero copy */
  z-index: 0;
  background-image: url("../images/hero-newcastle.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Darkens the left, where the copy sits, and keeps the skyline readable */
  background:
    linear-gradient(100deg, rgba(5, 11, 24, 0.93) 0%, rgba(5, 11, 24, 0.8) 32%, rgba(5, 11, 24, 0.42) 60%, rgba(5, 11, 24, 0.28) 100%),
    linear-gradient(to top, var(--ink-950) 0%, rgba(5, 11, 24, 0.1) 32%, transparent 55%);
  pointer-events: none;
}
@media (max-width: 1000px) {
  /* Copy spans the full width here, so it needs cover right across the frame */
  .hero::after {
    background:
      linear-gradient(100deg, rgba(5, 11, 24, 0.94) 0%, rgba(5, 11, 24, 0.85) 45%, rgba(5, 11, 24, 0.62) 100%),
      linear-gradient(to top, var(--ink-950) 0%, rgba(5, 11, 24, 0.12) 35%, transparent 60%);
  }
}
.hero-inner {
  /* z-index lifts content above .hero::after, which paints last as a child of .hero */
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 104px 24px 92px;
  display: grid;
  gap: 22px;
}
.hero-inner > * { max-width: 720px; }
.hero h1 {
  /* Sized so the longest sentence always fits on one line. "No mid-term
     price hikes." measures 11.64em, and the content width is 100vw - 48px,
     so anything at or below 6.8vw clears it at every width. */
  font-size: min(6.8vw, 3.9rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.025em;
}
/* One sentence per line at every width. The wider max-width beats the 720px
   on .hero-inner > *, which the headline outgrows once the font hits its cap
   and would otherwise wrap "No mid-term price hikes." across two lines. */
.hero h1 { max-width: 880px; }
.hero h1 span { display: block; }
.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

.checker { margin-top: 30px; max-width: 460px; }
.checker-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: block;
}
.checker-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-lg);
}
.checker-form input[type="text"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 0;
  color: var(--slate-900);
  font-size: 1rem;
  font-family: inherit;
}
.checker-form input[type="text"]::placeholder { color: var(--slate-400); }
.checker-form input[type="text"]:focus { outline: none; }
.checker-form .btn {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
}
.checker-form .btn svg { width: 18px; height: 18px; }

.checker-picked {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.checker-picked.is-visible { display: flex; }
.checker-picked svg { color: var(--lime-400); flex-shrink: 0; margin-top: 3px; }

/* Error variant of the same line - :empty keeps it hidden until there's a message */
.checker-picked.is-error:not(:empty) { display: block; color: #ff9d94; }
.modal .checker-picked.is-error:not(:empty) {
  color: #b3261e;
  margin: -10px 0 14px;
  font-size: 0.84rem;
}

/* Compact checker for the plan cards - same control, sized for a white card */
.checker-compact { margin-top: 22px; max-width: none; }
.checker-compact .checker-form {
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: none;
  padding: 4px 4px 4px 16px;
}
.checker-compact .checker-form input[type="text"] { padding: 10px 0; font-size: 0.95rem; }
.checker-compact .checker-form .btn { width: 38px; height: 38px; }
.checker-compact .checker-form .btn svg { width: 16px; height: 16px; }

/* Closing band sits on blue, so the white pill carries itself */
.checker-cta { margin-top: 0; width: 100%; max-width: 420px; }

/* On a light card the hero's pale error red would be unreadable */
.checker-compact .checker-picked.is-error:not(:empty) {
  color: #b3261e;
  font-size: 0.8rem;
  margin-top: 8px;
}

.hero-badges {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 10px;
}
.hero-badges li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-badges li:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-badges strong { font-size: 0.95rem; font-weight: 800; color: #fff; }
.hero-badges span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

.trust-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}
.trust-badge strong { color: #fff; font-weight: 800; }
.trust-stars {
  color: #ffc043;
  font-size: 0.95rem;
  letter-spacing: 2px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .hero-inner {
    padding: 64px 24px 60px;
    gap: 18px;
    justify-items: center;
    text-align: center;
  }
  .hero h1 { line-height: 1.14; }
  .hero p.lead { font-size: 1.05rem; }
  .checker { margin-top: 20px; max-width: none; width: 100%; }
  .hero-actions { justify-content: center; }
  .trust-badge { justify-content: center; }
  /* Stacked, these read as a loose list and eat most of the fold. As chips they
     stay a trust cue next to the CTA; the detail lines repeat in the cards below. */
  .hero-badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  /* :last-child is listed too so this matches the specificity of the
     .hero-badges li:last-child rule above, which otherwise keeps its
     padding-right:0 and border-right:none - the last pill then loses its
     right edge and its text runs past the border */
  .hero-badges li,
  .hero-badges li:last-child {
    margin-right: 0;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }
  .hero-badges strong { font-size: 0.8rem; font-weight: 700; }
  .hero-badges span { display: none; }
}

/* Sections */
.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * 0.67) 0; }
.section-head {
  max-width: 620px;
  margin-bottom: var(--section-head-gap);
  display: grid;
  gap: 14px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section-head p { color: var(--slate-600); font-size: 1.05rem; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
/* Section rhythm scales with the viewport; 84px between every section is
   most of a phone screen once it is doubled up top and bottom */
@media (max-width: 900px) {
  :root { --section-y: 64px; --section-head-gap: 32px; --band-pad: 36px; }
}
@media (max-width: 600px) {
  :root { --section-y: 52px; --section-head-gap: 26px; --band-pad: 28px; }
}

.section.on-dark { background: var(--ink-950); color: #fff; }
.section.on-fog { background: var(--fog); }
.on-dark .section-head p { color: rgba(255, 255, 255, 0.68); }

/* Partner / network strip */
.partner-strip {
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 26px 0;
}
.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--slate-600);
  font-weight: 700;
  font-size: 0.95rem;
}
.partner-row span.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  font-weight: 700;
}
/* A wordmark row rather than pills, so it does not echo the hero chips and can
   take real partner logos as <img> children without restyling */
.partner-logos {
  display: flex;
  align-items: center;
  /* The three marks stay on one line at every width and shrink to fit,
     rather than wrapping two-up-one-down */
  flex-wrap: nowrap;
  gap: clamp(14px, 3.4vw, 34px);
}
.partner-logos li {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--slate-600);
}
/* Mono-black marks on the light strip; height wins over the intrinsic
   width/height attrs, which are only there to reserve space and avoid shift */
.partner-logos img {
  /* The three marks total ~14.9x their height, so at 12px gaps they fit in
     (100vw - 72px). 4.4vw stays inside that and reaches full size by ~500px,
     rather than sitting at the floor with the row half empty. */
  height: clamp(16px, 4.4vw, 22px);
  width: auto;
  opacity: 0.62;
}
@media (max-width: 700px) {
  /* Tag above, logos in one full-width row beneath it */
  .partner-row { gap: 12px; flex-direction: column; align-items: flex-start; }
  .partner-logos { width: 100%; justify-content: space-between; gap: 12px; }
  .partner-logos li { font-size: 0.98rem; }
}

/* Grids & cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--slate-600); line-height: 1.6; }

/* Value pillars (home) - card copy stays short, with a proof chip pinned
   to the bottom so all three line up whatever the paragraph length */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Accent rule across the top, revealed on hover */
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--mist); }
.pillar:hover::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .pillar, .pillar::before { transition: none; }
  .pillar:hover { transform: none; }
}

.pillar h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.pillar > p { color: var(--slate-600); line-height: 1.6; }

/* Scoped past .pillar > p, which would otherwise win on specificity */

.pillar p.pillar-proof {
  /* margin-top:auto keeps the chips on one line across the row */
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--slate-900);
}
.pillar-tick { flex-shrink: 0; color: var(--blue-600); }
.pillar p.pillar-proof.is-accent { color: var(--blue-700); }

.card-dark {
  background: var(--ink-900);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.card-dark .card-icon { background: rgba(79, 209, 232, 0.12); color: var(--cyan-400); }
.card-dark h3 { color: #fff; font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.card-dark p { color: rgba(255, 255, 255, 0.7); line-height: 1.6; }

/* What's included - the router with its three cards floating around it.
   The orbit holds at every size; only its shape changes. On phones the
   cards drop to their titles alone, which is the only way three of them
   fit around the router without covering it. */
.kit { position: relative; display: block; min-height: 400px; }

.kit-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  max-width: 58%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}
.kit-router { position: relative; z-index: 1; width: 100%; height: auto; }

/* Concentric rings read as Wi-Fi radiating out from the router */
.kit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(79, 104, 255, 0.08), transparent 70%);
}
.kit-ring-lg { width: 108%; border-color: var(--mist); background: none; }

.kit-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, rotate 0.3s ease;
}
.kit-card h3 { font-size: 0.95rem; font-weight: 800; }
/* Phones show the title only - there's no room for the body copy as well */
.kit-card p { color: var(--slate-600); line-height: 1.6; font-size: 0.95rem; display: none; }
.kit-card .card-icon { width: 34px; height: 34px; margin-bottom: 10px; }

/* Tilts sit on the standalone rotate property so the drift animations can
   own translate without wiping the angle out */
.kit-card-a { rotate: -1.75deg; }
.kit-card-b { rotate: 1.75deg; }
.kit-card-c { rotate: -1.25deg; }

/* Phones: one card above the router, two below it. transform does the
   centring, which leaves translate free for the float. */
.kit-card-a { top: 0; left: 50%; width: max-content; max-width: 66%; transform: translateX(-50%); }
.kit-card-b { bottom: 0; left: 0; width: 47%; }
.kit-card-c { bottom: 0; right: 0; width: 47%; }

/* Tablets up: room for the body copy and a 10 / 3 / 7 o'clock orbit */
@media (min-width: 720px) {
  .kit { min-height: 600px; }
  .kit-stage { width: 260px; max-width: 260px; }
  .kit-card {
    width: 34%;
    max-width: none;
    padding: 24px;
    border-radius: var(--radius-lg);
    transform: none;
  }
  .kit-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
  .kit-card p { display: block; }
  .kit-card .card-icon { width: 40px; height: 40px; margin-bottom: 14px; }
  .kit-card-a { top: 0; left: 0; rotate: -2deg; }
  /* left/right both have to be cleared, or the phone rules win the offset */
  .kit-card-b { top: 42%; right: 0; bottom: auto; left: auto; }
  .kit-card-c { bottom: 0; left: 10%; right: auto; }
  .kit-card:hover { rotate: 0deg; box-shadow: var(--shadow-lg); }
}

@media (min-width: 1040px) {
  .kit { min-height: 660px; }
  .kit-stage { width: 440px; max-width: 440px; }
  .kit-card { width: 310px; }
  .kit-card-a { top: 20px; }
  .kit-card-b { top: 40%; }
  .kit-card-c { bottom: 6px; left: 84px; }
}

/* Each card drifts on its own cycle, started mid-phase by the negative
   delays so they never bob in step with one another */
.kit-card-a { animation: kit-drift-a 6.5s ease-in-out infinite; }
.kit-card-b { animation: kit-drift-b 8.5s ease-in-out -2.2s infinite; }
.kit-card-c { animation: kit-drift-c 7.5s ease-in-out -4.5s infinite; }
.kit-stage { animation: kit-drift-stage 10s ease-in-out infinite; }

@keyframes kit-drift-a {
  0%, 100% { translate: 0 0; }
  50% { translate: 7px -16px; }
}
@keyframes kit-drift-b {
  0%, 100% { translate: 0 0; }
  50% { translate: -8px -20px; }
}
@keyframes kit-drift-c {
  0%, 100% { translate: 0 0; }
  50% { translate: 5px -13px; }
}
@keyframes kit-drift-stage {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .kit-card, .kit-stage { animation: none !important; }
}

/* Price promise banner */
.promise-band {
  background: linear-gradient(120deg, var(--ink-950), var(--ink-800));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) { .promise-band { grid-template-columns: 1fr; padding: 32px; } }
.promise-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.2; }
.promise-band p { color: rgba(255, 255, 255, 0.72); margin-top: 12px; line-height: 1.6; }
.promise-list { display: grid; gap: 14px; }
.promise-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
}
.promise-list svg { color: var(--lime-400); flex-shrink: 0; margin-top: 2px; }

/* Pricing */
.plan-toggle {
  display: inline-flex;
  background: var(--mist);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 36px;
  gap: 2px;
}
.plan-toggle button {
  border: none;
  background: transparent;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate-600);
  cursor: pointer;
}
.plan-toggle button.is-active { background: #fff; color: var(--ink-950); box-shadow: var(--shadow-sm); }

.plan-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  background: #fff;
}
.plan-card.is-featured {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(51, 79, 237, 0.12), var(--shadow-md);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.plan-name { font-weight: 700; color: var(--slate-600); font-size: 0.95rem; }
.plan-speed { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-speed .unit { font-size: 1.1rem; font-weight: 700; color: var(--slate-600); }
.plan-price { font-size: 1.6rem; font-weight: 800; }
.plan-price span { font-size: 0.95rem; font-weight: 600; color: var(--slate-600); }
.plan-features { display: grid; gap: 10px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate-600); font-size: 0.92rem; }
.plan-features svg { color: var(--blue-600); flex-shrink: 0; margin-top: 3px; }
/* Feature lists run to different lengths, so the card is a flex column and
   the postcode box is pushed to the bottom - all three then line up */
.plan-card .checker-compact { margin-top: auto; }

.plan-note { font-size: 0.78rem; color: var(--slate-400); text-align: center; margin-top: 28px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--slate-600); font-size: 0.92rem; line-height: 1.6; }

/* Testimonial */
.quote-card {
  background: var(--fog);
  border-radius: var(--radius-lg);
  padding: var(--band-pad);
  display: grid;
  gap: 18px;
}
.quote-card p.quote { font-size: 1.3rem; font-weight: 600; line-height: 1.5; color: var(--slate-900); }
.quote-by { display: flex; align-items: center; gap: 12px; color: var(--slate-600); font-weight: 700; font-size: 0.9rem; }
.quote-by .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-600); }

/* CTA band */
.cta-band {
  background: var(--blue-600);
  border-radius: var(--radius-lg);
  padding: var(--band-pad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: 8px; }

/* Team faces - overlapping circles next to the phone number */
.team-call {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.team-faces { display: flex; flex-shrink: 0; }
/* The negative margin overlaps each circle onto the one before it; the white
   ring keeps them readable where they touch */
.team-faces li + li { margin-left: -12px; }
.team-faces img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}
.team-call p { color: var(--slate-600); font-size: 0.9rem; line-height: 1.5; }

/* Local/about band */
.local-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  border-radius: var(--radius-lg);
  padding: var(--band-pad);
  color: #fff;
}
/* Same rotating city scenes as the hero, run off the hero's own timer */
.band-glow {
  position: absolute;
  inset: 0;
  /* z-index:0 makes this a stacking context so the slides' z-indexes stay
     inside it, exactly as with .hero-glow */
  z-index: 0;
  background-image: url("../images/hero-newcastle.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
/* Scrim between the photos and the copy */
.local-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(5, 11, 24, 0.78), rgba(5, 11, 24, 0.86));
  pointer-events: none;
}
.local-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  text-align: center;
}
.local-band h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; max-width: 640px; margin: 0 auto; }
.local-band p { color: rgba(255, 255, 255, 0.78); max-width: 560px; margin: 0 auto; }

/* Local giving band */
.giving-band {
  display: grid;
  gap: 34px;
  padding: var(--band-pad);
  border-radius: var(--radius-lg);
  /* Fibre light strands, echoing the brand banner, dimmed hard by the
     gradient over them so the copy stays legible */
  background-color: var(--ink-950);
  background-image:
    linear-gradient(120deg, rgba(5, 11, 24, 0.9) 0%, rgba(9, 17, 48, 0.85) 55%, rgba(5, 11, 24, 0.92) 100%),
    url("/assets/images/fibre-strands.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
/* Figure and copy on one row, the three points as a row of their own -
   the figure sat in a half-empty column when it carried the whole left side */
.giving-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

/* Boxing the figure gives it enough weight to hold its own against the
   heading, instead of floating in the corner */
.giving-figure {
  text-align: center;
  padding: 26px 32px;
  border-radius: var(--radius-md);
  background: rgba(79, 104, 255, 0.12);
  border: 1px solid rgba(79, 104, 255, 0.34);
}
.giving-amount {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--blue-300);
  white-space: nowrap;
}
.giving-unit {
  display: block;
  margin: 12px auto 0;
  max-width: 170px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.giving-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
}
.giving-copy p { color: rgba(255, 255, 255, 0.72); line-height: 1.65; margin-top: 12px; }

.giving-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.giving-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.5;
}
.giving-steps svg { color: var(--lime-400); flex-shrink: 0; margin-top: 3px; }

@media (max-width: 900px) {
  .giving-steps { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 800px) {
  .giving-band { gap: 26px; text-align: center; }
  .giving-main { grid-template-columns: 1fr; gap: 24px; }
  .giving-figure { justify-self: center; }
  .giving-steps li { text-align: left; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 6px 22px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--blue-600);
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding-bottom: 18px; color: var(--slate-600); line-height: 1.6; }

/* Values grid */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

/* Timeline (about) */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line-light); padding-left: 28px; }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue-600);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--line-light);
}
.timeline-item h3 { font-weight: 800; margin-bottom: 6px; }
.timeline-item p { color: var(--slate-600); line-height: 1.6; }

/* Contact / signup panels */
.panel {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: #fff;
}
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 0.88rem; }
.field input, .field select {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue-600); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.helper-text { font-size: 0.82rem; color: var(--slate-400); margin-top: -10px; margin-bottom: 18px; }

.address-result {
  border: 1px solid var(--line-light);
  background: var(--fog);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: none;
  gap: 4px;
}
.address-result.is-visible { display: grid; }
.address-result .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-400); }
.address-result .value { font-weight: 700; }
.address-result .meta { font-size: 0.82rem; color: var(--slate-400); margin-top: 4px; }

.status-msg {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.status-msg.is-visible { display: block; }
.status-msg.is-success { background: #e9f9ee; color: #197a3e; }
.status-msg.is-error { background: #fdeeee; color: #b3261e; }

/* Footer */
.site-footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
/* minmax(0,1fr) stops a long email address stretching its column */
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-grid img { height: 26px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-grid p { font-size: 0.88rem; line-height: 1.6; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col ul { display: grid; gap: 10px; font-size: 0.9rem; overflow-wrap: break-word; }
.footer-col a:hover { color: #fff; }

/* Must stay after the rules above so these win on equal specificity */
@media (max-width: 700px) {
  /* The brand blurb and the address both get unreadably narrow in a half column */
  .footer-grid { gap: 28px; }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-grid p { max-width: none; }
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 18px; }

/* Page hero (non-home) */
.page-hero {
  padding: 72px 0 56px;
  display: grid;
  gap: 16px;
  max-width: 680px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.page-hero p { font-size: 1.08rem; color: rgba(255, 255, 255, 0.75); }

/* Utility */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.stack { display: grid; gap: 8px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--blue-100);
  color: var(--blue-700);
}

/* Scroll progress - thin fixed readout of page position (RareUI-inspired) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-progress { transition: transform 0.12s linear; }
}

/* Animated counter - count-up readout (RareUI-inspired, simplified) */
.counter { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Sign-up modal
   ========================================================================== */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(3px);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.modal-head {
  display: flex;
  /* Centre the close button on the progress bars, not on the whole
     bar+label block, so it reads as aligned with the track */
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}
.modal-close {
  flex-shrink: 0;
  margin-top: -15px; /* (34px button - 4px bar) / 2 */
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: #fff;
  color: var(--slate-600);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--ink-950); border-color: var(--slate-400); }

/* Milestones */
.milestones {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}
.milestones li {
  display: grid;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-400);
  text-align: center;
}
.milestones li::before {
  content: "";
  height: 4px;
  border-radius: 4px;
  background: var(--mist);
}
.milestones li.is-active { color: var(--blue-600); }
.milestones li.is-active::before { background: var(--blue-600); }
.milestones li.is-done { color: var(--slate-600); }
.milestones li.is-done::before { background: var(--lime-400); }

.modal-step h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.modal-step > p.step-intro {
  color: var(--slate-600);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.modal-actions .btn { flex: 1; }

/* Option cards (plan / router / term) */
.option-group { display: grid; gap: 10px; margin-bottom: 22px; }
.option-group > .field-label {
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--slate-400); }
.option input { margin: 0; accent-color: var(--blue-600); flex-shrink: 0; }
.option.is-selected { border-color: var(--blue-600); background: #f7f9ff; }
.option-main { flex: 1; display: grid; gap: 2px; }
.option-title { font-weight: 700; font-size: 0.95rem; }
.option-sub { font-size: 0.8rem; color: var(--slate-600); }
.option-price { font-weight: 800; font-size: 0.95rem; white-space: nowrap; }

/* Disclosure: keeps the niche option out of the way until asked for */
.disclosure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue-600);
  justify-self: start;
}
.disclosure:hover { color: var(--blue-700); }
.disclosure-arrow { transition: transform 0.15s ease; }
.disclosure[aria-expanded="true"] .disclosure-arrow { transform: rotate(90deg); }

/* Hint tooltip */
.hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--slate-400);
  color: var(--slate-600);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: help;
  background: none;
  padding: 0;
  flex-shrink: 0;
}
.hint-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 230px;
  background: var(--ink-950);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  display: none;
  z-index: 5;
}
.hint[aria-expanded="true"] .hint-bubble,
.hint:hover .hint-bubble,
.hint:focus-visible .hint-bubble { display: block; }

/* Text variant of the hint - says what it is rather than hiding behind a "?" */
.hint-text {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  align-self: flex-start;
  margin-top: -10px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hint-text:hover { color: var(--blue-700); }
/* Opens downwards: the speed sits near the top of the card, so an upward
   bubble would overhang the plan name */
.hint-text .hint-bubble {
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  transform: none;
  max-width: 260px;
}

/* Order summary */
.order-summary {
  background: var(--fog);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.order-summary div { display: flex; justify-content: space-between; gap: 16px; }
.order-summary .total {
  border-top: 1px solid var(--line-light);
  padding-top: 8px;
  font-weight: 800;
}
.order-summary dt { color: var(--slate-600); }

#card-element {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}

.modal-done { text-align: center; padding: 8px 0; }
.modal-done .done-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e9f9ee;
  color: #197a3e;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 560px) {
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; min-height: 100%; padding: 24px 20px 32px; }
  .modal-actions { flex-direction: column-reverse; }
}
