:root {
  font-family: "Instrument Sans", "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  --ink: #192f34;
  --muted: #4e6569;
  --brand-blue: #6dc4c3;
  --accent: #24676b;
  --accent-dark: #113c42;
  --paper: #f6fafa;
  --white: #fff;
  --line: #d4e4e5;
  --line-strong: #bacfd1;
  --tint: #eaf5f5;
  --tint-strong: #dff0f0;
  --frame: min(100% - 104px, 1216px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(.compare-tray:not([hidden])) { padding-bottom: 104px; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.frame { width: var(--frame); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  padding: 12px;
  background: var(--white);
}

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 19px; text-decoration: none; }
.wordmark img { width: 102px; height: 23px; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.wordmark span { border-left: 1px solid var(--line); padding-left: 19px; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.7vw, 38px); }
.site-nav a, .site-footer a { text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button-primary { color: var(--accent-dark); background: var(--brand-blue); }
.button-primary:hover:not(:disabled) { background: #8cd2d1; }
.button-primary:disabled { background: var(--tint-strong); color: var(--muted); }
.button-outline { background: transparent; color: var(--accent-dark); border-color: var(--line-strong); }
.button-outline:hover:not(:disabled) { background: var(--tint); border-color: #83aeb0; }
.nav-compare { min-height: 40px; padding: 7px 11px 7px 13px; }
.compare-count {
  min-width: 21px;
  height: 21px;
  padding-inline: 4px;
  border-radius: 50px;
  background: var(--tint-strong);
  color: var(--accent-dark);
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
  min-height: 490px;
  color: var(--accent-dark);
  background: var(--brand-blue);
}
.hero-copy {
  display: flex;
  align-items: center;
  padding: 58px 38px 64px max(52px, calc((100vw - 1216px) / 2));
}
.hero-content { width: 100%; max-width: 565px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.115em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow-rule { display: block; width: 20px; height: 1px; background: currentColor; }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.9rem, 5.1vw, 5.15rem);
  font-weight: 570;
  letter-spacing: -0.065em;
  line-height: 0.985;
}
.hero-description {
  max-width: 405px;
  margin-top: 24px;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.hero-actions .button { min-height: 49px; padding-inline: 17px; }
.hero-actions .button span { font-size: 1.125rem; }
.hero-actions .button-primary { background: var(--accent-dark); color: var(--white); }
.hero-actions .button-primary:hover { background: #205359; }
.hero-actions .button-outline { border-color: #296268; }
.hero-actions .button-outline:hover { background: #a1dcd9; border-color: var(--accent-dark); }
.hero-visual { min-width: 0; position: relative; overflow: hidden; background: #c6b197; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.hero-visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 5px 8px;
  border-radius: 3px;
  background: #183c40e8;
  color: #fff;
  font-size: 0.69rem;
  line-height: 1.3;
}

.range-section { padding-block: 64px 76px; scroll-margin-top: 20px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 25px;
}
.section-heading h2, .resources h2 {
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 585;
  line-height: 1.08;
  letter-spacing: -0.052em;
}
.section-heading p:not(.result-count), .resources-intro p {
  margin-top: 9px;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}
.result-count { flex-shrink: 0; padding-bottom: 2px; color: var(--accent); font-size: 0.875rem; font-weight: 650; }
.filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1.45fr) repeat(3, minmax(135px, 1fr)) auto;
  align-items: end;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--tint);
}
.filter-field { display: grid; min-width: 0; gap: 6px; }
.filter-field > span:first-child { font-size: 0.78rem; font-weight: 680; }
.filter-field input, .filter-field select {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
}
.filter-field select { padding: 0 10px; text-overflow: ellipsis; }
.search-input { position: relative; }
.search-input::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 13px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.search-input::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 22px;
  width: 6px;
  height: 1.5px;
  transform: rotate(46deg);
  background: var(--muted);
  pointer-events: none;
}
.filter-field input { padding: 0 11px 0 36px; }
.filter-field input::placeholder { color: var(--muted); opacity: 1; }
.text-button {
  background: none;
  border: 0;
  padding: 8px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover { color: var(--accent); }
.reset-button { min-height: 43px; padding-inline: 11px; }
.status-box, .catalog-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--tint);
  padding: 24px;
  margin-top: 19px;
  grid-column: 1 / -1;
  color: var(--muted);
}
.catalog-empty h3 { color: var(--ink); margin-bottom: 5px; }
.catalog-empty .button { margin-top: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 17px; }
.product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.product-card:hover { border-color: #83aeb0; }
.product-card:has(.compare-check input:checked) { border-color: var(--accent); background: #f2fbfb; }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-type { font-size: 0.78rem; color: var(--muted); font-weight: 650; }
.energy-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
  height: 30px;
  vertical-align: middle;
  font-family: Calibri, "Aptos", "Segoe UI", sans-serif;
  line-height: 1;
  forced-color-adjust: none;
  --energy-edge: #313d3d;
}
.energy-arrow {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 43px;
  padding-left: 11px;
  clip-path: polygon(0 50%, 30% 0, 100% 0, 100% 100%, 30% 100%);
  background: var(--energy-edge);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 0 2px #132426, 0 1px 1px #132426;
}
.energy-arrow::before {
  position: absolute;
  z-index: -1;
  inset: 1px 0 1px 1px;
  clip-path: inherit;
  background: var(--energy-fill);
  content: "";
}
.energy-scale {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 13px;
  border: 1px solid var(--energy-edge);
  background: #fff;
  color: #161c1c;
  font-size: 9px;
  font-weight: 700;
  line-height: 9px;
}
.energy-a { --energy-fill: #00a650; }
.energy-b { --energy-fill: #50b849; }
.energy-c { --energy-fill: #bed72f; }
.energy-d { --energy-fill: #ffeb00; }
.energy-e { --energy-fill: #fbb900; }
.energy-f { --energy-fill: #ed7601; }
.energy-g { --energy-fill: #e40019; }
.product-card-title { margin-top: 9px; font-size: clamp(1.2rem, 2.3vw, 1.55rem); font-weight: 675; line-height: 1.2; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.product-card-title a { text-decoration: none; }
.product-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-photo { margin-top: 13px; }
.photo-preview {
  display: grid;
  width: 100%;
  gap: 5px;
  justify-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--tint);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 650;
}
.photo-preview:hover { background: var(--tint-strong); border-color: #83aeb0; }
.photo-preview > span { padding: 4px; }
.product-photo img, .dialog-photo img { width: 100%; height: 172px; object-fit: contain; }
.dialog-photo img { height: min(35vh, 270px); }
.photo-status { margin-top: 8px; color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
.product-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 17px; margin-bottom: 17px; padding-block: 13px; border-block: 1px solid var(--line); }
.product-metrics > div { min-width: 0; padding-inline: 10px; border-left: 1px solid var(--line); }
.product-metrics > div:first-child { border-left: 0; padding-left: 0; }
.product-metrics > div:last-child { padding-right: 0; }
.product-metrics dt { margin-bottom: 4px; color: var(--muted); font-size: 0.72rem; line-height: 1.2; }
.product-metrics dd { font-size: 0.94rem; font-weight: 680; line-height: 1.35; }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-actions .button { min-height: 39px; padding: 7px 12px; }
.compare-check { display: inline-flex; align-items: center; gap: 7px; min-height: 39px; color: var(--accent-dark); font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.compare-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

.resources { background: var(--tint-strong); border-top: 1px solid var(--line); scroll-margin-top: 14px; }
.resources-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(26px, 6vw, 100px); padding-block: 58px 62px; }
.resources-intro .button { margin-top: 19px; }
.resources-list dl { border-top: 1px solid var(--line-strong); }
.resources-list dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; border-bottom: 1px solid var(--line-strong); padding-block: 11px; font-size: 0.9rem; }
.resources-list dt { font-weight: 610; }
.resources-list dd { flex-shrink: 0; color: var(--muted); font-size: 0.78rem; }
.resources-list p { color: var(--muted); margin-top: 13px; font-size: 0.8rem; line-height: 1.6; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner p { font-size: 0.83rem; color: var(--muted); }
.footer-inner a { flex-shrink: 0; }

.compare-tray {
  position: fixed;
  z-index: 3;
  inset: auto 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: 0 -4px 20px #113c4214;
}
.compare-tray-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-block: 10px; gap: 10px 18px; }
.selection-group { display: flex; align-items: center; gap: 8px 15px; }
.selection-group > p { flex-shrink: 0; font-weight: 680; font-size: 0.82rem; }
.compare-selection { display: flex; flex-wrap: wrap; gap: 6px; }
.compare-selection button, .selection-chip {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--accent-dark);
  background: var(--tint);
  font-size: 0.76rem;
  font-weight: 620;
}
.compare-selection button:hover { background: var(--tint-strong); }
.tray-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tray-actions .button { white-space: nowrap; }

.showroom-dialog {
  width: min(720px, 100% - 36px);
  max-width: none;
  max-height: min(88dvh, 960px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 70px #113c4240;
  overscroll-behavior: contain;
}
.comparison-dialog { width: min(980px, 100% - 36px); }
.showroom-dialog::backdrop { background: #133138a3; }
.dialog-shell { padding: clamp(17px, 3vw, 31px); }
.dialog-heading { position: sticky; top: 0; z-index: 2; padding-right: 46px; margin-bottom: 17px; background: var(--white); }
.dialog-heading h2 { line-height: 1.12; font-size: clamp(1.6rem, 4vw, 2.35rem); font-weight: 680; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.dialog-heading p { color: var(--muted); font-size: 0.875rem; line-height: 1.55; margin-top: 7px; }
.dialog-heading .product-type { margin: 0 0 4px; font-size: 0.75rem; }
.dialog-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--accent-dark);
  font-size: 1.3rem;
  line-height: 1;
}
.dialog-close:hover { background: var(--tint-strong); }
.dialog-body { display: grid; gap: 13px; }
.dialog-body > p { color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.dialog-body > .photo-status { margin-top: 0; padding: 8px 11px; background: var(--tint); border-radius: 4px; font-size: 0.8rem; }
.dialog-section h3 { margin-bottom: 7px; font-size: 0.96rem; }
.dialog-note { color: var(--muted); margin-top: 8px; font-size: 0.8rem; line-height: 1.55; }
.difference-toggle { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 35px; font-size: 0.88rem; }
.difference-toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
.dialog-body > .comparison-hint { display: none; margin-top: -7px; font-size: 0.76rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec-grid > div { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
.spec-grid dt { color: var(--muted); font-size: 0.77rem; }
.spec-grid dd { margin-top: 4px; font-size: 0.9rem; font-weight: 650; }
.spec-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 0.875rem; }
.spec-table th, .spec-table td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--tint-strong); }
.spec-table tbody th { background: var(--paper); font-weight: 650; }
.spec-table td { min-width: 120px; }
.compare-scroll { max-width: 100%; overflow-x: auto; }
.missing-value, .spec-note { color: var(--muted); }
.spec-note { font-size: 0.8rem; line-height: 1.55; }

.photo-dialog { width: min(1040px, 100% - 36px); }
.photo-viewport {
  display: flex;
  height: min(53dvh, 560px);
  overflow: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  border-radius: 6px;
  background: var(--tint);
}
.photo-stage { flex: none; margin: auto; }
.photo-stage img { width: 100%; height: 100%; max-width: none; user-select: none; }
.photo-viewport.can-pan img { cursor: grab; }
.photo-viewport.is-dragging img { cursor: grabbing; }
.photo-message { margin: auto; padding: 12px; color: var(--muted); text-align: center; }
.photo-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 15px; margin-top: 12px; }
.photo-navigation, .photo-zoom { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.photo-navigation p, .photo-zoom output { min-width: 47px; font-size: 0.85rem; text-align: center; font-variant-numeric: tabular-nums; }
.photo-control { width: 44px; padding-inline: 0; font-size: 1.125rem; }
.photo-toolbar button:disabled { color: var(--muted); opacity: 0.68; }
.photo-hint { margin-top: 8px; color: var(--muted); font-size: 0.78rem; }

@media (max-width: 1060px) {
  :root { --frame: calc(100% - 64px); }
  .hero-copy { padding-left: 32px; }
  .hero { min-height: 440px; }
}
@media (max-width: 880px) {
  .filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-panel .search-field { grid-column: 1 / -1; }
  .reset-button { grid-column: 1 / -1; justify-self: end; min-height: 32px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  :root { --frame: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 13px; }
  .wordmark { min-height: 30px; }
  .wordmark img { width: 85px; height: 19px; }
  .wordmark, .wordmark span { gap: 12px; }
  .wordmark span { padding-left: 12px; }
  .site-nav { min-height: 57px; width: 100%; justify-content: space-between; gap: 8px; }
  .site-nav a { font-size: 0.8rem; }
  .nav-compare { min-height: 35px; font-size: 0.78rem; gap: 5px; padding: 5px 7px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 43px 18px 35px; }
  .hero h1 { font-size: clamp(2.62rem, 9vw, 4.3rem); }
  .hero-description { font-size: 1rem; margin-top: 17px; }
  .hero-actions { margin-top: 21px; }
  .hero-visual { min-height: 0; aspect-ratio: 1.85; }
  .hero-visual figcaption { right: 9px; bottom: 9px; }
  .range-section { padding-block: 39px 44px; }
  .section-heading { flex-wrap: wrap; margin-bottom: 17px; }
  .section-heading > div { width: 100%; }
  .resources-inner { grid-template-columns: 1fr; padding-block: 36px 40px; }
  .compare-tray-inner { align-items: stretch; flex-direction: column; gap: 7px; }
  .selection-group { flex-wrap: wrap; }
  .tray-actions { justify-content: flex-end; }
  body:has(.compare-tray:not([hidden])) { padding-bottom: 156px; }
}
@media (max-width: 475px) {
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .filter-field input, .filter-field select { font-size: 1rem; }
  .reset-button { grid-column: auto; align-self: end; min-height: 43px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .product-card { padding: 17px; }
  .footer-inner { align-items: baseline; padding-block: 18px; }
}
@media (max-width: 570px) {
  .comparison-hint[data-model-count="3"] { display: block; }
  .spec-table tr > :first-child { position: sticky; left: 0; min-width: 106px; }
}
@media (max-width: 420px) {
  .dialog-body > .comparison-hint { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
