/* =====================================================================
 * Bizgram storefront — "Vibrant Intelligence"
 *
 * Hand-rolled rather than Tailwind-CDN like the ops centre: the storefront
 * is the page a customer judges Bizgram by, and the glow/glass/motion work
 * below is most of the design. Utility classes would have made it longer,
 * not shorter, and the CDN's runtime compile is a visible flash on a cold
 * mobile load.
 *
 * Tokens come from the Vibrant Intelligence spec (electric blue + neon cyan,
 * Hanken Grotesk / Inter / JetBrains Mono).
 * ===================================================================== */

:root {
  /* surfaces */
  --surface: #f9f9ff;
  --surface-dim: #cfdaf2;
  --surface-lowest: #ffffff;
  --surface-low: #f0f3ff;
  --surface-container: #e7eeff;
  --surface-high: #dee8ff;
  --surface-highest: #d8e3fb;
  --on-surface: #111c2d;
  --on-surface-variant: #434655;
  --outline: #737686;
  --outline-variant: #c3c6d7;

  /* brand */
  --primary: #004ac6;
  --primary-bright: #2563eb;
  --on-primary: #ffffff;
  --accent: #06b6d4;          /* neon cyan — CTAs and AI */
  --accent-deep: #00687a;
  --accent-soft: #57dffe;
  --rose: #d22348;            /* critical only */
  --rose-deep: #ad0033;
  --ok: #0f8a5f;

  /* glass + glow */
  --glass: rgb(255 255 255 / .78);
  --glass-strong: rgb(255 255 255 / .92);
  --glass-border: rgb(255 255 255 / .55);
  --glow-sm: 0 4px 16px rgb(37 99 235 / .08);
  --glow: 0 12px 34px rgb(37 99 235 / .10);
  --glow-lg: 0 24px 60px rgb(37 99 235 / .16);
  --glow-accent: 0 10px 30px rgb(6 182 212 / .30);

  /* type */
  --font-head: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* shape + rhythm */
  --r-sm: .25rem;
  --r: .5rem;
  --r-md: .75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --gutter: 24px;
  --page: 1440px;
  --pad: 40px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (max-width: 720px) { :root { --pad: 16px; } }

/* Dark is a real mode here, not an inversion: the ops centre already ships a
   night theme and customers browsing at 1am get the same courtesy. */
:root.dark {
  --surface: #0a1020;
  --surface-dim: #060a14;
  --surface-lowest: #0e1526;
  --surface-low: #121b30;
  --surface-container: #16203a;
  --surface-high: #1c2947;
  --surface-highest: #223154;
  --on-surface: #e8eeff;
  --on-surface-variant: #a3adc7;
  --outline: #6b7590;
  --outline-variant: #2a3554;
  --primary: #7ea6ff;
  --primary-bright: #5b8cff;
  --glass: rgb(18 27 48 / .74);
  --glass-strong: rgb(18 27 48 / .92);
  --glass-border: rgb(126 166 255 / .16);
  --glow-sm: 0 4px 16px rgb(0 0 0 / .30);
  --glow: 0 12px 34px rgb(0 0 0 / .38);
  --glow-lg: 0 24px 60px rgb(0 0 0 / .50);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- type scale ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; letter-spacing: -.015em; }
.display { font-size: clamp(2.2rem, 5.2vw, 3.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.h-lg { font-size: clamp(1.6rem, 3.2vw, 2rem); font-weight: 600; line-height: 1.2; }
.h-md { font-size: 1.5rem; font-weight: 600; line-height: 1.33; }
.h-sm { font-size: 1.125rem; font-weight: 600; }
.body-lg { font-size: 1.125rem; line-height: 1.72; color: var(--on-surface-variant); }
.muted { color: var(--on-surface-variant); }
.mono { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .05em; }
.label {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
:root.dark .label { color: var(--accent-soft); }

/* gradient ink for the one word that matters in a headline */
.ink-grad {
  background: linear-gradient(96deg, var(--primary-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.grid { display: grid; gap: var(--gutter); }
.two-col { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.15fr .85fr; align-items: center; } }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- header ---------- */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(249 249 255 / .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
:root.dark .shop-header { background: rgb(10 16 32 / .82); }
/* Only earn the shadow once the page has actually moved. */
.shop-header[data-scrolled="true"] {
  border-bottom-color: var(--outline-variant);
  box-shadow: var(--glow-sm);
}
.shop-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
  transition: height .3s var(--ease);
}
.shop-header[data-scrolled="true"] .shop-header-inner { height: 58px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 26px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.brand-chip {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .12em;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: #fff;
}

.shop-nav { display: flex; gap: 2px; margin-inline: auto; }
.shop-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--r);
  font-size: .9375rem;
  color: var(--on-surface-variant);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.shop-nav a:hover { color: var(--on-surface); background: var(--surface-container); }
.shop-nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
/* The underline grows from the centre so switching tabs reads as movement. */
.shop-nav a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-bright), var(--accent));
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.shop-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--on-surface-variant);
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.icon-btn:hover { background: var(--surface-container); color: var(--on-surface); }
.icon-btn:active { transform: scale(.94); }

.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .625rem;
  line-height: 18px;
  text-align: center;
}
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .34s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .9375rem;
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--primary-bright), var(--primary)); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: var(--glow-lg); }
/* Cyan is the "do it" colour in this system; blue is structural. */
.btn-accent {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: #04323c;
  box-shadow: var(--glow-accent);
}
.btn-accent:hover { box-shadow: 0 16px 40px rgb(6 182 212 / .42); }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.btn-quiet { background: var(--surface-container); color: var(--on-surface); }
.btn-quiet:hover { background: var(--surface-high); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-sm { padding: 8px 14px; font-size: .875rem; }
.btn-block { width: 100%; }

/* A light sweep on hover instead of a colour jump — reads as "glossy" the way
   the spec asks for, and costs one transform. */
.btn-primary::after, .btn-accent::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .38), transparent);
  transform: translateX(0);
  transition: transform .7s var(--ease-out);
}
.btn-primary:hover::after, .btn-accent:hover::after { transform: translateX(420%); }

