@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --green: #204020;
  --green-hover: #2d5a2d;
  --ink: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.64);
  --soft: rgba(26, 26, 26, 0.48);
  --line: rgba(26, 26, 26, 0.1);
  --tint: rgba(32, 64, 32, 0.05);
  --tint-strong: rgba(32, 64, 32, 0.1);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
.print-only, .print-logo { display: none; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo-link img { height: 38px; width: auto; }
.topbar nav { display: flex; gap: 4px; margin-left: auto; }
.topbar nav a {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 999px;
}
.topbar nav a:hover { background: var(--tint); color: var(--green); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: rgba(255, 255, 255, 0.88); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: #fff; }
.btn:focus-visible, .group-card:focus-visible, .tabs button:focus-visible, .topbar nav a:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 72px 0 56px;
}
.kicker, .eyebrow {
  color: var(--green); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
}
h1 { font-size: clamp(34px, 4.4vw, 50px); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.lead { margin-top: 20px; font-size: 18px; color: var(--ink); max-width: 34em; }
.lead-muted { margin-top: 12px; color: var(--muted); max-width: 34em; }
.checked {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-size: 13px; color: var(--green); background: var(--tint);
  padding: 8px 14px; border-radius: 999px;
}
.hero-image { margin: 0; }
.hero-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
.section-lead { margin-top: 10px; color: var(--muted); max-width: 40em; }

/* Group overview */
.group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.group-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.group-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(32, 64, 32, 0.08); }
.group-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--tint); color: var(--green);
}
.group-card h3 { font-size: 20px; margin-top: 6px; }
.tagline { font-weight: 600; color: var(--green); }
.choose { font-size: 14px; color: var(--muted); }
.brand-list { margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.brand-list dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.brand-list dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.group-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green); }

/* Tiles */
.tile-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.tile { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--tint); }
.tile .icon { color: var(--green); margin-top: 2px; }
.tile h4 { font-size: 15px; font-weight: 700; }
.tile p { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Group sections */
.group { margin-top: 48px; }
.group:first-of-type { margin-top: 36px; }
.group-head { display: flex; align-items: center; gap: 14px; }
.group-index { font-size: 13px; font-weight: 700; color: var(--soft); letter-spacing: 0.08em; }
.group-head h3 { font-size: 26px; }
.group-summary { margin-top: 14px; color: var(--muted); max-width: 46em; }
.choose-strip {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-size: 15px; color: var(--ink);
}
.choose-strip .icon { color: var(--green); }

.range-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.range {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.range-image { align-self: start; border-radius: 12px; background: #fff; }
.range-image img { width: 100%; aspect-ratio: 5 / 3; object-fit: contain; }
.range-body { display: flex; flex-direction: column; min-width: 0; }
.brand { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.range h4 { margin-top: 4px; font-size: 20px; font-weight: 700; }
.model { margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--soft); letter-spacing: 0.02em; }
.variant { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--green); }
.range-desc { margin-top: 8px; font-size: 14px; color: var(--muted); }
.highlights { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.highlights li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; }
.highlights .icon { color: var(--green); width: 18px; height: 18px; margin-top: 2px; }
.finishes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.finishes li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(26, 26, 26, 0.22); }
.notes { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.notes li { font-size: 13px; color: var(--muted); padding-left: 14px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--soft); }
.range-cta {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: auto; padding-top: 16px;
  color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none;
}
.range-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Comparison */
.compare-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.tabs { display: inline-flex; padding: 4px; background: var(--tint); border-radius: 999px; }
.tabs button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 8px 18px; border-radius: 999px;
}
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle-track { width: 38px; height: 22px; border-radius: 999px; background: rgba(26, 26, 26, 0.18); position: relative; transition: background 0.15s; }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.toggle input:checked + .toggle-track { background: var(--green); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--green); outline-offset: 2px; }
.compare.diff-only tr[data-same="true"] { display: none; }

