:root {
  --bg: #4d5157;
  --card: #3c3f44;
  --dark: #1f2124;
  --text: #f4f4f2;
  --muted: #d4d6d9;
  --accent: #ff7a1a;
  --accent-dark: #e0640a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 20px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; background: var(--dark); border-bottom: 4px solid var(--accent);
}
.brand { font-weight: 900; font-size: 26px; letter-spacing: 1px; }
.brand span { color: var(--accent); }
.top-btn {
  background: var(--accent); color: #111; font-weight: 800; text-decoration: none;
  padding: 10px 18px; border-radius: 10px; font-size: 19px;
}

main { max-width: 980px; margin: 0 auto; padding: 0 16px 24px; }

.hero { padding-top: 18px; }
.hero img { border-radius: 14px; border: 3px solid var(--dark); }
.hero-text { padding: 18px 2px 4px; }
h1 { font-size: 36px; line-height: 1.15; margin: 0 0 12px; font-weight: 900; }
h2 { font-size: 28px; margin: 0 0 12px; }
.big-line { font-size: 23px; font-weight: 700; color: var(--muted); margin: 0 0 14px; }
.price { font-size: 48px; font-weight: 900; color: var(--accent); margin: 0 0 14px; }
.price small { font-size: 22px; color: var(--muted); font-weight: 600; }

.cta {
  display: inline-block; background: var(--accent); color: #111; border: 0;
  font-size: 23px; font-weight: 900; text-decoration: none; cursor: pointer;
  padding: 16px 28px; border-radius: 12px; font-family: inherit;
}
.cta:active, .top-btn:active { background: var(--accent-dark); }
.cta.wide { width: 100%; text-align: center; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0;
}
.stat {
  background: var(--dark); border-radius: 12px; padding: 14px 6px; text-align: center;
  border-top: 4px solid var(--accent);
}
.stat b { display: block; font-size: 28px; font-weight: 900; }
.stat span { font-size: 18px; color: var(--muted); }

.card { background: var(--card); border-radius: 14px; padding: 22px 18px; margin: 22px 0; }
.plain { margin: 0; padding-left: 22px; }
.plain li { margin-bottom: 10px; }

.pic { margin: 22px 0; }
.pic img { border-radius: 14px; }
.pic figcaption { font-size: 19px; color: var(--muted); padding: 8px 4px 0; }

