/* Pro-plan announcement: top banner + one-time modal (see promo.js). */
.promo-banner[hidden],
.promo-modal[hidden] {
  display: none;
}

.promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 44px 8px 16px;
  background: linear-gradient(154deg, #1fd2ff, #fd71ff 50%, #ff9b3f);
  color: #181b28;
  font-size: 14px;
  line-height: 1.3;
  z-index: 5;
}

.promo-banner-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  color: inherit;
  text-decoration: none;
}

.promo-banner-cta {
  font-weight: 600;
  text-decoration: underline;
}

.promo-banner-close,
.promo-close {
  position: absolute;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  opacity: 0.7;
}

.promo-banner-close:hover,
.promo-close:hover {
  opacity: 1;
}

.promo-banner-close::before,
.promo-banner-close::after,
.promo-close::before,
.promo-close::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 13px;
  width: 14px;
  height: 2px;
  background: #181b28;
  border-radius: 1px;
  transform: rotate(45deg);
}

.promo-banner-close::after,
.promo-close::after {
  transform: rotate(-45deg);
}

.promo-banner-close {
  right: 10px;
  top: 50%;
  margin-top: -14px;
}

.promo-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #181b28;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* the modal's label matches the "Early price" badge of the pricing section */
.promo-card .promo-badge {
  padding: 5px 12px;
  background: #1f8a4c;
  box-shadow: 0 6px 14px -6px rgba(31, 138, 76, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.promo-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(24, 27, 40, 0.5);
  z-index: 999999990;
}

.promo-modal[hidden] {
  display: none;
}

.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  padding: 32px 32px 24px;
  border-radius: 18px;
  text-align: center;
  /* the same soft top tint as the Pro column of the pricing section */
  background:
    radial-gradient(130% 150px at 50% 0%, rgba(31, 210, 255, 0.14), rgba(253, 113, 255, 0.07) 60%, transparent 100%),
    #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: promo-in 0.3s ease-out;
}

.promo-close {
  right: 12px;
  top: 12px;
}

.promo-art {
  margin-bottom: 8px;
}

.promo-ring {
  transform-origin: 60px 60px;
  animation: promo-spin 24s linear infinite;
}

.promo-crown {
  transform-origin: 60px 60px;
  animation: promo-float 3s ease-in-out infinite;
}

.promo-title {
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.2;
  color: #181b28;
}

.promo-title strong {
  font-weight: 800;
  background: linear-gradient(100deg, #12b8f0, #e259f0 55%, #ff8a2b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.promo-subtitle {
  margin: 0 0 16px;
  font-size: 15px;
  color: #424242;
}

.promo-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  text-align: left;
  width: 100%;
}

.promo-list li {
  position: relative;
  padding: 9px 0 9px 36px;
  font-size: 14px;
  /* the global line-height is 1: the text line is as tall as the 20px mark,
     so the mark sits on the first line */
  line-height: 20px !important;
  color: #181b28;
}

/* the same mark as the pricing section: a filled green disc with a soft halo */
.promo-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #1f8a4c;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4.2' d='M7 17l6 6 12-13'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
  box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.promo-cta {
  display: block;
  width: 100%;
  text-decoration: none;
}

.promo-cta .gradient-box {
  position: relative;
  display: block;
  cursor: pointer;
}

.promo-cta .gradient-container {
  display: block;
  font-weight: 600;
  color: #181b28;
}

.promo-later {
  margin-top: 12px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: #6b6b6b;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.promo-later:hover {
  color: #181b28;
}

@keyframes promo-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes promo-spin {
  to { transform: rotate(360deg); }
}

@keyframes promo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-card,
  .promo-ring,
  .promo-crown {
    animation: none;
  }
}

/* Bottom sheet on phones */
@media (max-width: 480px) {
  .promo-modal {
    align-items: flex-end;
    padding: 0;
  }

  .promo-card {
    max-width: none;
    border-radius: 18px 18px 0 0;
    padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  }

  .promo-banner {
    font-size: 13px;
    padding-left: 12px;
  }
}

/* Keep the absolutely positioned header below the banner (the sticky,
   fixed variant sits over the viewport top once the banner has scrolled away). */
header:not(.sticky) {
  top: calc(16px + var(--promo-h, 0px));
}
