/* ============================================================
   Assistant Widget — self-contained, dependency-free.
   Everything is scoped under .aw- so it cannot collide with a
   host theme (Divi in particular ships very broad button/input
   selectors, hence the explicit resets below).
   ============================================================ */

.aw-root{
  --aw-bg:#0A0A0A;
  --aw-fg:#ffffff;
  --aw-launcher-bg:#0E0E0E;
  --aw-launcher-bg-hover:#161616;
  --aw-launcher-fg:#FAFAFA;
  --aw-font:"Neue Montreal",Inter,"Helvetica Neue",Helvetica,Arial,system-ui,sans-serif;
  --aw-ease:cubic-bezier(.16,1,.3,1);
  --aw-spring:cubic-bezier(.34,1.56,.64,1);
  --aw-head-h:64px;
}

.aw-root *,
.aw-root *::before,
.aw-root *::after{box-sizing:border-box}

/* Zero-specificity reset: :where() keeps these from out-ranking the
   component classes below, which a plain `.aw-root button` selector does. */
:where(.aw-root) :where(button,input,textarea){
  font:inherit;color:inherit;margin:0;
  background:none;border:0;border-radius:0;
  -webkit-appearance:none;appearance:none;
}
:where(.aw-root) :where(button){cursor:pointer;text-align:left}
:where(.aw-root) :where(input,textarea){outline:none}
.aw-root :focus-visible{outline:2px solid rgba(255,255,255,.7);outline-offset:2px}

/* ---------------------------------------------------------- launcher */

.aw-launcher{
  position:fixed;bottom:24px;left:24px;z-index:95;
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 20px 12px 14px;
  background:var(--aw-launcher-bg);color:var(--aw-launcher-fg);
  font-family:var(--aw-font);font-size:14px;font-weight:500;
  letter-spacing:-0.01em;line-height:1;
  border-radius:9999px;
  box-shadow:0 10px 30px -10px rgba(0,0,0,.4),inset 0 0 0 1px rgba(255,255,255,.06);
  opacity:0;transform:translateY(16px);
  transition:opacity .45s var(--aw-ease) .4s,
             transform .45s var(--aw-ease) .4s,
             background-color .3s ease-out;
}
.aw-launcher.is-in{opacity:1;transform:none}
.aw-launcher:hover{background:var(--aw-launcher-bg-hover);transform:scale(1.02)}
.aw-launcher.is-hidden{
  opacity:0;transform:translateY(16px) scale(.92);pointer-events:none;
  transition-delay:0s;
}
.aw-launcher canvas{display:block;width:20px;height:20px;flex:none}

/* ---------------------------------------------------------- backdrop */

.aw-backdrop{
  position:fixed;inset:0;z-index:190;
  background:rgba(0,0,0,.3);
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
  opacity:0;pointer-events:none;
  transition:opacity .25s var(--aw-ease);
}
.aw-backdrop.is-open{opacity:1;pointer-events:auto}

/* ---------------------------------------------------------- panel */

.aw-panel{
  position:fixed;bottom:24px;left:24px;z-index:200;
  display:flex;flex-direction:column;
  width:380px;max-width:calc(100vw - 3rem);
  height:640px;max-height:calc(100vh - 3rem);
  background:var(--aw-bg);color:var(--aw-fg);
  font-family:var(--aw-font);font-size:14px;line-height:1.5;
  border-radius:26px;overflow:hidden;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.10);
  transform-origin:bottom left;
  opacity:0;transform:translateY(30px) scale(.6) rotate(-1.5deg);
  pointer-events:none;
  transition:opacity .28s var(--aw-ease),transform .28s var(--aw-ease);
}
.aw-panel.is-open{
  opacity:1;transform:none;pointer-events:auto;
  transition:opacity .25s var(--aw-ease),transform .6s var(--aw-spring);
}
.aw-panel.is-closing{
  opacity:0;transform:translateY(24px) scale(.85);
  transition:opacity .28s var(--aw-ease),transform .28s var(--aw-ease);
}

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

