/* Rural Connect landing page. Tokens and values follow the design handoff. */

:root {
  --navy: #001B63;
  --navy-hover: #0A2A80;
  --ink: #0B1224;
  --slate: #5B6480;
  --cyan: #00A5CF;
  --teal: #25A18E;
  --green: #7AE582;
  --mist: #F4F6FA;
  --cloud: #E2E6F0;
  --silver: #C9CEDC;
  --white: #FFFFFF;
  --error: #D93B3B;
  --error-bg: #FDECEC;

  --gradient: linear-gradient(90deg, #7AE582 0%, #00A5CF 100%);
  --gradient-round: linear-gradient(135deg, #7AE582 0%, #00A5CF 100%);

  --font-head: Poppins, Arial, sans-serif;
  --font-body: Nunito, Arial, sans-serif;

  --ease: 200ms cubic-bezier(.4, 0, .2, 1);
  --section-pad: clamp(64px, 8vw, 96px);
  --band-pad: clamp(64px, 8vw, 104px);
  --split-gap: clamp(40px, 6vw, 80px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--navy); text-decoration: none; transition: color var(--ease), opacity var(--ease), background-color var(--ease); }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
[id] { scroll-margin-top: 80px; }
h1, h2, h3, p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding-block: var(--section-pad); }
.bg-white { background: var(--white); }
.bg-mist { background: var(--mist); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--split-gap);
  align-items: start;
}
.split--center { align-items: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Type */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand { font-weight: 700; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--cyan);
  margin: 0 0 16px;
}
.h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  color: var(--navy);
}
.challenges .h2, .how .h2 { text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.6; color: var(--slate); max-width: 65ch; }
.subhead { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--navy); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 24px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: opacity var(--ease), background-color var(--ease);
}
.btn--sm { font-size: 14px; padding: 11px 18px; }
.btn--grad, .btn--grad:hover { color: var(--navy); background: var(--gradient); }
.btn--grad:hover { opacity: .92; }
.btn--outline, .btn--outline:hover { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn--outline:hover { background-color: rgba(255, 255, 255, .08); }
.btn[disabled] { cursor: progress; opacity: .7; }

/* Tick and cross */
.tick {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gradient-round);
  display: flex; align-items: center; justify-content: center;
}
.tick svg { width: 12px; height: 12px; }
.tick--sm { width: 22px; height: 22px; }
.tick--sm svg { width: 11px; height: 11px; }
.cross {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--error-bg);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.cross svg { width: 11px; height: 11px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--cloud);
}
.site-header__inner {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav__links a { font-family: var(--font-head); font-weight: 500; font-size: 14px; }
@media (max-width: 860px) { .site-nav__links { display: none; } }

/* Image bands */
.band { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.band__bg, .band__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.band__overlay { position: absolute; inset: 0; }
.band__inner { position: relative; }
.desat img { filter: saturate(.35); }

/* Hero */
.hero .band__overlay { background: rgba(0, 27, 99, .72); }
.hero .band__inner { padding-top: clamp(72px, 11vw, 140px); padding-bottom: clamp(64px, 9vw, 112px); }
.hero__eyebrow { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--white); margin-bottom: 20px; }
.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.08;
  color: var(--white);
  max-width: 16ch;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--white);
  margin-top: 24px;
  max-width: 58ch;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__ticks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 32px;
  margin: 56px 0 0; padding: 0;
  list-style: none;
  max-width: 980px;
}
.hero__ticks li { display: flex; gap: 12px; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.grad-bar { height: 6px; background: var(--gradient); }

/* Challenges */
.challenges .h2 { margin-bottom: 24px; }
.challenges .lead { max-width: 60ch; }
.challenges .lead + .lead { margin-top: 16px; }
.challenges .subhead { margin-bottom: 8px; }
.x-list { list-style: none; margin: 0; padding: 0; }
.x-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--cloud);
  font-size: 17px; line-height: 1.5; color: var(--navy);
}
.x-list li:last-child { border-bottom: 0; }

/* Satellite explained */
.explained .h2 { margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }
.stat { border-left: 1px solid var(--silver); padding: 4px 0 4px 20px; }
.stat__title { font-family: var(--font-head); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--navy); margin-bottom: 6px; }
.stat__text { font-size: 16px; line-height: 1.5; }
.sat-illustration { border-radius: 8px; overflow: hidden; margin-top: 56px; }
.sat-illustration svg { width: 100%; height: auto; display: block; }
.steps-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  margin: 24px 0 0; padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 8px;
  overflow: hidden;
}
/* The bottom rule only shows once the columns wrap; the strip's overflow clip
   hides it on the last row. */
.steps-strip li { padding: 28px 24px; border-right: 1px solid var(--cloud); box-shadow: 0 1px 0 var(--cloud); }
.steps-strip li:last-child { border-right: 0; }
.step-label { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--cyan); margin-bottom: 12px; }
.steps-strip h3 { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.steps-strip p:last-child { font-size: 16px; line-height: 1.5; }

/* How it works */
.how .h2 { margin-bottom: 48px; max-width: 24ch; }
.how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.layers { list-style: none; margin: 0; padding: 0; }
.layer {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--cloud);
}
.layer:first-child { padding-top: 0; }
.layer:last-child { padding-bottom: 0; border-bottom: 0; }
.layer__num {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--white); background: var(--navy);
  width: 44px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.layer__num--grad { color: var(--navy); background: var(--gradient-round); }
