/* the decal zone — one stylesheet, no build step, no framework tax */

:root {
  --bg:      #0d1117;
  --bg-2:    #151b24;
  --card:    #1a212c;
  --line:    #26303d;
  --ink:     #e8edf4;
  --ink-dim: #9aa8bb;
  --accent:  #ff5c2b;   /* traffic-cone orange, reads as "sticker shop" */
  --accent-2:#25d0a4;
  --radius:  14px;
  --shadow:  0 8px 30px rgba(0,0,0,.45);
  --maxw:    1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── the promise bar ─────────────────────────────────────────────────── */
.tickerbar {
  background: linear-gradient(90deg, var(--accent), #ff8a3d);
  color: #1a0d05;
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.ticker-inner b { font-weight: 800; }
.dot { opacity: .5; }
/* narrow screens drop the trailing detail rather than scrolling it past —
   a marquee you have to wait on is worse than a shorter sentence */
@media (max-width: 900px) {
  .tickerbar { white-space: normal; }
  .ticker-inner { gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
  .tk-long { display: none; }
}
@media (max-width: 620px) {
  .tk-mid { display: none; }
}

/* ── header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(13,17,23,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.brand b { display: block; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brand small { display: block; color: var(--ink-dim); font-size: 11.5px; white-space: nowrap; }
/* the location line is a nice-to-have; it's in the footer too */
@media (max-width: 430px) {
  .brand small { display: none; }
  .brand b { font-size: 15px; }
  .site-header { padding: 10px 14px; }
}
.header-actions { display: flex; align-items: center; gap: 8px; }

.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 10px;
  font: inherit; font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.ghost-btn:hover { border-color: var(--accent); }

.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: #170a03;
  border: 0; border-radius: 10px;
  padding: 10px 15px;
  font: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer;
}
.cart-btn svg { fill: currentColor; }
.pill {
  background: rgba(0,0,0,.25);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 12px;
  min-width: 22px; text-align: center;
}

.btn {
  display: inline-block;
  background: var(--accent); color: #170a03;
  border: 0; border-radius: 11px;
  padding: 13px 22px;
  font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.wide { width: 100%; text-align: center; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; }
.hl {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--ink-dim); font-size: 17px; max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.hero-note { color: var(--ink-dim); font-size: 14px; }
.hero-note b { color: var(--ink); }
/* three decals fanned out like they just got peeled off a sheet */
.hero-art {
  aspect-ratio: 4/3;
  position: relative;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,92,43,.30), transparent 62%),
    radial-gradient(circle at 72% 74%, rgba(37,208,164,.24), transparent 62%),
    var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
/* rotation grows the bounding box, so these are inset further than they look
   like they need to be — at 44% wide and 8deg that's ~3% of slop a side */
.hero-art img {
  position: absolute;
  width: 44%;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.55));
}
.hero-art img:nth-child(1) { left: 4%;   top: 4%;    transform: rotate(-8deg); }
.hero-art img:nth-child(2) { right: 4%;  top: 8%;    transform: rotate(8deg); }
.hero-art img:nth-child(3) { left: 29%;  bottom: 3%; transform: rotate(3deg); width: 40%; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .hero-art { display: none; }
}

/* ── shop ────────────────────────────────────────────────────────────── */
.shop { max-width: var(--maxw); margin: 0 auto; padding: 10px 20px 60px; }
.shop-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.shop h2 { font-size: 26px; margin: 0; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filters button {
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 8px 14px; border-radius: 20px;
  font: inherit; font-size: 13.5px; cursor: pointer;
}
.filters button[aria-selected="true"] {
  background: var(--accent); border-color: var(--accent);
  color: #170a03; font-weight: 700;
}

.grid {
  display: grid;
  /* 150px floor so phones get two across — stickers browse better in pairs */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
.loading { color: var(--ink-dim); padding: 40px 0; grid-column: 1/-1; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  text-align: left; padding: 0; color: inherit;
  font: inherit;
  transition: transform .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.card-img {
  aspect-ratio: 1;
  /* decals are cut out on transparency, so they sit straight on the card —
     the faint glow just stops dark artwork disappearing into the background */
  background: radial-gradient(circle at 50% 45%, #232c3a, var(--card) 70%);
  display: grid; place-items: center;
  padding: 12px;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; }

.card-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-title { font-weight: 700; font-size: 14.5px; }
.card-dims { color: var(--ink-dim); font-size: 12.5px; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 8px;
}
.card-price { font-weight: 800; font-size: 16px; }
.card-fin { color: var(--ink-dim); font-size: 11.5px; }
.sku {
  display: inline-block;
  font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 5px;
  align-self: flex-start;
}

/* ── faq ─────────────────────────────────────────────────────────────── */
.faq { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 70px; }
.faq h2 { font-size: 24px; margin-bottom: 18px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.faq-grid h3 { font-size: 15px; color: var(--accent); margin-bottom: 4px; }
.faq-grid p { color: var(--ink-dim); font-size: 14px; margin: 0; }

/* ── footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  max-width: var(--maxw); margin: 0 auto;
  font-size: 14px; color: var(--ink-dim);
}
.site-footer b { color: var(--ink); }
.site-footer a { color: var(--accent); text-decoration: none; }
.foot-fine { font-size: 13px; }

/* ── dialogs ─────────────────────────────────────────────────────────── */
.sheet {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  padding: 0;
  width: min(720px, calc(100vw - 28px));
  max-height: 88vh;
  box-shadow: var(--shadow);
}
.sheet::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
.sheet-close { position: absolute; top: 8px; right: 10px; margin: 0; z-index: 2; }
.sheet-close button {
  background: rgba(0,0,0,.35); border: 0; color: var(--ink);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer;
}

.pm-body { display: grid; grid-template-columns: 1fr 1fr; }
.pm-img {
  background: radial-gradient(circle at 50% 40%, #232c3a, var(--bg-2) 72%);
  display: grid; place-items: center; padding: 20px;
}
.pm-img img { max-height: 340px; object-fit: contain; }
.pm-info { padding: 22px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.pm-info h3 { font-size: 22px; margin: 0; }
.dims { color: var(--ink-dim); margin: 0; font-size: 14px; }

.finishes { border: 0; padding: 0; margin: 0; }
.finishes legend { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-dim); padding: 0 0 7px; }
.fin {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 7px; cursor: pointer;
}
.fin:has(input:checked) { border-color: var(--accent); background: rgba(255,92,43,.07); }
.fin input { margin-top: 3px; accent-color: var(--accent); }
.fin b { font-size: 14px; }
.fin small { display: block; color: var(--ink-dim); font-size: 12.5px; }
.fin .up { margin-left: auto; font-size: 13px; color: var(--accent); white-space: nowrap; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-row label { font-size: 13px; color: var(--ink-dim); }
.qty { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button {
  width: 34px; background: var(--bg-2); border: 0; color: var(--ink);
  font-size: 17px; cursor: pointer;
}
.qty input {
  width: 50px; text-align: center; background: transparent;
  border: 0; color: var(--ink); font: inherit;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pm-price { margin-left: auto; font-size: 21px; font-weight: 800; }

@media (max-width: 640px) {
  .pm-body { grid-template-columns: 1fr; }
  .pm-img { padding: 26px 20px 8px; }
  .pm-img img { max-height: 210px; }
}

/* ── cart ────────────────────────────────────────────────────────────── */
.cart-sheet { width: min(500px, calc(100vw - 28px)); padding: 22px; overflow-y: auto; }
.cart-title { font-size: 20px; margin-bottom: 14px; }
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.line { display: flex; gap: 11px; align-items: center; }
.line-img { width: 52px; height: 52px; background: var(--bg-2); border-radius: 8px; padding: 4px; flex: none; }
.line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-main { flex: 1; min-width: 0; }
.line-main b { display: block; font-size: 14px; }
.line-main small { color: var(--ink-dim); font-size: 12.5px; }
.line-price { font-weight: 700; font-size: 14px; }
.line-rm {
  background: none; border: 0; color: var(--ink-dim);
  cursor: pointer; font-size: 18px; padding: 4px 6px;
}
.line-rm:hover { color: var(--accent); }
.cart-empty { color: var(--ink-dim); padding: 18px 0; }

.totals { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-dim); }
.totals .grand { color: var(--ink); font-size: 18px; font-weight: 800; padding-top: 8px; }
.ship-note { color: var(--ink-dim); font-size: 12.5px; margin: 8px 0 14px; }
.pp-wrap { min-height: 46px; }
.pp-fallback, .secure-note { color: var(--ink-dim); font-size: 12px; text-align: center; margin: 10px 0 0; }
.pp-fallback code { color: var(--accent); }

/* ── shipping form (paypal.me mode) ──────────────────────────────────── */
.ship-form { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.ship-form h4 { font-size: 15px; margin: 0 0 10px; }
.f-row { margin-bottom: 9px; }
.f-3 { display: grid; grid-template-columns: 1fr 74px 104px; gap: 8px; }
.f { display: block; }
.f > span {
  display: block; font-size: 12px; color: var(--ink-dim);
  margin-bottom: 4px;
}
.f > span i { font-style: normal; opacity: .65; }
.f input, .f textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit; font-size: 14px;
  resize: vertical;
}
.f input:focus, .f textarea:focus {
  outline: none; border-color: var(--accent);
}
.f.bad input, .f.bad textarea { border-color: #ff5f56; }
.f-msg { display: block; color: #ff8b84; font-size: 12px; margin-top: 4px; }
.form-err {
  color: #ff8b84; font-size: 13px; margin: 9px 0 0; text-align: center;
}
#placeBtn { margin-top: 4px; }

/* ── pay step ────────────────────────────────────────────────────────── */
.pay-step {
  border: 1px solid var(--accent);
  background: rgba(255,92,43,.06);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 16px;
}
.ref-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 12px;
}
.ref-box > span { font-size: 12px; color: var(--ink-dim); }
.ref-box b {
  font: 800 19px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  color: var(--accent);
}
.ghost-btn.tiny { margin-left: auto; padding: 6px 11px; font-size: 12.5px; }
.pay-steps { margin: 0 0 14px; padding-left: 20px; font-size: 13.5px; color: var(--ink-dim); }
.pay-steps li { margin-bottom: 5px; }
.pay-steps b { color: var(--ink); }
.paypal-cta {
  background: #ffc439; color: #0d1117;
  text-decoration: none; text-align: center;
}
.pay-fine { color: var(--ink-dim); font-size: 12.5px; margin: 11px 0 0; }

/* ── confirmation ────────────────────────────────────────────────────── */
.done-sheet { padding: 26px; overflow-y: auto; width: min(560px, calc(100vw - 28px)); }
.done-head { text-align: center; margin-bottom: 20px; }
.check svg { width: 62px; height: 62px; fill: none; stroke: var(--accent-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check circle { opacity: .35; }
.done-head h3 { font-size: 23px; margin: 10px 0 4px; }
.done-head p { color: var(--ink-dim); margin: 0; font-size: 14px; }

.spec {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin-bottom: 12px;
}
.spec h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-dim); margin: 0 0 9px;
}
.spec-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 3px 0; }
.spec-row span:first-child { color: var(--ink-dim); }
.spec-item { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.spec-item:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.spec-item b { font-size: 14.5px; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag {
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 4px 7px; color: var(--ink-dim);
}
.done-actions { display: flex; gap: 10px; margin-top: 6px; }
.done-actions form { margin: 0; flex: 1; }
.done-actions .ghost-btn { width: 100%; }
.done-actions .btn { flex: 1; }

/* ── toast ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 80px);
  background: var(--accent-2); color: #04231b;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
  z-index: 100;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.hide-sm { display: none; }
@media (min-width: 700px) { .hide-sm { display: inline-block; } }

@media print {
  body > *:not(#doneModal) { display: none !important; }
  #doneModal { position: static; border: 0; max-height: none; color: #000; background: #fff; }
  .done-actions, .sheet-close { display: none; }
}
