/* ---------------------------------------------------------------------------
   Trial / demo modal — shared by the HubSpot demo modal (home, intelligence)
   and the self-serve trial-signup modal (every page via base.html), so it must
   be self-contained: local token pins instead of landing.css :root tokens.
   HubSpot renders the embedded form light-only, so the box is pinned to the
   light palette regardless of the OS color scheme; the color-scheme pin keeps
   the browser from dark-styling native form controls inside it.
--------------------------------------------------------------------------- */
.trial-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  background: rgba(24, 18, 25, 0.55);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.trial-modal[hidden] {
  display: none;
}
.trial-modal-box {
  color-scheme: light;
  --white: #ffffff;
  --paper: #f8f8f6;
  --surface-2: #fbfafc;
  --ink: #181219;
  --ink-soft: #5d5663;
  --ink-faint: #a59caf;
  --purple: #492881;
  --purple-600: #5b3499;
  --lav: #ece6f4;
  --hair: rgba(24, 18, 25, 0.11);
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(24, 18, 25, 0.28);
  color: var(--ink);
  font-family: var(--sans);
}
.trial-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.trial-modal-close:hover {
  background: var(--lav);
  color: var(--ink);
}
.trial-modal-title {
  margin: 14px 0 24px;
  font-family: var(--serif);
  color: var(--ink);
}
.trial-modal-box .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
}
.trial-modal-box .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
}
.trial-modal-box .btn-primary {
  background: var(--purple);
  color: #fff;
}
.trial-modal-box .btn-primary:hover {
  background: var(--purple-600);
  transform: translateY(-1px);
}
.trial-signup-sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 6px;
}
.trial-signup-email {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border: 1px solid var(--hair);
  border-radius: 8px;
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}
.trial-signup-email::placeholder {
  color: var(--ink-faint);
}
.trial-signup-done {
  color: var(--ink);
}
.trial-signup-done p a {
  color: var(--purple);
}
@media (max-width: 600px) {
  .trial-modal {
    padding: 40px 14px;
  }
  .trial-modal-box {
    padding: 28px 22px;
  }
}