:root {
  --primary: #0f3a5f;
  --primary-dark: #0b2c47;
  --accent: #1b6ca8;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1a2433;
  --muted: #4d5b6c;
  --border: #dbe3ec;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.container { width: min(92%, var(--max-width)); margin: 0 auto; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a, .site-nav summary {
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}


.site-nav summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav summary a {
  color: inherit;
  text-decoration: none;
}

.site-nav summary a:hover,
.site-nav summary a:focus {
  text-decoration: none;
}

.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::marker { content: ""; }
.site-nav details {
  position: relative;
  padding-bottom: 0.35rem;
  margin-bottom: -0.35rem;
}

.site-nav details::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0.35rem;
}

.site-nav details ul {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(9, 33, 59, 0.12);
  min-width: 220px;
  padding: 0.45rem;
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
}

.site-nav details ul a {
  display: block;
  padding: 0.5rem;
  border-radius: 6px;
}

.site-nav details ul a:hover,
.site-nav details ul a:focus {
  background: #eef4fb;
  text-decoration: none;
}

.site-nav details:hover > ul,
.site-nav details:focus-within > ul {
  display: grid;
}

.hero {
  background: linear-gradient(145deg, var(--primary) 10%, var(--primary-dark) 100%);
  color: #fff;
  padding: clamp(4rem, 8vw, 5.5rem) 0 clamp(3.25rem, 6vw, 4.5rem);
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  text-wrap: balance;
}

