/* Well Connected: glass skin for Wattson (redesign, 2026-11-15).
   Wattson itself lives in /intos/wattson/wattson.js, a copy of the intOS repo's file, and is not
   edited here. This sheet only changes how it looks so it matches the site's glass (header, story
   panes, phone menu). CSS only: no script, no markup, nothing about how the chat works.
   Wattson injects its own styles at run time, after this file, so every rule here is one step more
   specific than the rule it replaces. If a class is ever renamed upstream, that part simply goes
   back to Wattson's stock look.
   Loaded by a <link> placed next to the wattson.js script tag on every page that has it. */

/* ---------- 1. launcher: a glass disc ---------- */
html .wt-fab{
  background:linear-gradient(145deg,rgba(255,255,255,.22),rgba(255,255,255,.03) 46%,rgba(176,198,255,.12)),rgba(11,14,20,.5);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(0,0,0,.3),0 18px 40px -16px rgba(0,0,0,.85);
  -webkit-backdrop-filter:blur(10px) saturate(180%);backdrop-filter:blur(10px) saturate(180%);
  transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,opacity .25s,scale .25s cubic-bezier(.2,.8,.2,1);
  transform-origin:100% 100%;
}
html[data-theme=light] .wt-fab.wt-fab{
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(255,255,255,.35) 46%,rgba(36,87,197,.1)),rgba(250,251,254,.55);
  box-shadow:inset 0 0 0 1px rgba(20,23,29,.12),inset 0 1px 0 rgba(255,255,255,.95),0 16px 36px -16px rgba(24,36,70,.5);
}
/* The mascot (2026-11-15): today's bulb with its dark disc and outer ring removed, so the glass
   shows around it, drawn larger, cap in the brand blue. Built from Wattson's own 192px image
   (upscaled, then cut out) and kept in /assets/site/wattson/. It replaces what the <img> shows from
   CSS, so the files in /intos/wattson/ are left alone and a sync from intOS cannot undo it. */
html .wt img[src*="wattson-192"]{content:url(/assets/site/wattson/wattson-256.webp)}
html .wt img[src*="wattson-96"]{content:url(/assets/site/wattson/wattson-96.webp)}
html .wt-fab img{inset:4px;width:56px;height:56px;border-radius:0;filter:drop-shadow(0 2px 5px rgba(0,0,0,.4))}
html .wt-av img,html .wt-halo img,html .wt-mini img{border-radius:0}
/* the ring keeps Wattson's own slow spin (Martin's call, 2026-11-15); Wattson stops it for reduced motion */
html .wt-badge{background:rgba(11,14,20,.8);border-color:rgba(255,255,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22);transition:opacity .25s}
html[data-theme=light] .wt-badge.wt-badge{background:rgba(250,251,254,.88);border-color:rgba(20,23,29,.12);box-shadow:inset 0 1px 0 #fff}

/* ---------- 2. phones, while a story pane is up: smaller, no label, tucked in the pane's corner ---------- */
@media (max-width:760px){
  html:has(.stage .beat.sg.on) .wt-fab{scale:.72}
  html:has(.stage .beat.sg.on) .wt-badge{opacity:0}
}

/* ---------- 3. site menu open: the launcher and its invitation step aside ---------- */
html.wc-lock .wt-fab,html.wc-lock .wt-teaser.wt-teaser{opacity:0;visibility:hidden;pointer-events:none}

/* ---------- 4. invitation bubble: a glass pill ---------- */
html .wt-teaser{--wt-panel:rgba(11,14,20,.74);border-color:rgba(255,255,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 16px 34px -16px rgba(0,0,0,.8)}
html[data-theme=light] .wt-teaser.wt-teaser{--wt-panel:rgba(250,251,254,.84);border-color:rgba(20,23,29,.1);box-shadow:inset 0 1px 0 #fff,0 16px 34px -18px rgba(24,36,70,.45)}

/* ---------- 5. chat window: glass frame and header, solid where the conversation is read ---------- */
html .wt-panel{
  background:linear-gradient(rgba(11,14,20,.68) 0,rgba(11,14,20,.68) 64px,rgba(13,16,22,.975) 104px);
  border-color:rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 30px 80px -20px rgba(0,0,0,.7),0 0 0 1px rgba(0,0,0,.25);
}
html[data-theme=light] .wt-panel.wt-panel{
  background:linear-gradient(rgba(250,251,254,.86) 0,rgba(250,251,254,.86) 64px,rgba(250,250,253,.99) 104px);
  border-color:rgba(20,23,29,.1);
  box-shadow:inset 0 1px 0 #fff,0 30px 70px -24px rgba(20,30,60,.4),0 0 0 1px rgba(20,23,29,.06);
}
/* small grey text in the glass header gets the stronger of Wattson's two text colours */
html .wt-role{color:var(--wt-soft)}

/* ---------- fallbacks: no glass, Wattson's own solid surfaces ---------- */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html .wt-panel,html[data-theme=light] .wt-panel.wt-panel{background:var(--wt-panel)}
  html .wt-fab{background:radial-gradient(120% 120% at 30% 20%,rgba(70,110,200,.55),rgba(14,18,28,.94) 62%)}
  html .wt-teaser{--wt-panel:rgba(16,19,26,.97)}
}
@media (prefers-reduced-transparency:reduce){
  html .wt-panel,html[data-theme=light] .wt-panel.wt-panel{background:var(--wt-panel);-webkit-backdrop-filter:none;backdrop-filter:none}
  html .wt-fab,html .wt-teaser,html .wt-badge{-webkit-backdrop-filter:none;backdrop-filter:none}
  html .wt-fab{background:radial-gradient(120% 120% at 30% 20%,rgba(70,110,200,.55),rgba(14,18,28,.96) 62%)}
  html .wt-teaser{--wt-panel:rgba(16,19,26,.98)}
}
@media (prefers-reduced-motion:reduce){html .wt-fab,html .wt-badge{transition:none}}

/* Privacy notice (2026-11-16). Wattson already says it is an AI; it did not say the chat is kept.
   The sentence is added here, after the widget's own disclosure, because wattson.js belongs to intOS
   and is not edited in this repo. CSS text cannot be a link, so the address is written out.
   When intOS adds its own notice with a real link, delete this rule. */
html .wt .wt-disc span:last-child::after,html .wt-disc span:last-child::after{content:" Chats are saved so we can follow up. Privacy: wellconnectedsmarttech.com/privacy"}

/* Accent glass (2026-11-16): Wattson's two solid blue controls take the site's blue glass (section 9 of landing-system.css). Look only. */
html .wt-send,html .wt-btn{
  background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,0) 46%),linear-gradient(180deg,var(--ag-a,rgba(72,132,246,.74)),var(--ag-b,rgba(30,84,214,.84)));
  box-shadow:inset 0 1px 0 var(--ag-top,rgba(255,255,255,.5)),inset 0 0 0 1px var(--ag-rim,rgba(190,212,255,.42)),inset 0 -10px 16px -10px rgba(6,20,84,.6);
  -webkit-backdrop-filter:blur(14px) saturate(190%);backdrop-filter:blur(14px) saturate(190%);
}
