:root {
  --bg: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1b1c1e;
  --ink-2: #4a4d52;
  --muted: #6b6f75;
  --line: #e2ddd2;
  --accent: #f2b705;
  --accent-ink: #1b1c1e;
  --accent-deep: #8a6700;
  --dark: #151618;
  --ok: #1f7a3d;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 24px rgba(20, 20, 20, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214;
    --surface: #1a1b1e;
    --surface-2: #202125;
    --ink: #eceae6;
    --ink-2: #c4c2bd;
    --muted: #9b9a96;
    --line: #2d2f33;
    --accent-deep: #f2c94c;
    --ok: #4cc27a;
    --err: #ff7b6e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111214; --surface: #1a1b1e; --surface-2: #202125; --ink: #eceae6; --ink-2: #c4c2bd;
  --muted: #9b9a96; --line: #2d2f33; --accent-deep: #f2c94c; --ok: #4cc27a; --err: #ff7b6e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 76px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: 14px; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 12px; }
a { color: var(--accent-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--dark) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  color: #f3f1ec;
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.tb-title { display: flex; flex-direction: column; min-width: 0; }
.tb-kicker { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; text-decoration: none; }
.topbar .tb-cta { display: none; }
@media (min-width: 900px) { .topbar .tb-cta { display: inline-flex; } }
.tb-name { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .08s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Listing: gallery + summary */
.listing { display: grid; gap: 20px; padding-top: 16px; padding-bottom: 8px; }
@media (min-width: 900px) {
  .listing { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); align-items: start; gap: 28px; padding-top: 24px; }
  .summary { position: sticky; top: 76px; }
}

.gallery { min-width: 0; margin: 0 -16px; }
@media (min-width: 700px) { .gallery { margin: 0; } }
.viewer { position: relative; background: #0d0e0f; aspect-ratio: 4 / 3; overflow: hidden; }
@media (min-width: 700px) { .viewer { border-radius: var(--radius); } }
.track {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(15, 16, 17, .55); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 4px;
}
.nav:hover { background: rgba(15, 16, 17, .8); }
.prev { left: 10px; } .next { right: 10px; }
.expand {
  position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: rgba(15, 16, 17, .55); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.counter {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(15, 16, 17, .65); color: #fff; font-size: .8rem; font-variant-numeric: tabular-nums;
}
.thumbs {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 4px; scrollbar-width: thin;
}
@media (min-width: 700px) { .thumbs { padding: 10px 0 4px; } }
.thumbs button {
  flex: 0 0 auto; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; background: #0d0e0f; cursor: pointer; opacity: .7;
}
.thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 6px; }
.summary h1 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
.summary h1 span { display: block; color: var(--ink-2); font-weight: 700; margin-top: 4px; }
.subline { color: var(--muted); margin: 8px 0 14px; font-size: .95rem; }
.price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.price-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.price-value { font-size: 1.55rem; font-weight: 800; }
.price-stack { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.price-sub { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0; }
.chips li {
  font-size: .82rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--ink);
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0 0 16px; }
.facts div { min-width: 0; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.cta-stack { display: grid; gap: 8px; }
.fine { font-size: .85rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* Bands */
.band { padding-top: 36px; padding-bottom: 8px; }
@media (min-width: 900px) { .band { padding-top: 52px; } }
.lead { font-size: 1.08rem; color: var(--ink); max-width: 72ch; }
.pitch p { max-width: 72ch; color: var(--ink-2); }
.pitch .lead { color: var(--ink); }
.note { color: var(--muted); font-size: .92rem; max-width: 72ch; }
.reasons { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(4, 1fr); } }
.reason { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; border-top: 4px solid var(--accent); }
.reason h3 { margin-bottom: 6px; }
.reason p { color: var(--ink-2); margin: 0; font-size: .95rem; }

.spec-table {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: grid;
}
@media (min-width: 800px) { .spec-table { grid-template-columns: 1fr 1fr; } }
.spec-table div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
@media (max-width: 420px) { .spec-table div { grid-template-columns: 1fr; gap: 2px; } }
.spec-table dt { color: var(--muted); font-weight: 700; font-size: .9rem; }
.spec-table dd { margin: 0; font-weight: 600; }

.feature-grid { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.fcard h3 { margin-bottom: 10px; }
.fcard ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.fcard li { position: relative; padding-left: 22px; color: var(--ink-2); }
.fcard li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent);
}
@media (min-width: 720px) { .fcard-wide { grid-column: 1 / -1; } .cols { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
@media (min-width: 1000px) { .cols { grid-template-columns: 1fr 1fr 1fr; } }
.fcard .note { margin: 14px 0 0; }

.warranty { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0 10px; }
.warranty table { width: 100%; border-collapse: collapse; min-width: 520px; }
.warranty th, .warranty td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.warranty thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
.warranty tbody th { font-weight: 700; }
.warranty tbody tr:last-child th, .warranty tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .warranty table { min-width: 0; }
  .warranty thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .warranty tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .warranty tbody tr:last-child { border-bottom: 0; }
  .warranty th, .warranty td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border: 0; }
  .warranty tbody th { display: block; margin-bottom: 4px; }
  .warranty td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; flex: 0 0 auto; }
  .warranty td { text-align: right; }
}

.video-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
@media (min-width: 720px) { .video-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.vcard { margin: 0; scroll-snap-align: start; }
.vcard video { width: 100%; aspect-ratio: 9 / 16; height: auto; background: #0d0e0f; border-radius: var(--radius); object-fit: cover; }
.vcard figcaption { font-weight: 700; margin-top: 8px; font-size: .95rem; }

.gtk { display: grid; gap: 12px; }
@media (min-width: 720px) { .gtk { grid-template-columns: 1fr 1fr; } }
.gtk > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.gtk h3 { margin-bottom: 6px; }
.gtk p { margin: 0; color: var(--ink-2); }

#faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; max-width: 860px; }
#faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent-deep); }
#faq details[open] summary::after { content: "\2212"; }
#faq details p { padding: 0 16px 14px; margin: 0; color: var(--ink-2); }

/* Offer */
.offer { padding-bottom: 48px; }
.offer-in {
  display: grid; gap: 22px; background: var(--dark); color: #f3f1ec; border-radius: var(--radius);
  padding: 22px 16px; margin: 0 -16px;
}
@media (min-width: 700px) { .offer-in { margin: 0; padding: 32px; } }
@media (min-width: 900px) { .offer-in { grid-template-columns: 1fr 1.15fr; align-items: start; gap: 36px; } }
.offer-copy h2 { color: #fff; }
.offer-copy .lead { color: #e7e4de; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: #d6d3cc; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.offer-form { background: var(--surface); color: var(--ink); border-radius: 12px; padding: 18px; display: grid; gap: 12px; }
.kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kinds label { position: relative; }
.kinds input { position: absolute; opacity: 0; inset: 0; }
.kinds span {
  display: grid; place-items: center; text-align: center; min-height: 44px; padding: 6px 4px; border-radius: 10px;
  border: 1px solid var(--line); font-weight: 700; font-size: .86rem; cursor: pointer; background: var(--surface-2);
}
.kinds input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kinds input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-weight: 700; font-size: .9rem; }
.opt { color: var(--muted); font-weight: 500; }
.row2 { display: grid; gap: 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { resize: vertical; min-height: 104px; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.money input { padding-left: 26px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.sent { text-align: center; padding: 24px 8px; }
.sent h3 { font-size: 1.3rem; margin-bottom: 8px; }

.footer { padding: 24px 0 28px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.footer p { max-width: 80ch; margin: 0 0 6px; }
.footer .brand { color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: .02em; }

/* Roam Rigs home */
.home-hero { background: var(--dark); color: #f3f1ec; padding: 56px 0 44px; }
.home-hero h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem); color: #fff; }
.home-hero p { color: #d6d3cc; max-width: 60ch; margin-top: 10px; }
.rig-grid { display: grid; gap: 16px; padding: 28px 0 48px; }
@media (min-width: 720px) { .rig-grid { grid-template-columns: repeat(2, 1fr); } }
.rig-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.rig-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.rig-card div { padding: 16px; }
.rig-card h2 { font-size: 1.2rem; margin: 0 0 6px; }
.rig-card p { margin: 0; color: var(--muted); }
.rig-card .tag { display: inline-block; margin-bottom: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--dark); color: #f3f1ec; box-shadow: 0 -6px 20px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}
.mobile-cta.hide { transform: translateY(110%); }
.mobile-cta .m-label { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #b9b6af; font-weight: 700; }
.mobile-cta .m-value { font-weight: 800; font-size: 1.1rem; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: #000; color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; }
.lb-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.lb-counter { bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body.home { padding-bottom: 0; }

/* Legal pages */
.legal-head { background: var(--dark); padding: 16px 0; }
.legal-brand { color: var(--accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; text-decoration: none; }
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.legal-date { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.legal-links { margin-top: 32px; font-weight: 600; }
.footer a { color: var(--ink-2); }
.consent { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }
.consent a { color: inherit; }
