:root {
  color-scheme: light;
  --ink: #061b49;
  --ink-soft: #27406d;
  --muted: #627195;
  --paper: #f5f9ff;
  --surface: #ffffff;
  --line: #dce8f8;
  --soft: #eef6ff;
  --blue: #075fe4;
  --blue-dark: #063783;
  --blue-soft: #e8f2ff;
  --cyan: #2fc7ff;
  --green: #e8f8ef;
  --teal: #2a9aa4;
  --red: #e11c24;
  --purple: #6f35ff;
  --shadow: 0 20px 50px rgba(7, 60, 140, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, auto) minmax(240px, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 4.7rem;
  padding: 0.85rem clamp(1rem, 4vw, 3.25rem);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.site-logo {
  display: block;
  width: auto;
  max-width: clamp(12.5rem, 18vw, 18rem);
  height: clamp(2.4rem, 4vw, 3.05rem);
  object-fit: contain;
}

.footer-logo {
  display: block;
  width: min(17rem, 100%);
  height: auto;
  padding: 0.35rem;
  border-radius: 7px;
  background: #fff;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
}

.site-nav a,
.footer-links a {
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(7, 95, 228, 0.28);
}

.nav-cta svg,
.input-icon svg,
#postcode-help svg,
.chip svg,
.see-all svg,
.stat-icon svg,
.comparison-card svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  min-height: 420px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  scroll-margin-top: 5.5rem;
}

.hero-copy {
  align-self: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--ink);
  font-size: 4.65rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 56ch;
  margin: 0.9rem 0 1.4rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.postcode-card {
  max-width: 540px;
}

.postcode-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  overflow: hidden;
  min-height: 3.6rem;
  background: #fff;
  border: 1px solid #cfdcf0;
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(8, 48, 110, 0.1);
}

.input-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  color: #7a8aaa;
}

input {
  width: 100%;
  min-height: 3.45rem;
  border: 0;
  padding: 0.85rem 0.5rem;
  color: var(--ink);
  background: transparent;
  text-transform: uppercase;
}

input::placeholder {
  color: #8796b4;
  text-transform: none;
}

input:focus {
  outline: none;
}

button,
.deal-button,
.cta {
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.postcode-row button {
  align-self: stretch;
  min-width: 9rem;
  border-radius: 0;
}

button:hover,
.deal-button:hover,
.cta:hover,
.nav-cta:hover {
  filter: brightness(0.97);
}

#postcode-help {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

#postcode-help svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 650px;
  margin-top: 1.05rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(6, 27, 73, 0.06);
}

.hero-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  min-height: 3.35rem;
  padding: 0.55rem 0.7rem;
  border-right: 1px solid var(--line);
}

.hero-stat:last-child {
  border-right: 0;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
}

.hero-stats strong,
.hero-stats small {
  display: block;
}

.hero-stats strong {
  font-size: 0.9rem;
  line-height: 1.1;
}

.hero-stats small {
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.15;
}

.hero-art {
  position: relative;
  min-height: 100%;
  background: linear-gradient(130deg, rgba(255,255,255,0), rgba(141, 93, 255, 0.25) 42%, rgba(7,95,228,0.2));
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 38%;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.72), rgba(255,255,255,0));
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 760px;
  margin: 1rem auto 0;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(6, 27, 73, 0.08);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  border-right: 1px solid var(--line);
}

.chip:last-child {
  border-right: 0;
}

.chip.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 95, 228, 0.24);
}

.deal-section,
.guides-section,
.answers-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.8rem clamp(1rem, 4vw, 2rem);
  scroll-margin-top: 5.5rem;
}

.comparison-card,
.rank-strip {
  scroll-margin-top: 5.5rem;
}

.section-heading.compact {
  margin-bottom: 0.85rem;
}

.section-heading p,
#results-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.deal-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0.95rem;
  background: #fff;
  border: 1px solid #d8e5f6;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(6, 27, 73, 0.05);
}

