:root {
  --ink: #0A0A0A;
  --text: #1A1A1A;
  --muted: #555555;
  --line: #E0E0E0;
  --paper: #F5F5F5;
  --violet: #5B21B6;
  --violet-soft: #F5F3FF;
  --lime: #D4FF3A;
  --error: #B00020;
  --on-dark-muted: #C8C8C8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #FFFFFF;
  line-height: 1.5;
}
[hidden] { display: none !important; }
a { color: var(--violet); }
a:hover { color: #3B0F8C; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
h1:focus, main:focus, pre:focus-visible { outline: none; }
.skip {
  position: absolute; left: 12px; top: -60px; background: var(--ink); color: #FFFFFF;
  padding: 12px 16px; border-radius: 8px; z-index: 10; font-weight: 700;
}
.skip:focus { top: 12px; color: #FFFFFF; }
.preview-bar {
  margin: 0; background: var(--violet); color: #FFFFFF; text-align: center;
  font-size: 14px; font-weight: 700; padding: 8px 16px;
}
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 40px; border-bottom: 1px solid var(--line);
}
.logo-wrap { background: var(--ink); border-radius: 10px; padding: 6px 12px; display: flex; }
.logo-wrap img { height: 40px; width: auto; display: block; }
.phone { font-weight: 800; font-size: 15px; }

.layout { max-width: 1240px; margin: 0 auto; padding: 56px 40px 80px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.col-main { min-width: 0; }
.narrow { max-width: 680px; margin: 0 auto; padding: 56px 24px 80px; }

h1 { margin: 0 0 12px; font-size: clamp(36px, 6vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.lead { margin: 0 0 28px; font-size: 18px; color: var(--muted); max-width: 600px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.fine { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.muted-on-dark { color: var(--on-dark-muted); }
.optional { font-weight: 500; color: var(--muted); }

/* brand tabs */
.brand-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab {
  font: inherit; font-size: 15px; font-weight: 700; min-height: 48px; padding: 12px 20px;
  border-radius: 999px; border: 0; background: var(--paper); color: var(--text); cursor: pointer;
}
.tab[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; font-weight: 800; }
.brand-blurb { margin: 0 0 8px; color: var(--muted); font-size: 15px; min-height: 22px; }

/* product rows */
.group-title { margin: 28px 0 0; padding-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); border-bottom: 2px solid var(--ink); }
.product { display: flex; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.product-img { width: 88px; height: 88px; flex: none; object-fit: contain; }
.product-img.none { background: var(--paper); border-radius: 8px; }
.product-body { flex: 1 1 220px; min-width: 0; }
.product-body h3 { margin: 0 0 2px; font-size: 18px; font-weight: 800; }
.product-body p { margin: 0; font-size: 14px; color: var(--muted); }
.product-note { font-weight: 700; color: var(--text) !important; }
.product-price { font-size: 16px; font-weight: 700; min-width: 96px; text-align: right; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--text); border-radius: 999px; }
.stepper button { font: inherit; font-size: 22px; font-weight: 700; width: 48px; height: 48px; border: 0; background: none; color: var(--text); cursor: pointer; border-radius: 999px; }
.stepper button:disabled { color: #9A9A9A; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-size: 16px; font-weight: 800; }
.btn-add { font: inherit; font-size: 15px; font-weight: 800; min-height: 48px; min-width: 124px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--text); background: #FFFFFF; color: var(--text); cursor: pointer; }

#video-panel { margin-top: 28px; padding: 28px; background: var(--violet-soft); border-radius: 24px; }

/* summary panel */
.summary { min-width: 0; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.summary-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.summary-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; }
.sl-name { overflow-wrap: anywhere; }
.sl-price { font-weight: 700; white-space: nowrap; }
.btn-remove { font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--violet); text-decoration: underline; cursor: pointer; }
.summary-empty { margin: 0; color: var(--on-dark-muted); font-size: 15px; }
.summary-total { border-top: 1px solid #3A3A3A; padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.big-total { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }

/* buttons */
.btn { font: inherit; font-size: 16px; font-weight: 800; min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-outline-light { background: transparent; color: #FFFFFF; border: 1.5px solid #FFFFFF; }
.btn-link { background: none; color: var(--violet); text-decoration: underline; padding-left: 8px; padding-right: 8px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label, legend { font-size: 15px; font-weight: 800; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"] {
  font: inherit; font-size: 16px; min-height: 52px; padding: 14px 16px; border: 1px solid #767676; border-radius: 12px; width: 100%; background: #FFFFFF; color: var(--text);
}
input[aria-invalid="true"] { border: 2px solid var(--error); }
.error { margin: 0; color: var(--error); font-size: 14px; font-weight: 700; min-height: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--violet); }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { padding: 0; margin-bottom: 12px; }
.choice { display: flex; gap: 14px; align-items: center; min-height: 64px; padding: 16px 20px; border: 1px solid #767676; border-radius: 16px; margin-bottom: 12px; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--violet); background: var(--violet-soft); }
.choice input { width: 22px; height: 22px; accent-color: var(--violet); flex: none; }
.choice-body { flex: 1; display: flex; flex-direction: column; }
.choice-body span { font-size: 14px; color: var(--muted); }
.choice-price { font-weight: 800; }
.pay-total { font-size: 18px; margin: 0 0 16px; }
.pay-total strong { font-size: 32px; font-weight: 800; }
.pay-total span { color: var(--muted); font-size: 15px; }
.notice { margin-top: 24px; padding: 20px 24px; border-radius: 16px; background: var(--violet-soft); font-size: 15px; }

.facts dt { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 14px; }
.facts { display: grid; gap: 12px; margin: 0; }

.next { padding-left: 22px; font-size: 16px; display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 40px; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 1039px) {
  html { scroll-padding-bottom: 96px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 120px; }
  .layout-plain { padding-bottom: 80px; }
  .summary { position: static; max-height: none; overflow: visible; }
  .mobile-bar { display: flex; }
}
@media (max-width: 720px) {
  .site-header, .layout, .site-footer { padding-left: 20px; padding-right: 20px; }
  .layout { padding-top: 36px; }
  .summary { padding: 20px; }
  .product-price { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .tab, .btn-add { transition: transform 0.08s ease; }
  .btn:active, .tab:active, .btn-add:active { transform: scale(0.98); }
}

/* search and collapsible sections */
.search-row { margin-bottom: 20px; }
.search-label { display: block; font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.search-box { display: flex; gap: 8px; }
.search-box input { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; }
.btn-clear { font: inherit; font-size: 15px; font-weight: 700; min-height: 52px; padding: 0 20px; border-radius: 12px; border: 1px solid #767676; background: #FFFFFF; color: var(--text); cursor: pointer; }
.search-status { margin: 8px 0 0; font-size: 14px; color: var(--muted); min-height: 21px; }
.no-results { font-size: 16px; padding: 24px 0; }
details.group { border-bottom: 2px solid var(--ink); }
details.group:first-of-type { border-top: 2px solid var(--ink); }
details.group > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; cursor: pointer; list-style: none; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::after { content: "+"; font-size: 26px; font-weight: 700; width: 32px; text-align: center; flex: none; }
details.group[open] > summary::after { content: "\2212"; }
.group-name { font-size: 20px; font-weight: 800; flex: 1; }
.group-count { font-size: 14px; color: var(--muted); }
details.group .product:last-child { border-bottom: 0; }
details.group[open] > summary { border-bottom: 1px solid var(--line); }

/* private link and helpers */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.link-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link-row input { flex: 1 1 280px; min-width: 0; }
.error.on-dark { color: #FFB4B4; }

/* light summary panel (replaces the black box) */
.summary { background: var(--paper); color: var(--text); border: 1px solid var(--line); }
.summary .eyebrow { color: var(--violet); }
.summary :focus-visible { outline-color: var(--violet); }
.summary-total { border-top: 1px solid #C8C8C8; }
.summary-empty { color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.save-status { margin: 0; font-size: 14px; color: var(--muted); min-height: 21px; }
.start-box { border: 2px solid var(--ink); border-radius: 24px; padding: 28px; margin-bottom: 28px; }
.started-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--violet-soft); border-radius: 16px; padding: 12px 20px; margin-bottom: 24px; }
.started-bar p { margin: 0; font-weight: 700; }

/* address and freight */
.addr-form .actions { margin-top: 0; }
.addr-form select { font: inherit; font-size: 16px; min-height: 52px; padding: 12px 16px; border: 1px solid #767676; border-radius: 12px; width: 100%; background: #FFFFFF; color: var(--text); }
.addr-form select[aria-invalid="true"] { border: 2px solid var(--error); }
.addr-status { margin: 0; font-size: 14px; color: var(--muted); min-height: 21px; }

/* one-page quote panel */
.summary-note { margin: 0; font-size: 14px; color: var(--muted); }
.summary-actions { display: flex; flex-direction: column; gap: 10px; }
.summary-actions .btn { width: 100%; }
.panel-status { margin: 0; font-size: 14px; color: var(--muted); }
.panel-status:empty, .summary .error:empty, .save-status:empty { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); }
.panel-box { border-top: 1px solid #C8C8C8; }
.panel-box > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; cursor: pointer; list-style: none; }
.panel-box > summary::-webkit-details-marker { display: none; }
.panel-box > summary::after { content: "+"; font-size: 22px; font-weight: 700; width: 24px; text-align: center; flex: none; }
.panel-box[open] > summary::after { content: "\2212"; }
.panel-box > p { margin: 0 0 12px; }
.panel-box .btn { width: 100%; }
.panel-box .panel-status { margin: 10px 0 12px; }
.panel-box .link-row { margin-bottom: 12px; }
.back-top { display: inline-block; min-height: 44px; padding: 8px 0; margin-bottom: 8px; }
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08); }
.mobile-bar p { margin: 0; font-weight: 800; font-size: 15px; }
.mobile-bar .btn { min-height: 48px; padding: 10px 22px; flex: none; }
.summary > * { flex-shrink: 0; }
.addr-form .addr-status:not(:empty) { margin: 8px 0 12px; }
.addr-form .actions { margin-bottom: 12px; }
@media (max-width: 1039px) { .mobile-bar { display: flex; } }
.product-body h3 { overflow-wrap: anywhere; }
