:root {
  /* cool, professional palette — slate ink, one restrained teal accent */
  --ground: #f7f8fa;          /* cool off-white ground */
  --surface: #ffffff;
  --surface-2: #eef1f5;       /* cool light grey */
  --ink: #1e242b;             /* slate ink text */
  --ink-soft: #5b6470;        /* muted slate */
  --hair: #e3e7ed;            /* cool hairline */
  --saffron: #3f6b7d;         /* restrained teal — the one accent (var name kept) */
  --saffron-hot: #315463;     /* deeper teal, for depth */
  --leaf: #2f9e78;            /* semantic "up/forecast/profit" — refined green */
  --leaf-soft: #57b394;
  --glow: rgba(63,107,125,0.12);
  --shadow: 0 1px 2px rgba(23,32,43,.05), 0 8px 26px rgba(23,32,43,.07);
  --shadow-lift: 0 2px 6px rgba(23,32,43,.08), 0 20px 50px rgba(23,32,43,.13);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", ui-monospace, "Roboto Mono", monospace;

  --wrap: 1140px;
  --step--1: clamp(.8rem, .77rem + .12vw, .86rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --step-4: clamp(2.8rem, 1.7rem + 5.2vw, 5.6rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #12161b;        /* cool dark slate */
    --surface: #1a2028;
    --surface-2: #222a34;
    --ink: #e8ecf1;
    --ink-soft: #9aa6b2;
    --hair: #2b333e;
    --saffron: #62a0b6;
    --saffron-hot: #4f8598;
    --leaf: #4fc79e;
    --leaf-soft: #6fd6b2;
    --glow: rgba(98,160,182,0.18);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.5);
    --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 26px 64px rgba(0,0,0,.62);
  }
}
/* explicit toggle overrides — must win both directions */
:root[data-theme="light"] {
  --ground:#f7f8fa; --surface:#fff; --surface-2:#eef1f5; --ink:#1e242b; --ink-soft:#5b6470;
  --hair:#e3e7ed; --saffron:#3f6b7d; --saffron-hot:#315463; --leaf:#2f9e78; --leaf-soft:#57b394;
  --glow:rgba(63,107,125,.12); --shadow:0 1px 2px rgba(23,32,43,.05),0 8px 26px rgba(23,32,43,.07);
  --shadow-lift:0 2px 6px rgba(23,32,43,.08),0 20px 50px rgba(23,32,43,.13);
}
:root[data-theme="dark"] {
  --ground:#12161b; --surface:#1a2028; --surface-2:#222a34; --ink:#e8ecf1; --ink-soft:#9aa6b2;
  --hair:#2b333e; --saffron:#62a0b6; --saffron-hot:#4f8598; --leaf:#4fc79e; --leaf-soft:#6fd6b2;
  --glow:rgba(98,160,182,.18); --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 34px rgba(0,0,0,.5);
  --shadow-lift:0 2px 6px rgba(0,0,0,.5),0 26px 64px rgba(0,0,0,.62);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; margin: 0; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--saffron);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--saffron); display: inline-block; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.03em; font-size: 1.22rem; text-decoration: none; }
.mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none;
        background: linear-gradient(150deg, var(--saffron), var(--saffron-hot)); box-shadow: 0 4px 14px var(--glow); }
.brand b { color: var(--saffron); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a.link:hover { color: var(--ink); }
.nav-links a.link.active { color: var(--saffron); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--hair); color: var(--ink); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:hover { border-color: var(--saffron); color: var(--saffron); }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--ground); border-bottom: 1px solid var(--hair);
    padding: 12px 24px 18px; box-shadow: var(--shadow-lift); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .link { padding: 11px 4px; font-size: 1.02rem; }
  .nav-links .theme-toggle { align-self: flex-start; margin: 4px 0; }
  .nav-links .btn { width: 100%; justify-content: center; margin-top: 2px; }
}