.layer h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.layer p { font-size: 16px; line-height: 1.55; }
.network-illustration { position: relative; aspect-ratio: 400 / 467; width: 100%; max-width: 520px; justify-self: center; }
.network-illustration svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }

/* Device mock-up */
.screens { margin-top: 56px; }
.screens .subhead { margin-bottom: 16px; }
.devices { position: relative; padding-bottom: 24px; max-width: 820px; margin: 0 auto; }
.laptop { width: 84%; }
.laptop__bezel {
  background: var(--ink);
  border-radius: 14px 14px 0 0;
  padding: clamp(8px, 1.2vw, 14px);
  box-shadow: 0 0 0 1px var(--silver);
}
.laptop__screen { background: var(--white); border-radius: 4px; padding: clamp(16px, 2.4vw, 28px); color: var(--navy); }
.laptop__base {
  height: 14px; margin: 0 -5%;
  background: var(--silver);
  border-radius: 0 0 12px 12px;
  display: flex; justify-content: center;
}
.laptop__base span { width: 16%; height: 5px; background: var(--cloud); border-radius: 0 0 6px 6px; }
.dash__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cloud);
}
.dash__brand { font-family: var(--font-head); font-weight: 600; font-size: 13px; width: fit-content; }
.dash__title { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--navy); margin-top: 2px; }
.pill {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--navy);
  background: var(--mist); border: 1px solid var(--cloud);
  padding: 7px 12px; border-radius: 4px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.tile { background: var(--mist); border: 1px solid var(--cloud); border-radius: 8px; padding: 16px; }
.tile__label { font-size: 13px; color: var(--slate); margin-bottom: 6px; }
.tile__value { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--navy); }
.tile__sub { font-size: 13px; color: var(--slate); margin-top: 4px; }
.ok { color: var(--teal); }
.meter { height: 4px; background: var(--cloud); border-radius: 2px; margin-top: 10px; }
.meter span { display: block; width: 82%; height: 100%; background: var(--cyan); border-radius: 2px; }

.phone {
  position: absolute; right: 0; bottom: -24px;
  width: 24%; min-width: 150px; max-width: 250px;
  background: var(--ink);
  border-radius: 30px;
  padding: 9px;
  box-shadow: 0 0 0 1px var(--silver);
}
.phone__screen {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  padding: 12px 12px 18px;
  display: flex; flex-direction: column; gap: 7px;
}
.phone__notch { width: 34%; height: 5px; border-radius: 3px; background: var(--cloud); margin: 0 auto 6px; }
.phone__brand { font-family: var(--font-head); font-weight: 600; font-size: 10px; width: fit-content; }
.phone__title { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy); margin: -4px 0 2px; }
.phone .pill { gap: 6px; font-size: 10px; padding: 5px 8px; width: fit-content; }
.phone .pill__dot { width: 6px; height: 6px; }
.ptile {
  background: var(--mist); border: 1px solid var(--cloud); border-radius: 8px;
  padding: 9px 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.ptile__label { font-size: 10px; color: var(--slate); }
.ptile__value { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy); margin-top: 1px; }
.ptile__sub { font-size: 10px; color: var(--slate); text-align: right; }
.ptile__sub.ok { color: var(--teal); }

/* 2am band */
.night .band__bg img { object-position: center 45%; }
.night .band__overlay { background: rgba(0, 27, 99, .82); }
.night .band__inner { padding-block: var(--band-pad); }
.night h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12;
  color: var(--white);
  margin-bottom: 20px;
}
.night p { font-size: 18px; line-height: 1.6; max-width: 56ch; }
.night p + p { margin-top: 14px; }
.night .subhead { color: var(--white); margin-bottom: 16px; }
.tick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tick-list li { display: flex; gap: 14px; align-items: center; font-size: 17px; }

