/* One design for the whole site: product finder, club, legal pages. Light by default; dark when the visitor
   switches it (<html data-theme="dark">, public/theme.js). */
:root {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --ink: #15181d;
  --ink-2: #424955;
  --muted: #6b7380;
  --line: #e3e6ea;
  --line-2: #cfd5dc;
  --accent: #2c4a6e;
  --accent-2: #213a58;
  --accent-ink: #ffffff;
  --accent-soft: #eef2f7;
  --ok: #2f6f4e;
  --ok-soft: #e8f2ec;
  --pending-soft: #f0f2f5;
  --user: #f0f2f5;
  --user-ink: #15181d;
  --shadow: none;
  --radius: 10px;
  --maxw: 1180px;
  --top-bg: rgba(255, 255, 255, 0.94);
  --fig-bg: #eceef1;
  --tag-bg: rgba(255, 255, 255, 0.92);
  --ok-ink: #ffffff;
  --warn-soft: #fff7e8;
  --warn-ink: #6a4a12;
  --err: #c0392b;
  --err-soft: #fdf0ee;
  --err-ink: #8a2e1c;
  --danger-line: #e6c9c9;
  /* the tile under product photos: their white background blends into it (mix-blend-mode: multiply) */
  --plate: #f5f6f8;
  --plate-white: #ffffff;
  color-scheme: light;
}

