/* One stylesheet, five palettes. Only the CSS custom properties change
   between customer profiles. Layout is identical, which is what keeps the
   profile system cheap. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--brand-font);
  color: var(--brand-ink);
  background: var(--brand-surface);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.topbar {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 20;
}
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }

.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.wordmark .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; letter-spacing: -.5px;
}
.wordmark .name { font-weight: 650; font-size: 17px; letter-spacing: -.2px; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--brand-ink); opacity: .7; text-decoration: none;
  font-size: 14px; font-weight: 500;
}
.nav a:hover { opacity: 1; color: var(--brand-primary); }

.profile-switch {
  border: 1px solid rgba(0,0,0,.14); border-radius: 7px;
  padding: 7px 9px; font: inherit; font-size: 13px;
  background: #fff; color: var(--brand-ink); opacity: .65; cursor: pointer;
}
.profile-switch:hover { opacity: 1; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff; padding: 68px 0 76px;
}
.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; opacity: .8;
}
.hero h1 {
  margin: 0 0 14px; font-size: 40px; line-height: 1.12;
  letter-spacing: -1px; max-width: 640px; font-weight: 700;
}
.hero .sub { margin: 0 0 28px; font-size: 17px; opacity: .9; max-width: 560px; line-height: 1.5; }

.cta {
  background: #fff; color: var(--brand-primary);
  border: 0; border-radius: 9px; padding: 13px 24px;
  font: inherit; font-weight: 650; font-size: 15px; cursor: pointer;
}
.cta:hover { transform: translateY(-1px); }

/* ---------- catalog ---------- */

.section-title {
  margin: 52px 0 22px; font-size: 22px;
  letter-spacing: -.4px; font-weight: 650;
}
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.card {
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 13px; padding: 18px;
}
.card:hover { border-color: var(--brand-primary); }
.thumb {
  height: 108px; border-radius: 9px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
  display: grid; place-items: center;
}
.thumb span {
  font-size: 34px; font-weight: 700;
  color: var(--brand-primary); opacity: .55;
}
.card h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 640; }
.blurb { margin: 0 0 14px; font-size: 13.5px; line-height: 1.45; opacity: .68; }
.row { display: flex; justify-content: space-between; align-items: baseline; }
.price { font-weight: 700; font-size: 16px; color: var(--brand-primary); }
.sku { font-size: 11.5px; opacity: .45; font-family: ui-monospace, monospace; }

.notice {
  margin: 34px 0 60px; padding: 18px 20px;
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.notice span { opacity: .65; font-size: 14px; }
.ghost {
  margin-left: auto; background: transparent;
  border: 1px solid var(--brand-primary); color: var(--brand-primary);
  border-radius: 8px; padding: 9px 15px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ghost:hover { background: var(--brand-primary); color: #fff; }

.foot { border-top: 1px solid rgba(0,0,0,.08); background: #fff; }
.foot .wrap { padding: 26px 24px; font-size: 13px; opacity: .55; }

/* ---------- chat ---------- */

.launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; border: 0;
  background: var(--brand-primary); color: #fff; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  display: grid; place-items: center;
}
.launcher:hover { transform: scale(1.05); }

.panel {
  position: fixed; right: 24px; bottom: 90px; z-index: 41;
  width: 396px; max-width: calc(100vw - 48px);
  height: 560px; max-height: calc(100vh - 130px);
  background: #fff; border-radius: 15px; overflow: hidden;
  box-shadow: 0 20px 56px rgba(0,0,0,.26);
  display: flex; flex-direction: column;
}
.panel[hidden] { display: none; }

.panel-head {
  background: var(--brand-primary); color: #fff;
  padding: 15px 18px; display: flex; align-items: center; gap: 12px;
}
.assistant-name { font-weight: 650; font-size: 15px; }
.assistant-sub { font-size: 12px; opacity: .78; }
.x {
  margin-left: auto; background: transparent; border: 0;
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: .8;
}

.mode {
  display: flex; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.07); background: #fafafa;
}
.mode-btn {
  flex: 1; border: 1px solid rgba(0,0,0,.14); background: #fff;
  border-radius: 7px; padding: 7px 0;
  font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--brand-ink); opacity: .55; cursor: pointer;
}
.mode-btn.is-on {
  opacity: 1; border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 9%, #fff);
}

.log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 11px; }

.bubble {
  max-width: 84%; padding: 10px 13px; border-radius: 13px;
  font-size: 14px; line-height: 1.48; white-space: pre-wrap; word-wrap: break-word;
}
.bubble.bot { background: #f1f2f4; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me  { background: var(--brand-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.sys { background: #fff6e5; border: 1px solid #f0d9a8; align-self: center; font-size: 12.5px; max-width: 94%; }
.bubble.err { background: #fdecec; border: 1px solid #f3c2c2; align-self: center; font-size: 12.5px; max-width: 94%; }
.bubble.wait { opacity: .5; font-style: italic; }

.verdict {
  border-top: 1px solid rgba(0,0,0,.07);
  padding: 9px 14px; font-size: 11.5px;
  font-family: ui-monospace, monospace; background: #fafafa; max-height: 96px; overflow-y: auto;
}
.verdict[hidden] { display: none; }
.verdict .tag {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  font-weight: 700; margin-right: 7px;
}
.tag.block  { background: #fdecec; color: #a12626; }
.tag.modify { background: #fff4e0; color: #a1701a; }
.tag.log    { background: #eaf4ea; color: #2c6b32; }

.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(0,0,0,.07); }
.composer input {
  flex: 1; border: 1px solid rgba(0,0,0,.16); border-radius: 8px;
  padding: 10px 12px; font: inherit; font-size: 14px;
}
.composer input:focus { outline: 2px solid var(--brand-primary); outline-offset: -1px; }
.composer button {
  background: var(--brand-primary); color: #fff; border: 0;
  border-radius: 8px; padding: 0 17px;
  font: inherit; font-weight: 640; font-size: 14px; cursor: pointer;
}

@media (max-width: 720px) {
  .nav { display: none; }
  .hero h1 { font-size: 30px; }
  .panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
}