.deal-type {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.provider-mark {
  display: grid;
  place-items: center;
  min-height: 3.6rem;
  margin-bottom: 0.7rem;
  color: var(--blue);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
}

.provider-mark.hyperoptic {
  color: #02a8e8;
  font-size: 1.35rem;
  text-shadow: 0.12rem 0.12rem 0 rgba(96, 72, 255, 0.16);
}

.provider-mark.virgin {
  color: var(--red);
  font-size: 1.05rem;
  border: 2px solid var(--red);
  border-radius: 50%;
  width: 4.3rem;
  min-height: 3rem;
  margin-left: auto;
  margin-right: auto;
  transform: rotate(-10deg);
}

.provider-mark.bt {
  width: 3.4rem;
  min-height: 3.4rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--purple);
  border: 4px solid currentColor;
  border-radius: 50%;
}

.provider-mark.vodafone {
  color: var(--red);
}

.provider-mark.three {
  width: 3.3rem;
  min-height: 3.3rem;
  margin-left: auto;
  margin-right: auto;
  color: #111;
  border: 2px solid #111;
  border-radius: 50%;
  font-size: 2rem;
  font-family: Georgia, serif;
}

.provider-mark.community {
  width: 3.3rem;
  min-height: 3.3rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--teal);
  font-size: 2.7rem;
}

.provider-logo {
  display: grid;
  place-items: center;
  min-height: 3.85rem;
  margin-bottom: 0.75rem;
}