/* ---------- surfaces ---------- */
.card {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  box-shadow: var(--glow-sm);
}
/* The inner white hairline is what makes glass read as glass on both a light
   background and a photo. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--glass-border);
  pointer-events: none;
}
.card-pad { padding: 22px; }
.card-hover { transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--glow-lg); border-color: color-mix(in srgb, var(--primary) 28%, var(--outline-variant)); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-lowest);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.chip-ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.chip-low { border-color: color-mix(in srgb, #b45309 40%, transparent); color: #b45309; }
.chip-out { border-color: color-mix(in srgb, var(--rose) 36%, transparent); color: var(--rose); }
.chip-accent { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 10%, var(--surface-lowest)); }
:root.dark .chip-accent { color: var(--accent-soft); }

.dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; flex: none; }
.dot-live { background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse-dot 2.4s infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* AI surfaces get the prismatic border the spec reserves for them, so an
   AI-written answer is never mistaken for system data. */
.ai-frame {
  position: relative;
  border-radius: var(--r-lg);
  padding: 1.5px;
  background: linear-gradient(120deg, var(--accent), var(--primary-bright) 45%, var(--rose));
  background-size: 220% 220%;
  animation: prism 9s ease infinite;
}
.ai-frame > * { border-radius: calc(var(--r-lg) - 1px); background: var(--surface-lowest); }
@keyframes prism {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 76px); }
/* Two slow-drifting blobs. Cheap (transform only) and it keeps the top of the
   page alive without a video or a stock photo. */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 520px; height: 520px;
  top: -190px; left: -120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-bright) 55%, transparent), transparent 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.hero::after {
  width: 460px; height: 460px;
  top: -80px; right: -140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 46%, transparent), transparent 70%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(70px, 60px, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-60px, 80px, 0) scale(1.08); } }
.hero > * { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

/* Headline words rise in sequence — the delay is set inline per word. */
.word { display: inline-block; opacity: 0; transform: translateY(18px); animation: word-in .68s var(--ease-out) forwards; }
@keyframes word-in { to { opacity: 1; transform: none; } }

.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-lowest); border: 1px solid var(--outline-variant); }
.stat-n { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }

