/* The AI assistant launcher, and the notice in front of it.

   Two jobs, and they pull in opposite directions. The launcher sits where the
   vendor's own button used to and should feel like part of the site. The
   notice has to be read, which means it cannot be a toast in a corner or a
   strip along the bottom that the eye files under cookie banner.

   So it is a modal dialog, and the two answers are given equal weight: same
   size, same hit area, both plainly labelled. A decline styled as a whisper
   next to a loud accept is the pattern that gets consent flows thrown out,
   and it is exactly what a plaintiff's exhibit would be a screenshot of.
*/

.ai-dock{
  position:fixed;right:clamp(14px,2.4vw,26px);bottom:clamp(14px,2.4vw,26px);
  z-index:60;
}
.ai-dock[hidden]{display:none}

.ai-launch{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--sans);font-size:13.5px;font-weight:500;letter-spacing:.01em;
  color:var(--salt);background:var(--kelp);
  border:1px solid var(--kelp);border-radius:999px;
  padding:12px 19px;cursor:pointer;
  box-shadow:0 6px 22px rgba(36,37,31,.22);
  transition:background .18s ease,transform .18s ease;
}
.ai-launch:hover{background:#333729;transform:translateY(-1px)}
.ai-launch:focus-visible{outline:2px solid var(--clay);outline-offset:3px}
.ai-launch-i{
  width:17px;height:17px;flex:none;border-radius:50%;
  background:var(--sage);display:inline-block;
}

/* The notice ------------------------------------------------------------ */

.ai-gate{
  width:min(486px,calc(100vw - 32px));
  padding:0;border:none;border-radius:4px;
  background:var(--salt);color:var(--ink);
  box-shadow:0 24px 70px rgba(36,37,31,.3);
}
.ai-gate::backdrop{background:rgba(36,37,31,.52)}
.ai-gate-in{padding:clamp(22px,4vw,32px)}

.ai-gate h2{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(23px,3.4vw,28px);line-height:1.15;
  margin:0 0 4px;
}
.ai-gate .ai-sub{
  font-family:var(--sans);font-size:11px;font-weight:500;
  letter-spacing:.11em;text-transform:uppercase;color:var(--clay);
  margin:0 0 14px;
}
.ai-gate p{
  font-family:var(--sans);font-size:14px;line-height:1.62;
  color:var(--ink-2);margin:0 0 12px;
}
.ai-gate a{color:var(--clay)}

/* The three facts that have to land: who runs it, what reaches them, and
   that it is recorded. Set apart so they are not read as prose. */
.ai-facts{
  list-style:none;margin:0 0 16px;padding:14px 16px;
  background:var(--sand);border-left:2px solid var(--sage);
}
.ai-facts li{
  font-family:var(--sans);font-size:13.5px;line-height:1.55;
  color:var(--ink);margin:0;
}
.ai-facts li + li{margin-top:8px}

.ai-acts{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
.ai-acts button{
  font-family:var(--sans);font-size:13.5px;font-weight:500;
  padding:12px 20px;border-radius:2px;cursor:pointer;flex:1 1 auto;
  transition:background .18s ease,border-color .18s ease;
}
/* Equal weight on purpose. See the note at the top of this file. */
#ai-accept{color:var(--salt);background:var(--kelp);border:1px solid var(--kelp)}
#ai-accept:hover{background:#333729}
#ai-decline{color:var(--ink);background:transparent;border:1px solid var(--hair)}
#ai-decline:hover{border-color:var(--ink);background:rgba(36,37,31,.04)}
.ai-acts button:focus-visible{outline:2px solid var(--clay);outline-offset:2px}

.ai-gate .ai-fine{
  font-size:12.5px;color:var(--ink-3);margin:14px 0 0;
  padding-top:12px;border-top:1px solid var(--hair);
}

@media (max-width:420px){
  .ai-acts{flex-direction:column}
  .ai-acts button{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .ai-launch,.ai-acts button{transition:none}
  .ai-launch:hover{transform:none}
}
@media print{
  .ai-dock,.ai-gate{display:none !important}
}