.aw-head{
  position:absolute;top:0;left:0;right:0;z-index:30;
  display:flex;align-items:center;justify-content:space-between;
  height:var(--aw-head-h);
  padding:0 24px;
  background:var(--aw-bg);
}
.aw-tabs{display:flex;align-items:center;gap:16px}
.aw-tab{
  font-size:14px;font-weight:400;line-height:1;padding:2px 0;
  color:rgba(255,255,255,.45);
  transition:color .25s var(--aw-ease);
}
.aw-tab:hover{color:rgba(255,255,255,.75)}
.aw-tab[aria-selected="true"]{color:#fff;font-weight:500}
.aw-close{
  display:grid;place-items:center;flex:none;
  width:32px;height:32px;border-radius:9999px;
  background:rgba(255,255,255,.10);
  transition:background-color .25s var(--aw-ease);
}
.aw-close:hover{background:rgba(255,255,255,.15)}
.aw-close svg{width:14px;height:14px;display:block}

/* ---------------------------------------------------------- views */

.aw-view{display:none;flex:1;min-height:0;flex-direction:column;position:relative}
.aw-view.is-active{display:flex}

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

/* Starts below the nav rather than behind it: the bar is opaque, so anything
   underneath it is simply lost, which decapitated a portrait subject. The
   box's aspect is also what decides how much object-fit: cover crops — the
   closer it gets to the source's, the more of the subject survives. */
.aw-chat-media{
  position:absolute;top:var(--aw-head-h);left:0;right:0;
  height:calc(72% - var(--aw-head-h));
  overflow:hidden;pointer-events:none;
}
.aw-chat-media video,
.aw-chat-media img{
  width:100%;height:100%;object-fit:cover;display:block;
  opacity:0;transform:scale(1.08);
  transition:opacity 1.1s var(--aw-ease),transform 1.1s var(--aw-ease);
}
.aw-chat-media.is-in video,
.aw-chat-media.is-in img{opacity:1;transform:none}
.aw-chat-media::after,
.aw-chat-media::before{content:"";position:absolute;inset:0;pointer-events:none}
.aw-chat-media::before{
  background:radial-gradient(ellipse 75% 70% at 50% 42%,transparent 0%,rgba(10,10,10,.35) 55%,rgba(10,10,10,.95) 90%,#0A0A0A 100%);
}
.aw-chat-media::after{
  top:auto;height:128px;
  background:linear-gradient(to bottom,transparent 0%,#0A0A0A 90%);
}

/* Light footage (e.g. line art on white) needs the opposite treatment: the
   dark vignette above would grey the whole frame, so drop it and carry the
   fade to the panel background over a longer run instead. */
.aw-chat-media--light::before{
  background:radial-gradient(ellipse 95% 90% at 50% 38%,
    transparent 0%,transparent 58%,rgba(10,10,10,.06) 80%,rgba(10,10,10,.18) 100%);
}
.aw-chat-media--light::after{
  height:210px;
  background:linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,rgba(190,190,190,.55) 34%,rgba(40,40,40,.92) 74%,#0A0A0A 94%);
}

.aw-thread{
  position:relative;z-index:10;flex:1;min-height:0;
  display:flex;flex-direction:column;justify-content:flex-end;
  gap:10px;overflow-y:auto;overscroll-behavior:contain;
  padding:62% 24px 12px;
}

.aw-empty{opacity:0;transform:translateY(10px)}
.aw-empty.is-in{
  opacity:1;transform:none;
  transition:opacity .5s var(--aw-ease) .35s,transform .5s var(--aw-ease) .35s;
}
.aw-empty__name{font-size:12px;color:rgba(255,255,255,.55);margin-bottom:6px}
.aw-empty__greet{
  font-size:17px;line-height:1.35;letter-spacing:-0.01em;
  max-width:28ch;margin-bottom:16px;
}
.aw-chips{display:flex;flex-wrap:wrap;gap:8px}
.aw-chip{
  font-size:13px;line-height:1;padding:8px 14px;border-radius:9999px;
  background:rgba(22,22,22,.90);color:#fff;border:1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  opacity:0;transform:translateY(8px);
  transition:background-color .25s var(--aw-ease);
}
.aw-chip:hover{background:rgba(48,48,48,.94)}
.aw-chip--primary{background:#fff;color:#000}
.aw-chip--primary:hover{background:#fff}
.aw-chip.is-in{
  opacity:1;transform:none;
  transition:opacity .45s var(--aw-ease),transform .45s var(--aw-ease),background-color .25s var(--aw-ease);
}

/* Messages scroll up over the hero footage, which can be near-white (line
   art), so every bubble carries its own dark, near-opaque ground. At .92
   alpha the worst case — over pure white — still composites to about #262626,
   well past AA contrast for white text. The blur softens what little shows. */
.aw-msg{
  max-width:85%;border-radius:16px;padding:10px 14px;
  font-size:14px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word;
  color:#fff;border:1px solid rgba(255,255,255,.10);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.aw-msg--user{align-self:flex-end;background:rgba(44,44,44,.94)}
.aw-msg--bot{align-self:flex-start;background:rgba(14,14,14,.92)}
.aw-msg--bot:empty::after{content:"…";opacity:.45}

.aw-chips--follow{margin-top:2px;align-self:flex-start;max-width:95%}

.aw-chat-cta{
  align-self:flex-start;display:inline-flex;align-items:center;gap:6px;
  margin-top:2px;padding:8px 14px;border-radius:9999px;
  background:#fff;color:#000;font-size:13px;font-weight:500;line-height:1;
}
.aw-chat-cta span{transition:transform .25s var(--aw-ease)}
.aw-chat-cta:hover span{transform:translateX(3px)}

.aw-composer{position:relative;z-index:10;padding:8px 16px 16px}
.aw-composer form{
  display:flex;align-items:center;gap:12px;
  padding:10px 16px 10px 12px;border-radius:9999px;
  background:rgba(255,255,255,.06);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
  transition:box-shadow .25s var(--aw-ease);
}
.aw-composer form:focus-within{box-shadow:inset 0 0 0 1px rgba(255,255,255,.20)}
.aw-composer__glyph{
  display:grid;place-items:center;flex:none;
  width:28px;height:28px;border-radius:9999px;
  background:rgba(255,255,255,.08);
}
.aw-composer__glyph canvas{display:block;width:20px;height:20px}
.aw-composer input{flex:1;min-width:0;font-size:14px;color:#fff;background:none}
.aw-composer input::placeholder{color:rgba(255,255,255,.45)}
.aw-composer input:disabled{opacity:.6}

/* ---------------------------------------------------------- quote */

.aw-progress{
  position:absolute;top:68px;left:20px;right:20px;z-index:20;
  height:1px;background:rgba(255,255,255,.10);
}
.aw-progress__fill{
  position:absolute;inset:0 auto 0 0;width:0;
  background:#fff;
  transition:width .55s var(--aw-ease);
}
.aw-progress__dot{
  position:absolute;top:50%;right:0;
  width:12px;height:12px;margin:-6px -6px 0 0;
  border-radius:9999px;background:#fff;
}
.aw-progress__ping{
  position:absolute;top:50%;right:0;
  width:12px;height:12px;margin:-6px -6px 0 0;
  border-radius:9999px;background:#fff;opacity:0;
  pointer-events:none;
}
.aw-progress__ping.is-ping{animation:aw-ping .9s var(--aw-ease) forwards}
@keyframes aw-ping{
  0%{opacity:.9;transform:scale(.6);box-shadow:0 0 12px 4px rgba(255,255,255,.55)}
  100%{opacity:0;transform:scale(2.6);box-shadow:0 0 24px 10px rgba(255,255,255,0)}
}

.aw-quote-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:96px 20px 110px}
.aw-step{opacity:1;transform:none;transition:opacity .3s var(--aw-ease),transform .3s var(--aw-ease)}
.aw-step.is-out{opacity:0;transform:translateX(-12px)}
.aw-step.is-in-start{opacity:0;transform:translateX(16px)}

.aw-eyebrow{
  display:block;font-size:11px;text-transform:uppercase;letter-spacing:.14em;
  color:rgba(255,255,255,.45);margin-bottom:10px;
}
.aw-q-title{font-size:19px;font-weight:500;letter-spacing:-0.02em;line-height:1.25;margin-bottom:18px}

.aw-options{display:flex;flex-direction:column;gap:8px}
.aw-opt{
  position:relative;display:flex;align-items:center;gap:12px;width:100%;
  padding:12px 16px;border-radius:12px;
  background:transparent;color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
  transition:background-color .2s var(--aw-ease),box-shadow .2s var(--aw-ease),color .2s var(--aw-ease);
}
.aw-opt:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.30)}
.aw-opt__icon{flex:none;width:18px;height:18px;color:rgba(255,255,255,.65);display:block}
.aw-opt__icon svg{width:18px;height:18px;display:block}
.aw-opt__label{font-size:14px;font-weight:500;line-height:1.3}
.aw-opt__sub{display:block;font-size:12px;font-weight:400;color:rgba(255,255,255,.45);margin-top:2px}
.aw-opt.is-selected{background:#fff;color:#000;box-shadow:inset 0 0 0 1px #fff}
.aw-opt.is-selected .aw-opt__sub{color:rgba(0,0,0,.55)}
.aw-opt.is-selected .aw-opt__icon{color:rgba(0,0,0,.75)}
.aw-opt__check{
  position:absolute;top:8px;right:8px;display:none;place-items:center;
  width:16px;height:16px;border-radius:9999px;background:#000;
}
.aw-opt__check svg{width:9px;height:9px;display:block;color:#fff}
.aw-opt.is-selected .aw-opt--multi-check{display:grid}

.aw-quote-foot{
  position:absolute;bottom:0;left:0;right:0;z-index:20;padding:16px 20px;
  background:linear-gradient(to top,var(--aw-bg) 0%,var(--aw-bg) 60%,transparent 100%);
}
.aw-estimate{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:14px;
  opacity:0;transform:translateY(8px);pointer-events:none;height:0;overflow:hidden;
  transition:opacity .4s var(--aw-ease),transform .4s var(--aw-ease);
}
.aw-estimate.is-visible{opacity:1;transform:none;height:auto;pointer-events:auto}
.aw-estimate__label{
  display:flex;align-items:center;gap:6px;
  font-size:10px;text-transform:uppercase;letter-spacing:.16em;
  color:rgba(255,255,255,.45);
}
.aw-estimate__label svg{width:14px;height:8px;display:block}
.aw-estimate__value{font-size:22px;font-weight:500;letter-spacing:-0.02em;transition:opacity .3s var(--aw-ease)}
.aw-estimate__value.is-talk{font-size:18px}
.aw-estimate__value.is-flash{opacity:.55}

.aw-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.aw-back{font-size:12px;color:rgba(255,255,255,.55);transition:color .2s var(--aw-ease)}
.aw-back:hover{color:#fff}
.aw-back:disabled{opacity:.3;cursor:not-allowed;color:rgba(255,255,255,.55)}
.aw-btn{
  padding:10px 20px;border-radius:9999px;
  background:#fff;color:#000;font-size:13px;font-weight:500;line-height:1;
  text-align:center;
  transition:background-color .2s var(--aw-ease),color .2s var(--aw-ease);
}
.aw-btn:disabled{background:rgba(255,255,255,.10);color:rgba(255,255,255,.40);cursor:not-allowed}
.aw-btn--block{display:block;width:100%;padding:12px 20px}

/* ------------------------------------------------ lead gate + forms */

.aw-lead__head{font-size:26px;font-weight:500;letter-spacing:-0.02em;line-height:1.2;margin-bottom:10px}
.aw-lead__copy{font-size:13px;color:rgba(255,255,255,.60);line-height:1.5;margin-bottom:18px}
.aw-eyebrow--icon{display:flex;align-items:center;gap:6px}
.aw-eyebrow--icon svg{width:14px;height:8px;display:block;flex:none}

.aw-form{display:flex;flex-direction:column;gap:10px}
.aw-form input,.aw-form textarea{
  width:100%;padding:10px 14px;border-radius:8px;font-size:13px;color:#fff;
  background:rgba(255,255,255,.06);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
  transition:box-shadow .2s var(--aw-ease);
  resize:vertical;
}
.aw-form input::placeholder,.aw-form textarea::placeholder{color:rgba(255,255,255,.40)}
.aw-form input:focus,.aw-form textarea:focus{box-shadow:inset 0 0 0 1px rgba(255,255,255,.30)}
.aw-error{font-size:12px;color:#FCA5A5;min-height:0}

.aw-result{opacity:0;transform:translateY(12px)}
.aw-result.is-in{opacity:1;transform:none;transition:opacity .5s var(--aw-ease),transform .5s var(--aw-ease)}
.aw-range{display:flex;align-items:baseline;gap:10px;margin:6px 0 12px}
.aw-range__n{font-size:36px;font-weight:500;letter-spacing:-0.03em;line-height:1}
.aw-range__dash{font-size:24px;color:rgba(255,255,255,.45);line-height:1}
.aw-note{font-size:12px;color:rgba(255,255,255,.55);line-height:1.5}
.aw-card{
  margin-top:18px;padding:16px;border-radius:12px;
  background:rgba(255,255,255,.06);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
  font-size:13px;line-height:1.55;
}
.aw-card strong{font-weight:500}
.aw-card p+p{color:rgba(255,255,255,.60);margin-top:4px}

/* ---------------------------------------------------------- contact */

.aw-contact{flex:1;min-height:0;overflow-y:auto;padding:80px 24px 24px;display:flex;flex-direction:column}
.aw-contact__label{font-size:12px;color:rgba(255,255,255,.55);margin-bottom:6px}
.aw-contact__intro{font-size:17px;line-height:1.35;letter-spacing:-0.01em;max-width:30ch;margin-bottom:20px}
.aw-contact form{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0}
.aw-contact form input,.aw-contact form textarea{
  padding:12px 16px;border-radius:12px;font-size:14px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
}
.aw-contact form input:focus,.aw-contact form textarea:focus{box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.aw-contact form textarea{min-height:120px;flex:1}
.aw-done{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:10px;
  opacity:0;transform:translateY(12px);
}
.aw-done.is-in{opacity:1;transform:none;transition:opacity .5s var(--aw-ease),transform .5s var(--aw-ease)}
.aw-done__mark{
  display:grid;place-items:center;width:48px;height:48px;border-radius:9999px;
  background:rgba(255,255,255,.10);margin-bottom:4px;
}
.aw-done__mark svg{width:18px;height:18px;display:block}
.aw-done__t{font-size:18px;font-weight:500;letter-spacing:-0.01em}
.aw-done__s{font-size:14px;color:rgba(255,255,255,.60);max-width:30ch}

/* ---------------------------------------------------------- mobile */

@media (max-width:480px){
  .aw-panel{inset:12px;width:auto;height:auto;max-width:none;max-height:none;border-radius:22px}
  .aw-launcher{bottom:16px;left:16px}
}

/* ------------------------------------------------- reduced motion */

@media (prefers-reduced-motion:reduce){
  .aw-root *{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
  .aw-panel.is-open{transform:none}
}
