:root {
  /* Matches the Range Roulette app (zinc + orange) */
  --bg: #0b0c10;
  --panel: #18181b;
  --border: #3f3f46;
  --text: #f3f4f6;
  --muted: #a1a1aa;
  --accent: #fb923c;
  --btn: #ea580c;
  --btn-hover: #f97316;
  --red: #dc2626;
  --radius: 10px;
  --wrap: 1100px;
  --font: system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }

h1, h2, h3, .brand, .btn {
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.02; margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .3em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  border-bottom: 1px solid rgba(124, 45, 18, .5);
  background: rgba(0, 0, 0, .92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { color: var(--text); text-decoration: none; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { height: 40px; width: auto; }
nav { display: flex; gap: 20px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.badge {
  background: var(--btn); color: #fff; border-radius: 99px;
  font-size: .75rem; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center;
}
.badge[data-count="0"] { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn); color: #fff; border: 0; border-radius: var(--radius);
  padding: 14px 26px; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform .1s, background .2s;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .actions { justify-content: center; }
.spread { max-width: 1200px; margin: 44px auto 0; padding: 0 16px; }
.spread img { width: 100%; height: auto; }
@media (max-width: 640px) {
  /* Phones: show the cards bigger and let people swipe across them */
  .spread { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .spread::-webkit-scrollbar { display: none; }
  .spread img { width: 680px; max-width: none; }
}
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin: 0 0 12px; }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 34em; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-logo { width: min(260px, 70%); margin: 0 0 18px; }
.card-art { clip-path: inset(2.4% 3.4% round 6% / 4.2%); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 8px 0 8px 26px; border-bottom: 1px solid var(--border); position: relative; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; background: var(--btn); transform: rotate(45deg); }
.app-promo { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.app-promo img { width: 168px; border-radius: 36px; border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.lead-sm { color: var(--muted); font-size: 1.05rem; max-width: 38em; margin: 0 0 24px; }
.hint { color: var(--muted); font-size: .88rem; margin: 14px 0 0; }
@media (max-width: 820px) { .app-promo { grid-template-columns: 1fr; } .app-promo img { order: -1; width: 112px; border-radius: 24px; } }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-card p { color: var(--muted); margin: 0 0 6px; }
.contact-card .btn { font-size: .95rem; max-width: 100%; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand strong { display: block; color: var(--text); text-transform: uppercase; letter-spacing: .03em; }

/* Sections */
section { padding: 56px 0; scroll-margin-top: 64px; }
section.alt { background: var(--panel); border-block: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.step .num { font-weight: 800; color: var(--btn); font-size: 2rem; line-height: 1; }
.step p { color: var(--muted); margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* Products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .img {
  aspect-ratio: 4 / 3; background: #111114; display: grid; place-items: center; position: relative;
}
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .img svg { width: 38%; opacity: .5; }
.card .img img.card-art { width: auto; height: 88%; object-fit: contain; }
.card .tag {
  position: absolute; top: 12px; left: 12px; background: var(--btn); color: #fff;
  font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 4px;
}
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; flex: 1; }
.price { font-weight: 800; font-size: 1.4rem; color: var(--text); }
.buy-row { display: flex; gap: 10px; align-items: center; }
.buy-row .btn { flex: 1; padding: 11px 12px; font-size: .9rem; white-space: nowrap; }

/* Qty stepper */
.qty { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty button { background: transparent; color: var(--text); border: 0; width: 34px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.qty button:hover { background: #27272a; }
.qty input { width: 38px; text-align: center; background: transparent; color: var(--text); border: 0; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; padding: 40px 0 64px; }
.line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.line .thumb { width: 64px; height: 64px; border-radius: 8px; background: #111114; display: grid; place-items: center; overflow: hidden; }
.line .thumb svg { width: 50%; opacity: .5; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .thumb img.card-art { object-fit: contain; height: 92%; }
.line .meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.line .controls { display: flex; gap: 14px; align-items: center; }
.line .total { font-weight: 800; font-size: 1.15rem; text-align: right; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 0; }
.link-btn:hover { color: var(--btn); }
.summary { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; }
.summary .row { display: flex; justify-content: space-between; margin: 8px 0; color: var(--muted); }
.summary .row.total { color: var(--text); font-weight: 800; font-size: 1.4rem; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.summary .note { color: var(--muted); font-size: .85rem; margin: 14px 0 0; text-align: center; }
.error { color: #ff8a6a; font-size: .92rem; margin: 12px 0 0; }
.empty { text-align: center; padding: 64px 0; color: var(--muted); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--radius);
  font-weight: 600; transition: transform .25s; z-index: 20; display: flex; gap: 14px; align-items: center;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--btn); white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

.page-title { padding-top: 48px; padding-bottom: 8px; }
.page-title p { color: var(--muted); margin: 0; }

@media (max-width: 820px) {
  .hero { padding: 40px 0; }
  .checkout { grid-template-columns: 1fr; }
  .spread { margin-top: 32px; }
  .steps, .split { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 520px) {
  nav { gap: 14px; }
  nav .hide-sm { display: none; }
  .brand { font-size: 1.05rem; }
  .line { grid-template-columns: 52px 1fr; }
  .line .thumb { width: 52px; height: 52px; }
  .line .total { grid-column: 2; text-align: left; }
}
