:root {
  color-scheme: light;
  --page: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eaf2ff;
  --text: #10223e;
  --muted: #53647b;
  --border: #dce5f0;
  --blue: #1e63d7;
  --blue-dark: #174fae;
  --blue-deep: #0d3275;
  --focus: #0b75d1;
  --radius: 12px;
  --shadow: 0 18px 48px rgba(42, 76, 123, 0.14);
  font-family:
    "Avenir Next",
    Avenir,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--blue-deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  width: 176px;
  height: 62px;
  align-items: center;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 176px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  padding: 24px 0 22px;
  color: #2b3c55;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta,
.button,
.mobile-nav-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.header-cta {
  padding: 0 18px;
  color: #ffffff;
  background: var(--blue);
  font-size: 0.92rem;
  white-space: nowrap;
}

.header-cta:hover,
.button-primary:hover,
.mobile-nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.header-cta:active,
.button:active,
.mobile-nav-cta:active {
  transform: scale(0.98);
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(30, 99, 215, 0.11), transparent 26rem),
    var(--page);
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.86fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
  padding: 62px 0 70px;
}

.hero-copy {
  max-width: 620px;
}

.hero-kicker,
.panel-heading > p,
.route-strip-heading > p {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 17ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-intro {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.07rem, 1.5vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  padding: 0 22px;
}

.button-primary {
  color: #ffffff;
  background: var(--blue);
}

.button-secondary {
  border: 1px solid #aebed3;
  color: var(--text);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  color: #40536d;
  font-size: 0.9rem;
  font-weight: 650;
  list-style: none;
}

.hero-assurances li {
  position: relative;
  padding-left: 18px;
}

.hero-assurances li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.start-panel {
  position: relative;
  padding: clamp(26px, 3.5vw, 40px);
  border: 1px solid rgba(30, 99, 215, 0.14);
  border-radius: calc(var(--radius) * 2);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.start-panel::before {
  content: "";
  position: absolute;
  inset: 12px -14px -14px 14px;
  z-index: -1;
  border-radius: calc(var(--radius) * 2);
  background: #dce9ff;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.start-options {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.start-options a {
  min-height: 78px;
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.start-options a:hover,
.start-options a:focus-visible {
  border-color: #8bb3f3;
  background: var(--surface-soft);
  transform: translateX(3px);
}

.option-copy {
  display: grid;
  gap: 4px;
}

.option-copy strong {
  font-size: 1rem;
}

.option-copy small {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.4;
}

.option-arrow {
  color: var(--blue);
  font-size: 1.45rem;
  font-weight: 700;
}

.panel-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  text-align: center;
}

.route-strip {
  padding: 72px 0 84px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.route-strip-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.route-strip-heading {
  max-width: 560px;
}

.route-strip-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.route-links {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.route-links a {
  min-height: 126px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid var(--border);
  color: inherit;
  background: #ffffff;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.route-links a:last-child {
  border-right: 0;
}

.route-links a:hover,
.route-links a:focus-visible {
  color: var(--blue-dark);
  background: var(--surface-soft);
}

.route-links strong {
  font-size: 1.05rem;
}

.route-links span {
  color: var(--muted);
  font-size: 0.89rem;
}

.compare-section {
  padding: 88px 0 96px;
  border-top: 1px solid var(--border);
  background: #edf3fc;
}

.compare-inner,
.partners-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.compare-intro,
.partners-heading {
  max-width: 680px;
}

.compare-intro h2,
.partners-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.compare-intro p,
.partners-heading p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.postcode-form {
  margin-top: 38px;
  padding: 28px;
  border: 1px solid #cfdbec;
  border-radius: calc(var(--radius) * 2);
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(42, 76, 123, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr auto;
  align-items: end;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label {
  color: #273b57;
  font-size: 0.9rem;
  font-weight: 750;
}

.field-group input,
.field-group select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #9fb0c7;
  border-radius: var(--radius);
  color: var(--text);
  background: #ffffff;
  font: inherit;
  font-weight: 650;
}

.field-group input::placeholder {
  color: #64748b;
  opacity: 1;
}

.field-group input[aria-invalid="true"] {
  border-color: #b42318;
}

.field-group small,
.form-note {
  color: #56677d;
  font-size: 0.78rem;
  line-height: 1.4;
}

.field-error {
  min-height: 0;
  color: #9f1d16;
  font-size: 0.8rem;
  font-weight: 650;
}

.field-error:empty {
  display: none;
}

.compare-submit {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.compare-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.compare-submit:active,
.category-button:active,
.partner-action:active {
  transform: scale(0.98);
}

.form-note {
  margin: 18px 0 0;
}

.comparison-results {
  margin-top: 26px;
  padding: 30px;
  border: 1px solid #cfdbec;
  border-radius: calc(var(--radius) * 2);
  background: var(--surface);
}

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.results-label {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.results-header h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}

.result-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.loading-results {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.loading-results[hidden] {
  display: none;
}

.loading-results span {
  height: 106px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #edf2f8, #f7f9fc, #edf2f8);
  background-size: 200% 100%;
  animation: loading-shift 1.1s ease-in-out infinite;
}

@keyframes loading-shift {
  to { background-position: -200% 0; }
}

.result-list {
  display: grid;
  margin-top: 24px;
}

.compare-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

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

.result-service {
  display: grid;
  gap: 5px;
}

.result-service strong {
  font-size: 1.08rem;
}

.result-service span,
.result-review {
  color: var(--muted);
  font-size: 0.88rem;
}

.result-review strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.result-price {
  min-width: 126px;
  text-align: right;
}

.result-price small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.result-price strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.partners-section {
  padding: 92px 0 104px;
  border-top: 1px solid var(--border);
  background: var(--page);
}

.category-controls {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.category-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #aebed3;
  border-radius: var(--radius);
  color: #314761;
  background: var(--surface);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.category-button:hover,
.category-button.is-active {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.partner-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.partner-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--surface);
}

.partner-card:nth-child(3n + 2) {
  background: #eef4fd;
}

.partner-card-candidate {
  border-color: #8bb3f3;
  background: #eef4fd;
}

.partner-card-candidate .demo-label {
  color: var(--blue-dark);
}

.partner-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.partner-type {
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.demo-label {
  color: #5b6c80;
  font-size: 0.76rem;
  font-weight: 700;
}

.partner-card h3 {
  margin: 14px 0 0;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.partner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 10px;
  color: #42566f;
  font-size: 0.9rem;
  font-weight: 650;
}

.partner-quote {
  min-height: 72px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.partner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.partner-price small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.partner-price strong {
  font-size: 1.18rem;
}

.partner-action {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--blue);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.partner-action-pending {
  border: 1px solid #9fb0c7;
  color: #314761;
  background: #ffffff;
}

.partner-action-pending:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--surface-soft);
}

.affiliate-note {
  margin-top: 26px;
  padding: 22px 24px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #e7f0ff;
}

.affiliate-note strong {
  display: block;
}

.affiliate-note p {
  margin: 5px 0 0;
  color: #42566f;
  font-size: 0.9rem;
}

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

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    grid-column: 3;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    background: #ffffff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    cursor: pointer;
  }

  .menu-icon {
    display: grid;
    gap: 5px;
  }

  .menu-icon span {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .menu-button[aria-expanded="true"] .menu-icon span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-icon span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-nav {
    padding: 14px 20px 20px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 2px;
    background: #ffffff;
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 13px 10px;
    border-radius: var(--radius);
    color: #263a56;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    background: var(--surface-soft);
  }

  .mobile-nav .mobile-nav-cta {
    margin-top: 8px;
    color: #ffffff;
    background: var(--blue);
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 64px 0 76px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .start-panel {
    max-width: 680px;
  }

  .route-links {
    grid-template-columns: 1fr 1fr;
  }

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

  .compare-submit {
    width: 100%;
  }

  .route-links a:nth-child(2) {
    border-right: 0;
  }

  .route-links a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero-inner,
  .route-strip-inner,
  .compare-inner,
  .partners-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand,
  .brand img {
    width: 154px;
  }

  .header-inner {
    height: 68px;
  }

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

  .hero {
    background:
      radial-gradient(circle at 92% 9%, rgba(30, 99, 215, 0.1), transparent 17rem),
      var(--page);
  }

  .hero-inner {
    padding: 46px 0 64px;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.75rem, 14vw, 4.15rem);
    line-height: 1;
  }

  .hero-intro {
    margin-top: 22px;
    font-size: 1.05rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-assurances {
    display: grid;
    gap: 9px;
  }

  .start-panel {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .start-panel::before {
    inset: 8px -8px -8px 8px;
    border-radius: 18px;
  }

  .start-options a {
    min-height: 84px;
  }

  .route-strip {
    padding: 58px 0 68px;
  }

  .route-links {
    grid-template-columns: 1fr;
  }

  .route-links a,
  .route-links a:nth-child(2) {
    min-height: 102px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .route-links a:last-child {
    border-bottom: 0;
  }

  .compare-section,
  .partners-section {
    padding: 64px 0 72px;
  }

  .postcode-form,
  .comparison-results {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .form-grid,
  .partner-list {
    grid-template-columns: 1fr;
  }

  .results-header,
  .partner-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .compare-result {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .result-review {
    grid-column: 1 / -1;
  }

  .partner-card {
    padding: 22px 18px;
  }

  .partner-quote {
    min-height: 0;
  }

  .partner-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
