/* Growth audit popup — a single timed lead-capture card, mounted once at the
   root layout so it survives client-side navigation and only ever asks once
   per session (gated in the component via sessionStorage). Built with the
   same :root tokens site.css defines, so it reads consistently whether it
   lands over a legacy content page or the homepage's .ap-scoped design. */

.gap {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  width: min(392px, calc(100vw - 32px));
  background: #fff;
  border: 1.5px solid var(--ink, #10161c);
  box-shadow: 0 18px 44px rgba(16, 22, 28, 0.28);
  padding: 22px 22px 20px;
  animation: gap-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes gap-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .gap { animation: gap-fade-in 0.3s ease both; }
}
@keyframes gap-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gap__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--ink-faint, #6b7580);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gap__close:hover { color: var(--ink, #10161c); }

.gap__eyebrow {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beacon, #0d6e6e);
  margin: 0 0 10px;
  font-weight: 600;
}

.gap__head {
  font-family: var(--display, sans-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.28;
  margin: 0 0 10px;
  color: var(--ink, #10161c);
  max-width: 30ch;
}

.gap__body {
  font-family: var(--body, serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft, #3a434c);
  margin: 0 0 16px;
}

.gap__timeline {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--rule, #e3e0d8);
  border-bottom: 1px solid var(--rule, #e3e0d8);
}
.gap__timeline li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 0;
}
.gap__timeline li + li {
  border-top: 1px dashed var(--rule, #e3e0d8);
}
.gap__time {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--beacon-lo, #0a5757);
  font-weight: 600;
}
.gap__note {
  font-family: var(--body, serif);
  font-size: 13px;
  color: var(--ink-soft, #3a434c);
}

.gap__actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.gap__cta {
  display: block;
  text-align: center;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: var(--beacon, #0d6e6e);
  border: 1.5px solid var(--beacon, #0d6e6e);
  padding: 13px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}
.gap__cta:hover { background: var(--beacon-lo, #0a5757); border-color: var(--beacon-lo, #0a5757); }
.gap__no {
  background: none;
  border: none;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint, #6b7580);
  cursor: pointer;
  padding: 4px;
}
.gap__no:hover { color: var(--ink, #10161c); }

@media (max-width: 480px) {
  .gap { right: 16px; left: 16px; bottom: 16px; width: auto; }
}