/* dark: deep graphite with a cold blue accent; text and lines keep the same contrast steps as the light theme */
:root[data-theme="dark"] {
  --bg: #0f1318;
  --bg-2: #161b22;
  --surface: #141920;
  --surface-2: #1a2028;
  --ink: #e8ebef;
  --ink-2: #b8bfc9;
  --muted: #8a93a0;
  --line: #252c35;
  --line-2: #364049;
  --accent: #9db8dc;
  --accent-2: #b8cce7;
  --accent-ink: #0f1318;
  --accent-soft: #1b2532;
  --ok: #7cc6a0;
  --ok-soft: #16261e;
  --pending-soft: #1b2129;
  --user: #1d242d;
  --user-ink: #e8ebef;
  --top-bg: rgba(15, 19, 24, 0.9);
  --fig-bg: #1c2229;
  --tag-bg: rgba(15, 19, 24, 0.82);
  --ok-ink: #0f1318;
  --warn-soft: #2a2416;
  --warn-ink: #e3c27e;
  --err: #ff8f80;
  --err-soft: #2c1a18;
  --err-ink: #ffb3a8;
  --danger-line: #5a3636;
  /* product photos stay on a light tile, a step below white so it does not glare on the dark page */
  --plate: #e6e9ed;
  --plate-white: #eceff2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Manrope, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.textbtn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; }
.textbtn:hover { color: var(--ink); }
.textlink { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.textlink:hover { text-decoration: underline; }
form.inline { display: inline; }

/* ---------- header (views/top.js) ---------- */
.ctop { position: sticky; top: 0; z-index: 20; background: var(--top-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ctop-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.cbrand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.cbrand .wordmark { font-size: 16px; font-weight: 800; letter-spacing: 0.3em; }
.cbrand .sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cnav { display: flex; gap: 22px; height: 100%; }
.cnav a { display: flex; align-items: center; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.cnav a:hover { color: var(--ink); }
.cnav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.cright { display: flex; align-items: center; gap: 14px; }
.cright select {
  appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: 8px;
  padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; max-width: 160px;
}
.clangs { display: flex; gap: 2px; }
.clangs a { font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.clangs a.on { color: var(--ink); background: var(--bg-2); }
.balance { font-size: 13px; color: var(--ink-2); text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.balance b { color: var(--ink); }
/* theme switch (public/theme.js) */
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); cursor: pointer; padding: 0; }
.theme-btn:hover { color: var(--ink); border-color: var(--line-2); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
.balance:hover { border-color: var(--line-2); }
@media (max-width: 1240px) { .cbrand .sub { display: none; } .cnav { gap: 18px; } }
@media (max-width: 980px) {
  .ctop-in { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 12px 16px 0; gap: 10px 16px; }
  .cnav { grid-column: 1 / -1; grid-row: 2; min-width: 0; overflow-x: auto; gap: 18px; height: 42px; scrollbar-width: none; }
  .clangs { display: none; }
  .cright { min-width: 0; gap: 10px; }
  .cright select { max-width: 118px; padding: 6px 8px; }
}
@media (max-width: 520px) {
  .cright select, .cright .textbtn { display: none; }
}

/* ---------- layout ---------- */
.thread {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 24px 200px;
}

/* ---------- finder home ---------- */
.hero { padding: 64px 0 28px; max-width: 860px; }
.hero .eyebrow { display: block; margin-bottom: 18px; letter-spacing: 0.14em; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.07; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 650; }
.hero p { color: var(--ink-2); font-size: 18px; line-height: 1.55; margin: 0; max-width: 640px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.notice {
  margin: 12px 0 0; padding: 12px 16px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); font-weight: 600;
}
.home-extras { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.home-extras > section { margin-top: 64px; }
.home-extras .examples { margin-top: 18px; }
.shead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.shead-row h2 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.shead-row p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.shead-row .side { display: flex; align-items: center; gap: 14px; flex: none; }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 15px; color: var(--ink-2); }
.rail-nav button:hover { border-color: var(--ink-2); color: var(--ink); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rcard { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.rcard .rimg { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--plate); overflow: hidden; display: grid; place-items: center; }
.rcard .rimg img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 14px; transition: transform 0.25s ease; }
.rcard:hover .rimg img { transform: scale(1.04); }
.rcard .rmerchant { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .rtitle { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard .rprice { font-size: 15px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.rcard .rprice s { color: var(--muted); font-weight: 500; font-size: 13px; }
.rbadge { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: var(--ok); color: var(--ok-ink); }
.rbadge.new { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.store { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; }
.store:hover { border-color: var(--accent); }
.store .simg { height: 96px; background: var(--plate); display: grid; place-items: center; overflow: hidden; }
.store .simg img { height: 100%; width: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10px; }
.store .sname { display: block; padding: 10px 12px 2px; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store .scount { display: block; padding: 0 12px 12px; color: var(--muted); font-size: 12.5px; }
.club-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; background: var(--bg-2); border-radius: 14px; padding: 40px; }
.club-band h2 { margin: 0 0 10px; font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.club-band p { margin: 0 0 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 560px; }
.club-band .band-experts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.club-band .eline { display: none; }

/* ---------- storefront hero ---------- */
.sf-hero { padding: 18px 0 8px; max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.sf-hero { padding-top: 40px; }
.sf-hero h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin: 10px 0 12px; font-weight: 650; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 18px; max-width: 720px; }
.intro { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--bg-2); border: 0; border-radius: var(--radius); max-width: 720px; }
.intro p { margin: 3px 0 0; color: var(--ink-2); }
.intro q { font-weight: 700; color: var(--ink); quotes: '«' '»'; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.linkish { border: 0; background: none; padding: 0; cursor: pointer; color: var(--accent); font-weight: 700; }

/* ---------- conversation ---------- */
.conv, #live { display: flex; flex-direction: column; gap: 18px; }
.conv { margin-top: 28px; }
#live { margin-top: 18px; }
.msg { display: flex; gap: 12px; align-items: flex-start; scroll-margin-top: 80px; }
.msg.user { justify-content: flex-end; }
.msg .bubble { max-width: 720px; }
.msg .bubble p { margin: 0 0 8px; }
.msg .bubble p:last-child { margin-bottom: 0; }
.msg.user .bubble {
  background: var(--user); color: var(--user-ink);
  padding: 12px 16px; border-radius: var(--radius); max-width: min(560px, 85%);
  font-weight: 500;
}
.msg.assistant .bubble { padding-top: 3px; font-size: 16.5px; color: var(--ink); }
.bubble.error { color: var(--err); }
.avatar {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em;
  background: var(--accent-soft); color: var(--accent);
}
.sf-link { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--accent); text-decoration: none; }
details.history {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--surface-2);
}
details.history summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
details.history[open] { display: flex; flex-direction: column; gap: 14px; }
details.history[open] summary { margin-bottom: 4px; }

.turn { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 76px; }
.status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.clarify { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); }
.clarify p { font-weight: 700; margin: 0 0 10px !important; }
.opts, .suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest { padding-left: 42px; }

/* ---------- pills & chips ---------- */
.pill {
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; padding: 7px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.pill:hover { background: var(--accent-2); border-color: var(--accent-2); }
.pill.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); font-weight: 600; }
.pill.ghost:hover { border-color: var(--ink-2); background: var(--surface); }

.intents {
  margin-left: 42px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.intents-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 600;
  background: var(--pending-soft); color: var(--ink-2); border: 1px solid transparent;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.chip b { font-weight: 800; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--surface); }
.chip i { font-style: normal; font-size: 12px; color: var(--muted); }
.chip.ok, .chip.found { background: var(--ok-soft); color: var(--ok); }
.chip.ok .dot, .chip.found .dot { background: var(--ok); }
.chip.none { background: transparent; border-color: var(--line); color: var(--muted); }
.chip.none .dot { background: transparent; border: 1.5px solid var(--muted); }
.chip.pending .dot { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.chip.toggle { cursor: pointer; border-color: var(--line); background: var(--surface); }
.chip.toggle.on { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.chip.toggle.on .dot { background: var(--ok); }
.chip.toggle.off { text-decoration: line-through; opacity: 0.55; }
.chip.toggle .x { font-size: 16px; line-height: 1; opacity: 0.6; }
.chip.toggle.new { border-style: dashed; }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.confirm > span:first-child { margin-right: 4px; }
.confirm .pill { padding: 5px 12px; font-size: 13px; }
.ok-note { color: var(--ok); font-weight: 600; }
.add-intent {
  flex: 1 1 220px; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; background: var(--surface); font-size: 14px;
}
.add-intent:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }

/* ---------- shelves & cards ---------- */
.shelf { margin-top: 6px; }
.shelf header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 12px; }
.shelf h2 { font-size: 21px; letter-spacing: -0.02em; margin: 0; font-weight: 650; }
.shelf header p { margin: 0; color: var(--muted); font-size: 14.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  transition: border-color 0.16s ease;
}
.card:hover { border-color: var(--accent); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: var(--plate); display: grid; place-items: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.noimg { font-size: 34px; color: var(--line); }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.01em;
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.merchant { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.card h3 {
  margin: 0; font-size: 14.5px; line-height: 1.35; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pitch {
  margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.cta { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- composer ---------- */
.composer-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 14px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent));
}
.composer {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 6px 6px 6px 16px;
}
.composer textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer:focus-within { border-color: var(--accent); }
.composer textarea {
  flex: 1; border: 0; outline: 0; resize: none; background: transparent;
  font-size: 16px; line-height: 1.45; padding: 9px 0; max-height: 160px;
}
.composer button {
  flex: none; height: 42px; padding: 0 18px; border-radius: 8px; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px;
}
.composer button:hover { background: var(--accent-2); }
.composer button:disabled { opacity: 0.5; cursor: progress; }
.fine { max-width: 760px; margin: 8px auto 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.is-home:not(.chatting) .composer-wrap { position: static; background: none; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.is-home:not(.chatting) .thread { padding-bottom: 0; }
.is-home:not(.chatting) .composer { max-width: 760px; margin: 0; }
.is-home:not(.chatting) .fine { margin: 10px 0 0; text-align: left; max-width: 760px; }
.is-home.chatting .home-extras { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: all 0.2s ease; pointer-events: none; z-index: 40;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-foot {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px 16px calc(150px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); text-align: center;
}
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-bottom: 8px; }
.site-foot a, .site-foot .linkish { color: var(--ink-2); font-weight: 600; text-decoration: none; font-size: 12.5px; }
.site-foot .linkish { color: var(--ink-2); }
.site-foot a:hover, .site-foot .linkish:hover { color: var(--accent); }
.site-foot p { margin: 0; }
.is-home:not(.chatting) .site-foot, .is-legal .site-foot { padding-bottom: 28px; }
.thread { padding-bottom: 48px; }

/* ---------- cookie consent ---------- */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 12px 40px rgba(21, 24, 29, 0.12);
}
.consent[hidden] { display: none; }
.consent-text { flex: 1; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.consent-text b { color: var(--ink); }
.consent-text a { color: var(--accent); font-weight: 700; text-decoration: none; }
.consent-buttons { display: flex; gap: 8px; flex: none; }
.cbtn { border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--accent); white-space: nowrap; }
.cbtn.dark { background: var(--accent); color: var(--accent-ink); }
.cbtn.outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 16px 40px; }
.legal h1 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 18px; }
.legal h2 { font-size: 19px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal-note { font-size: 13px !important; color: var(--muted) !important; font-style: italic; }
.legal { padding-top: 48px; }
.legal h1 { font-weight: 650; }
.choices { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.choices-status { margin: 0 0 14px; font-weight: 700; color: var(--ink) !important; }

/* ---------- mobile ---------- */
@media (max-width: 980px) {
  .club-band { grid-template-columns: 1fr; padding: 28px 20px; }
}
@media (max-width: 640px) {
  .thread { padding: 16px 16px 40px; }
  .home-extras, .is-home:not(.chatting) .composer-wrap { padding: 0 16px; }
  .hero { padding-top: 36px; }
  .rail { grid-auto-columns: 158px; }
  .shead-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .composer button span { display: none; }
  .composer button { padding: 0 12px; }
  .intents, .suggest { margin-left: 0; padding-left: 0; }
  .intents { padding: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 11px 12px; }
  .pitch { -webkit-line-clamp: 3; font-size: 13px; }
  .price { font-size: 16px; }
  .cta { display: none; }
  .lead { font-size: 16.5px; }
  .consent { flex-direction: column; align-items: stretch; gap: 12px; left: 10px; right: 10px; padding: 14px; }
  .consent-buttons .cbtn { flex: 1; }
}
