/* "Launching soon" popup shown once per visitor on the homepage.
   Layout follows the Claude Design "Carstream Hero" launch modal; colors and
   fonts come from the landing tokens in landing.css so it reads as native. */

@keyframes csb-pop-in {
  0% { opacity: 0; transform: translateY(26px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes csb-fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }

.csb-wrap {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 32px; box-sizing: border-box; overflow-y: auto;
}
.csb-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 7, 11, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: csb-fade-in 0.3s ease both;
}
.csb-card {
  position: relative; margin: auto 0; width: 100%; max-width: 560px;
  max-height: calc(100vh - 40px); overflow-y: auto; overflow-x: hidden;
  border-radius: 22px; border: 1px solid rgba(86, 184, 212, 0.22);
  background: linear-gradient(180deg, #0c141d, var(--bg-2));
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7), 0 0 90px rgba(86, 184, 212, 0.1);
  animation: csb-pop-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.csb-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.csb-topline {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.csb-x {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 140ms ease;
}
.csb-x:hover { background: rgba(255, 255, 255, 0.12); }
.csb-body {
  position: relative; padding: 44px 44px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.csb-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(70, 192, 138, 0.4); border-radius: 26px; padding: 8px 16px;
}
.csb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 9px var(--good);
}
.csb-pill span:last-child {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em;
  color: #7fe0a8; text-transform: uppercase;
}
.csb-brand { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.csb-brand svg { display: block; border-radius: 8px; }
.csb-brand span {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: 0.06em; color: var(--ink-0);
}
.csb-h {
  margin: 20px 0 0; font-family: var(--font-display); font-weight: 600;
  font-size: 28px; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink-0);
}
.csb-h .hl { color: var(--accent); }
.csb-p {
  margin: 16px 0 0; font-size: 15.5px; line-height: 1.55;
  color: var(--ink-3); max-width: 420px;
}
.csb-ctas {
  display: flex; gap: 12px; margin-top: 28px;
  flex-wrap: wrap; justify-content: center;
}
/* landing's .btn-* are styled for <a>; reset the <button> UA defaults */
.csb-ctas .btn-primary,
.csb-ctas .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.csb-ctas .btn-primary { border: 0; }
.csb-tags {
  margin-top: 26px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; color: var(--ink-5);
}

@media (max-width: 640px) {
  .csb-wrap { padding: 16px; align-items: flex-end; }
  .csb-card { max-width: 100%; border-radius: 20px 20px 14px 14px; }
  .csb-body { padding: 34px 22px 30px; }
  .csb-h { font-size: 23px; }
  .csb-ctas { flex-direction: column; width: 100%; }
  .csb-ctas .btn-primary, .csb-ctas .btn-ghost { justify-content: center; }
  .csb-tags { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .csb-card, .csb-backdrop { animation: none; }
}