.hero p {
  margin-top: 1rem;
  max-width: 65ch;
  color: #d9e7f7;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.button-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 7px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary { background: #fff; color: var(--primary); }
.btn-secondary { border-color: #9cb7d3; color: #fff; }

main { padding: 2.5rem 0 1.35rem; }

.home-page main { padding-bottom: 0; }

.standard-page main {
  padding: clamp(2.3rem, 5vw, 3.2rem) 0 clamp(2rem, 4vw, 2.7rem);
}

.standard-page main .container {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
}

.page-header {
  display: grid;
  gap: 0.65rem;
}

.page-header .section-intro {
  margin: 0;
}

.service-detail-page .section-intro {
  max-width: 72ch;
}

.service-detail-page .card ul {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.legal-page .container {
  width: min(92%, 900px);
}

.legal-document {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(1.15rem, 2.8vw, 2rem);
  box-shadow: 0 2px 10px rgba(18, 35, 58, 0.04);
  display: grid;
  gap: 0.85rem;
}

.legal-document h2 {
  margin: 0.85rem 0 0.15rem;
  color: var(--primary);
}

.legal-document p,
.legal-document ul {
  margin: 0;
}

.legal-document ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
}

.legal-document ul ul {
  margin-top: 0.35rem;
}

main .container > * + * {
  margin-top: 1.35rem;
}

main .container > .grid + .grid,
main .container > .card + .card {
  margin-top: 1.6rem;
}

.grid { display: grid; gap: 1.35rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem;
  box-shadow: 0 2px 10px rgba(18, 35, 58, 0.04);
}

.card h2, .card h3 { margin-top: 0; margin-bottom: 0.4rem; color: var(--primary); }

.services-grid .card {
  display: flex;
  flex-direction: column;
}

.services-grid .btn {
  margin-top: auto;
  align-self: flex-start;
  background: #1b6ca8;
  color: #ffffff;
  border-color: #1b6ca8;
  border-radius: 7px;
  padding: 0.6rem 1.35rem;
  line-height: 1.2;
}

.services-grid .btn:hover,
.services-grid .btn:focus {
  background: #155584;
  border-color: #155584;
  text-decoration: none;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
}

.section-intro {
  margin-top: 0;
  color: var(--muted);
  max-width: 72ch;
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  line-height: 1.7;
  margin-bottom: 0;
}

.home-hero h1 {
  text-align: center;
  margin-inline: auto;
}

.home-hero .container {
  text-align: center;
}

.home-hero p {
  margin-inline: auto;
}

.home-hero .button-row {
  justify-content: center;
}

.interconnect-section {
  background: linear-gradient(145deg, #135893 0%, #0f3a5f 100%);
  border-radius: 14px;
  color: #f2f7fe;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.4fr minmax(220px, 0.9fr);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #2f6ca3;
  box-shadow: 0 10px 28px rgba(11, 44, 71, 0.2);
}

.interconnect-content h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.1vw, 2.1rem);
  line-height: 1.2;
  color: #ffffff;
}

.interconnect-content p {
  margin: 0.65rem 0 0;
  color: #dceafa;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  max-width: 60ch;
}

.interconnect-content .interconnect-lead {
  color: #ffffff;
  font-weight: 700;
}

.interconnect-content .interconnect-offer {
  margin-top: 0.95rem;
  color: #ffffff;
  font-weight: 600;
}

.interconnect-image {
  width: 100%;
  min-height: 220px;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.interconnect-image--telematics {
  object-position: center bottom;
}

.testimonials-band {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(2.2rem, 6vw, 3.4rem) 0 clamp(3.25rem, 8vw, 4.8rem);
  background: linear-gradient(145deg, var(--primary) 10%, var(--primary-dark) 100%);
  color: #e3effc;
}

.testimonials-header {
  text-align: center;
  max-width: 76ch;
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c5dcf6;
  font-size: 0.85rem;
}

.testimonials-band .section-title {
  color: #ffffff;
  margin-top: 0.35rem;
}

.testimonials-intro {
  margin: 0.65rem auto 0;
  color: #d4e6f8;
}

.testimonial-slider {
  margin: 1.4rem auto 0;
  max-width: 860px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #c7d8ea;
  box-shadow: 0 16px 34px rgba(8, 30, 49, 0.3);
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.is-active {
  display: block;
}

.testimonial-quote {
  margin: 0;
  color: #102338;
  font-size: clamp(1.03rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.testimonial-author {
  margin: 0.9rem 0 0;
  font-weight: 700;
  color: var(--primary);
}

.testimonial-outcome {
  margin: 0.25rem 0 0;
  color: #304559;
}


.testimonial-more {
  margin-top: 0.8rem;
  color: #304559;
}

.testimonial-more summary {
  cursor: pointer;
  color: #0f3a5f;
  font-weight: 700;
}

.testimonial-more p {
  margin: 0.7rem 0 0;
  line-height: 1.6;
}

.testimonial-controls {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.testimonial-control {
  appearance: none;
  border: 1px solid #1f4f76;
  background: #0f3a5f;
  color: #ffffff;
  border-radius: 7px;
  padding: 0.5rem 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.testimonial-control:hover,
.testimonial-control:focus {
  background: #155a8f;
}

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


.about-page {
  display: grid;
  gap: 1.25rem;
}



.about-intro-followup {
  margin-top: 0.2rem;
  color: var(--muted);
}

.about-origin {
  display: grid;
  gap: 1rem;
}

.about-origin-card {
  display: grid;
  gap: 1rem;
}

.about-origin-copy {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.about-origin-heading {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.about-origin-copy p {
  margin: 0;
}


.about-origin-figure {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.about-origin-figure img {
  width: min(100%, 340px);
  display: block;
  justify-self: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  max-height: 300px;
  object-fit: contain;
  background: #eef4fb;
}

.about-origin-figure figcaption {
  width: min(100%, 340px);
  justify-self: center;
  margin: 0;
  font-size: clamp(0.7rem, 1.6vw, 0.86rem);
  color: var(--muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-grid {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-title {
  margin: 0.5rem 0 0;
}

.staff-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px dashed #adc2d9;
  background: #f3f8fd;
  margin-bottom: 0.75rem;
}


.staff-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
}

.staff-photo--harry {
  object-position: center top;
}


.contact-page-header {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.contact-page-header .section-intro {
  margin-inline: auto;
}

.fault-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid #b42318;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(18, 35, 58, 0.04);
  padding: clamp(1rem, 2.4vw, 1.4rem);
}

.fault-banner-copy {
  display: grid;
  gap: 0.25rem;
}

.fault-banner .eyebrow {
  color: #b42318;
}

.fault-banner h2,
.fault-banner p {
  margin: 0;
}

.fault-banner h2 {
  color: var(--primary);
  line-height: 1.2;
}

.fault-banner-copy > p:last-child {
  color: var(--muted);
}

.btn-danger {
  background: #b42318;
  border-color: #b42318;
  color: #ffffff;
  white-space: nowrap;
}

.btn-danger:hover,
.btn-danger:focus {
  background: #8f1d15;
  border-color: #8f1d15;
  text-decoration: none;
}

.contact-form-section {
  width: 100%;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(18, 35, 58, 0.08);
  padding: clamp(1.1rem, 3vw, 1.8rem);
  display: grid;
  gap: 1rem;
}

.contact-form-intro {
  display: grid;
  gap: 0.35rem;
}

.contact-form-intro h2,
.contact-form-intro p {
  margin: 0;
}

.contact-form-intro h2 {
  color: var(--primary);
  line-height: 1.2;
}

.contact-form-intro p {
  color: var(--muted);
}

.contact-enquiry-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form-field {
  display: grid;
  gap: 0.3rem;
}

.contact-form-field label {
  font-weight: 700;
  color: var(--primary);
}

.contact-form-field label span {
  color: var(--muted);
  font-weight: 600;
}

.contact-form-field .required-marker {
  color: #b42318;
  font-size: 0.86rem;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  border: 1px solid #c9d7e6;
  border-radius: 7px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  padding: 0.68rem 0.75rem;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: 3px solid rgba(27, 108, 168, 0.18);
  border-color: var(--accent);
}

.contact-form-field textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-form-submit {
  width: 100%;
  cursor: pointer;
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.contact-form-submit:hover,
.contact-form-submit:focus {
  background: #155584;
  border-color: #155584;
  text-decoration: none;
}

.contact-form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form-status {
  display: none;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}

.contact-form-status:not(:empty) {
  display: block;
}

.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
}

.turnstile-widget {
  min-height: 0;
}

.turnstile-widget:not(:empty) {
  min-height: 65px;
}

main .contact-page > * + * {
  margin-top: 0;
}

.support-guidance {
  scroll-margin-top: 7rem;
  background: #fffafa;
  border: 1px solid #f2c6c1;
  border-left: 6px solid #b42318;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(180, 35, 24, 0.06);
  padding: clamp(1.15rem, 3vw, 1.8rem);
  display: grid;
  gap: 1.2rem;
}

.support-guidance-header {
  display: grid;
  gap: 0.35rem;
}

.support-guidance .eyebrow {
  color: #b42318;
}

.support-guidance-header h2,
.support-guidance-header p {
  margin: 0;
}

.support-guidance-header h2 {
  color: #8f1d15;
  line-height: 1.2;
}

.support-guidance-header > p:last-child {
  color: var(--muted);
}

.support-guidance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.support-guidance-panel {
  border: 1px solid #f0beb8;
  border-radius: 8px;
  background: #fff5f3;
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}

.support-guidance a {
  color: #b42318;
}

.support-guidance-panel h3,
.support-guidance-panel p,
.support-email-guidance h3,
.support-email-guidance p {
  margin: 0;
}

.support-guidance-panel h3,
.support-email-guidance h3 {
  color: #8f1d15;
  line-height: 1.2;
}

.support-email-guidance {
  border-top: 1px solid #f0beb8;
  padding-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.support-email-guidance ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.support-monitoring-note {
  border-left: 3px solid #b42318;
  padding-left: 0.8rem;
  color: var(--muted);
}

.contact-social-list {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  color: var(--primary);
  font-weight: 700;
}

.contact-social-link:hover,
.contact-social-link:focus {
  color: var(--accent);
  text-decoration: none;
}

.contact-social-icon {
  width: 2rem;
  height: 2rem;
  border: 1px solid #b9d2e8;
  border-radius: 7px;
  background: #eef6fc;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.contact-social-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  fill: currentColor;
}

.contact-secondary-grid {
  align-items: stretch;
}

.contact-secondary-grid .card h2 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  min-height: 1.2em;
}

.contact-details-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.contact-details-card p,
.contact-details-card address {
  margin: 0;
}

.contact-details-card address {
  font-style: normal;
  line-height: 1.7;
}

.contact-meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.map-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b9d2e8;
  border-radius: 7px;
  background: #eef6fc;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.2;
  padding: 0.45rem 0.65rem;
  width: fit-content;
}

.map-link:hover,
.map-link:focus {
  background: #e1f0fb;
  border-color: #8eb9dd;
  text-decoration: none;
}

.success-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  max-width: 100%;
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(27, 108, 168, 0.22);
}

.success-cta:hover,
.success-cta:focus {
  background: #155584;
  border-color: #155584;
  text-decoration: none;
}

.enquiry-sent-page {
  width: min(92%, 560px);
}

.enquiry-sent-card {
  display: grid;
  justify-items: center;
  gap: 1.05rem;
  border-radius: 14px;
  padding: clamp(2rem, 5vw, 2.8rem);
  box-shadow: 0 16px 36px rgba(18, 35, 58, 0.08);
  text-align: center;
}

.enquiry-sent-card .section-title {
  color: #202839;
  font-size: clamp(1.7rem, 4vw, 2rem);
}

.enquiry-sent-card p {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.success-check {
  width: 5.5rem;
  height: 5.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(27, 108, 168, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.success-check svg {
  width: 3rem;
  height: 3rem;
  display: block;
  fill: currentColor;
}

.success-social-section {
  width: 100%;
  padding: 0.1rem 0 0;
  margin: 0.1rem 0 0;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.success-social-section h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.2;
}

.success-social-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.success-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #b9d2e8;
  border-radius: 7px;
  background: #eef6fc;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  padding: 0.45rem 0.6rem;
}

.success-social-link:hover,
.success-social-link:focus {
  background: #e1f0fb;
  border-color: #8eb9dd;
  color: var(--accent);
  text-decoration: none;
}

.success-social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #b9d2e8;
  border-radius: 7px;
  background: #ffffff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.success-social-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  fill: currentColor;
}

@media (min-width: 640px) {
  .contact-enquiry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-field-full,
  .contact-form-submit,
  .contact-form-status,
  .contact-form-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .fault-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .fault-banner .btn {
    text-align: center;
    width: 100%;
  }
}

footer {
  background: var(--primary-dark);
  color: #d6e7f8;
  margin-top: 0;
  border-top: 1px solid rgba(228, 239, 251, 0.14);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0;
}

.footer-links, .social-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-left {
  align-items: flex-start;
}

.footer-right {
  align-items: flex-end;
}

.footer-trading-name {
  margin: 0;
  max-width: 26rem;
  color: #c4d9ee;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: left;
}

.footer-company {
  margin: 0;
  max-width: 28rem;
  color: #c4d9ee;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: right;
}

@media (max-width: 1024px) {
  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
  }

  .footer-links,
  .social-links {
    justify-content: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    align-items: center;
    display: flex;
  }

  .footer-links {
    order: 1;
  }

  .social-links {
    order: 2;
  }

  .footer-company,
  .footer-trading-name {
    text-align: center;
    justify-self: center;
  }

  .footer-trading-name {
    order: 3;
  }

  .footer-company {
    order: 4;
  }
}

footer a { color: #e4effb; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 0.5rem;
    padding: 0.35rem;
    box-shadow: 0 12px 24px rgba(9, 33, 59, 0.08);
  }

  .site-nav.open { display: block; }

  .topbar { flex-wrap: wrap; }

  .nav-toggle {
    margin-left: auto;
    padding: 0.6rem 0.95rem;
    border-radius: 10px;
    font-size: 1.04rem;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0.2rem;
    padding: 0.25rem;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a,
  .site-nav summary {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
  }

  .site-nav a:hover,
  .site-nav a:focus,
  .site-nav summary:hover,
  .site-nav summary:focus {
    background: #eef4fb;
    text-decoration: none;
  }

  .site-nav details { width: 100%; }

  .site-nav summary {
    justify-content: space-between;
  }

  .site-nav summary > a {
    display: block;
    width: auto;
    padding: 0;
    border-radius: 0;
  }

  .site-nav details ul {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    margin: 0;
    padding: 0.15rem 0 0.2rem 0.9rem;
    justify-items: stretch;
    min-width: 0;
    gap: 0.12rem;
  }

  .site-nav details ul a {
    padding: 0.58rem 0.7rem;
    font-size: 0.97rem;
  }


  .footer-inner {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
  }

  .footer-links,
  .social-links {
    width: 100%;
    gap: 0.65rem 1rem;
    justify-content: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    align-items: center;
    gap: 0.5rem;
  }

  .footer-trading-name {
    max-width: 32rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .footer-company {
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
  }

  .footer-trading-name,
  .footer-company {
    display: none;
  }

  .footer-inner::after {
    content: "Bletchley Networks is a trading name of Bletchley Networks Limited (Company No: 12091863)";
    display: block;
    width: 100%;
    color: #c4d9ee;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
    order: 3;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .interconnect-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .interconnect-image {
    height: auto;
    min-height: 0;
    max-height: 280px;
  }

  .testimonial-slider {
    padding: 1rem;
  }

  .testimonial-controls {
    justify-content: center;
  }

  .logo img { height: 40px; }
}

@media (min-width: 900px) {
  .about-origin-card {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
    gap: 1.35rem 1.75rem;
    align-items: start;
  }

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

  .about-origin-copy {
    grid-column: 1;
  }

  .about-origin-figure {
    grid-column: 2;
    align-self: start;
  }

  .about-origin-figure img,
  .about-origin-figure figcaption {
    justify-self: end;
  }
}

/* 3CX service page */
.cx-page {
  gap: clamp(1.15rem, 2.4vw, 1.7rem);
}

.cx-hero-showcase {
  position: relative;
  overflow: hidden;
  display: grid;
  border: 1px solid #275a83;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(11, 44, 71, 0.18);
}

.cx-hero-showcase::after {
  content: none;
}

.cx-hero-image {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f7fbff;
  border-bottom: 1px solid #d3e0ec;
}

.cx-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  align-content: center;
  gap: 1rem;
  background: var(--primary-dark);
  padding: clamp(1.35rem, 4vw, 2.45rem);
}

.cx-kicker,
.cx-card-kicker {
  margin: 0;
  color: #2f8f46;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.cx-hero-content .cx-kicker,
.cx-hero-content .section-title,
.cx-hero-content .section-intro {
  color: #ffffff;
}

.cx-hero-content .section-title {
  max-width: 18ch;
  font-size: 2.35rem;
}

.cx-hero-content .section-intro {
  max-width: 39rem;
  color: #dbeafa;
}

.cx-hero-content .button-row {
  align-items: center;
}

.cx-hero-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}

.cx-quick-points {
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.cx-quick-points li {
  position: relative;
  padding-left: 1.35rem;
  color: #eff7ff;
}

.cx-quick-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #47b463;
}

.cx-value-strip {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.cx-value-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 100%;
}

.cx-value-card h2,
.cx-value-card p {
  margin: 0;
}

.cx-value-card h2 {
  font-size: 1.12rem;
}

.cx-engineer-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f3f9f5;
  border: 1px solid #cfe5d5;
  border-left: 4px solid #2f8f46;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(18, 35, 58, 0.04);
  padding: 0.9rem;
  max-width: 28rem;
}

.cx-engineer-card img {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(18, 35, 58, 0.12);
  flex: 0 0 auto;
}

.cx-engineer-name,
.cx-engineer-title {
  margin: 0;
}

.cx-engineer-name {
  color: var(--primary);
  font-weight: 800;
}

.cx-engineer-title {
  color: #355a42;
  font-size: 0.94rem;
  line-height: 1.35;
}

.cx-lead-form-card .cx-engineer-card {
  max-width: none;
  background: #f7fbff;
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 0.75rem;
}

.cx-lead-form-card .cx-engineer-title {
  color: var(--muted);
}

.cx-lead-form-card .cx-engineer-card img {
  width: 3.6rem;
  height: 3.6rem;
  border-width: 2px;
  box-shadow: none;
}

.cx-consultation-layout {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.4rem);
  align-items: start;
  max-width: 46rem;
  margin-inline: auto;
}

.cx-consultation-copy {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: clamp(0.2rem, 1vw, 0.5rem) 0;
}

.cx-consultation-copy h2,
.cx-consultation-copy p {
  margin: 0;
}

.cx-consultation-copy h2 {
  color: var(--primary);
  line-height: 1.2;
}

.cx-consultation-copy > p {
  max-width: 42rem;
  color: var(--muted);
}

.cx-check-list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cx-check-list li {
  position: relative;
  padding-left: 1.35rem;
}

.cx-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #2f8f46;
}

.cx-support-note {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
  color: var(--muted);
}

.cx-lead-form-card {
  margin: 0;
}

.cx-feature-grid {
  align-items: stretch;
}

.cx-feature-grid .card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.cx-section-heading {
  display: grid;
  gap: 0.25rem;
}

.cx-section-heading h2,
.cx-section-heading p {
  margin: 0;
}

.cx-section-heading h2 {
  color: var(--primary);
}

.cx-process ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.8rem;
}

.cx-process li h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1rem;
}

.cx-process li p {
  margin: 0.28rem 0 0;
}

.cx-package-section {
  display: grid;
  gap: 0.95rem;
}

.cx-package-grid {
  display: grid;
  gap: 1rem;
}

.cx-package-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.cx-package-card h3 {
  margin: 0;
  color: var(--primary);
}

.cx-package-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.cx-package-price {
  margin: 0.1rem 0 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  border: 1px solid #b9d2e8;
  border-radius: 999px;
  background: #eef6fc;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 0.35rem 0.7rem;
}

.cx-package-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cx-package-price-row .cx-package-price {
  margin-top: 0;
}

.cx-package-card-featured {
  border-color: #92b6d8;
  box-shadow: 0 6px 18px rgba(15, 58, 95, 0.08);
}

.cx-package-badge {
  margin: 0;
  display: inline-block;
  justify-self: start;
  background: #e9f1fb;
  color: #0d3d68;
  border: 1px solid #c9ddf3;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cx-cta-panel {
  display: grid;
  gap: 1rem;
  align-items: center;
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 10px;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  box-shadow: 0 8px 24px rgba(18, 35, 58, 0.1);
}

.cx-cta-panel h2,
.cx-cta-panel p {
  color: #fff;
}

.cx-cta-panel h2 {
  margin: 0;
}

.cx-cta-panel p {
  margin: 0.5rem 0 0;
  max-width: 64ch;
}

.cx-cta-panel .btn-primary {
  justify-self: start;
  background: #fff;
  color: var(--primary);
}

@media (max-width: 700px) {
  .cx-hero-content {
    padding: 1.25rem;
  }

  .cx-hero-content .section-title {
    max-width: none;
    font-size: 2rem;
  }

  .cx-hero-image {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 860px) {
  .cx-value-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cx-consultation-layout {
    grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1fr);
    max-width: none;
  }

  .cx-consultation-layout .cx-process {
    order: 1;
  }

  .cx-consultation-layout .cx-lead-form-card {
    order: 2;
  }

  .cx-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cx-cta-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Starlink installations landing page */
.starlink-page-grid {
  gap: 1.35rem;
}

.starlink-hero-showcase {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(11, 44, 71, 0.12);
}

.starlink-hero-showcase::before {
  content: none;
}

.starlink-hero-image {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 31rem;
  object-fit: cover;
  object-position: 38% center;
  display: block;
}

.starlink-hero-content {
  position: relative;
  width: auto;
  margin: 0;
  padding: clamp(1.45rem, 3.6vw, 2.7rem);
  display: grid;
  align-content: center;
  gap: 1rem;
  color: var(--text);
  background: #ffffff;
}

.starlink-kicker,
.starlink-card-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.starlink-hero-content .section-title {
  color: var(--primary);
  font-size: clamp(1.72rem, 2.55vw, 2.02rem);
  max-width: 23ch;
  overflow-wrap: anywhere;
}

.starlink-hero-content .section-intro {
  color: var(--muted);
  max-width: 37rem;
}

.starlink-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.starlink-hero-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}

.starlink-hero-content .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.starlink-hero-content .btn-primary:hover,
.starlink-hero-content .btn-primary:focus {
  background: #155584;
  border-color: #155584;
  text-decoration: none;
}

.starlink-hero-content .btn-secondary {
  border-color: #9cb7d3;
  color: var(--primary);
  background: #ffffff;
}

.starlink-hero-content .btn-secondary:hover,
.starlink-hero-content .btn-secondary:focus {
  background: #eef6fc;
  text-decoration: none;
}

.starlink-trust-card {
  justify-self: start;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #d7e2ee;
  border-radius: 6px;
  background: #ffffff;
  color: var(--primary);
  padding: 0.62rem 0.85rem;
  line-height: 1.25;
  box-shadow: 0 4px 14px rgba(18, 35, 58, 0.08);
}

.starlink-google-mark {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.starlink-google-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.starlink-google-rating-copy {
  display: grid;
  gap: 0.08rem;
  justify-items: start;
  text-align: left;
}

.starlink-google-label,
.starlink-google-note {
  color: #6a7584;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.starlink-google-score {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  white-space: nowrap;
}

.starlink-google-score strong {
  color: #f5a300;
  font-size: 1.04rem;
  line-height: 1;
}

.starlink-google-stars {
  color: #f5a300;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
}

.starlink-quick-points {
  margin: 0.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.starlink-quick-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.starlink-quick-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.starlink-value-strip {
  display: grid;
  gap: 1rem;
}

.starlink-value-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-height: 100%;
}

.starlink-value-card h2,
.starlink-value-card p {
  margin: 0;
}

.starlink-value-card h2 {
  font-size: 1.12rem;
}

.starlink-card-kicker {
  color: var(--accent);
}

.starlink-section-heading {
  display: grid;
  gap: 0.35rem;
}

.starlink-section-heading h2,
.starlink-section-heading p {
  margin: 0;
}

.starlink-section-heading h2 {
  color: var(--primary);
  line-height: 1.2;
}

.starlink-section-heading > p:last-child {
  color: var(--muted);
}

.starlink-rates-section,
.starlink-scope-section {
  display: grid;
  gap: 1rem;
}

.starlink-rates-grid {
  display: grid;
  gap: 1rem;
}

.starlink-rate-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.starlink-rate-card h3,
.starlink-rate-card p {
  margin: 0;
}

.starlink-rate-card h3 {
  color: var(--primary);
  line-height: 1.2;
  font-size: 1.25rem;
}

.starlink-rate-label {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  border: 1px solid #b9d2e8;
  border-radius: 999px;
  background: #eef6fc;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 0.22rem 0.65rem;
  text-transform: uppercase;
}

.starlink-rate-price {
  color: #14314d;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.starlink-rate-price span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.starlink-rate-card .btn {
  justify-self: start;
  margin-top: 0.2rem;
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.starlink-rate-card .btn:hover,
.starlink-rate-card .btn:focus {
  background: #155584;
  border-color: #155584;
  text-decoration: none;
}

.starlink-rate-card-featured {
  border-color: #8eb9dd;
  box-shadow: 0 6px 18px rgba(15, 58, 95, 0.09);
}

.starlink-scope-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(18, 35, 58, 0.04);
  padding: 1.25rem;
}

.starlink-scope-grid {
  display: grid;
  gap: 0.85rem;
}

.starlink-scope-item {
  border-left: 4px solid var(--accent);
  background: #f7fbff;
  border-radius: 8px;
  padding: 0.95rem 1rem;
}

.starlink-scope-item h3,
.starlink-scope-item p {
  margin: 0;
}

.starlink-scope-item h3 {
  color: var(--primary);
  line-height: 1.2;
}

.starlink-scope-item p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.starlink-consultation-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.starlink-lead-form-card {
  margin: 0;
}

.starlink-installation-choice {
  gap: 0.55rem;
}

.starlink-installation-options {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.starlink-installation-options legend {
  margin: 0 0 0.55rem;
  padding: 0;
  color: var(--primary);
  font-weight: 700;
}

.starlink-installation-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  border: 1px solid #c9d7e6;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.8rem;
  cursor: pointer;
}

.starlink-installation-option:has(input:checked) {
  border-color: var(--accent);
  background: #eef6fc;
  box-shadow: 0 0 0 2px rgba(27, 108, 168, 0.12);
}

.starlink-installation-option input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.22rem 0 0;
  accent-color: var(--accent);
}

.starlink-installation-option span {
  color: var(--text);
  display: grid;
  gap: 0.15rem;
}

.starlink-installation-option strong {
  color: var(--primary);
  line-height: 1.25;
}

.starlink-installation-option small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.starlink-verification-row {
  display: grid;
  gap: 0.75rem;
}

.starlink-estimate-card {
  border: 1px solid #b9d2e8;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #eef6fc;
  padding: 0.85rem 0.95rem;
  display: grid;
  align-content: center;
  gap: 0.15rem;
}

.starlink-estimate-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.starlink-estimate-card strong {
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1.1;
}

.starlink-estimate-card small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.starlink-turnstile-wrap {
  min-width: 0;
}

.starlink-note-card {
  display: grid;
  align-content: start;
  gap: 0.95rem;
  border-left: 5px solid var(--accent);
}

.starlink-note-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.starlink-phone-note {
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  color: var(--muted);
}

.starlink-phone-note a {
  font-weight: 800;
}

@media (max-width: 700px) {
  .starlink-page-grid {
    gap: 1rem;
  }

  .starlink-hero-showcase {
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .starlink-hero-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 14rem;
    object-position: 57% center;
    border-radius: 12px 12px 0 0;
  }

  .starlink-hero-content {
    padding: 1.2rem 4%;
    gap: 0.85rem;
  }

  .starlink-hero-content .section-title {
    max-width: none;
    font-size: 1.72rem;
    line-height: 1.14;
  }

  .starlink-hero-content .section-intro {
    font-size: 1rem;
    line-height: 1.55;
  }

  .starlink-quick-points {
    gap: 0.45rem;
  }

  .starlink-quick-points li {
    font-size: 1rem;
    line-height: 1.45;
    padding-left: 1.2rem;
  }

  .starlink-quick-points li::before {
    top: 0.55em;
    width: 0.42rem;
    height: 0.42rem;
  }

  .starlink-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.65rem;
  }

  .starlink-hero-content .btn {
    width: 100%;
    min-height: 2.85rem;
    text-align: center;
  }

  .starlink-trust-card {
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    text-align: left;
  }

  .starlink-rate-card .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 760px) {
  .starlink-rates-grid,
  .starlink-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .starlink-installation-options {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .starlink-verification-row {
    grid-template-columns: minmax(300px, max-content) minmax(220px, 1fr);
    align-items: center;
  }

  .starlink-turnstile-wrap {
    order: 1;
  }

  .starlink-estimate-card {
    order: 2;
    min-height: 4.9rem;
  }
}

@media (min-width: 860px) {
  .starlink-value-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Blog */
.blog-header {
  gap: 0.45rem;
}

.blog-page {
  overflow-x: hidden;
}

.blog-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

.blog-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.blog-card-image-link {
  display: block;
  line-height: 0;
  background: #f3f7fc;
}

.blog-cover-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.blog-card .blog-cover-image {
  border-radius: 0;
  border: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.blog-card-content {
  padding: 1rem 1.15rem 1.15rem;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.blog-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.blog-tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e9f1fb;
  color: #0d3d68;
  border: 1px solid #c9ddf3;
  padding: 0.12rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.blog-card-content h2 {
  margin: 0.15rem 0 0;
  color: var(--primary);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.blog-card-content p {
  margin: 0;
}

@media (min-width: 700px) {
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .blog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-post-container {
  width: min(92%, 850px);
}

.blog-post {
  display: grid;
  gap: 1rem;
}

.blog-post h1 {
  margin: 0;
  color: var(--primary);
  line-height: 1.2;
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
}

.blog-post h2 {
  margin: 0.3rem 0 0;
  color: var(--primary);
}

.blog-post p,
.blog-post ul,
.blog-post ol {
  margin: 0;
}

.blog-post ul,
.blog-post ol {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.blog-image-figure {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.blog-image-figure figcaption {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.blog-step-list {
  gap: 1.6rem;
}

.blog-step {
  padding-left: 0.2rem;
}

.blog-step h2 {
  font-size: 1.25rem;
}

.blog-step p {
  margin-top: 0.25rem;
}

.blog-step .blog-image-figure {
  margin-top: 0.75rem;
}

.blog-step .blog-cover-image {
  width: min(100%, 640px);
  margin-inline: auto;
}

.blog-accordion {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7fbff;
  overflow: hidden;
}

.blog-accordion summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.blog-accordion summary::-webkit-details-marker {
  display: none;
}

.blog-accordion summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #e2eef9;
  color: var(--primary);
  display: grid;
  place-items: center;
  line-height: 1;
}

.blog-accordion[open] summary::after {
  content: "-";
}

.blog-accordion-content {
  border-top: 1px solid var(--border);
  padding: 0.9rem 1rem 1rem;
  display: grid;
  gap: 0.7rem;
}

.blog-post-cta {
  display: grid;
  gap: 1rem;
  align-items: center;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.blog-post-cta h2,
.blog-post-cta p {
  color: #ffffff;
}

.blog-post-cta h2 {
  margin: 0;
}

.blog-post-cta p {
  margin: 0.45rem 0 0;
  max-width: 60ch;
}

.blog-post-cta .btn {
  justify-self: start;
  background: #ffffff;
  color: var(--primary);
}

@media (min-width: 680px) {
  .blog-post-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.speedtest-demo {
  margin: 0;
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: radial-gradient(circle at 15% 86%, #2f7ab5 0 17%, transparent 17%),
    radial-gradient(circle at 90% 10%, #367fb8 0 13%, transparent 13%),
    linear-gradient(145deg, #164977 0%, #1d5b92 100%);
  padding: clamp(1.1rem, 2.8vw, 2rem);
}

.speedtest-panel {
  background: #d4dce8;
  border-radius: 18px;
  padding: clamp(0.95rem, 2.3vw, 1.6rem);
  display: grid;
  gap: clamp(0.8rem, 1.6vw, 1.1rem);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.speedtest-gauge {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.speedtest-track,
.speedtest-progress {
  fill: none;
  stroke-linecap: round;
  stroke-width: 24;
}

.speedtest-track {
  stroke: #acc0d5;
}

.speedtest-progress {
  stroke: #2677b4;
  stroke-dasharray: 76 100;
  stroke-dashoffset: 100;
}

.speedtest-needle {
  stroke: #103e68;
  stroke-width: 13;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 280px 240px;
}

.speedtest-needle-hub {
  fill: #103e68;
}

.speedtest-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.speed-pill {
  margin: 0;
  border-radius: 14px;
  padding: 0.55rem 0.9rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.32em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.speed-pill span {
  font-variant-numeric: tabular-nums;
}

.speed-pill-download {
  background: #103e68;
}

.speed-pill-upload {
  background: #2677b4;
}

.speed-pill-ping {
  background: #3b8fd1;
}

.speedtest-disclaimer {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 760px) {
  .speedtest-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speed-pill-ping {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(260px, 100%);
  }
}

@media (max-width: 480px) {
  .speedtest-results {
    grid-template-columns: 1fr;
  }

  .speed-pill-ping {
    width: 100%;
  }
}
