:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #eceae4;
  --ink: #1d2124;
  --ink-2: #4a5157;
  --muted: #6c737a;
  --line: #d9d6ce;
  --accent: #c8501e;
  --accent-ink: #ffffff;
  --steel: #8e9aa3;
  --dark: #1f2529;
  --dark-ink: #e9ecee;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131618; --surface: #1b1f22; --surface-2: #23282c; --ink: #e8eaec; --ink-2: #c3c8cc;
    --muted: #8f979e; --line: #30363b; --accent: #e2672f; --dark: #0d0f11; --dark-ink: #e8eaec;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #131618; --surface: #1b1f22; --surface-2: #23282c; --ink: #e8eaec; --ink-2: #c3c8cc;
  --muted: #8f979e; --line: #30363b; --accent: #e2672f; --dark: #0d0f11; --dark-ink: #e8eaec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Barlow Condensed", Inter, sans-serif; letter-spacing: .01em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 16px; }
.wrap.section { padding-left: 16px; padding-right: 16px; }
.section-head { margin-bottom: 28px; max-width: 640px; }
.section-head p { color: var(--ink-2); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 700 15px/1 "Barlow Condensed", sans-serif; }
.brand-text { font-weight: 500; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-small { padding: 7px 14px; font-size: .9rem; background: var(--ink); color: var(--bg); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.thumb { padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--ink-2); }
.thumb.is-active { border-color: var(--accent); }
.render-note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.lede { color: var(--ink-2); font-size: 1.06rem; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price { font: 700 2.1rem/1 "Barlow Condensed", sans-serif; }
.stock { color: var(--muted); font-size: .92rem; }
.options { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.options legend { font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); }
.opt input { margin-top: 4px; accent-color: var(--accent); }
.opt span { display: grid; gap: 2px; }
.opt small { color: var(--muted); font-size: .85rem; }
.opt em { font-style: normal; color: var(--ink); font-weight: 600; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-row .btn-primary { flex: 1 1 200px; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.trust li { padding-left: 22px; position: relative; }
.trust li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* bands */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--dark); color: var(--dark-ink); border: 0; }
.band-dark .section-head p, .band-dark .note { color: color-mix(in srgb, var(--dark-ink) 70%, transparent); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feature { padding: 32px 24px; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; }
.feature .num { display: block; font: 700 2.4rem/1 "Barlow Condensed", sans-serif; color: var(--accent); margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: .94rem; margin: 0; }

/* specs */
.spec-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.specs th, .specs td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 34%; color: var(--muted); font-weight: 500; }
.fit-card { background: var(--surface-2); border-radius: var(--radius); padding: 24px; }
.fit-dims { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font: 700 2rem/1 "Barlow Condensed", sans-serif; }
.fit-dims i { color: var(--muted); font-style: normal; font-size: 1.4rem; }

/* drawings */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 17 / 11; object-fit: contain; background: #fff; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { padding: 12px 16px; font-size: .9rem; color: #4a5157; border-top: 1px solid #e3e1db; background: #fafaf8; }

/* install */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px 20px; display: grid; gap: 6px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 1.6rem/1 "Barlow Condensed", sans-serif; color: var(--accent); }
.steps b { font-size: 1.05rem; }
.steps span { font-size: .92rem; color: color-mix(in srgb, var(--dark-ink) 75%, transparent); }
.note { font-size: .9rem; margin: 0; }

/* cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--ink-2); margin: 0; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* quote */
.quote-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.quote-grid > div p { color: var(--ink-2); }
.contact-line a { font-weight: 600; color: var(--ink); }
.quote-form { display: grid; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.quote-form input, .quote-form textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--accent); }
.form-msg { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-msg.ok { color: #2f7d4a; }
.form-msg.err { color: #b3261e; }

/* footer */
.site-footer { padding: 28px 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); }

/* responsive */
@media (max-width: 960px) {
  .hero, .spec-layout, .quote-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .brand-text { font-size: .95rem; }
  .gallery, .grid-2, .field-row, .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: 0; }
  .section { padding: 44px 16px; }
  .hero { padding-top: 20px; }
  .specs th { width: 40%; }
}

/* finish swatches */
.finish-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 640px) { .finish-row { grid-template-columns: 1fr 1fr; } }
.swatch-opt { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; text-align: center; }
.swatch-opt:has(input:checked) { border-color: var(--accent); }
.swatch-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch-opt input { position: absolute; opacity: 0; pointer-events: none; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 -6px 10px rgba(0,0,0,.18), inset 0 6px 10px rgba(255,255,255,.18); }
.sw-bare { background: linear-gradient(135deg, #6d655b 0%, #4f4943 55%, #6a6359 100%); }
.sw-painted { background: #7d8790; }
.sw-powder { background: #2b2f33; }
.sw-galv { background: linear-gradient(135deg, #d5dade 0%, #a9b2b8 45%, #c9cfd3 60%, #9aa3a9 100%); }
.swatch-label { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.swatch-opt small { color: var(--muted); font-size: .78rem; min-height: 1em; }

/* included + shipping boxes */
.included, .ship-est { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 14px 16px; margin: 0 0 14px; }
.included h4, .ship-est h4 { margin: 0 0 8px; font-size: .95rem; }
.ship-est h4 small { color: var(--muted); font-weight: 400; }
.included ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .88rem; display: grid; gap: 4px; }
.ship-est dl { margin: 0 0 8px; display: grid; gap: 6px; }
.ship-est dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.ship-est dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.ship-est dt { color: var(--ink-2); }
.ship-est dd { margin: 0; font-weight: 600; white-space: nowrap; }
.ship-est p { margin: 0; font-size: .82rem; color: var(--muted); }
.options + .included { margin-top: 4px; }
.zip-field { display: grid; gap: 4px; font-size: .82rem; color: var(--ink-2); margin-bottom: 6px; }
.zip-field input { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; max-width: 180px; }
.zip-field input:focus { outline: none; border-color: var(--accent); }
.zip-result { margin: 0 0 8px !important; font-size: .85rem !important; color: var(--ink-2) !important; }

/* add-on */

/* Earth anchor kit: separate product */
.addon-link { margin: -4px 0 14px; font-size: .88rem; color: var(--ink-2); }
.kit-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 24px; }
.kit-body { flex: 1 1 360px; }
.kit-body h2 { margin: 4px 0 8px; }
.kit-body p { margin: 0 0 8px; }
.kit-buy { display: grid; gap: 10px; justify-items: start; }
.kit-price { font-size: 1.8rem; font-weight: 700; }
.quote-form .check { display: flex; align-items: center; gap: 8px; flex-direction: row; }
.quote-form .check input { width: 16px; height: 16px; accent-color: var(--accent); }