.provider-logo img {
  display: block;
  max-width: 8.25rem;
  max-height: 3rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.provider-logo.logo-symbol img {
  max-width: 4rem;
  max-height: 3.3rem;
}

.provider-logo.logo-wide img {
  max-width: 8.6rem;
  max-height: 2.6rem;
}

.provider-logo.logo-tall img {
  max-width: 5.7rem;
  max-height: 3.35rem;
}

.deal-card h3 {
  min-height: 2.4rem;
  margin-bottom: 0.75rem;
}

.speed,
.price {
  margin: 0;
  color: var(--ink);
}

.speed strong {
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 500;
}

.speed span,
.price span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.price {
  margin-top: 0.75rem;
}

.price strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.deal-copy {
  margin: 0.85rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.deal-button {
  display: grid;
  place-items: center;
  min-height: 2.5rem;
  margin-top: auto;
  color: var(--blue);
  background: #fff;
  border: 2px solid #9fc4ff;
}

.deal-card.accent-red .deal-button {
  color: var(--red);
  border-color: #ffaaa8;
}

.deal-card.accent-purple .deal-button {
  color: var(--purple);
  border-color: #cbb9ff;
}

.deal-card.accent-dark .deal-button {
  color: #111827;
  border-color: #9aa4b2;
}

.deal-card.accent-teal .deal-button {
  color: var(--teal);
  border-color: #94d5dc;
}

.see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.9rem;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.see-all svg {
  width: 1.35rem;
  height: 1.35rem;
}

.comparison-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
  max-width: 1180px;
  margin: 0.8rem auto 0;
  padding: 1rem;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comparison-card h2 {
  align-self: start;
  padding: 0.35rem 0.25rem;
}

.type-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.type-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.type-table th,
.type-table td {
  padding: 0.8rem 0.9rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.type-table th:last-child,
.type-table td:last-child {
  border-right: 0;
}

.type-table tbody tr:last-child th,
.type-table tbody tr:last-child td {
  border-bottom: 0;
}

.type-table thead th {
  background: var(--blue-soft);
  color: var(--ink);
  font-weight: 900;
}

.type-table .criteria-head {
  width: 8.5rem;
  background: #fff;
}

.type-table tbody th {
  color: var(--ink);
  font-weight: 900;
}

.type-table svg {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.45rem;
  color: var(--blue);
  vertical-align: -0.25rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 125px repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: var(--radius);
}

.compare-grid > * {
  background: #fff;
  border-right: 1px solid var(--line);
}

.compare-grid > *:last-child {
  border-right: 0;
}

.compare-row,
.compare-grid article {
  display: grid;
  grid-template-rows: 3.1rem repeat(3, minmax(3rem, auto));
}

.compare-row span,
.compare-row strong,
.compare-grid article h3,
.compare-grid article p {
  display: flex;
  align-items: center;
  min-height: 3rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.compare-grid article p:last-child,
.compare-row strong:last-child {
  border-bottom: 0;
}

.compare-row strong {
  justify-content: end;
  color: var(--ink);
  font-size: 0.76rem;
}

.compare-grid article h3 {
  gap: 0.45rem;
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 0.86rem;
}

.compare-grid article h3 svg {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--blue);
}

.compare-grid article p {
  color: var(--ink-soft);
}

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

.guide-list a {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.85rem;
  min-height: 9.3rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(6, 27, 73, 0.04);
}

.guide-list strong,
.guide-list small,
.guide-list em {
  grid-column: 2;
}

.guide-list strong {
  align-self: end;
  color: var(--ink);
  font-style: normal;
  line-height: 1.12;
}

.guide-list small {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.guide-list em {
  align-self: end;
  color: var(--blue);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
}

.guide-art {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 5.1rem;
  height: 5.1rem;
  align-self: center;
  border-radius: 50%;
  background: #d9ecff;
  color: var(--blue);
  font-weight: 900;
}

.guide-art.calendar {
  border-radius: 12px;
  background: linear-gradient(#0c6de8 0 20%, #eff7ff 20%);
  border: 2px solid #8cc3ff;
  color: var(--ink);
  font-size: 1.55rem;
}

.guide-art.cable::before {
  content: "";
  width: 3.2rem;
  height: 3.2rem;
  border: 0.55rem solid #7fbaff;
  border-top-color: transparent;
  border-radius: 0 0 24px 24px;
}

.guide-art.voice::before {
  content: "";
  width: 3.2rem;
  height: 2.4rem;
  border-radius: 1rem;
  background: var(--blue);
  box-shadow: 1.1rem 1.6rem 0 -0.5rem var(--blue);
}

.guide-art.key::before {
  content: "";
  width: 3.4rem;
  height: 1rem;
  background: #c88f45;
  border-radius: 999px;
  box-shadow: 2rem 0 0 -0.25rem #c88f45;
  transform: rotate(-35deg);
}

.guide-art.fibre::before {
  content: "";
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #075fe4 0 0.35rem, transparent 0.4rem),
    conic-gradient(from 20deg, #2fc7ff, #075fe4, #6f35ff, #2fc7ff);
}

.guide-art.signal::before {
  content: "";
  width: 3.6rem;
  height: 3.6rem;
  border: 0.45rem solid var(--blue);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-45deg);
}

.guide-art.deal::before {
  content: "£";
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.8rem;
}

.guide-art.move::before {
  content: "";
  width: 3.4rem;
  height: 2.3rem;
  border: 0.35rem solid var(--blue);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 -1.2rem 0 -0.45rem var(--blue);
}

.rank-strip {
  display: grid;
  grid-template-columns: 210px repeat(3, 1fr);
  gap: 1rem;
  max-width: 1180px;
  margin: 0.9rem auto;
  padding: 1rem;
  background: linear-gradient(90deg, #edf6ff, #f5faff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
}

.rank-step span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  grid-row: span 2;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.rank-step strong {
  align-self: end;
}

.rank-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.answers-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
  gap: 1.2rem;
  padding-top: 0.8rem;
}

.faq-panel h2 {
  margin-bottom: 0.8rem;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 0.45rem;
}

summary {
  cursor: pointer;
  padding: 0.6rem 0.8rem;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 0.8rem 0.75rem;
  color: var(--ink-soft);
}

.see-all.small {
  justify-content: flex-end;
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.trust-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  background: var(--green);
  border: 1px solid #ccebdc;
  border-radius: var(--radius);
}

.trust-panel svg {
  width: 5rem;
  height: 5rem;
  fill: none;
  stroke: #67bb84;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-panel p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.sticky-check {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: none;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(6, 27, 73, 0.14);
}

.sticky-check form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
}

.sticky-check label {
  font-weight: 900;
}

.sticky-check input {
  min-height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem 2rem;
  padding: 1.5rem clamp(1rem, 5vw, 4rem);
  background: #06265c;
  color: #fff;
}

.footer-brand {
  display: grid;
  gap: 0.55rem;
  align-items: start;
}

.footer-brand p,
.footer-disclaimer {
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-size: 0.82rem;
}

.footer-brand p {
  max-width: 26rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  font-weight: 800;
}

.footer-links a {
  color: #fff;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  max-width: 1100px;
}

.footer-cookie-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.footer-cookie-link:hover {
  color: var(--cyan);
}

.cookie-banner {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  width: min(46rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.cookie-banner h2 {
  margin: 0;
  font-size: 1rem;
}

.cookie-banner p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cookie-banner > a {
  grid-column: 1 / -1;
  color: var(--blue);
  font-weight: 900;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.cookie-actions button {
  min-height: 2.55rem;
}

.cookie-actions .cookie-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.deal-card.hidden {
  display: none;
}

.page-hero {
  background: linear-gradient(90deg, #fff, #edf6ff);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem);
}

.page-hero h1 {
  max-width: 24ch;
  font-size: 2.8rem;
  line-height: 1.04;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-intro {
  max-width: 72ch;
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.content-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.content-shell {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1rem, 4vw, 2rem);
}

.content-shell h2 {
  margin-top: 2rem;
  font-size: 1.65rem;
}

.content-shell h2:first-child {
  margin-top: 0;
}

.content-shell p,
.content-shell li {
  color: var(--ink-soft);
}

.content-shell p {
  max-width: 76ch;
}

.content-shell li + li {
  margin-top: 0.45rem;
}

.callout {
  margin: 1.4rem 0;
  padding: 1rem;
  border-left: 5px solid var(--blue);
  background: var(--blue-soft);
}

.callout p {
  margin: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mini-card,
.article-cta {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.mini-card p {
  margin: 0.45rem 0 0;
}

.article-cta {
  margin-top: 2rem;
  background: var(--blue-soft);
}

.article-cta p {
  margin: 0 0 0.9rem;
}

.article-cta .cta {
  display: inline-grid;
  place-items: center;
}

.provider-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.provider-cta-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(6, 27, 73, 0.04);
}

.provider-cta-card strong,
.provider-cta-card span {
  display: block;
}

.provider-cta-card span {
  margin: 0.35rem 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.provider-cta-card .deal-button {
  margin-top: auto;
}

.guide-decision {
  margin: 1.4rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #fff, #f2f8ff);
}

.guide-decision h2 {
  margin-top: 0;
}

.guide-decision ul {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

@media (max-width: 1180px) {
  .deals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .comparison-card,
  .rank-strip {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  h1 {
    font-size: 3.75rem;
  }

  .page-hero h1 {
    font-size: 2.45rem;
  }

  .site-nav {
    display: none;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    min-height: 230px;
  }

  .hero-art img {
    min-height: 230px;
  }

  .hero-art::before {
    width: 100%;
    background: linear-gradient(0deg, #fff, rgba(255,255,255,0.2), transparent);
  }

  .hero-copy {
    padding-top: 1.4rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .hero-stat {
    border-right: 0;
    border-radius: 7px;
    background: #fff;
  }

  .comparison-card {
    grid-template-columns: 1fr;
  }

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

  .type-table {
    min-width: 680px;
  }

  .compare-row.labels {
    display: none;
  }

  .compare-grid article {
    grid-template-rows: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .compare-grid article:last-child {
    border-bottom: 0;
  }

  .compare-grid article h3,
  .compare-grid article p {
    min-height: auto;
  }

  .rank-strip {
    grid-template-columns: 1fr;
  }

  .answers-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 4.4rem;
  }

  .site-header {
    position: static;
  }

  .nav-cta {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  h1 {
    max-width: 10ch;
    font-size: 3rem;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .postcode-row {
    grid-template-columns: auto 1fr;
  }

  .postcode-row button {
    grid-column: 1 / -1;
    min-height: 3rem;
  }

  .hero-stats,
  .deals-grid,
  .guide-list,
  .content-grid,
  .provider-cta-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
    max-width: none;
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: var(--radius);
  }

  .chip {
    border-right: 0;
  }

  .deal-card {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.25rem 0.9rem;
  }

  .deal-card > * {
    grid-column: 2;
  }

  .deal-type,
  .provider-mark,
  .provider-logo {
    grid-column: 1;
  }

  .provider-mark,
  .provider-logo {
    grid-row: 2 / span 4;
    align-self: start;
  }

  .provider-logo img,
  .provider-logo.logo-wide img {
    max-width: 5.2rem;
    max-height: 2.7rem;
  }

  .deal-button {
    grid-column: 1 / -1;
  }

  .sticky-check {
    display: block;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 0.8rem 1.1rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1 1 12rem;
  }
}

@media (max-width: 440px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .sticky-check form {
    grid-template-columns: 1fr auto;
  }

  .sticky-check label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
