/* ACAS trial email gate (trial-gate.v1.js). Self-contained: product pages
   each have their own palette, so nothing here relies on page variables.
   /assets/* is cached immutable for a year: change this file = new name. */
.tg-dialog{
  --tg-bg:#0d1725; --tg-bg2:#060b12; --tg-line:rgba(140,185,230,.18); --tg-line-hi:rgba(120,220,255,.42);
  --tg-text:#e7eff8; --tg-muted:#93a9c2; --tg-dim:#6b839c; --tg-cyan:#22d3ee; --tg-err:#fca5a5;
  width:min(440px, calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto;
  margin:auto; padding:0; border:1px solid var(--tg-line-hi); border-radius:16px;
  background:var(--tg-bg); color:var(--tg-text);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif; font-size:15px; line-height:1.55;
  box-shadow:0 24px 80px rgba(0,0,0,.6);
}
.tg-dialog::backdrop{background:rgba(3,6,10,.72);backdrop-filter:blur(3px)}
.tg-dialog *{box-sizing:border-box}
.tg-inner{position:relative;padding:26px 26px 22px}
.tg-eyebrow{margin:0 0 6px;font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--tg-cyan)}
.tg-title{margin:0 0 8px;padding-right:36px;font-family:Sora,Inter,system-ui,sans-serif;font-size:21px;font-weight:600;line-height:1.25;letter-spacing:-.01em;color:var(--tg-text)}
.tg-lede{margin:0 0 18px;color:var(--tg-muted);font-size:14.5px}
.tg-close{
  position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:10px;
  border:1px solid var(--tg-line);background:transparent;color:var(--tg-muted);
  font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.tg-close:hover{color:var(--tg-text);border-color:var(--tg-line-hi)}
.tg-label{display:block;margin:0 0 6px;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--tg-dim)}
.tg-email{
  display:block;width:100%;font:inherit;font-size:16px;color:var(--tg-text);
  background:var(--tg-bg2);border:1px solid var(--tg-line);border-radius:10px;padding:11px 13px;
}
.tg-email::placeholder{color:var(--tg-dim)}
.tg-email[aria-invalid="true"]{border-color:var(--tg-err)}
.tg-check{display:flex;gap:10px;align-items:flex-start;margin:14px 0 0;color:var(--tg-muted);font-size:14px;cursor:pointer}
.tg-check input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--tg-cyan)}
.tg-turnstile{min-height:65px;margin:16px 0 0}
.tg-error{min-height:0;margin:10px 0 0;color:var(--tg-err);font-size:14px}
.tg-error:empty{display:none}
.tg-error a,.tg-done a,.tg-fine a{color:var(--tg-cyan)}
.tg-submit{
  display:block;width:100%;margin:16px 0 0;font:inherit;font-size:15px;font-weight:600;cursor:pointer;
  padding:12px 18px;border-radius:10px;border:1px solid var(--tg-cyan);background:var(--tg-cyan);color:#041018;
}
.tg-submit:hover{filter:brightness(1.08)}
.tg-submit[disabled]{opacity:.6;cursor:progress;filter:none}
.tg-fine{margin:14px 0 0;color:var(--tg-dim);font-size:12.5px}
.tg-done p{margin:0 0 12px;color:var(--tg-muted)}
.tg-done .tg-title{padding-right:36px}
.tg-dialog :focus-visible{outline:2px solid var(--tg-cyan);outline-offset:2px}
.tg-email:focus{outline:none;border-color:var(--tg-cyan);box-shadow:0 0 0 3px rgba(34,211,238,.15)}
.tg-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
@media (max-width:480px){
  .tg-inner{padding:22px 18px 18px}
  .tg-title{font-size:19px}
}
@media (prefers-reduced-motion:no-preference){
  .tg-dialog[open]{animation:tg-in .16s ease-out}
  @keyframes tg-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}