/* ---------- product cards ---------- */
.product-grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  box-shadow: var(--glow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product:hover { transform: translateY(-5px); box-shadow: var(--glow-lg); border-color: color-mix(in srgb, var(--primary) 30%, var(--outline-variant)); }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-container); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.product:hover .product-media img { transform: scale(1.06); }
.product-media .chip { position: absolute; top: 10px; left: 10px; background: var(--glass-strong); }
.product-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; }
.product-cat { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.product-name {
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.35;
  /* Pricelist descriptions run long; two lines keeps every card the same height. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-foot { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--font-head); font-size: 1.1875rem; font-weight: 700; letter-spacing: -.02em; }
.price-gst { font-family: var(--font-mono); font-size: .6875rem; color: var(--on-surface-variant); }
.add-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-bright), var(--primary));
  color: #fff;
  box-shadow: var(--glow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.add-btn:hover { transform: scale(1.08) rotate(90deg); box-shadow: var(--glow-lg); }
.add-btn:active { transform: scale(.92); }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.cat-tile {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--outline-variant);
  background: var(--surface-lowest);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), color .28s var(--ease);
}
.cat-tile::before {
  content: '';
  position: absolute;
  inset: auto -30% -70% auto;
  width: 150px; height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%);
  transform: scale(.4);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.cat-tile:hover::before { transform: scale(1); opacity: 1; }
.cat-tile-n { font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; }

/* ---------- brand marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide-left 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--on-surface-variant);
  opacity: .62;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.marquee-track span:hover { opacity: 1; color: var(--primary); }
@keyframes slide-left { to { transform: translateX(-50%); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .09em; text-transform: uppercase; color: var(--on-surface-variant); }
.input, select.input, textarea.input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r);
  background: var(--surface-lowest);
  color: var(--on-surface);
  font: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.input::placeholder { color: var(--outline); }

/* ---------- search with a live suggestion list ---------- */
.searchbar { position: relative; flex: 1; min-width: 0; }
.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 70;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  background: var(--surface-lowest);
  box-shadow: var(--glow-lg);
}
.suggest[hidden] { display: none; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r); }
.suggest a:hover, .suggest a.sel { background: var(--surface-container); }
.suggest img { width: 40px; height: 30px; border-radius: var(--r-sm); object-fit: cover; flex: none; }

/* ---------- tables ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.data th {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: left;
  color: var(--on-surface-variant);
  padding: 10px 12px;
  border-bottom: 1px solid var(--outline-variant);
}
table.data td { padding: 12px; border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 55%, transparent); }
table.data tr:last-child td { border-bottom: none; }
.num { font-family: var(--font-mono); text-align: right; }

/* ---------- voice orb (customer agent) ---------- */
.orb-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--accent-soft), var(--primary-bright) 70%);
  color: #fff;
  box-shadow: 0 14px 38px rgb(6 182 212 / .44);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.orb:hover { transform: scale(1.06); }
.orb:active { transform: scale(.94); }
/* Expanding rings only while the mic is actually open, so the page is never
   permanently animating in the corner. */
.orb[data-live="true"]::before, .orb[data-live="true"]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  animation: ring 1.8s var(--ease-out) infinite;
}
.orb[data-live="true"]::after { animation-delay: .9s; }
@keyframes ring { from { transform: scale(1); opacity: .85; } to { transform: scale(2.1); opacity: 0; } }

.orb-panel {
  width: min(392px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  background: var(--surface-lowest);
  box-shadow: var(--glow-lg);
}
.orb-panel[data-open="true"] { display: flex; animation: pop .28s var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.orb-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--outline-variant); }
.orb-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.orb-foot { padding: 12px 14px; border-top: 1px solid var(--outline-variant); display: flex; gap: 8px; }

.bubble { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: .9375rem; line-height: 1.5; }
.bubble-me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.bubble-ai { align-self: flex-start; background: var(--surface-container); border-bottom-left-radius: 5px; }
.bubble-mini { align-self: flex-start; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; color: var(--on-surface-variant); }

/* three-dot thinking indicator */
.thinking { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.thinking i { width: 6px; height: 6px; border-radius: 999px; background: var(--on-surface-variant); animation: blink 1.1s infinite; }
.thinking i:nth-child(2) { animation-delay: .16s; }
.thinking i:nth-child(3) { animation-delay: .32s; }
@keyframes blink { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* voice result cards inside the orb */
.orb-prod { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--outline-variant); border-radius: var(--r); background: var(--surface-lowest); }
.orb-prod img { width: 46px; height: 35px; border-radius: var(--r-sm); object-fit: cover; flex: none; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--on-surface);
  color: var(--surface);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--glow-lg);
  animation: toast-in .3s var(--ease-out) both;
}
.toast.out { animation: toast-out .25s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- skeletons ---------- */
.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--surface-container) 25%, var(--surface-high) 50%, var(--surface-container) 75%); background-size: 260% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -160% 0; } }

/* ---------- footer ---------- */
.shop-footer { margin-top: 40px; padding-block: 46px 28px; background: var(--surface-low); border-top: 1px solid var(--outline-variant); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.shop-footer a { color: var(--on-surface-variant); font-size: .9375rem; display: block; padding: 4px 0; transition: color .18s var(--ease), transform .18s var(--ease); }
.shop-footer a:hover { color: var(--primary); transform: translateX(3px); }

/* ---------- utilities ---------- */
.stack { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.hide-sm { display: none; }
@media (min-width: 860px) { .hide-sm { display: revert; } .hide-lg { display: none; } }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Every animation here is decorative. Someone who asked the OS to stop moving
   things gets a static page, not a slower one. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .word { opacity: 1; transform: none; }
}
