/* Launch offer — bar, countdown, launch pricing.
   Loaded by index.html, batchgpt.html and batchgemini.html.

   Everything here is built from the tokens in styles.css so it retints with
   body[data-product] like the rest of the site.

   IMPORTANT: the offer text is complete in the HTML. launch.js only writes the
   remaining time into a span that already reads sensibly without it — same rule
   as the note in site.js. Nothing here may hide content. */

/* ── the bar above the nav ── */
.launch-bar {
  position: relative;
  z-index: 60;
  background: linear-gradient(100deg, #131313 0%, #2a2a2e 55%, #131313 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.launch-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}
.launch-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.launch-flag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: launch-ping 2s ease-out infinite;
}
@keyframes launch-ping {
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
}
.launch-copy {
  color: rgba(255, 255, 255, 0.78);
}
.launch-copy b {
  color: #fff;
  font-weight: 700;
}

/* The clock. Tabular figures so it doesn't jitter as the digits change. */
.launch-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}
.launch-clock .unit {
  min-width: 2ch;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.13);
  text-align: center;
}
.launch-clock .sep {
  opacity: 0.5;
}
.launch-bar .btn {
  padding: 7px 15px;
  font-size: 13.5px;
  border: 0;
  background: #fff;
  color: #131313;
}
.launch-bar .btn:hover {
  transform: none;
  filter: brightness(0.94);
}

/* When the deadline passes, launch.js flips this on and the bar removes
   itself from the flow — an expired offer must never keep advertising. */
.launch-bar[data-expired="true"] {
  display: none;
}

/* ── launch pricing inside the plan cards ── */

/* The old price stays in the markup, struck through. Ending the offer is then
   a delete, not a re-typing exercise — see the README. */
.was-price {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin-bottom: 2px;
}
.launch-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: rgb(var(--accent-rgb));
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.plan.best .launch-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* the line under the pricing heading */
.launch-line {
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.07);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.launch-line .launch-clock .unit {
  background: rgba(var(--accent-rgb), 0.16);
  color: rgb(var(--accent-rgb));
}

/* ── the closing urgency card ── */
.launch-final {
  margin-top: 22px;
  padding: 26px;
  border-radius: 20px;
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.05);
  text-align: center;
}
.launch-final h3 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.launch-final p {
  margin: 8px auto 0;
  max-width: 520px;
  color: var(--text-2);
  font-size: 15px;
}
.launch-final .launch-clock {
  margin-top: 14px;
  font-size: 17px;
}
.launch-final .launch-clock .unit {
  background: rgba(var(--accent-rgb), 0.14);
  color: rgb(var(--accent-rgb));
  padding: 5px 10px;
}

/* ── recent-order toasts ──
   Rendered by recent-orders.js from recent-orders.json. With an empty JSON the
   container is never created, so none of this ever paints. */
.order-toasts {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.order-toast {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 330px;
  padding: 11px 15px 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 44px -18px rgba(19, 19, 19, 0.4);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.38s var(--ease),
    transform 0.38s var(--ease);
}
.order-toast.is-in {
  opacity: 1;
  transform: none;
}
.ot-check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--ok-wash);
  color: var(--ok);
  font-weight: 800;
  font-size: 14px;
}
.ot-body {
  min-width: 0;
  display: grid;
}
.ot-line {
  font-size: 14px;
  color: var(--text-2);
}
.ot-line b {
  color: var(--text);
  font-weight: 700;
}
.ot-prod {
  color: rgb(var(--accent-rgb)) !important;
}
.ot-meta {
  font-size: 12.5px;
  color: var(--text-3);
}

/* The WhatsApp bubble owns the bottom-right; on a phone the toast would sit on
   top of the sticky CTA, so it steps aside. */
@media (max-width: 760px) {
  .order-toasts {
    left: 12px;
    right: 12px;
    bottom: 84px;
  }
  .order-toast {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .launch-in {
    padding: 9px 16px;
    font-size: 13px;
    gap: 6px 10px;
  }
  /* On a phone the bar has to stay one tidy line of meaning, so the long
     sentence goes and the offer + clock + button remain. */
  .launch-copy {
    display: none;
  }
}
