/* The Soul Bot — store. Minimal, manual-style. */
:root {
  --bg: #f7f6f3;
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #4a4a4a;
  --muted: #8a8a86;
  --line: #e4e2dc;
  --accent: #111111;
  --ok: #2f7a4f;
  --warn: #b4552d;
  --radius: 14px;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- labels (manual style) ---------- */
.label {
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label b { color: var(--ink); font-weight: 500; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ---------- product ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 56px 0 72px; align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; } }

.gallery { position: sticky; top: 88px; }
@media (max-width: 860px) { .gallery { position: static; } }
.gallery-main {
  aspect-ratio: 1 / 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden;
}
.gallery-main img { width: 86%; height: 86%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button {
  width: 72px; aspect-ratio: 1; padding: 6px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.buy h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1; letter-spacing: -.035em; margin: 14px 0 14px; font-weight: 600; }
.buy .lede { color: var(--ink-2); font-size: 17px; margin: 0 0 28px; max-width: 46ch; }
.price-row { display: flex; align-items: baseline; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.price { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.price-note { font-size: 13px; color: var(--muted); }

.field-label { display: flex; justify-content: space-between; margin: 22px 0 10px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 14px;
}
.swatch .dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch.is-out { color: var(--muted); }
.swatch.is-out .dot { opacity: .45; }

.stock { font: 500 12px/1 var(--mono); letter-spacing: .06em; }
.stock.low { color: var(--warn); }
.stock.out { color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 42px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty button:disabled { color: var(--line); cursor: default; }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }

.actions { margin-top: 28px; display: grid; gap: 12px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 54px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-weight: 500; font-size: 16px; cursor: pointer; text-decoration: none; transition: opacity .15s;
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { height: 44px; font-size: 14px; padding: 0 18px; }

.assurance { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.assurance li { display: flex; gap: 10px; }
.assurance li::before { content: '—'; color: var(--muted); }

/* waitlist inline */
.notice { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 20px; margin-top: 24px; }
.notice p { margin: 6px 0 14px; color: var(--ink-2); font-size: 15px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .inline-form { flex-direction: column; } }

input[type=text], input[type=email], input[type=tel], select {
  height: 48px; width: 100%; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); outline: none; font-size: 15px;
}
input:focus, select:focus { border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.msg { font-size: 14px; margin-top: 10px; min-height: 1em; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--warn); }

/* ---------- sections ---------- */
.section { border-top: 1px solid var(--line); padding: 72px 0; }
.section-head { display: grid; grid-template-columns: 200px 1fr; gap: 32px; margin-bottom: 36px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; line-height: 1.1; font-weight: 600; }
.section-head p { margin: 12px 0 0; color: var(--ink-2); max-width: 56ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 10px; } }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid > div { background: var(--paper); padding: 24px; }
.grid h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.grid p { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 36%; font-weight: 400; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.legal { margin-top: 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- checkout dialog ---------- */
dialog {
  width: min(100% - 24px, 560px); max-height: calc(100dvh - 24px); border: 0; padding: 0;
  border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
dialog::backdrop { background: rgba(17,17,17,.45); backdrop-filter: blur(2px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.01em; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 18px; }
.dialog-body { padding: 20px 24px 24px; display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
.dialog-body label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--bg); border-radius: 10px; font-size: 14px; }
.summary strong { font-size: 18px; }
.fineprint { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------- simple pages ---------- */
.page { padding: 56px 0 80px; max-width: 760px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.03em; margin: 14px 0 8px; font-weight: 600; }
.page h2 { font-size: 19px; margin: 36px 0 8px; letter-spacing: -.01em; }
.page p, .page li { color: var(--ink-2); }
.page .updated { color: var(--muted); font-size: 14px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.track-form { display: grid; gap: 12px; margin-top: 28px; }
.timeline { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); margin-top: 6px; z-index: 1; }
.timeline li::after { content: ''; position: absolute; left: 5px; top: 18px; bottom: 0; width: 1.5px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.done { color: var(--ink); }
.timeline li:not(.done) { color: var(--muted); }
.timeline small { display: block; color: var(--muted); font-size: 13px; }

.preview-banner { background: var(--ink); color: #fff; text-align: center; font: 500 12px/1 var(--mono); letter-spacing: .08em; padding: 9px; }

@media (max-width: 520px) { .hide-sm { display: none; } }

.notice.is-error { border-color: #ecc9b8; background: #fdf6f2; }
.notice.is-error .label { color: var(--warn); }
.intl-form { display: grid; gap: 12px; margin-top: 28px; }
.intl-form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
textarea { width: 100%; min-height: 96px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; resize: vertical; outline: none; }
textarea:focus { border-color: var(--ink); }
.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid #ecc9b8; background: #fdf6f2; color: var(--ink); font-size: 15px; margin: 20px 0 0; }
.alert::before { content: '!'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--warn); color: #fff; display: grid; place-items: center; font: 600 13px/1 var(--mono); margin-top: 1px; }

.price-row { flex-wrap: wrap; }
.mrp { color: var(--muted); font-size: 18px; }
.discount { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); border: 1px solid #cfe3d6; background: #f1f8f3; padding: 6px 8px; border-radius: 999px; }

[hidden] { display: none !important; }
