:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --white: #fff;
  --ink: #24251d;
  --muted: #53554b;
  --line: #d9d9cd;
  --accent: #f4e66d;
  --accent-hover: #ecdb4e;
  --panel: #eeefe6;
  --focus: #506037;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
button, select, input { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 1.5rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.wrap { width: min(100% - 5rem, 78rem); margin-inline: auto; }
.skip, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  z-index: 10;
  width: auto;
  height: auto;
  margin: .65rem;
  padding: .6rem 1rem;
  clip-path: none;
  background: var(--white);
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.header-inner { min-height: 5rem; }
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 780;
  letter-spacing: -.055em;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .52rem;
  color: var(--accent);
  background: var(--ink);
}
.brand-icon span {
  position: relative;
  width: .82rem;
  height: .66rem;
  margin-top: .26rem;
  border: 1.5px solid currentColor;
  border-radius: .16rem;
}
.brand-icon span::before {
  content: "";
  position: absolute;
  width: .51rem;
  height: .36rem;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: .35rem .35rem 0 0;
}
.brand-icon span::after {
  content: "";
  position: absolute;
  width: 1.5px;
  height: .22rem;
  left: calc(50% - .75px);
  top: .13rem;
  background: currentColor;
}
.brand-dot { color: #676c44; }
.header-inner nav { display: flex; gap: clamp(1rem, 3vw, 2.6rem); }
.header-inner nav a {
  color: var(--muted);
  font-size: .97rem;
  font-weight: 620;
  text-decoration: none;
}
.header-inner nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .34em; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 3rem;
  padding: .68rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .48rem;
  text-align: center;
  text-decoration: none;
  font-size: .96rem;
  font-weight: 750;
  line-height: 1.25;
}
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { border-color: #8d8f82; color: var(--ink); background-color: transparent; }
.button-outline:hover { background-color: #e9eadd; border-color: var(--ink); }
.header-action { min-height: 2.7rem; }
.text-link { font-weight: 720; text-underline-offset: .27em; text-decoration-thickness: .09em; }
.text-link:hover { color: #565c2f; }

.hero {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  gap: clamp(2.4rem, 5.3vw, 5.5rem);
  align-items: center;
  padding-block: 2.5rem 3.6rem;
}
.hero-copy { padding-block: 1.1rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #424535;
  font-size: .875rem;
  font-weight: 760;
  letter-spacing: .062em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow > span {
  flex: 0 0 1.04rem;
  height: 2px;
  border-radius: 99px;
  background: #848756;
}
h1 {
  margin-top: 1.18rem;
  font-size: clamp(3.2rem, 6.1vw, 5.65rem);
  letter-spacing: -.077em;
  font-weight: 780;
  line-height: .98;
}
h1 em {
  display: block;
  margin-top: .06em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: .9em;
  letter-spacing: -.085em;
  color: #464c31;
  line-height: 1.06;
}
.hero-description {
  max-width: 26rem;
  margin-top: 1.55rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1.45rem;
  margin-top: 1.75rem;
}
.hero-actions .button { min-height: 3.2rem; }
.hero-image {
  position: relative;
  overflow: hidden;
  height: clamp(24rem, 40vw, 35rem);
  isolation: isolate;
  border-radius: .85rem;
  background: #3e2a21;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 51%; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(transparent, #14140dd9);
  pointer-events: none;
}
.hero-image figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 1.12rem .92rem;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
}

.section { padding-block: clamp(3rem, 5.8vw, 5rem); }
.diagnostic { background: var(--panel); border-block: 1px solid var(--line); }
.diagnostic-layout, .buying-layout {
  display: grid;
  grid-template-columns: minmax(15rem, .7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6.3rem);
}
.section-intro h2 {
  margin-top: .7rem;
  font-size: clamp(2.18rem, 4.2vw, 3.65rem);
  letter-spacing: -.073em;
  font-weight: 760;
  line-height: 1.02;
}
.section-intro > p:not(.eyebrow) {
  max-width: 35rem;
  margin-top: .95rem;
  color: var(--muted);
  font-size: 1.03rem;
}
.local-note {
  display: block;
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: .9rem;
}
.wizard {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2.15rem);
  background: var(--white);
  border: 1px solid #d6d9cc;
  border-radius: .88rem;
  box-shadow: 0 12px 38px #3436230a;
}
.wizard-progress {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 720;
}
.wizard-progress p { flex: 0 0 auto; }
.wizard-progress progress {
  appearance: none;
  width: min(36%, 8.5rem);
  height: .35rem;
  overflow: hidden;
  border: none;
  border-radius: 99px;
  background: var(--panel);
  color: #777e45;
}
.wizard-progress progress::-webkit-progress-bar { background: var(--panel); }
.wizard-progress progress::-webkit-progress-value { background: #777e45; border-radius: 99px; }
.wizard-progress progress::-moz-progress-bar { background: #777e45; border-radius: 99px; }
.step h3, .result h3 {
  margin-top: .75rem;
  font-size: clamp(1.5rem, 2.55vw, 2.1rem);
  letter-spacing: -.045em;
  line-height: 1.16;
}
fieldset { min-width: 0; border: 0; padding: 0; margin: 1.05rem 0 0; }
.option-grid, .field-grid { display: grid; gap: .65rem; }
.opening-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mechanism-options, .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  min-height: 3.5rem;
  padding: .75rem .62rem;
  border: 1px solid #d3d5c8;
  border-radius: .46rem;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1.3;
  font-weight: 720;
}
.choice:hover, .choice:has(input:checked) {
  background: #f5f5e9;
  border-color: #7e845a;
}
.choice input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: .09rem 0 0;
  accent-color: #515b31;
}
.choice small {
  display: block;
  margin-top: .28rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 450;
}
.field-grid { margin-top: 1.03rem; }
.field-grid-use { margin-top: 1.2rem; }
.field {
  display: grid;
  align-content: start;
  gap: .32rem;
  color: #3d4034;
  font-size: .9rem;
  font-weight: 700;
}
.field select, .field input {
  width: 100%;
  min-height: 2.65rem;
  padding: .55rem .66rem;
  border: 1px solid #a9ac9d;
  border-radius: .42rem;
  color: var(--ink);
  background-color: var(--white);
  font-size: 1rem;
  font-weight: 450;
}
.field select {
  appearance: none;
  padding-right: 1.75rem;
  background-image: linear-gradient(45deg, transparent 49%, #595c49 51%), linear-gradient(135deg, #595c49 49%, transparent 51%);
  background-position: right .9rem center, right .58rem center;
  background-size: .34rem .34rem;
  background-repeat: no-repeat;
}
.thickness { margin-top: .85rem; max-width: 17rem; }
.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-top: 1.2rem;
}
.result h3 { margin-bottom: .65rem; }
.result-checks { display: grid; gap: .48rem; padding-left: 1.18rem; margin-block: .85rem; }
.result-checks li::marker { color: #697143; }
.result-note { color: var(--muted); font-size: .92rem; }

.models-intro { margin-bottom: 1.65rem; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; }
.model {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.1rem, 2.1vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #fcfcf9;
}
.model-category { color: #454c32; font-size: .89rem; font-weight: 740; }
.model h3 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.047em; margin-top: .4rem; }
.model > p { color: var(--muted); margin-top: .45rem; }
.model dl { display: grid; gap: .56rem; margin-block: .95rem; }
.model dl > div { padding-top: .6rem; border-top: 1px solid var(--line); }
.model dt { font-size: .88rem; font-weight: 740; }
.model dd { margin-top: .14rem; }
.model .text-link { width: fit-content; margin-top: auto; padding-top: .42rem; font-size: .94rem; }

.buying { background: #e9eadf; }
.buying .text-link { display: inline-block; margin-top: 1.15rem; }
.faq details { border-top: 1px solid #bdbfaf; }
.faq details:last-child { border-bottom: 1px solid #bdbfaf; }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .65rem;
  padding: .92rem .15rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.03rem;
  font-weight: 720;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.22rem; font-weight: 500; }
.faq [open] summary::after { content: "−"; }
.faq details p { padding: 0 .15rem 1rem; color: #45493a; }
.site-footer { background: var(--ink); color: var(--paper); }
.footer-inner { min-height: 6rem; padding-block: 1rem; }
.site-footer .brand-icon { border: 1px solid #656957; }
.site-footer .brand-dot { color: var(--accent); }
.site-footer p { color: #dcdfd2; font-size: .88rem; }

@media (max-width: 63rem) {
  .wrap { width: calc(100% - 3rem); }
  .diagnostic-layout, .buying-layout { grid-template-columns: minmax(12rem, .65fr) minmax(0, 1.35fr); gap: 2rem; }
}

@media (max-width: 47rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.35rem; gap: .85rem; }
  .header-inner nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1.6rem 2rem; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(2.95rem, 9.7vw, 4.7rem); max-width: 15ch; }
  .hero-description { margin-top: 1.15rem; }
  .hero-actions { margin-top: 1.19rem; }
  .hero-image { height: clamp(16rem, 76vw, 29rem); }
  .diagnostic-layout, .buying-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .model-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; justify-content: center; flex-direction: column; gap: .45rem; }
}

@media (max-width: 25rem) {
  .header-action { padding-inline: .63rem; font-size: .875rem; }
  .brand { gap: .42rem; font-size: 1.1rem; }
  .brand-icon { width: 1.88rem; height: 1.88rem; }
  .opening-options, .field-grid { grid-template-columns: 1fr; }
  .mechanism-options { grid-template-columns: 1fr; }
}
