/* .SH — brand styles */
:root {
  --bg: #0b0b0d;
  --bg-2: #131317;
  --bg-3: #1b1b21;
  --line: #2a2a33;
  --text: #f3f3f5;
  --muted: #9a9aa6;
  /* spectrum, sampled from the infinity design */
  --c1: #f27b6b; --c2: #f5a65b; --c3: #f2cc6b; --c4: #9cc97a;
  --c5: #5ec4b6; --c6: #6bb0e0; --c7: #8a94cf;
  --spectrum: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7));
  --accent: var(--c5);
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: var(--mono); background: var(--bg-3); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dot { color: var(--text); }
.spectrum-text { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
section { padding: 96px clamp(16px, 5vw, 72px); max-width: 1280px; margin: 0 auto; }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; }
.eyebrow { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin: 14px 0 0; }

/* QR banner */
.qr-banner { background: var(--bg-2); color: var(--text); text-align: center; font-weight: 700; padding: 10px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.qr-banner .mono { color: var(--accent); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 5vw, 72px); background: rgba(11,11,13,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--mono); font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -.03em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.bag-btn { background: var(--text); color: var(--bg); border: 0; border-radius: 999px; padding: 9px 16px; font: 600 14px var(--sans); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.bag-count { background: var(--bg); color: var(--text); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.checkout .btn[disabled] { cursor: wait; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: 56px; padding-bottom: 72px; }
.term { color: var(--muted); font-size: clamp(14px, 1.6vw, 17px); margin: 0 0 18px; min-height: 1.6em; }
.ps { color: var(--c6); }
.caret { animation: blink 1s steps(1) infinite; color: var(--text); }
@keyframes blink { 50% { opacity: 0; } }
.hero-title { font-family: var(--mono); font-weight: 800; font-size: clamp(110px, 19vw, 240px); letter-spacing: -.07em; line-height: .85; margin-left: -.04em; }
.hero-sub { font-size: clamp(20px, 2.6vw, 28px); margin: 22px 0 32px; font-weight: 500; }
.hero-sub b { color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.hero-art img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.hero-tag { position: absolute; left: 16px; bottom: 16px; background: rgba(11,11,13,.75); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 8px; font-size: 13px; border: 1px solid var(--line); }
/* Halftone-dot divider: the infinity art's colors as a row of dots (never flag stripes) */
.spectrum-bar { height: 14px; margin: 0 clamp(16px, 5vw, 72px); background: var(--spectrum);
  -webkit-mask: radial-gradient(circle, #000 4.5px, transparent 5px) 0 50% / 18px 14px repeat-x;
          mask: radial-gradient(circle, #000 4.5px, transparent 5px) 0 50% / 18px 14px repeat-x; }

/* What */
.meanings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.meaning { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.meaning-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: center; }
.meaning-wide .glyph { grid-row: span 2; font-size: 96px; margin: 0; line-height: 1; }
.glyph { font-size: 34px; font-weight: 800; margin-bottom: 20px; color: var(--accent); }
.meaning h3 { font-size: 24px; margin-bottom: 10px; }
.meaning p { color: var(--muted); margin: 0; }
.meaning p b, .meaning p em { color: var(--text); }

.folder { margin-top: 28px; background: #050507; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; font-size: 14px; max-width: 560px; }
.folder-head { color: var(--muted); margin-bottom: 10px; }
.folder-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; padding: 4px 0; color: var(--muted); }
.folder-row.top { color: var(--text); font-weight: 800; }
.folder-row .note { color: var(--accent); font-weight: 400; }

/* Shop */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4/5; background: var(--bg-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-file { position: absolute; left: 12px; top: 12px; background: rgba(11,11,13,.78); padding: 5px 10px; border-radius: 8px; font: 600 13px var(--mono); }
.thumbs { display: flex; gap: 8px; padding: 12px 16px 0; }
.thumbs button { width: 52px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumbs button.on, .thumbs button:hover { opacity: 1; border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title h3 { font-size: 24px; }
.price { font: 700 20px var(--mono); }
.card-sub { font-size: 13px; color: var(--accent); margin-top: -8px; }
.card-blurb { color: var(--muted); margin: 0; font-size: 15px; }
.opt-label { font-size: 12px; color: var(--muted); font-family: var(--mono); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 12px; font: 500 13px var(--sans); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.size { min-width: 46px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; padding: 0; cursor: pointer; border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); transition: transform .12s; }
.swatch:hover { transform: scale(1.12); }
.swatch.on { outline: 2px solid var(--text); outline-offset: 2px; }
.card-actions { margin-top: auto; display: flex; gap: 8px; }
.card-actions .btn { flex: 1; padding: 12px 16px; font-size: 15px; }

/* How */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { border-top: 2px solid var(--line); padding-top: 20px; }
.steps li span { color: var(--accent); font-size: 14px; }
.steps h3 { font-size: 20px; margin: 10px 0 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }

/* Scan */
.scan { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid var(--line); }
.qr { width: 200px; height: 200px; border-radius: 16px; background: #0b0b0d; padding: 10px; border: 1px solid var(--line); }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; padding: 28px clamp(16px, 5vw, 72px); border-top: 1px solid var(--line); font-size: 14px; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); z-index: 60; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; overflow-y: auto; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 22px; }
.x { background: none; border: 0; color: var(--text); font-size: 30px; cursor: pointer; line-height: 1; }
.drawer-body { padding: 8px 22px; }
.empty { color: var(--muted); padding: 30px 0; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }
.li-name { font-weight: 700; }
.li-meta { color: var(--muted); font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.li-price { font-family: var(--mono); text-align: right; }
.remove { display: block; background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; margin-top: 6px; padding: 0; text-decoration: underline; }
.drawer-foot { padding: 18px 22px; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 6px; font-size: 15px; }
.totals .grand { color: var(--text); font-weight: 700; font-size: 18px; margin-top: 10px; }
.checkout { padding: 0 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.checkout h4 { margin: 4px 0; font-size: 18px; }
.checkout input, .checkout textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: 15px var(--sans); }
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--accent); }
.checkout .row { display: grid; grid-template-columns: 1.4fr .8fr .9fr; gap: 8px; }
.fine { color: var(--muted); font-size: 12px; margin: 4px 0 0; text-align: center; }
.done { padding: 30px 22px; }
.done h3 { font-size: 28px; margin-bottom: 10px; }
.done p { color: var(--muted); }
.pay-list { list-style: none; padding: 0; margin: 16px 0; }
.pay-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 14px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); opacity: 0; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 70; transition: transform .3s, opacity .3s; pointer-events: none; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Responsive */
@media (max-width: 980px) {
  .products { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding-top: 64px; padding-bottom: 64px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .bag-btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-art { order: -1; }
  .meanings { grid-template-columns: 1fr; }
  .meaning-wide { grid-template-columns: 1fr; }
  .meaning-wide .glyph { grid-row: auto; font-size: 64px; margin-bottom: 12px; }
  .products { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .scan { flex-direction: column; align-items: flex-start; }
  .checkout .row { grid-template-columns: 1fr 1fr; }
  .checkout .row input:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  * { transition: none !important; }
}

/* Coming soon */
.soon-badge { position: absolute; right: 12px; top: 12px; background: var(--text); color: #0b0b0d; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.notify { margin-top: auto; }
.notify-row { display: flex; gap: 8px; }
.notify-row input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 12px 16px; font: 15px var(--sans); }
.notify-row input:focus { outline: none; border-color: var(--accent); }
.notify-row .btn { padding: 12px 18px; font-size: 15px; }
.notify-done { color: var(--accent); margin: 0; }

/* Thanks page (Stripe redirect) */
.thanks { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; max-width: 820px; }
.thanks h2 { font-size: clamp(44px, 8vw, 84px); }