.btn { font-family: var(--sans); font-size: .95rem; font-weight: 600; border-radius: 10px; padding: 10px 18px;
       text-decoration: none; display: inline-flex; align-items: center; gap: .5em; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-ghost { color: var(--ink); border-color: var(--hair); background: transparent; }
.btn-ghost:hover { border-color: var(--saffron); color: var(--saffron); }
.btn-solid { background: linear-gradient(150deg, var(--saffron), var(--saffron-hot)); color: #fff; box-shadow: 0 6px 18px var(--glow); }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 10px 26px var(--glow); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 620px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 72% 20%, var(--glow), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 em { white-space: normal; } }
.hero h1 { font-size: var(--step-4); margin: 22px 0 0; }
.hero h1 em { font-style: normal; color: var(--saffron); position: relative; white-space: nowrap; }
.hero p.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 30ch; margin: 24px 0 0; line-height: 1.4; font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-cta .note { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-soft); }

/* page header (interior pages) */
.pagehead { position: relative; padding: clamp(52px, 7vw, 96px) 0 clamp(20px, 3vw, 36px); }
.pagehead::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 420px; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 50% 0%, var(--glow), transparent 70%);
}
.pagehead .inner { position: relative; z-index: 1; max-width: 720px; }
.pagehead h1 { font-size: var(--step-3); margin: 18px 0 0; }
.pagehead p { color: var(--ink-soft); font-size: var(--step-1); margin: 20px 0 0; line-height: 1.45; font-weight: 400; max-width: 60ch; }

/* forecast card */
.fcard { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow-lift); padding: 20px 20px 8px; }
.fcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; }
.fcard-top .t { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.fcard-top .v { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; }
.fcard-top .v .up { color: var(--leaf); }
canvas#forecast { width: 100%; height: 232px; display: block; }
.fcard-legend { display: flex; gap: 20px; padding: 10px 6px 14px; flex-wrap: wrap; }
.fcard-legend span { font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 20px; height: 3px; border-radius: 2px; display: inline-block; }
.swatch.solid { background: var(--saffron); }
.swatch.dash { background: repeating-linear-gradient(90deg, var(--leaf) 0 5px, transparent 5px 9px); height: 2px; }

/* ---------- marquee strip ---------- */
.strip { border-block: 1px solid var(--hair); background: var(--surface-2); }
.strip-in { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 20px 24px; justify-content: center; }
.strip-in span { font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }
.strip-in b { color: var(--saffron); font-weight: 700; }

/* ---------- section scaffold ---------- */
section.block { padding: clamp(56px, 8vw, 116px) 0; }
.head { max-width: 620px; margin-bottom: 52px; }
.head h2 { font-size: var(--step-3); margin-top: 16px; }
.head p { color: var(--ink-soft); font-size: var(--step-1); margin: 18px 0 0; line-height: 1.45; font-weight: 400; }

/* module grid */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .modules { grid-template-columns: 1fr; } }
.mod { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 22px 22px 24px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .25s, border-color .25s; }
.mod:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--saffron) 40%, var(--hair)); }
.mod .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px;
            background: color-mix(in srgb, var(--saffron) 14%, var(--surface)); color: var(--saffron); }
.mod h3 { font-size: 1.16rem; letter-spacing: -.02em; }
.mod p { color: var(--ink-soft); font-size: .95rem; margin: 8px 0 0; line-height: 1.5; }
.mod .tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); opacity: .8; display: block; margin-bottom: 2px; }

/* feature split rows */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feat + .feat { margin-top: clamp(56px, 7vw, 100px); }
.feat.rev .feat-media { order: -1; }
@media (max-width: 880px) { .feat, .feat.rev { grid-template-columns: 1fr; } .feat.rev .feat-media { order: 0; } }
.feat h3 { font-size: var(--step-2); letter-spacing: -.03em; }
.feat p { color: var(--ink-soft); font-size: var(--step-0); margin: 16px 0 0; line-height: 1.55; }
.feat ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.feat li { display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; }
.feat li svg { flex: none; margin-top: 3px; color: var(--leaf); }
.feat-media { min-width: 0; }

.panel { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; box-shadow: var(--shadow-lift); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--hair); background: var(--surface-2); }
.panel-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hair); }
.panel-bar .ttl { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-left: 6px; }

