/*=============================================
=        Visitor guide (website nudge)        =
=============================================*/
.ng {
  --ng-ink: #1d1838;
  --ng-body: #5d5872;
  --ng-brand: #805dcd;
  --ng-brand-strong: #6340b5;
  --ng-soft: #eee7ff;
  --ng-line: #e5e0f1;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  font-family: 'Geist', sans-serif;
}

.ng[hidden] {
  display: none;
}

/* Collapsed tab, shown on later pages when the guide was ignored */
.ng-tab {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px 10px 12px;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(135deg, #805dcd, #5a33c2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(40, 20, 100, 0.35);
  cursor: pointer;
  animation: ng-rise 0.45s ease both;
}

.ng-tab i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

/* The card */
.ng-card {
  position: relative;
  width: 340px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  border: 1px solid var(--ng-line);
  border-radius: 20px;
  background: #fff;
  color: var(--ng-body);
  box-shadow: 0 24px 60px rgba(20, 13, 46, 0.25);
  animation: ng-rise 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  transition: width 0.4s ease;
}

.ng-card.is-wide {
  width: 420px;
}

.ng-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ng-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ng-close:hover {
  background: var(--ng-soft);
}

/* Step 1: what brings you here */
.ng-ask {
  padding: 22px 22px 18px;
}

.ng-hello {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding-right: 28px;
}

.ng-avatar {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #805dcd, #5a33c2);
  color: #fff;
  font-size: 18px;
}

.ng-hello strong {
  display: block;
  color: var(--ng-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.ng-hello span {
  font-size: 13.5px;
}

.ng-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ng-option {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ng-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ng-ink);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.ng-option:hover {
  border-color: var(--ng-brand);
  background: #faf8ff;
  color: var(--ng-ink);
  transform: translateX(3px);
}

.ng-option i:first-child {
  width: 20px;
  color: var(--ng-brand-strong);
  text-align: center;
}

.ng-option i:last-child {
  margin-left: auto;
  color: #b7aed0;
  font-size: 12px;
}

.ng-option--lead {
  border-color: transparent;
  background: var(--ng-soft);
}

.ng-browse {
  display: block;
  margin: 12px auto 0;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--ng-body);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Step 2: the website showcase */
.ng-show[hidden],
.ng-ask[hidden] {
  display: none;
}

.ng-stage {
  position: relative;
  padding: 16px 16px 0;
  background: linear-gradient(135deg, #1d1438, #38207a);
}

.ng-browser {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #fff;
}

.ng-browser__bar {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  background: #ece9f5;
}

.ng-browser__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cfc8e2;
}

.ng-browser__url {
  flex: 1;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  background: #fff;
  color: #6b6780;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ng-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ng-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* A plain, generic template drawn in CSS, wiped away to reveal the real site */
.ng-template {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: 14% 1fr 30%;
  gap: 6%;
  padding: 5% 6%;
  background: #f1f1f3;
  clip-path: inset(0 0 0 0);
}

.ng-template span {
  border-radius: 4px;
  background: #d9d9de;
}

.ng-template .ng-t-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8%;
  background: none;
}

.ng-template .ng-t-hero::before,
.ng-template .ng-t-hero::after {
  content: '';
  border-radius: 4px;
  background: #d9d9de;
}

.ng-template .ng-t-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5%;
  background: none;
}

.ng-template .ng-t-cards::before,
.ng-template .ng-t-cards::after,
.ng-template .ng-t-cards em {
  content: '';
  border-radius: 4px;
  background: #d9d9de;
}

.ng-screen.is-revealed .ng-template {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.3, 1);
}

.ng-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(20, 13, 46, 0.82);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.ng-label--template {
  background: #8c8c96;
}

.ng-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 0 12px;
}

.ng-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.ng-dots button[aria-current='true'] {
  width: 22px;
  background: #fff;
}

.ng-body {
  padding: 18px 22px 20px;
}

.ng-body h2 {
  margin: 0 0 6px;
  color: var(--ng-ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.ng-body h2 span {
  color: var(--ng-brand-strong);
}

.ng-body > p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.5;
}

.ng-points {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.ng-points li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--ng-ink);
  font-size: 14px;
}

.ng-points i {
  color: #22a06b;
}

.ng-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.ng-sites a {
  color: var(--ng-brand-strong);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ng-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #805dcd, #5a33c2);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* The site's global link styles recolour focused links, so the white text is pinned */
.ng .ng-cta,
.ng .ng-cta:hover,
.ng .ng-cta:focus,
.ng .ng-cta:visited {
  color: #fff;
}

.ng-cta:hover {
  filter: brightness(1.08);
}

.ng-back {
  display: block;
  margin: 10px auto 0;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--ng-body);
  font-size: 13px;
  cursor: pointer;
}

.ng button:focus-visible,
.ng a:focus-visible {
  outline: 3px solid #f9c322;
  outline-offset: 2px;
}

@keyframes ng-rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

/* Phones: a compact sheet along the bottom edge */
@media (max-width: 575px) {
  .ng {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .ng-card,
  .ng-card.is-wide {
    width: 100%;
    max-width: none;
  }

  .ng-card.is-wide .ng-screen {
    aspect-ratio: 16 / 8;
  }

  .ng-ask {
    padding: 18px 16px 14px;
  }

  .ng-body {
    padding: 14px 16px 16px;
  }

  .ng-body h2 {
    font-size: 19px;
  }
}

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

  .ng-option,
  .ng-dots button,
  .ng-card {
    transition: none;
  }

  .ng-screen.is-revealed .ng-template {
    transition: none;
  }
}