.compare-panel { margin-top: 20px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 14px; }
th, td { padding: 12px 14px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { vertical-align: bottom; background: #fff; }
tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
tbody tr:hover td, tbody tr:hover th { background: var(--tint); }
.corner, tbody th { position: sticky; left: 0; background: #fff; z-index: 1; }
.th-group {
  display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--tint); color: var(--green);
}
.th-premium { background: var(--green); color: #fff; }
.th-enhanced { background: var(--tint-strong); }
.th-name { display: block; font-size: 14px; font-weight: 700; }
.th-model { display: block; font-size: 12px; font-weight: 600; color: var(--soft); }
td.yes { color: var(--green); }
td.yes .icon { width: 20px; height: 20px; stroke-width: 2.25; }
td.no { color: rgba(26, 26, 26, 0.28); }
td.text { font-size: 13px; color: var(--ink); }
td .icon { margin: 0 auto; display: block; }
.table-notes { margin-top: 14px; display: grid; gap: 6px; }
.table-notes p { display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.table-notes .icon { color: var(--green); margin-top: 3px; }

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.glossary .tile { background: #fff; border: 1px solid var(--line); }

/* CTA */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 40px; border-radius: 24px; background: var(--green); color: #fff;
}
.cta h2 { color: #fff; font-size: 26px; }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, 0.82); max-width: 36em; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; flex: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-inner { display: flex; align-items: center; gap: 20px; }
.footer img { height: 34px; width: auto; }
.footer p { font-size: 13px; color: var(--muted); }

/* Responsive */
@media screen and (max-width: 1024px) {
  .group-grid, .tile-row { grid-template-columns: repeat(2, 1fr); }
  .range-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .topbar nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .hero-image { order: -1; }
  .group-grid, .tile-row, .glossary { grid-template-columns: 1fr; }
  .range { grid-template-columns: 1fr; }
  .range-image { max-width: 280px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .group-card, .toggle-track, .toggle-track::after { transition: none; }
}

/* Print / PDF — A4, margins set by the renderer */
@media print {
  @page { size: A4; }
  body { font-size: 10pt; line-height: 1.5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { width: 100%; }
  .topbar, .skip, .compare-controls, .group-link, .cta-actions, .footer { display: none !important; }
  .print-only { display: block; }
  .print-logo { display: block; height: 44px; width: auto; margin-bottom: 28px; }
  a { color: inherit; text-decoration: none; }

  .hero { grid-template-columns: 1fr 0.9fr; gap: 28px; padding: 0 0 22px; }
  h1 { font-size: 26pt; }
  .lead { font-size: 11.5pt; margin-top: 14px; }
  .lead-muted { font-size: 10pt; }
  .checked { font-size: 8.5pt; margin-top: 16px; }
  .hero-image img { border-radius: 14px; }

  .section { padding: 20px 0; }
  h2 { font-size: 17pt; }
  .eyebrow { font-size: 8pt; margin-bottom: 6px; }
  .section-lead { font-size: 10pt; }

  .group-grid { gap: 10px; margin-top: 16px; }
  .group-card { padding: 14px; gap: 6px; border-radius: 12px; }
  .group-card h3 { font-size: 13pt; }
  .group-icon { width: 32px; height: 32px; border-radius: 9px; }
  .group-icon .icon { width: 18px; height: 18px; }
  .tagline { font-size: 9.5pt; }
  .choose, .brand-list dd { font-size: 8.5pt; }
  .brand-list dt { font-size: 7pt; }

  .tile-row { gap: 10px; margin-top: 14px; }
  .tile { padding: 12px; gap: 10px; border-radius: 12px; }
  .tile h4 { font-size: 10pt; }
  .tile p { font-size: 8.5pt; }

  .eyebrow, h2, .section-lead, .group-head, .group-summary, .choose-strip { break-after: avoid; }
  .every { break-before: page; break-inside: avoid; border-top: 0; padding-top: 0; }
  .ranges { padding-top: 8px; }
  .group { margin-top: 22px; break-inside: avoid; }
  .group-head h3 { font-size: 16pt; }
  .group-summary, .choose-strip { font-size: 9.5pt; margin-top: 8px; }
  .range-grid { gap: 10px; margin-top: 12px; }
  .range { grid-template-columns: 120px 1fr; gap: 12px; padding: 12px; border-radius: 12px; break-inside: avoid; }
  .range h4 { font-size: 12pt; }
  .model, .variant, .finishes, .notes li { font-size: 8pt; }
  .brand { font-size: 7pt; }
  .range-desc, .highlights li { font-size: 8.5pt; }
  .highlights { gap: 4px; margin-top: 8px; }
  .highlights .icon { width: 13px; height: 13px; }
  .finishes, .notes { margin-top: 8px; }
  .notes { padding-top: 6px; }
  .swatch { width: 10px; height: 10px; }
  .range-cta { display: none; }

  .compare { break-before: page; border-top: 0; padding-top: 0; }
  .compare-panel[hidden] { display: block !important; }
  .compare-panel { margin-top: 14px; break-inside: avoid; }
  .compare-panel + .compare-panel { break-before: page; }
  .compare-panel h3 { font-size: 13pt; color: var(--green); margin-bottom: 8px; }
  .table-wrap { overflow: visible; border-radius: 10px; }
  table { min-width: 0; font-size: 8.5pt; }
  th, td { padding: 6px 6px; }
  tbody th { white-space: normal; }
  td.text { font-size: 8pt; }
  .th-name { font-size: 8.5pt; }
  .th-model { font-size: 7.5pt; }
  .th-group { font-size: 6.5pt; }
  td.yes .icon { width: 14px; height: 14px; }
  .table-notes p { font-size: 8pt; }

  #features { break-before: page; border-top: 0; padding-top: 0; }
  .glossary { gap: 8px; margin-top: 14px; }
  .glossary .tile { break-inside: avoid; }

  .cta { padding: 18px 22px; border-radius: 14px; break-inside: avoid; }
  .cta h2 { font-size: 14pt; }
  .cta p { font-size: 9.5pt; }
  .cta::after {
    content: "Ask Current at pretiumsynergy.co.uk/gb/residential/ashp-air-to-air · customer.service@pretiumsynergy.co.uk";
    display: block; margin-top: 10px; font-size: 9pt; font-weight: 600; color: #fff;
  }
  .cta { flex-direction: column; align-items: flex-start; gap: 0; }
}