/* kitchen ticket */
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
@media (max-width: 460px){ .tickets{ grid-template-columns:1fr; } }
.ticket { border: 1px solid var(--hair); border-radius: 10px; padding: 13px; background: var(--ground); font-family: var(--mono); font-size: .78rem; }
.ticket .th { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.ticket .tbl { font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.ticket .age { font-size: .68rem; padding: 2px 7px; border-radius: 20px; font-weight: 600; }
.age.ok { color: var(--leaf); background: color-mix(in srgb, var(--leaf) 16%, transparent); }
.age.warn { color: var(--saffron-hot); background: color-mix(in srgb, var(--saffron-hot) 15%, transparent); }
.ticket .li { display: flex; justify-content: space-between; color: var(--ink-soft); padding: 2px 0; }
.ticket .li b { color: var(--ink); font-weight: 700; }

/* stock bars */
.stock { padding: 20px; display: grid; gap: 15px; }
.srow { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 14px; font-family: var(--mono); font-size: .8rem; }
.srow .nm { color: var(--ink); }
.bar { height: 9px; border-radius: 6px; background: var(--surface-2); overflow: hidden; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; display: block; }
.srow .val { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.srow .val.low { color: var(--saffron-hot); font-weight: 700; }

/* mini pnl */
.pnl { padding: 18px 20px; font-family: var(--mono); font-size: .82rem; }
.pnl .r { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--hair); }
.pnl .r:last-child { border-bottom: 0; }
.pnl .r span:first-child { color: var(--ink-soft); }
.pnl .r b { font-variant-numeric: tabular-nums; }
.pnl .r.net b { color: var(--leaf); }
.pnl .r.fc { color: var(--saffron); }
.pnl .r.fc b { color: var(--saffron); }

/* AI advisor mini analysis panels */
.aip { margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 13px; font-family: var(--mono); font-size: .76rem; display: grid; gap: 6px; }
.aip .ar { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); }
.aip .ar.hd { color: var(--ink); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .68rem; margin-bottom: 2px; }
.aip .ar b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.aip .ar.res { border-top: 1px dashed var(--hair); padding-top: 8px; margin-top: 3px; }
.aip .ar.res b, .aip .up2 { color: var(--leaf); }

/* AI assistant */
.ai { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow-lift); overflow: hidden; max-width: 720px; margin-inline: auto; }
.ai .head-bar { padding: 14px 18px; border-bottom: 1px solid var(--hair); background: var(--surface-2); display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ai .head-bar .mark { width: 22px; height: 22px; border-radius: 6px; }
.ai .body { padding: 20px; display: grid; gap: 14px; }
.bub { max-width: 82%; padding: 12px 15px; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.bub.q { justify-self: end; background: color-mix(in srgb, var(--saffron) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--saffron) 30%, var(--hair)); border-bottom-right-radius: 4px; }
.bub.a { justify-self: start; background: var(--ground); border: 1px solid var(--hair); border-bottom-left-radius: 4px; }
.bub.a b { color: var(--leaf); }
.bub .mono { font-size: .86rem; }

/* CTA */
.cta { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--saffron), var(--saffron-hot)); color: #fff; border-radius: 24px; padding: clamp(40px, 6vw, 76px); text-align: center; box-shadow: var(--shadow-lift); }
.cta h2 { font-size: var(--step-3); color: #fff; }
.cta p { color: rgba(255,255,255,.9); font-size: var(--step-1); max-width: 46ch; margin: 18px auto 0; font-weight: 400; }
.cta .hero-cta { justify-content: center; margin-top: 34px; }
.cta .btn-solid { background: #fff; color: var(--saffron-hot); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cta .btn-solid:hover { transform: translateY(-1px); }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }
.cta::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 320px; background: radial-gradient(50% 100% at 50% 100%, rgba(255,255,255,.25), transparent 70%); }

/* footer */
footer { border-top: 1px solid var(--hair); padding: 44px 0 56px; color: var(--ink-soft); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-in .mono { font-size: .8rem; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--saffron); }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a { font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

:focus-visible { outline: 2.5px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.theme-toggle { background: transparent; border: 1px solid var(--hair); color: var(--ink-soft); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.theme-toggle:hover { border-color: var(--saffron); color: var(--saffron); }

.center-narrow { max-width: 460px; margin-inline: auto; }
.section-alt { background: var(--surface-2); }

/* ---------- phones ---------- */
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .nav-in { height: 58px; }
  .brand { font-size: 1.08rem; }
  .brand .mark { width: 30px; height: 30px; }
  .nav .btn { padding: 10px 14px; font-size: .95rem; }
  .theme-toggle { width: 34px; height: 34px; }

  .hero { padding-top: 30px; }
  .hero h1 { margin-top: 16px; }
  .hero p.lede { max-width: none; margin-top: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-cta .note { text-align: center; }
  .fcard-top { flex-wrap: wrap; gap: 6px; }

  section.block { padding: 46px 0; }
  .head { margin-bottom: 34px; }
  .head h2 { font-size: var(--step-2); }
  .strip-in { gap: 8px 22px; padding: 16px 18px; }
  .cta { padding: 34px 22px; border-radius: 18px; }
  .cta .hero-cta { align-items: stretch; }
  .ai .bub { max-width: 90%; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- FAQ chat widget ---------- */
.cbot-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px 13px 15px; border: none; border-radius: 40px; cursor: pointer;
  background: linear-gradient(150deg, var(--saffron), var(--saffron-hot)); color: #fff;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  box-shadow: 0 8px 24px var(--glow), 0 2px 6px rgba(36,26,18,.18);
  transition: transform .18s, box-shadow .2s, opacity .22s;
}
.cbot-launch:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--glow); }
.cbot-launch svg { flex: none; }
.cbot-launch.hidden { opacity: 0; pointer-events: none; transform: scale(.9); }

.cbot {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  width: min(384px, calc(100vw - 44px)); height: min(600px, calc(100vh - 44px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hair); border-radius: 20px;
  box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.7,.2,1);
}
.cbot.open { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .cbot, .cbot-launch { transition: opacity .2s; } }

.cbot-head { display: flex; align-items: center; gap: 11px; padding: 14px 15px; border-bottom: 1px solid var(--hair); background: var(--surface-2); }
.cbot-head .mark { width: 34px; height: 34px; border-radius: 9px; }
.cbot-head .who { display: flex; flex-direction: column; line-height: 1.3; }
.cbot-head .who b { font-size: .98rem; letter-spacing: -.01em; }
.cbot-head .who span { font-family: var(--mono); font-size: .68rem; color: var(--leaf); display: inline-flex; align-items: center; gap: 6px; }
.cbot-head .who span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.cbot-close { margin-left: auto; background: none; border: none; color: var(--ink-soft); cursor: pointer; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.cbot-close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }

.cbot-body { flex: 1; overflow-y: auto; padding: 18px 15px; display: flex; flex-direction: column; gap: 11px; }
.cbot-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.cbot-msg.bot { align-self: flex-start; background: var(--ground); border: 1px solid var(--hair); border-bottom-left-radius: 4px; }
.cbot-msg.user { align-self: flex-end; background: color-mix(in srgb, var(--saffron) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--saffron) 30%, var(--hair)); border-bottom-right-radius: 4px; }
.cbot-msg b { color: var(--ink); }
.cbot-msg ul { margin: 7px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.cbot-msg li { padding-left: 15px; position: relative; color: var(--ink-soft); }
.cbot-msg li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--saffron); }
.cbot-msg .wa { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; padding: 9px 14px; border-radius: 9px; background: linear-gradient(150deg, #25D366, #128C7E); color: #fff; text-decoration: none; font-weight: 600; font-size: .86rem; }
.cbot-msg .wa:hover { filter: brightness(1.05); }

.cbot-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 13px; border-top: 1px solid var(--hair); background: var(--surface); }
.cbot-chip { font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--ink); background: var(--surface-2); border: 1px solid var(--hair); border-radius: 20px; padding: 7px 13px; cursor: pointer; transition: border-color .18s, color .18s; }
.cbot-chip:hover { border-color: var(--saffron); color: var(--saffron); }

.cbot-foot { text-align: center; padding: 9px 0 12px; background: var(--surface); }
.cbot-foot a { font-family: var(--mono); font-size: .7rem; color: var(--ink-soft); text-decoration: none; }
.cbot-foot a:hover { color: var(--saffron); }

@media (max-width: 560px) {
  .cbot { right: 10px; bottom: 10px; width: calc(100vw - 20px); height: calc(100dvh - 20px); border-radius: 16px; }
  .cbot-launch { right: 16px; bottom: 16px; padding: 15px; border-radius: 50%; }
  .cbot-launch .lbl { display: none; }
}

/* subtle geometric texture on the hero + interior page headers */
.hero, .pagehead {
  background-image: radial-gradient(var(--hair) 0.7px, transparent 0.7px);
  background-size: 26px 26px;
  background-position: -13px -13px;
}

.brand .wm { display: inline-flex; align-items: baseline; }
