/* Site-wide "Try Now" announcement modal  appears automatically on first
   page load (see site-announcement.js for the exact show/hide rules).
   Styled with the SITE's own premium design tokens (Inter/Geist, --green,
   --gray-*, --radius, --shadow-xl, --ease)  the same look as the rest of
   the marketing site, not the "Try Now" demo widget's own plugin-matched
   palette (#tryNowModal, try-now-demo.css). Loaded on every page. */

#siteAnnounceOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
#siteAnnounceOverlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-announce-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 20px;
  /* Layered shadow  a soft, far-thrown wash plus a tighter, closer one 
     reads as more deliberately "lifted" than a single flat shadow. */
  box-shadow:
    0 32px 72px rgba(10, 10, 10, 0.2),
    0 8px 24px rgba(10, 10, 10, 0.1);
  padding: 44px 40px 38px;
  text-align: center;
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.4s var(--ease),
    opacity 0.4s var(--ease);
}
#siteAnnounceOverlay.is-open .site-announce-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.site-announce-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.site-announce-close:hover {
  background: var(--gray-200);
  color: var(--black);
  transform: scale(1.08);
}

.site-announce-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-announce-headline {
  font-family: 'Geist', sans-serif;
  font-size: clamp(23px, 3.6vw, 29px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--black);
  line-height: 1.22;
  margin-bottom: 14px;
}

.site-announce-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 26px;
}
.site-announce-sub strong {
  color: var(--gray-800);
  font-weight: 600;
}

.site-announce-countdown-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.site-announce-cta {
  width: 100%;
  justify-content: center;
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(22, 163, 74, 0.05);
}

@media (max-width: 480px) {
  .site-announce-card {
    padding: 34px 24px 28px;
    border-radius: 16px;
  }
  .site-announce-sub {
    margin-bottom: 22px;
  }
  .site-announce-countdown-wrap {
    margin-bottom: 24px;
  }
}

/* ── Campaign countdown display  shared by the download page's own
   banner (try-now-demo.js) and this modal (site-announcement.js), driven
   by the one tick/format implementation in campaign-countdown.js. Styled
   as a sharp-cornered "editorial callout" strip  subtle gradient fill,
   a thin border, and a left accent bar (the same pattern premium SaaS
   changelog/announcement banners use) rather than a plain rounded
   highlight pill. ─────────────────────────────────────────────────── */
.demo-campaign-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto clamp(14px, 2.2vh, 26px);
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--white) 0%, var(--green-light) 145%);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--green);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--gray-800);
}
.demo-campaign-text strong {
  color: var(--green);
  font-weight: 700;
}
.demo-campaign-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
}
.demo-campaign-countdown::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
/* The countdown value specifically  bumped a bit larger/heavier than the
   surrounding banner text so it reads clearly at a glance, still the
   site's own Geist (no new font introduced). */
.demo-campaign-countdown strong {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.01em;
}
/* The days/hours DIGITS specifically (never the "d"/"h" unit letters,
   never minutes/seconds)  a genuinely display-scale numeral, same 800
   weight already used for the plan cards' own big price figures
   (.plan-price), for a confident, high-end feel rather than just a bigger
   version of the surrounding text. */
.demo-countdown-num-emph {
  display: inline-block;
  font-family: 'Geist', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  vertical-align: -2px;
}

.demo-campaign-ended {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto clamp(14px, 2.2vh, 26px);
  padding: 15px 28px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gray-400);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
}

@media (max-width: 480px) {
  .demo-campaign-banner,
  .demo-campaign-ended {
    font-size: 13px;
    padding: 12px 20px;
  }
  .demo-campaign-countdown strong {
    font-size: 14px;
  }
  .demo-countdown-num-emph {
    font-size: 19px;
    vertical-align: -1px;
  }
}

/* Inside the modal card, the countdown strip sits on the card's own white
   background rather than the page background  otherwise identical. */
.site-announce-countdown-wrap .demo-campaign-banner,
.site-announce-countdown-wrap .demo-campaign-ended {
  margin: 0;
}
