/* S-121 Landing page wrapper (lp.html). Tokens only. The campaign page itself is inside the
   sandboxed iframe and brings its own design; this file styles the frame around it. */

/* ---------- Slim strip when the site header is off ---------- */
.lp-strip {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.lp-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  min-height: 64px;
}
.lp-strip .brand__logo {
  width: 128px;
}
.lp-strip .link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Preview ribbon ---------- */
.lp-ribbon {
  position: sticky;
  top: 0;
  z-index: calc(var(--z-header) + 1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px var(--space-3);
  min-height: 40px;
  padding: 6px var(--gutter);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: calc(14px * var(--font-scale));
  line-height: 1.45;
  text-align: center;
}
.lp-preview .site-header {
  top: var(--lp-ribbon-h, 40px);
}

/* ---------- The frame ---------- */
.lp-frame-wrap {
  position: relative;
  min-height: 320px;
}
.lp-frame-wrap.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-surface-alt) 0%, var(--color-surface-soft) 50%, var(--color-surface-alt) 100%);
  background-size: 200% 100%;
  animation: lp-shine 1.4s ease-in-out infinite;
}
.lp-frame {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  /* the campaign page's own canvas, whatever the site theme */
  background: white;
  transition: opacity var(--dur-2) var(--ease-out);
}
.lp-frame-wrap.is-loading .lp-frame {
  opacity: 0;
}
#main:focus {
  outline: none;
}
@keyframes lp-shine {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
html.no-motion .lp-frame-wrap.is-loading::before {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .lp-frame-wrap.is-loading::before {
    animation: none;
  }
  .lp-frame {
    transition: none;
  }
}