/* Why */
.why .h2 { margin-bottom: 48px; max-width: 22ch; }
.why__eyebrow-brand { font-weight: 600; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  column-gap: 48px;
  list-style: none; margin: 0; padding: 0;
}
.why__item { border-top: 1px solid var(--cloud); padding: 24px 0 32px; }
.why__num { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--cyan); margin-bottom: 10px; }
.why__item h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.why__item p:last-child { font-size: 16px; line-height: 1.55; }
.addons {
  background: var(--mist);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 36px);
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px 48px;
}
.addon__label { font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--cyan); margin-bottom: 6px; }
.addons h3 { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.addons p:last-child { font-size: 16px; line-height: 1.55; }

/* Built for */
.built .band__bg img { object-position: center 65%; }
.built .band__overlay { background: rgba(0, 27, 99, .78); }
.built .band__inner { padding-block: clamp(72px, 9vw, 112px); }
.built h2 { font-family: var(--font-head); font-weight: 700; font-size: 26px; margin-bottom: 28px; width: fit-content; }
.markets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px 40px;
  list-style: none; margin: 0; padding: 0;
}
.markets li { display: flex; gap: 14px; align-items: flex-start; }
.markets .tick { margin-top: 2px; }
.markets h3 { font-family: var(--font-head); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.markets p { font-size: 15px; line-height: 1.5; }

/* Packages */
.packages .h2 { margin-bottom: 12px; }
.packages .lead { margin-bottom: 40px; }
/* position: relative keeps the cells' .sr-only labels inside the scroll box,
   otherwise they widen the page on phones. */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pkg-table {
  min-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
}
.pkg-row { display: contents; }
.pkg-head { padding: 24px 20px 20px; text-align: left; font-weight: 400; }
.pkg-head__label { font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--slate); margin-bottom: 4px; }
.pkg-head__name { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.pkg-head__text { font-size: 14px; line-height: 1.45; color: var(--slate); }
.pkg-cell {
  padding: 14px 8px;
  border-top: 1px solid var(--cloud);
  display: flex; align-items: center; justify-content: center;
}
.pkg-feature {
  padding: 14px 16px 14px 0;
  border-top: 1px solid var(--cloud);
  font-size: 16px; color: var(--navy);
  display: flex; align-items: center;
  text-align: left; font-weight: 400;
}
.pkg-text { font-size: 14px; color: var(--slate); }
.pkg-text--strong { font-weight: 700; color: var(--navy); }
.dash { width: 12px; height: 1px; background: var(--silver); }
.pkg-rec { background: var(--navy); }
.pkg-head.pkg-rec { border-radius: 8px 8px 0 0; }
.pkg-head.pkg-rec * { color: var(--white); }
.pkg-cell.pkg-rec { border-top-color: rgba(255, 255, 255, .16); }
.pkg-rec .dash { background: rgba(255, 255, 255, .4); }
.pkg-rec .pkg-text { font-weight: 700; color: var(--white); }
.pkg-row:last-child .pkg-rec { border-radius: 0 0 8px 8px; }

/* Process */
.process .h2 { margin-bottom: 12px; }
.process .lead { margin-bottom: 48px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 32px 20px;
  list-style: none; margin: 0; padding: 0;
}
.tl-step { display: flex; flex-direction: column; }
.tl-step__track { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.tl-node {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.tl-line { flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #00A5CF 0%, #7AE582 100%); }
.tl-step__when { font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--cyan); margin-bottom: 4px; }
.tl-step h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--navy); margin-bottom: 8px; }
.tl-step__body { font-size: 15px; line-height: 1.5; margin-bottom: 16px; flex: 1; }
.tl-get { background: var(--white); border-radius: 8px; padding: 12px 14px; border: 1px solid var(--cloud); }
.tl-get__label { font-family: var(--font-head); font-weight: 500; font-size: 12px; color: var(--slate); margin-bottom: 2px; }
.tl-get__value { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy); }
.tl-step:last-child .tl-node { background: var(--gradient-round); color: var(--navy); }
.tl-step:last-child .tl-line { opacity: 0; }
.tl-step:last-child .tl-get { background: var(--navy); }
.tl-step:last-child .tl-get * { color: var(--white); }

/* Contact */
.contact .band__bg img { object-position: center 60%; }
.contact .band__overlay { background: rgba(0, 27, 99, .84); }
.contact .band__inner { padding-block: var(--band-pad); }
.contact h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 16ch;
}
.contact__lead { font-size: 18px; line-height: 1.6; margin-bottom: 40px; max-width: 52ch; }
.contact-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 0; }
.contact-details dt { font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--cyan); margin-bottom: 6px; }
.contact-details dd { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 17px; color: var(--white); }
.contact-details dd a { color: var(--white); }
.contact-details dd a:hover { color: var(--cyan); }
.contact-details__full { grid-column: 1 / -1; }

.form-card { background: var(--white); border-radius: 8px; padding: clamp(24px, 3vw, 36px); color: var(--navy); }
.enquiry { display: flex; flex-direction: column; gap: 18px; }
.enquiry h3 { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--navy); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--navy);
  padding: 12px 14px;
  border: 1px solid var(--silver);
  border-radius: 4px;
  background: var(--white);
  width: 100%;
  transition: border-color var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  font-size: 15px; line-height: 1.5;
  color: var(--error); background: var(--error-bg);
  border-radius: 4px; padding: 12px 14px;
}
.form-error a { color: var(--error); font-weight: 700; text-decoration: underline; }
.thanks { padding: 24px 0; }
.thanks .tick { width: 44px; height: 44px; margin-bottom: 20px; }
.thanks .tick svg { width: 20px; height: 20px; }
.thanks h3 { font-family: var(--font-head); font-weight: 600; font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.thanks p { font-size: 17px; line-height: 1.6; color: var(--slate); }

/* Footer */
.site-footer { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .16); }
.site-footer__inner {
  padding-block: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.partners { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.partners img { width: auto; display: block; }
.partners__rule { width: 1px; height: 28px; background: rgba(255, 255, 255, .16); }
.site-footer p { font-size: 14px; color: var(--silver); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
