/* ==================================================================
   Net Cost Manufactured Homes — stylesheet
   Palette: primer white / evergreen ink / sage / pine / California poppy
   Type:    Bricolage Grotesque (display) · Hanken Grotesk (text) · IBM Plex Mono (data)
   ================================================================== */

:root {
  --paper: #f4f4f0;
  --paper-2: #ffffff;
  --sage: #e4e9e3;
  --sage-2: #d6ddd5;
  --line: #d3d9d1;
  --ink: #15201c;
  --ink-2: #33423c;
  --muted: #5e6d66;
  --pine: #1f4d3f;
  --pine-ink: #173b31;
  --pine-text: #1f4d3f;
  --poppy: #f07a1d;
  --poppy-ink: #b2500a;
  --poppy-soft: #fde8d6;
  --focus: #1f4d3f;
  --shadow: 0 24px 60px -30px rgba(21, 32, 28, .45);

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 4px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1614;
    --paper-2: #151d1a;
    --sage: #182320;
    --sage-2: #1f2c28;
    --line: #26332e;
    --ink: #eceae4;
    --ink-2: #c9cfca;
    --muted: #98a69f;
    --pine: #1a3d33;
    --pine-ink: #132d26;
    --pine-text: #8fc3ac;
    --poppy: #f58a35;
    --poppy-ink: #ffb277;
    --poppy-soft: #3a2413;
    --focus: #8fc3ac;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1614;
  --paper-2: #151d1a;
  --sage: #182320;
  --sage-2: #1f2c28;
  --line: #26332e;
  --ink: #eceae4;
  --ink-2: #c9cfca;
  --muted: #98a69f;
  --pine: #1a3d33;
  --pine-ink: #132d26;
  --pine-text: #8fc3ac;
  --poppy: #f58a35;
  --poppy-ink: #ffb277;
  --poppy-soft: #3a2413;
  --focus: #8fc3ac;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; font-size: .8em; }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow--poppy { color: var(--poppy-ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section__head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2 { font-size: clamp(30px, 4vw, 46px); }
.section__head p { color: var(--muted); font-size: 18px; max-width: 60ch; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--poppy); border-color: var(--poppy); color: #15201c; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--sm { padding: 10px 14px; font-size: 14px; }
.btn--poppy { background: var(--poppy); border-color: var(--poppy); color: #15201c; }
.btn--poppy:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1.05; white-space: nowrap; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--poppy); }
.topbar__cta { display: flex; align-items: center; gap: 12px; }
.topbar__phone { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.topbar__call { display: none; padding: 9px 10px; }
.topbar__call svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__copy { grid-column: 1 / span 5; display: grid; gap: 26px; }
.hero__copy h1 { font-size: clamp(38px, 4.3vw, 56px); font-weight: 800; font-variation-settings: "opsz" 96; line-height: 1; }
.hero__copy h1 em { font-style: normal; color: var(--poppy-ink); }
.hero__copy .lede { font-size: 19px; color: var(--ink-2); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: start; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.stats b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13px; }
.hero__media { grid-column: 6 / -1; position: relative; margin: 0; }
.hero__stage { position: relative; aspect-ratio: 16 / 10; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--sage); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; opacity: 0; transition: opacity 1s ease; }
.hero__img.is-on { opacity: 1; }
.hero__dots { position: absolute; right: 14px; top: 14px; display: flex; gap: 7px; z-index: 2; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(244,244,240,.6); box-shadow: 0 0 0 1px rgba(21,32,28,.25); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.hero__dots button:hover { transform: scale(1.2); }
.hero__dots button[aria-selected="true"] { background: var(--poppy); }
.hero__dots:empty { display: none; }
.placard {
  position: absolute; left: -24px; bottom: -24px; width: max-content; max-width: min(300px, 80%); z-index: 3;
  background: var(--paper-2); color: var(--ink);
  border-top: 3px solid var(--poppy); padding: 13px 16px 14px; box-shadow: var(--shadow);
  display: grid; gap: 3px; transition: opacity .35s ease;
}
.placard.is-swapping { opacity: 0; }
.placard .eyebrow { font-size: 11px; }
.placard__price { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; line-height: 1.05; }
.placard__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.placard__name .mono { color: var(--muted); font-size: 11px; margin-left: 2px; }
.placard__specs { color: var(--muted); font-size: 13px; }
.placard__link { font-size: 13px; font-weight: 600; color: var(--pine-text); text-decoration: none; margin-top: 3px; }
.placard__link:hover { color: var(--poppy-ink); }

/* ---------- brand strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--sage); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; min-height: 84px; padding-block: 16px; }
.strip .eyebrow { margin-right: auto; }
.strip__logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.strip__logos img { height: 28px; width: auto; max-width: 160px; object-fit: contain; }
.strip__logos .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink-2); }
:root[data-theme="dark"] .strip__logos img, .dark-invert { filter: none; }

/* ---------- picks ---------- */
.picks { padding-block: clamp(56px, 7vw, 96px) 0; }
.picks__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- catalog ---------- */
.catalog__bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.catalog__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.catalog__layout { display: grid; grid-template-columns: 272px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.filters { position: sticky; top: 92px; display: grid; gap: 26px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.filters legend { padding: 0; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 999px;
  padding: 7px 13px; font-size: 14px; font-weight: 500; cursor: pointer; line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--series { position: absolute; left: 12px; top: 12px; pointer-events: none; background: var(--paper-2); color: var(--ink); font-size: 12px; padding: 5px 10px; border: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input, .select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); color: var(--ink); font: inherit; font-size: 15px;
}
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.range { width: 100%; accent-color: var(--poppy); }
.range-out { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.range-out output { font-weight: 700; color: var(--ink); font-family: var(--font-display); font-size: 16px; }
.filters__reset { justify-self: start; background: none; border: 0; padding: 0; color: var(--pine-text); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.results-count { color: var(--muted); font-size: 15px; }
.results-count b { color: var(--ink); font-family: var(--font-display); font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid--empty { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.grid__more { display: flex; justify-content: center; padding-top: 32px; }
.grid__more:empty { display: none; }
.grid__remaining { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-left: 6px; }
.grid__more .btn:hover .grid__remaining { color: inherit; }
.placard__tag { color: var(--muted); }
.placard__tag.is-crossmod { color: var(--poppy-ink); font-weight: 600; }

/* ---------- card ---------- */
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; position: relative;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--sage); cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__media img.is-plan { object-fit: contain; background: #fff; padding: 10px; }
.card:hover .card__media img { transform: scale(1.03); }
.card__noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.card__noimg svg { width: 64px; height: 64px; opacity: .55; }
.card__body { padding: 16px 18px 18px; display: grid; gap: 10px; align-content: start; }
.card__title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card__title h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.card__title h3 button { all: unset; cursor: pointer; }
.card__title h3 button::after { content: ""; position: absolute; inset: 0; }
.card__title h3 button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.card__title .mono { color: var(--muted); white-space: nowrap; }
.card__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card__price strong { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.card__price small { color: var(--muted); font-size: 13px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--line); margin-right: 8px; }
.card__feat { font-size: 14px; color: var(--muted); }
.card__tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--poppy-ink); background: var(--poppy-soft); padding: 3px 8px; border-radius: 3px; justify-self: start; }

/* ---------- series ---------- */
.series { background: var(--sage); border-block: 1px solid var(--line); }
.series__brand { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); padding-block: 40px; border-top: 1px solid var(--line); }
.series__brand:first-of-type { border-top: 0; padding-top: 0; }
.series__brand h3 { font-size: 26px; }
.series__brand > div:first-child { display: grid; gap: 10px; align-content: start; }
.series__brand > div:first-child p { color: var(--muted); font-size: 15px; }
.series__brand img.brand-logo { height: 34px; width: auto; max-width: 180px; object-fit: contain; object-position: left; margin-bottom: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #f4f4f0; text-decoration: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s ease, opacity .3s ease; }
.tile:hover img { transform: scale(1.04); opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,32,28,0) 35%, rgba(21,32,28,.88) 100%); }
.tile__body { position: absolute; inset: auto 0 0 0; padding: 18px; display: grid; gap: 4px; z-index: 1; }
.tile__body h4 { font-size: 22px; color: #fff; }
.tile__body p { font-size: 13px; color: rgba(244,244,240,.8); }
.tile__body b { font-family: var(--font-display); font-size: 17px; color: #fff; }

/* ---------- pricing band ---------- */
.pricing { background: var(--pine); color: #f4f4f0; }
.pricing .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 56px); }
.pricing__lead { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
.pricing__lead h2 { font-size: clamp(30px, 3.8vw, 44px); color: #fff; }
.pricing__lead p { color: rgba(244,244,240,.82); font-size: 17px; max-width: 46ch; }
.pricing__lead .eyebrow { color: var(--poppy); }
.pricing__cols { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pricing__col h3 { font-size: 15px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,244,240,.7); padding-bottom: 12px; border-bottom: 1px solid rgba(244,244,240,.25); margin-bottom: 14px; }
.pricing__col li { display: flex; gap: 12px; padding-block: 8px; font-size: 16px; line-height: 1.4; }
.pricing__col li::before { content: "✓"; color: var(--poppy); font-weight: 700; flex: none; width: 14px; }
.pricing__col--sep li::before { content: "+"; color: rgba(244,244,240,.55); }
.pricing__note { grid-column: 1 / -1; margin-top: 12px; padding-top: 20px; border-top: 1px solid rgba(244,244,240,.2); font-size: 14px; color: rgba(244,244,240,.7); max-width: 90ch; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: var(--line); }
.step { display: grid; gap: 12px; align-content: start; position: relative; padding-top: 0; }
.step__n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--ink); font-family: var(--font-mono); font-size: 13px; font-weight: 500; position: relative; z-index: 1; }
.step:first-child .step__n { background: var(--poppy); border-color: var(--poppy); color: #15201c; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- value props ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; align-content: start; background: var(--paper-2); }
.value svg { width: 30px; height: 30px; color: var(--poppy-ink); }
.value h3 { font-size: 21px; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; color: var(--muted); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 66ch; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- contact ---------- */
.contact .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .field--full { grid-column: 1 / -1; }
.form textarea.input { min-height: 130px; resize: vertical; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { font-size: 14px; color: var(--pine-text); font-weight: 600; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.turnstile-slot { grid-column: 1 / -1; }
.turnstile-slot:empty { display: none; }
.info { background: var(--sage); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 22px; }
.info h3 { font-size: 22px; }
.info dl { display: grid; gap: 14px; margin: 0; }
.info dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.info dd { margin: 0; font-size: 16px; }
.info dd a { text-decoration: none; font-weight: 600; }
.info dd a:hover { color: var(--poppy-ink); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: 56px 32px; }
:root[data-theme="dark"] .footer, .footer { --line: rgba(244,244,240,.16); }
.footer .wrap { display: grid; gap: 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--paper); }
.footer h4 { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin-bottom: 14px; }
.footer li { padding-block: 5px; font-size: 15px; }
.footer a { text-decoration: none; opacity: .9; }
.footer a:hover { color: var(--poppy); opacity: 1; }
.footer__fine { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 10px; font-size: 13px; line-height: 1.55; opacity: .72; max-width: 110ch; }
.footer__fine p { margin: 0; }

/* ---------- dialog ---------- */
.dialog { border: 0; padding: 0; background: var(--paper-2); color: var(--ink); width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: 6px; box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(15, 22, 20, .62); backdrop-filter: blur(2px); }
.dialog__inner { display: grid; grid-template-columns: 7fr 5fr; }
.dialog__gallery { background: var(--sage); display: grid; grid-template-rows: 1fr auto; min-height: 420px; }
.dialog__main { position: relative; aspect-ratio: 4 / 3; background: var(--sage); }
.dialog__main img { width: 100%; height: 100%; object-fit: cover; }
.dialog__main img.is-plan { object-fit: contain; background: #fff; padding: 16px; }
.dialog__main .card__noimg { position: absolute; inset: 0; }
.thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: var(--paper-2); border-top: 1px solid var(--line); }
.thumbs button { flex: none; width: 76px; height: 58px; border: 2px solid transparent; border-radius: 3px; padding: 0; overflow: hidden; background: var(--sage); cursor: pointer; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.is-plan img { object-fit: contain; background: #fff; }
.thumbs button[aria-current="true"] { border-color: var(--poppy); }
.dialog__body { padding: 28px 28px 24px; display: grid; gap: 18px; align-content: start; overflow-y: auto; max-height: calc(100vh - 32px); }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-2); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.dialog__close:hover { background: var(--ink); color: var(--paper); }
.dialog h2 { font-size: 30px; letter-spacing: -0.02em; }
.dialog__price { display: grid; gap: 2px; padding: 16px 18px; background: var(--sage); border-left: 4px solid var(--poppy); }
.dialog__price strong { font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -0.03em; line-height: 1; }
.dialog__price span { color: var(--muted); font-size: 13px; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.spec-table div { border-top: 1px solid var(--line); padding-top: 8px; }
.spec-table dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec-table dd { margin: 2px 0 0; font-weight: 600; font-size: 16px; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog__fine { font-size: 13px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 100; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- shared bits added with the multi-page shell ---------- */
[hidden] { display: none !important; }
.nav a.nav__quiz { color: var(--poppy-ink); font-weight: 600; }
.nav a.nav__quiz::before { content: "◆ "; font-size: 9px; vertical-align: 2px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--pine-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--poppy-ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--pine-text); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .18s ease; }
.link-arrow:hover { color: var(--poppy-ink); } .link-arrow:hover svg { transform: translateX(3px); }
.chip--note { position: absolute; right: 12px; top: 12px; pointer-events: none; background: rgba(21,32,28,.72); color: #f4f4f0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.footer__tag { margin-top: 12px; opacity: .75; max-width: 34ch; }
.footer__contact { margin-top: 14px; font-size: 15px; line-height: 1.7; opacity: .9; }
.card__title h3 a { color: inherit; text-decoration: none; }
.card__title h3 a::after { content: ""; position: absolute; inset: 0; }
.card__title h3 a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- quiz band (home) ---------- */
.quizband { background: var(--ink); color: var(--paper); }
.quizband .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: 48px; }
.quizband__copy { display: grid; gap: 12px; max-width: 640px; }
.quizband h2 { font-size: clamp(26px, 3.2vw, 36px); color: #fff; }
.quizband p:not(.eyebrow) { color: rgba(244,244,240,.78); font-size: 16px; }
.quizband .eyebrow--poppy { color: var(--poppy); }
.quizband .btn--poppy:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- plan page ---------- */
.plan { padding-block: 28px var(--section); display: grid; gap: clamp(40px, 6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; }
.plan__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.plan__gallery { display: grid; gap: 10px; }
.plan__main { position: relative; aspect-ratio: 4 / 3; background: var(--sage); border-radius: var(--radius); overflow: hidden; }
.plan__main img { width: 100%; height: 100%; object-fit: cover; }
.plan__main img.is-plan { object-fit: contain; background: #fff; padding: 16px; }
.plan__main .card__noimg { position: absolute; inset: 0; }
.plan__note { position: absolute; right: 12px; top: 12px; }
.plan__gallery .thumbs { padding: 0; border: 0; background: none; }
.plan__gallery .thumbs button { width: 92px; height: 68px; position: relative; }
.plan__gallery .thumbs button span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: rgba(21,32,28,.72); color: #f4f4f0; padding: 2px 0; text-align: center; }
.plan__caption { font-size: 13px; color: var(--muted); }
.plan__side { display: grid; gap: 18px; align-content: start; position: sticky; top: 92px; }
.plan__side h1 { font-size: clamp(32px, 4vw, 46px); }
.plan__model { color: var(--muted); }
.spec-table__wide { grid-column: 1 / -1; }
.plan__more { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.plan__about { display: grid; gap: 14px; align-content: start; }
.plan__about h2, .plan__quote h2 { font-size: clamp(24px, 3vw, 32px); }
.plan__about > p { color: var(--ink-2); max-width: 52ch; }
.plan__facts { display: grid; gap: 10px; margin-top: 6px; }
.plan__facts li { padding: 12px 0 12px 16px; border-left: 2px solid var(--poppy); font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.plan__facts b { color: var(--ink); }
.plan__quote { display: grid; gap: 14px; padding: 28px; background: var(--sage); border: 1px solid var(--line); border-radius: var(--radius); }
.plan__quote-lede { color: var(--ink-2); max-width: 56ch; }
.plan__quote .form { margin-top: 6px; }
.plan__similar .section__head { margin-bottom: 24px; }

/* ---------- quiz page ---------- */
.quiz { padding-block: clamp(36px, 6vw, 72px) var(--section); max-width: 880px; display: grid; gap: 32px; }
.quiz__head { display: grid; gap: 14px; }
.quiz__head h1 { font-size: clamp(30px, 4.4vw, 48px); }
.quiz__help { color: var(--muted); font-size: 17px; max-width: 60ch; }
.progress { height: 4px; background: var(--sage-2); border-radius: 2px; overflow: hidden; max-width: 320px; }
.progress span { display: block; height: 100%; background: var(--poppy); transition: width .3s ease; }
.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__options--dense { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.opt { display: grid; gap: 4px; text-align: left; padding: 18px 20px; border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.opt:hover { border-color: var(--ink); transform: translateY(-1px); }
.opt[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.opt[aria-checked="true"] .opt__sub { color: rgba(244,244,240,.7); }
.opt__label { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.opt__sub { font-size: 14px; color: var(--muted); }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.quiz__hint { color: var(--muted); font-size: 14px; flex: 1; }
.quiz__skip { font-size: 14px; color: var(--muted); } .quiz__skip a { color: var(--muted); } .quiz__skip a:hover { color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.quiz--results { max-width: var(--max); }
.quiz--results .quiz__head { max-width: 760px; }
.quiz__top .card--rank::before { content: attr(data-rank); position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--poppy); color: #15201c; font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.quiz__top .card--rank { border-color: var(--ink); }
.why { display: grid; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.why li { font-size: 13.5px; color: var(--ink-2); padding-left: 18px; position: relative; }
.why li::before { content: "✓"; position: absolute; left: 0; color: var(--poppy-ink); font-weight: 700; }
.quiz__more { display: grid; gap: 14px; }
.quiz__more h2 { font-size: 22px; }
.ranklist { margin: 0; padding: 0; list-style: none; counter-reset: rank 3; border-top: 1px solid var(--line); }
.ranklist li { counter-increment: rank; border-bottom: 1px solid var(--line); }
.ranklist a { display: grid; grid-template-columns: 32px 1.4fr 1fr auto; gap: 16px; align-items: center; padding: 14px 4px; text-decoration: none; }
.ranklist a::before { content: counter(rank); font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.ranklist a:hover { background: var(--sage); }
.ranklist__name { font-weight: 600; } .ranklist__name .mono { color: var(--muted); margin-left: 6px; }
.ranklist__specs { color: var(--muted); font-size: 14px; }
.ranklist b { font-family: var(--font-display); font-size: 18px; }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .topbar__phone { display: none; }
  .hero__copy { grid-column: 1 / span 6; }
  .hero__media { grid-column: 7 / -1; }
  .picks__row { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .steps::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .pricing__lead { grid-column: 1 / -1; }
  .pricing__cols { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar .wrap { gap: 14px; }
  .topbar__cta { gap: 8px; flex: none; }
  .brand { font-size: 18px; }
  .nav.is-open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .topbar__phone { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__copy, .hero__media { grid-column: 1 / -1; }
  .hero__media { margin-bottom: 0; display: grid; gap: 12px; }
  /* on small screens the placard sits under the photo as a normal block instead of floating over it */
  .placard { position: static; width: auto; max-width: none; box-shadow: none; border: 1px solid var(--line); border-top: 3px solid var(--poppy); padding: 14px 16px 16px; }
  .placard__price { font-size: 28px; }
  .stats { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .stats > div { display: flex; align-items: baseline; gap: 6px; }
  .stats b { font-size: 20px; white-space: nowrap; }
  .catalog__layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
  .filters.is-open { display: grid; }
  .series__brand { grid-template-columns: 1fr; }
  .contact .wrap { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .dialog__inner { grid-template-columns: 1fr; }
  .dialog__body { max-height: none; }
  .dialog { max-height: calc(100vh - 16px); overflow-y: auto; }
  .dialog__gallery { min-height: 0; }
  .pricing__cols { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .plan__more { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .plan__grid { grid-template-columns: 1fr; }
  .plan__side { position: static; }
  .quiz__options { grid-template-columns: 1fr; }
  .quizband .wrap { padding-block: 40px; }
  .ranklist a { grid-template-columns: 24px 1fr auto; grid-template-rows: auto auto; row-gap: 2px; }
  .ranklist a::before { grid-row: 1 / span 2; }
  .ranklist__name, .ranklist__specs { grid-column: 2; }
  .ranklist b { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .picks__row, .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .spec-table { grid-template-columns: 1fr 1fr; }
  .stats b { font-size: 18px; }
  .stats span { font-size: 12px; }
  .placard__price { font-size: 26px; }
  .hero__copy h1 { font-size: 36px; }
  /* phone header: name may wrap to two lines; text button becomes a call button */
  .topbar .wrap { gap: 10px; }
  .brand { font-size: 14px; line-height: 1.1; white-space: normal; max-width: 190px; }
  .brand__mark { width: 26px; height: 26px; }
  .topbar__quote { display: none; }
  .topbar__call { display: inline-flex; }
  .menu-btn { padding: 8px 10px; }
}