.note {
  background: var(--dark); border-left: 6px solid var(--accent);
  padding: 12px 14px; border-radius: 8px; font-weight: 700; margin: 0 0 18px;
}
form label { display: block; font-weight: 700; margin-bottom: 16px; }
form input {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 21px;
  padding: 14px; border-radius: 10px; border: 2px solid #8a8e94; background: #f4f4f2; color: #111;
}
form input:focus { outline: 3px solid var(--accent); border-color: var(--accent); }
.qty { display: flex; gap: 10px; align-items: stretch; margin-top: 6px; max-width: 280px; }
.qty input { margin: 0; text-align: center; font-weight: 900; }
.qbtn {
  flex: 0 0 64px; font-size: 32px; font-weight: 900; border: 0; border-radius: 10px;
  background: var(--dark); color: var(--text); cursor: pointer;
}
.total { font-size: 24px; margin: -4px 0 18px; }
.total b { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.err { color: #ffd2b8; font-weight: 800; min-height: 1em; margin: 0 0 10px; }

footer { background: var(--dark); color: var(--muted); padding: 22px 18px 30px; font-size: 18px; }
footer p { max-width: 980px; margin: 0 auto 8px; }

.pop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.pop[hidden] { display: none; }
.pop-box {
  background: var(--card); border-radius: 16px; padding: 26px 20px; max-width: 440px; width: 100%;
  border-top: 6px solid var(--accent);
}

@media (min-width: 800px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
  .compare, .preview { max-width: 760px; }
  h1 { font-size: 46px; }
  .stats { grid-template-columns: repeat(6, 1fr); }
}

/* Hero extras */
.bulk-hint { font-size: 20px; font-weight: 700; margin: -6px 0 16px; }
.hero-text .cta { margin: 0 8px 10px 0; }
.cta.ghost { background: transparent; color: var(--text); border: 3px solid var(--accent); }
.cta.ghost:active { background: var(--dark); }
.cta[disabled] { background: #7a7d82; color: #2a2c2f; cursor: not-allowed; }

/* See them in your garage */
.see { border: 3px solid var(--accent); }
.photo-pick {
  display: block; text-align: center; cursor: pointer; margin: 6px 0 14px;
  border: 3px dashed var(--accent); border-radius: 12px; padding: 22px 12px;
  font-size: 22px; font-weight: 900; background: var(--dark);
}
.photo-pick input { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.preview { border-radius: 12px; margin: 0 0 14px; max-height: 360px; width: 100%; object-fit: cover; }
.step { font-weight: 800; margin: 4px 0 8px; }
.units { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.units button {
  font: inherit; font-size: 26px; font-weight: 900; padding: 12px 0; border-radius: 10px;
  border: 3px solid #8a8e94; background: var(--dark); color: var(--text); cursor: pointer;
}
.units button.on { background: var(--accent); border-color: var(--accent); color: #111; }
.loading { display: flex; gap: 14px; align-items: center; margin: 16px 0 6px; }
.loading[hidden] { display: none; }
.loading p { margin: 0; }
.spin {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  border: 6px solid #6b6f75; border-top-color: var(--accent); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#vizErr { margin-top: 12px; }
.compare { position: relative; margin: 10px 0 6px; border-radius: 12px; overflow: hidden; user-select: none; }
.compare > img { width: 100%; display: block; }
.before-wrap { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.before-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: var(--accent); pointer-events: none; }
.handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #111;
  font-size: 26px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.compare input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.tag {
  position: absolute; top: 10px; background: rgba(0,0,0,.7); color: #fff; font-weight: 800;
  font-size: 17px; padding: 4px 10px; border-radius: 8px; pointer-events: none;
}
.tag-l { left: 10px; } .tag-r { right: 10px; }
.hint { font-size: 18px; color: var(--muted); margin: 0 0 14px; }
#result .cta { margin-bottom: 12px; }

/* In the box */
.box img { border-radius: 12px; margin: 6px 0 10px; max-height: 520px; width: 100%; object-fit: cover; }
.box p { margin: 0; }

/* Bulk */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 18px; }
.tier { background: var(--dark); border-radius: 12px; padding: 12px 6px; text-align: center; border-top: 4px solid #8a8e94; }
.tier b { display: block; font-size: 19px; }
.tier .tp { display: block; font-size: 32px; font-weight: 900; color: var(--accent); }
.tier span:last-child { font-size: 17px; color: var(--muted); }
.tier.best { border-top-color: var(--accent); }
#each { font-size: 19px; color: var(--muted); }
.eyebrow { display: inline-block; background: var(--dark); color: var(--accent); font-weight: 900; font-size: 18px; padding: 6px 12px; border-radius: 8px; margin: 0 0 12px; }
.why p { margin: 0 0 12px; }
.brand { color: var(--text); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav a:not(.top-btn) { color: var(--text); font-weight: 800; font-size: 19px; text-decoration: underline; text-underline-offset: 4px; }
a { color: #ffb27a; }

/* Blog */
.post { max-width: 760px; margin: 0 auto; }
.post h1 { font-size: 34px; margin: 22px 0 8px; }
.post .meta { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
.post h2 { font-size: 26px; margin: 26px 0 8px; }
.post p, .post li { font-size: 20px; }
.post figure { margin: 18px 0; }
.post figure img { border-radius: 12px; width: 100%; max-height: 560px; object-fit: cover; }
.post figcaption { font-size: 18px; color: var(--muted); padding-top: 6px; }
.time-box { background: var(--dark); border-left: 6px solid var(--accent); border-radius: 8px; padding: 12px 16px; font-weight: 800; margin: 16px 0; }
.post-end { background: var(--card); border-radius: 14px; padding: 20px 18px; margin: 28px 0; }
.post-end .cta { display: block; text-align: center; margin-top: 12px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { background: var(--card); border-radius: 12px; margin: 0 0 14px; }
.post-list a { display: block; padding: 18px 16px; color: var(--text); text-decoration: none; }
.post-list b { display: block; font-size: 23px; color: var(--accent); margin-bottom: 4px; }
.post-list span { font-size: 19px; color: var(--muted); }
.wedge { background: var(--dark); border-left: 6px solid var(--accent); border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.wedge b { font-size: 23px; color: var(--accent); }
.wedge p { margin: 6px 0 0; }
