/* Landing page: Apple liquid glass + dosed neon + motion (DESIGN.md).
   Written from scratch by function: tokens, backdrop, header, hero, marquee,
   bento, journey, pricing, final call, footer, reveal, motion off.
   Moving things animate transform and opacity only (the border-spin ring and
   the one-shot title shine are the small, listed exceptions). */

@property --lp-ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ---- 1. Tokens ------------------------------------------------------------ */

:root {
  --lp-a: #4882fa;
  --lp-b: #8b6df0;
  --lp-bg: #05060d;
  --lp-bg-2: #0c0e1c;
  --lp-text: #f4f6ff;
  --lp-muted: #b4bad3;
  --lp-glass: rgb(255 255 255 / 6%);
  --lp-glass-2: rgb(255 255 255 / 11%);
  --lp-line: rgb(255 255 255 / 12%);
  --lp-line-2: rgb(255 255 255 / 24%);
  --lp-ink: #04050a;
  --lp-a-text: var(--lp-a);
  --lp-b-text: var(--lp-b);
  --lp-shadow: rgb(0 0 0 / 55%);
  --lp-glow: var(--g, 1);
  --lp-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --lp-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --lp-r: 28px;
}
:root[data-theme="light"] {
  --lp-bg: #f2f3fb;
  --lp-bg-2: #e8eaf8;
  --lp-text: #12142a;
  --lp-muted: #444a6b;
  --lp-glass: rgb(255 255 255 / 62%);
  --lp-glass-2: rgb(255 255 255 / 86%);
  --lp-line: rgb(20 24 60 / 12%);
  --lp-line-2: rgb(20 24 60 / 24%);
  --lp-a-text: color-mix(in srgb, var(--lp-a) 50%, #0b0d22);
  --lp-b-text: color-mix(in srgb, var(--lp-b) 50%, #0b0d22);
  --lp-shadow: rgb(40 50 110 / 24%);
}
:root[data-accent="softBlue"] {
  --lp-a: #4882fa;
  --lp-b: #8b6df0;
}
:root[data-accent="sage"] {
  --lp-a: #4e9a6b;
  --lp-b: #a8813a;
}
:root[data-accent="lavender"] {
  --lp-a: #9174f1;
  --lp-b: #3e7bfa;
}
:root[data-accent="beige"] {
  --lp-a: #b08d57;
  --lp-b: #8b6df0;
}
:root[data-accent="dustyPink"] {
  --lp-a: #c4708a;
  --lp-b: #4e9a6b;
}
:root[data-accent="turquoise"] {
  --lp-a: #1e9e96;
  --lp-b: #3e7bfa;
}
:root[data-accent="monochrome"] {
  --lp-a: #a4a9b8;
  --lp-b: #8d90a2;
}
:root[data-accent="coral"] {
  --lp-a: #d95f4e;
  --lp-b: #a8813a;
}
:root[data-accent="lime"] {
  --lp-a: #7fa830;
  --lp-b: #1e9e96;
}
:root[data-accent="violet"] {
  --lp-a: #a56de8;
  --lp-b: #7ba4ff;
}

/* ---- 2. Backdrop (shared with the sign-in screen) -------------------------- */

body:not(.app-visible) {
  width: 100%;
  min-height: 100dvh;
  padding-bottom: 0;
  overflow-x: hidden;
  background: var(--lp-bg);
  color: var(--lp-text);
}
body:not(.app-visible) #backgroundFx {
  display: none;
}
.lp-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: none;
}
body:not(.app-visible) .lp-fx {
  display: block;
}
.lp-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}
.lp-aurora {
  position: absolute;
  width: 72vmax;
  height: 72vmax;
  border-radius: 50%;
  opacity: calc(0.72 * var(--lp-glow));
  will-change: transform;
}
:root[data-theme="light"] .lp-aurora {
  opacity: calc(0.3 * var(--lp-glow));
}
.lp-aurora--a {
  top: -34vmax;
  left: -22vmax;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--lp-a) 60%, transparent),
    transparent 62%
  );
  animation: lp-drift-a 34s ease-in-out infinite alternate;
}
.lp-aurora--b {
  top: 8vmax;
  right: -30vmax;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--lp-b) 58%, transparent),
    transparent 62%
  );
  animation: lp-drift-b 42s ease-in-out infinite alternate;
}
.lp-aurora--c {
  bottom: -40vmax;
  left: 18vmax;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--lp-a) 34%, var(--lp-b) 30%),
    transparent 62%
  );
  animation: lp-drift-c 48s ease-in-out infinite alternate;
}
.lp-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -2px;
  height: 52vh;
  background:
    linear-gradient(
        90deg,
        color-mix(in srgb, var(--lp-a) 34%, transparent) 1px,
        transparent 1px
      )
      0 0 / 64px 64px,
    linear-gradient(
        0deg,
        color-mix(in srgb, var(--lp-b) 30%, transparent) 1px,
        transparent 1px
      )
      0 0 / 64px 64px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 8%, transparent 78%);
  opacity: calc(0.85 * var(--lp-glow));
  animation: lp-floor 4.8s linear infinite;
}
:root[data-theme="light"] .lp-floor {
  opacity: 0;
}
.lp-spot {
  position: absolute;
  left: 0;
  top: 0;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--lp-a) 24%, transparent),
    transparent 66%
  );
  opacity: 0;
  transition: opacity 0.6s var(--lp-ease);
  will-change: transform;
}
.lp-fx.has-pointer .lp-spot {
  opacity: calc(0.7 * var(--lp-glow));
}

/* ---- 3. Page frame and header --------------------------------------------- */

.lp {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--lp-text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI",
    system-ui, sans-serif;
  background: transparent;
}
.lp *,
.lp *::before,
.lp *::after {
  box-sizing: border-box;
}
.lp-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}
.lp-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(14px * var(--lp-glow)) var(--lp-a);
  transform: scaleX(var(--lp-p, 0));
  transform-origin: 0 50%;
}
.lp-nav {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 50;
  width: min(1240px, calc(100% - 24px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--lp-line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--lp-bg) 56%, transparent);
  box-shadow: 0 18px 50px -26px var(--lp-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  transform: translate3d(-50%, 0, 0);
  transition:
    background 0.3s var(--lp-ease),
    border-color 0.3s var(--lp-ease);
  animation: lp-nav-in 0.9s var(--lp-spring) both;
}
.lp-nav.is-stuck {
  background: color-mix(in srgb, var(--lp-bg) 78%, transparent);
  border-color: var(--lp-line-2);
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lp-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--lp-a-text);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--lp-a) 26%, transparent),
    color-mix(in srgb, var(--lp-b) 18%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--lp-a) 38%, transparent);
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 40%, transparent);
}
.lp-brand-mark .icon {
  width: 24px;
  height: 24px;
}
.lp-brand-copy {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}
.lp-brand-title {
  font-weight: 750;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.lp-brand-sub {
  color: var(--lp-muted);
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lp-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.lp-links button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--lp-text);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.25s var(--lp-ease),
    border-color 0.25s var(--lp-ease),
    transform 0.25s var(--lp-spring);
}
.lp-links button:active {
  transform: scale(0.96);
}
.lp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-controls .segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  background: var(--lp-glass);
}
.lp-controls .segmented button {
  min-width: 44px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--lp-muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.25s var(--lp-ease),
    color 0.25s var(--lp-ease),
    transform 0.25s var(--lp-spring);
}
.lp-controls .segmented button.is-active {
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(16px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 55%, transparent);
}
.lp-controls .segmented button:not(.is-active):hover {
  color: var(--lp-text);
  transform: translateY(-1px);
}
.lp-controls .icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--lp-line);
  border-radius: 50%;
  color: var(--lp-text);
  background: var(--lp-glass);
  cursor: pointer;
  transition:
    transform 0.3s var(--lp-spring),
    border-color 0.25s var(--lp-ease),
    box-shadow 0.25s var(--lp-ease),
    background 0.25s var(--lp-ease);
}
.lp-controls .icon-btn:hover {
  border-color: color-mix(in srgb, var(--lp-a) 70%, transparent);
  box-shadow: 0 0 calc(18px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 45%, transparent);
  transform: translateY(-2px) scale(1.04);
}
.lp-controls .icon-btn:active {
  transform: scale(0.92);
}
.lp-controls .icon-btn.is-active {
  color: var(--lp-a-text);
  border-color: color-mix(in srgb, var(--lp-a) 55%, transparent);
}
.lp-controls .icon-btn .icon {
  width: 20px;
  height: 20px;
}
.landing-accent-control {
  position: relative;
}
.landing-accent-orb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    var(--lp-a),
    var(--lp-b),
    var(--lp-a)
  );
  box-shadow: 0 0 calc(14px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 60%, transparent);
}
.landing-accent-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: -6px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 40px);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--lp-line-2);
  border-radius: 22px;
  background: color-mix(in srgb, var(--lp-bg-2) 88%, transparent);
  box-shadow: 0 30px 70px -24px var(--lp-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  animation: lp-pop 0.34s var(--lp-spring) both;
}
.landing-accent-menu[hidden] {
  display: none;
}
.landing-accent-menu .accent-swatch {
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
  transition:
    transform 0.25s var(--lp-spring),
    box-shadow 0.25s var(--lp-ease);
}
.landing-accent-menu .accent-swatch:hover {
  transform: scale(1.14);
  box-shadow: 0 0 18px color-mix(in srgb, var(--swatch) 70%, transparent);
}
.landing-accent-menu .accent-swatch.is-active {
  border-color: var(--lp-text);
  box-shadow: 0 0 calc(18px * var(--lp-glow))
    color-mix(in srgb, var(--swatch) 80%, transparent);
}

/* ---- 4. Buttons ------------------------------------------------------------ */

.lp-btn {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: 1px solid var(--lp-line-2);
  border-radius: 999px;
  color: var(--lp-text);
  background: var(--lp-glass);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.35s var(--lp-spring),
    box-shadow 0.3s var(--lp-ease),
    border-color 0.3s var(--lp-ease),
    background 0.3s var(--lp-ease);
}
.lp-btn .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.35s var(--lp-spring);
}
.lp-btn:hover .icon {
  transform: translateX(5px);
}
.lp-btn:active {
  transform: scale(0.96);
}
.lp-btn--ghost:hover {
  border-color: color-mix(in srgb, var(--lp-a) 70%, transparent);
  background: var(--lp-glass-2);
  box-shadow: 0 0 calc(26px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 32%, transparent);
  transform: translateY(-2px);
}
.lp-btn--main {
  border-color: transparent;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow:
    0 14px 44px -14px color-mix(in srgb, var(--lp-a) 80%, transparent),
    0 0 calc(30px * var(--lp-glow)) -4px
      color-mix(in srgb, var(--lp-a) 60%, transparent);
}
.lp-btn--main::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--lp-ang),
    transparent 0 62%,
    var(--lp-a),
    var(--lp-b),
    transparent
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: calc(0.5 * var(--lp-glow));
  transition: opacity 0.35s var(--lp-ease);
  /* A custom-property animation repaints on the main thread every frame, so
     the ring only turns while the button is hovered or focused. */
}
.lp-btn--main:hover::before,
.lp-btn--main:focus-visible::before {
  opacity: calc(0.95 * var(--lp-glow));
  animation: lp-spin-ring 4.8s linear infinite;
}
.lp-btn--main:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 22px 60px -14px color-mix(in srgb, var(--lp-a) 90%, transparent),
    0 0 calc(46px * var(--lp-glow)) 0
      color-mix(in srgb, var(--lp-b) 55%, transparent);
}
.lp-ripple-box {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.lp-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 50%);
  pointer-events: none;
  animation: lp-ripple 0.7s var(--lp-ease) forwards;
}
.lp-btn > span:not(.lp-ripple-box),
.lp-btn > svg {
  position: relative;
  z-index: 1;
}
.lp-spark {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--lp-a);
  box-shadow: 0 0 10px var(--lp-a);
  pointer-events: none;
}

/* ---- 5. Hero --------------------------------------------------------------- */

.lp-main {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.lp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  min-height: 100dvh;
  padding: 118px 0 84px;
}
.lp-copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--lp-line-2);
  border-radius: 999px;
  background: var(--lp-glass);
  color: var(--lp-text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lp-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-a);
  box-shadow: 0 0 calc(12px * var(--lp-glow)) var(--lp-a);
}
.lp-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--lp-a);
  animation: lp-beacon 2.2s ease-out infinite;
}
.lp-title {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 104px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.lp-title-line {
  display: block;
}
.lp-w {
  display: inline-block;
  white-space: pre;
  animation: lp-word-in 0.9s var(--lp-spring) both;
  animation-delay: calc(var(--i, 0) * 85ms + 120ms);
}
.lp-title-accent .lp-w {
  color: transparent;
  background: linear-gradient(
    100deg,
    var(--lp-a-text) 0%,
    var(--lp-b-text) 50%,
    var(--lp-a-text) 100%
  );
  background-size: 300% 100%;
  background-position: calc(var(--i, 0) * 30%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(
    0 0 calc(22px * var(--lp-glow))
      color-mix(in srgb, var(--lp-a) 50%, transparent)
  );
  animation:
    lp-word-in 0.9s var(--lp-spring) both,
    lp-shine 2.8s var(--lp-ease) 1s 1 both;
  animation-delay:
    calc(var(--i, 0) * 85ms + 380ms), calc(var(--i, 0) * 85ms + 1300ms);
}
.lp-subtitle {
  max-width: 46ch;
  margin: 0;
  color: var(--lp-muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.5;
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.lp-actions--center {
  justify-content: center;
}
.lp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-stats li {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 96px;
  padding: 12px 16px;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: var(--lp-glass);
  transition:
    transform 0.35s var(--lp-spring),
    border-color 0.25s var(--lp-ease),
    box-shadow 0.25s var(--lp-ease);
}
.lp-stats li:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--lp-a) 55%, transparent);
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 30%, transparent);
}
.lp-stats strong {
  white-space: nowrap;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--lp-a-text), var(--lp-b-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-stats span {
  color: var(--lp-muted);
  font-size: 12px;
  line-height: 1.3;
}

/* Stage: the lesson card, two orbits, three floating notes. */
.lp-stage {
  position: relative;
  justify-self: end;
  width: min(100%, 560px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(var(--lp-rx, 0deg))
    rotateY(var(--lp-ry, 0deg));
  transition: transform 1.1s var(--lp-ease);
  animation: lp-stage-in 1.2s var(--lp-spring) 0.2s both;
}
.lp-stage.is-live {
  transition: transform 0.9s var(--lp-ease);
}
.lp-halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--lp-a) 46%, transparent),
    color-mix(in srgb, var(--lp-b) 24%, transparent) 40%,
    transparent 68%
  );
  opacity: calc(0.75 * var(--lp-glow));
  transform: translateZ(-60px);
  animation: lp-breathe 7s ease-in-out infinite;
}
.lp-ring {
  position: absolute;
  z-index: 0;
  translate: 0 0 -30px;
  border: 1px dashed color-mix(in srgb, var(--lp-a) 46%, var(--lp-line-2));
  border-radius: 50%;
  animation: lp-spin var(--dur, 60s) linear infinite;
}
.lp-ring--1 {
  inset: 4%;
}
.lp-ring--2 {
  inset: -9%;
  border-color: var(--lp-line-2);
  animation-direction: reverse;
}
.lp-sat {
  position: absolute;
  left: calc(50% + 50% * cos(var(--a)));
  top: calc(50% + 50% * sin(var(--a)));
  translate: -50% -50%;
}
.lp-sat b {
  display: block;
  padding: 7px 14px;
  border: 1px solid var(--lp-line-2);
  border-radius: 999px;
  color: var(--lp-text);
  background: color-mix(in srgb, var(--lp-bg-2) 82%, transparent);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 0 calc(16px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 28%, transparent);
  animation: lp-spin var(--dur, 60s) linear infinite reverse;
}
.lp-ring--2 .lp-sat b {
  animation-direction: normal;
}
.lp-card {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 78%;
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
  border: 1px solid var(--lp-line-2);
  border-radius: var(--lp-r);
  background:
    linear-gradient(
      160deg,
      var(--lp-glass-2),
      var(--lp-glass) 60%,
      color-mix(in srgb, var(--lp-a) 8%, transparent)
    ),
    color-mix(in srgb, var(--lp-bg-2) 72%, transparent);
  box-shadow:
    0 50px 90px -34px var(--lp-shadow),
    0 0 calc(70px * var(--lp-glow)) -12px
      color-mix(in srgb, var(--lp-a) 46%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 18%);
  /* No backdrop blur: a blur behind a floating, animated card is redone every
     frame. A denser glass looks the same and costs nothing. */
  transform: translate3d(-50%, -50%, 50px);
  animation: lp-card-float 8s ease-in-out infinite alternate;
}
.lp-card {
  container-type: inline-size;
}
@container (max-width: 400px) {
  .lp-card-head > span:nth-child(2) {
    display: none;
  }
}
.lp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--lp-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lp-dots {
  display: inline-flex;
  gap: 5px;
}
.lp-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lp-line-2);
}
.lp-dots i:first-child {
  background: var(--lp-a);
  box-shadow: 0 0 10px var(--lp-a);
}
.lp-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lp-text);
}
.lp-card-body {
  display: grid;
  gap: 8px;
}
.lp-card-kicker {
  color: var(--lp-a-text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.lp-card-title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.lp-card-title span {
  display: inline;
}
.lp-card-title span:last-child {
  color: transparent;
  background: linear-gradient(100deg, var(--lp-a-text), var(--lp-b-text));
  -webkit-background-clip: text;
  background-clip: text;
}
.lp-card-copy {
  margin: 0;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.45;
}
.lp-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  gap: 3px;
}
.lp-wave i,
.lp-rec-wave i {
  flex: 1 1 0;
  max-width: 4px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--lp-a), var(--lp-b));
  transform: scaleY(0.2);
  animation: lp-bar var(--t, 1.1s) ease-in-out var(--dl, 0s) infinite alternate;
}
.lp-wave i:nth-child(4n + 1),
.lp-rec-wave i:nth-child(4n + 1) {
  --t: 0.9s;
}
.lp-wave i:nth-child(4n + 2),
.lp-rec-wave i:nth-child(4n + 2) {
  --t: 1.3s;
  --dl: -0.3s;
}
.lp-wave i:nth-child(4n + 3),
.lp-rec-wave i:nth-child(4n + 3) {
  --t: 1.05s;
  --dl: -0.6s;
}
.lp-wave i:nth-child(4n),
.lp-rec-wave i:nth-child(4n) {
  --t: 1.5s;
  --dl: -0.9s;
}
.lp-wave i:nth-child(3n),
.lp-rec-wave i:nth-child(3n) {
  opacity: 0.7;
}
.lp-tabs {
  display: flex;
  gap: 8px;
}
.lp-tab {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  color: var(--lp-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition:
    color 0.4s var(--lp-ease),
    background 0.4s var(--lp-ease),
    box-shadow 0.4s var(--lp-ease),
    transform 0.5s var(--lp-spring);
}
.lp-tab.is-on {
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(20px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 55%, transparent);
  transform: translateY(-2px);
}
.lp-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--lp-line-2);
  border-radius: 18px;
  color: var(--lp-text);
  background: color-mix(in srgb, var(--lp-bg-2) 90%, transparent);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 24px 50px -22px var(--lp-shadow);
}
.lp-float--xp {
  right: 3%;
  top: -3%;
  color: var(--lp-a-text);
  font-size: 15px;
  transform: translateZ(110px);
  animation: lp-float-b 6s ease-in-out infinite alternate;
}
.lp-float--ok {
  right: 4%;
  bottom: 4%;
  color: var(--lp-a-text);
  transform: translateZ(80px);
  animation: lp-float-c 8s ease-in-out infinite alternate;
}
.lp-float--ok .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}
.lp-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  color: var(--lp-muted);
  background: var(--lp-glass);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  translate: -50% 0;
  transition:
    color 0.25s var(--lp-ease),
    border-color 0.25s var(--lp-ease),
    box-shadow 0.25s var(--lp-ease);
}
.lp-scroll:hover {
  color: var(--lp-text);
  border-color: color-mix(in srgb, var(--lp-a) 70%, transparent);
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 40%, transparent);
}
.lp-scroll .icon {
  width: 16px;
  height: 16px;
  rotate: 90deg;
  animation: lp-bob 1.8s ease-in-out infinite;
}

/* ---- 6. Marquee ------------------------------------------------------------ */

.lp-marquee {
  position: relative;
  display: grid;
  gap: 8px;
  margin-inline: calc(50% - 50vw);
  padding: 22px 0;
  overflow: hidden;
  border-block: 1px solid var(--lp-line);
  background: color-mix(in srgb, var(--lp-bg-2) 55%, transparent);
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}
.lp-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: lp-marquee 56s linear infinite;
}
.lp-track--rev {
  animation-direction: reverse;
  animation-duration: 70s;
}
.lp-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--lp-line-2);
  white-space: nowrap;
}
.lp-track span:nth-child(3n + 1) {
  -webkit-text-stroke: 0;
  background: linear-gradient(100deg, var(--lp-a-text), var(--lp-b-text));
  -webkit-background-clip: text;
  background-clip: text;
}
.lp-track span::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lp-a);
  box-shadow: 0 0 calc(14px * var(--lp-glow)) var(--lp-a);
}

/* ---- 7. Sections: headings and the bento ------------------------------------ */

.lp-section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0 0;
}
.lp-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.lp-heading--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lp-a-text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lp-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(10px * var(--lp-glow)) var(--lp-a);
}
.lp-heading h2,
.lp-final h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 62px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.lp-heading p,
.lp-final p {
  margin: 0;
  color: var(--lp-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}
.lp-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.lp-tile {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
  background: linear-gradient(160deg, var(--lp-glass-2), var(--lp-glass) 70%);
  overflow: hidden;
  transition:
    transform 0.5s var(--lp-spring),
    border-color 0.3s var(--lp-ease),
    box-shadow 0.4s var(--lp-ease);
}
.lp-tile--words {
  grid-column: span 7;
}
.lp-tile--voice {
  grid-column: span 5;
}
.lp-tile--feedback {
  grid-column: span 5;
}
.lp-tile--world {
  grid-column: span 7;
}
.lp-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--lp-a) 22%, transparent),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.4s var(--lp-ease);
}
.lp-tile:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--lp-a) 55%, transparent);
  box-shadow:
    0 30px 60px -30px var(--lp-shadow),
    0 0 calc(40px * var(--lp-glow)) -10px
      color-mix(in srgb, var(--lp-a) 50%, transparent);
}
.lp-tile:hover::before {
  opacity: 1;
}
.lp-tile h3 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.lp-tile p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.5;
}
.lp-demo {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 8px 0;
}

/* Flip card */
.lp-flip {
  position: relative;
  width: min(100%, 300px);
  height: 190px;
  padding: 0;
  border: 0;
  background: none;
  perspective: 900px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--lp-spring);
  -webkit-tap-highlight-color: transparent;
}
.lp-flip.is-flipped {
  transform: rotateY(180deg);
}
.lp-flip-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--lp-line-2);
  border-radius: 24px;
  color: var(--lp-text);
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--lp-a) 22%, var(--lp-bg-2)),
    color-mix(in srgb, var(--lp-b) 16%, var(--lp-bg-2))
  );
  box-shadow: 0 0 calc(40px * var(--lp-glow)) -8px
    color-mix(in srgb, var(--lp-a) 55%, transparent);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.lp-flip-back {
  transform: rotateY(180deg);
}
.lp-flip-face small {
  color: var(--lp-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lp-flip-face strong {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.lp-flip-face em {
  color: var(--lp-muted);
  font-size: 14px;
  font-style: normal;
}
:root[data-theme="light"] .lp-flip-face {
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--lp-a) 16%, #fff),
    color-mix(in srgb, var(--lp-b) 12%, #fff)
  );
}

/* Voice demo */
.lp-rec {
  display: grid;
  gap: 16px;
  width: min(100%, 320px);
}
.lp-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 7px 14px;
  border: 1px solid var(--lp-line-2);
  border-radius: 999px;
  background: var(--lp-glass);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lp-rec-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: 84px;
}
.lp-rec-wave i {
  max-width: 5px;
}
.lp-rec-line {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--lp-line);
  overflow: hidden;
}
.lp-rec-line i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(12px * var(--lp-glow)) var(--lp-a);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: lp-progress 8s ease-in-out infinite;
}

/* Feedback demo */
.lp-chat {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 320px);
  min-height: 150px;
  align-content: center;
}
.lp-typing {
  position: absolute;
  left: 0;
  top: 8px;
  display: inline-flex;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--lp-line-2);
  border-radius: 16px;
  background: var(--lp-glass-2);
  animation: lp-seq-typing 9s ease-in-out infinite;
}
.lp-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-a);
  animation: lp-dot 1s ease-in-out infinite;
}
.lp-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.lp-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
.lp-bubble {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--lp-a) 40%, transparent);
  border-radius: 20px 20px 20px 6px;
  color: var(--lp-text) !important;
  background: color-mix(in srgb, var(--lp-a) 16%, var(--lp-bg-2));
  font-size: 14px !important;
  line-height: 1.45;
  animation: lp-seq-bubble 9s ease-in-out infinite;
}
:root[data-theme="light"] .lp-bubble {
  background: color-mix(in srgb, var(--lp-a) 12%, #fff);
}
.lp-stamp {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 55%, transparent);
  animation: lp-seq-stamp 9s var(--lp-spring) infinite;
}
.lp-stamp .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

/* World mosaic */
.lp-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.lp-mosaic figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--lp-line-2);
  border-radius: 20px;
  animation: lp-float-a 6.5s ease-in-out calc(var(--i) * -1.4s) infinite
    alternate;
}
.lp-mosaic figure:nth-child(even) {
  margin-top: 22px;
}
.lp-mosaic i {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 70% 26%,
      rgb(255 255 255 / 85%) 0 7%,
      transparent 8%
    ),
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--lp-a) 90%, #fff calc(var(--i) * 6%)),
      color-mix(in srgb, var(--lp-b) 85%, #000 calc(var(--i) * 5%))
    );
  transition: transform 0.6s var(--lp-ease);
}
.lp-mosaic figure:hover i {
  transform: scale(1.1);
}
.lp-mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 10px 10px;
  color: #fff;
  background: linear-gradient(0deg, rgb(4 5 10 / 78%), transparent);
  font-size: 12px;
  font-weight: 700;
}

/* ---- 8. Journey ------------------------------------------------------------ */

.lp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-steps::before,
.lp-steps::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--lp-line);
}
.lp-steps::after {
  background: linear-gradient(90deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(14px * var(--lp-glow)) var(--lp-a);
  transform: scaleX(var(--lp-jp, 0));
  transform-origin: 0 50%;
}
.lp-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 70px;
}
/* the line runs from the first node to the last one, so a node lights up
   exactly when the line reaches it */
@media (min-width: 768px) {
  .lp-steps::before,
  .lp-steps::after {
    right: calc((100% - 56px) / 3 - 27px);
  }
}
.lp-node {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--lp-line-2);
  border-radius: 50%;
  color: var(--lp-muted);
  background: var(--lp-bg-2);
  font-size: 20px;
  font-weight: 800;
  transition:
    transform 0.6s var(--lp-spring),
    color 0.4s var(--lp-ease),
    background 0.4s var(--lp-ease),
    box-shadow 0.4s var(--lp-ease);
}
.lp-step.is-lit .lp-node {
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 0 calc(34px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 70%, transparent);
}
.lp-step h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.lp-step p {
  margin: 0;
  max-width: 34ch;
  color: var(--lp-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ---- 9. Pricing ------------------------------------------------------------ */

.lp-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.lp .pricing-card::before,
.lp .pricing-card::after {
  display: none;
}
.lp .pricing-card hr {
  display: none;
}
.lp .pricing-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
  color: var(--lp-text);
  background: linear-gradient(160deg, var(--lp-glass-2), var(--lp-glass) 70%);
  transition:
    transform 0.5s var(--lp-spring),
    border-color 0.3s var(--lp-ease),
    box-shadow 0.4s var(--lp-ease);
}
.lp .pricing-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--lp-a) 60%, transparent);
  box-shadow:
    0 30px 60px -30px var(--lp-shadow),
    0 0 calc(44px * var(--lp-glow)) -10px
      color-mix(in srgb, var(--lp-a) 55%, transparent);
}
.lp .pricing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lp .pricing-card .eyebrow {
  color: var(--lp-a-text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lp .pricing-card .status-pill {
  padding: 4px 10px;
  border: 1px solid var(--lp-line-2);
  border-radius: 999px;
  color: var(--lp-muted);
  background: transparent;
  font-size: 11px;
}
.lp .pricing-card h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.lp .pricing-card p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.5;
}
.lp .pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lp .pricing-price strong {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--lp-a-text), var(--lp-b-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp .pricing-price span {
  color: var(--lp-muted);
  font-size: 13px;
}
.lp .pricing-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp .pricing-features li {
  position: relative;
  padding-left: 26px;
  color: var(--lp-text);
  font-size: 14px;
}
.lp .pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(10px * var(--lp-glow)) var(--lp-a);
}
.lp .pricing-card .btn {
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 34px -14px color-mix(in srgb, var(--lp-a) 80%, transparent);
  transition:
    transform 0.35s var(--lp-spring),
    box-shadow 0.3s var(--lp-ease);
}
.lp .pricing-card .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 calc(40px * var(--lp-glow)) 0
    color-mix(in srgb, var(--lp-a) 60%, transparent);
}
.lp .pricing-card .btn:active {
  transform: scale(0.96);
}
.lp .pricing-skeleton {
  min-height: 280px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
  background: linear-gradient(
    110deg,
    var(--lp-glass) 30%,
    var(--lp-glass-2) 50%,
    var(--lp-glass) 70%
  );
  background-size: 220% 100%;
  animation: lp-skel 1.4s linear infinite;
}
.lp .pricing-state,
.lp .empty-state {
  color: var(--lp-muted);
  text-align: center;
}

/* ---- 10. Final call and footer --------------------------------------------- */

.lp-final {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 18px;
  justify-items: center;
  margin: clamp(72px, 10vw, 128px) 0 0;
  padding: clamp(44px, 7vw, 88px) 24px;
  border: 1px solid var(--lp-line-2);
  border-radius: calc(var(--lp-r) + 8px);
  text-align: center;
  background: linear-gradient(160deg, var(--lp-glass-2), var(--lp-glass));
  overflow: hidden;
}
.lp-final > * {
  position: relative;
  z-index: 1;
}
.lp-final p {
  max-width: 46ch;
}
.lp-final-orb {
  position: absolute !important;
  left: 50%;
  top: 50%;
  z-index: 0 !important;
  width: 90%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--lp-a) 40%, transparent),
    color-mix(in srgb, var(--lp-b) 20%, transparent) 40%,
    transparent 66%
  );
  opacity: calc(0.8 * var(--lp-glow));
  animation: lp-breathe 8s ease-in-out infinite;
}
.lp-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  padding: 44px 16px calc(36px + env(safe-area-inset-bottom));
  color: var(--lp-muted);
  font-size: 13px;
}
.lp-footer .credit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  color: var(--lp-text);
  background: var(--lp-glass);
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 0.3s var(--lp-spring),
    border-color 0.25s var(--lp-ease),
    box-shadow 0.25s var(--lp-ease);
}
.lp-footer .credit-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--lp-a) 65%, transparent);
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 40%, transparent);
}
.lp-footer .credit-link .icon {
  width: 16px;
  height: 16px;
}

/* ---- 11. Reveal on scroll --------------------------------------------------- */

.lp-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.98);
  transition:
    opacity 0.8s var(--lp-ease),
    transform 0.9s var(--lp-spring);
  transition-delay: var(--d, 0ms);
}
.lp-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.lp-js .lp-tile[data-reveal].is-in:hover {
  transform: translateY(-5px);
}

/* ---- 12. Keyframes ---------------------------------------------------------- */

@keyframes lp-drift-a {
  to {
    transform: translate3d(12vmax, 8vmax, 0) scale(1.12);
  }
}
@keyframes lp-drift-b {
  to {
    transform: translate3d(-14vmax, 10vmax, 0) scale(0.92);
  }
}
@keyframes lp-drift-c {
  to {
    transform: translate3d(-10vmax, -8vmax, 0) scale(1.1);
  }
}
@keyframes lp-floor {
  to {
    transform: perspective(520px) rotateX(64deg) translateY(64px);
  }
}
@keyframes lp-nav-in {
  from {
    opacity: 0;
    transform: translate3d(-50%, -26px, 0) scale(0.96);
  }
}
@keyframes lp-drop-in {
  from {
    opacity: 0;
    transform: translate3d(0, -26px, 0) scale(0.96);
  }
}
@keyframes lp-word-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.5em, 0) scale(0.96);
    filter: blur(12px);
  }
}
@keyframes lp-shine {
  from {
    background-position: calc(var(--i, 0) * 30% + 220%) 0;
  }
  to {
    background-position: calc(var(--i, 0) * 30%) 0;
  }
}
@keyframes lp-stage-in {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateX(14deg) rotateY(-16deg) scale(0.9);
  }
}
@keyframes lp-breathe {
  50% {
    transform: translateZ(-60px) scale(1.07);
    opacity: calc(0.95 * var(--lp-glow));
  }
}
@keyframes lp-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes lp-spin-ring {
  to {
    --lp-ang: 360deg;
  }
}
@keyframes lp-card-float {
  to {
    transform: translate3d(-50%, calc(-50% - 10px), 50px);
  }
}
@keyframes lp-float-a {
  to {
    transform: translateZ(90px) translateY(-12px);
  }
}
@keyframes lp-float-b {
  to {
    transform: translateZ(110px) translateY(10px) rotate(3deg);
  }
}
@keyframes lp-float-c {
  to {
    transform: translateZ(80px) translateY(-9px) rotate(-2deg);
  }
}
@keyframes lp-bar {
  to {
    transform: scaleY(1);
  }
}
@keyframes lp-beacon {
  from {
    transform: scale(0.8);
    opacity: 0.9;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
@keyframes lp-bob {
  50% {
    transform: translateY(4px);
  }
}
@keyframes lp-marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
@keyframes lp-pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.92);
  }
}
@keyframes lp-ripple {
  to {
    transform: scale(26);
    opacity: 0;
  }
}
@keyframes lp-progress {
  0% {
    transform: scaleX(0);
  }
  70%,
  100% {
    transform: scaleX(1);
  }
}
@keyframes lp-dot {
  50% {
    transform: translateY(-4px);
    opacity: 0.45;
  }
}
@keyframes lp-seq-typing {
  0%,
  4% {
    opacity: 0;
    transform: translateY(6px);
  }
  8%,
  22% {
    opacity: 1;
    transform: none;
  }
  26%,
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes lp-seq-bubble {
  0%,
  22% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  30%,
  90% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes lp-seq-stamp {
  0%,
  42% {
    opacity: 0;
    transform: scale(0.5);
  }
  50%,
  90% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes lp-skel {
  to {
    background-position: -220% 0;
  }
}

/* ---- 13. Tablet and phone --------------------------------------------------- */

@media (max-width: 1023px) {
  .lp-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 124px;
    gap: 40px;
  }
  .lp-stage {
    justify-self: center;
    width: min(100%, 500px);
  }
  .lp-scroll {
    display: none;
  }
  .lp-tile--words,
  .lp-tile--voice,
  .lp-tile--feedback,
  .lp-tile--world {
    grid-column: span 6;
  }
}
@media (max-width: 767px) {
  .lp-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand controls" "links links";
    gap: 8px 10px;
    padding: 8px;
    border-radius: 22px;
  }
  .lp-brand {
    grid-area: brand;
  }
  .lp-controls {
    grid-area: controls;
    gap: 6px;
  }
  .lp-links {
    grid-area: links;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .lp-links button {
    width: 100%;
    border-color: var(--lp-line);
    background: var(--lp-glass);
  }
  .lp-brand-sub,
  .landing-accent-control {
    display: none;
  }
  .lp-nav.is-stuck {
    grid-template-areas: "brand controls";
  }
  .lp-nav.is-stuck .lp-links {
    display: none;
  }
  .lp-hero {
    padding-top: 176px;
    padding-bottom: 48px;
  }
  .lp-copy {
    gap: 20px;
  }
  .lp-actions .lp-btn {
    flex: 1 1 100%;
  }
  .lp-stats li {
    flex: 1 1 calc(33% - 10px);
    min-width: 0;
    padding: 10px 12px;
  }
  .lp-stats li:last-child span {
    display: none;
  }
  .lp-stage {
    width: min(100%, 380px);
  }
  .lp-ring--2,
  .lp-float--xp {
    display: none;
  }
  .lp-card {
    width: 84%;
    gap: 12px;
    padding: 14px 14px 16px;
  }
  .lp-card-copy {
    display: none;
  }
  .lp-bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .lp-tile--words,
  .lp-tile--voice,
  .lp-tile--feedback,
  .lp-tile--world {
    grid-column: auto;
  }
  .lp-demo {
    min-height: 200px;
  }
  .lp-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .lp-steps::before,
  .lp-steps::after {
    left: 26px;
    right: auto;
    top: 26px;
    bottom: var(--lp-tail, 26px);
    width: 3px;
    height: auto;
  }
  .lp-steps::after {
    transform: scaleY(var(--lp-jp, 0));
    transform-origin: 50% 0;
  }
  .lp-step {
    padding: 8px 0 34px 76px;
  }
  .lp-floor {
    display: none;
  }
}
@media (max-width: 420px) {
  .lp-brand-copy {
    display: none;
  }
}
@media (hover: none) {
  .lp-spot {
    display: none;
  }
}

/* ---- 14. Motion off, reduced motion, lite ----------------------------------- */

html[data-anim="off"] .lp *,
html[data-anim="off"] .lp *::before,
html[data-anim="off"] .lp *::after,
html[data-anim="off"] .lp-fx *,
html[data-anim="off"] .lp-fx {
  animation: none !important;
  transition: none !important;
}
html[data-anim="off"] .lp-stars,
html[data-anim="off"] .lp-spot,
html[data-anim="off"] .lp-floor {
  display: none;
}
html[data-anim="off"].lp-js [data-reveal] {
  opacity: 1;
  transform: none;
}
html[data-anim="off"] .lp-track {
  flex-wrap: wrap;
  width: auto;
  justify-content: center;
}
html[data-anim="off"] .lp-track span:nth-child(n + 8) {
  display: none;
}
html[data-anim="off"] .lp-wave i,
html[data-anim="off"] .lp-rec-wave i {
  transform: scaleY(0.6);
}
html[data-anim="off"] .lp-typing,
html[data-anim="off"] .lp-stamp,
html[data-anim="off"] .lp-bubble {
  opacity: 1;
}
html[data-anim="off"] .lp-typing {
  display: none;
}
html[data-anim="off"] .lp-rec-line i {
  transform: scaleX(0.6);
}

@media (prefers-reduced-motion: reduce) {
  .lp *,
  .lp *::before,
  .lp *::after,
  .lp-fx *,
  .lp-fx {
    animation: none !important;
    transition: none !important;
  }
  .lp-stars,
  .lp-spot,
  .lp-floor {
    display: none;
  }
  .lp-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .lp-track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .lp-track span:nth-child(n + 8) {
    display: none;
  }
  .lp-wave i,
  .lp-rec-wave i {
    transform: scaleY(0.6);
  }
  .lp-typing {
    display: none;
  }
  .lp-rec-line i {
    transform: scaleX(0.6);
  }
}

html[data-fx="lite"] .lp-stars,
html[data-fx="lite"] .lp-floor,
html[data-fx="lite"] .lp-spot {
  display: none;
}
html[data-fx="lite"] .lp-nav,
html[data-fx="lite"] .lp-card,
html[data-fx="lite"] .lp-float,
html[data-fx="lite"] .landing-accent-menu {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-fx="lite"] .lp-aurora--b,
html[data-fx="lite"] .lp-aurora--c {
  display: none;
}

/* ---- 15. Sign-in screen: the same glass, light and motion ------------------- */

#authScreen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  color: var(--lp-text);
  background: transparent;
}
#authScreen .auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1240px, calc(100% - 24px));
  margin: max(12px, env(safe-area-inset-top)) auto 0;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--lp-line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--lp-bg) 56%, transparent);
  box-shadow: 0 18px 50px -26px var(--lp-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  animation: lp-drop-in 0.9s var(--lp-spring) both;
}
#authScreen .brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  color: var(--lp-text);
  background: transparent;
  cursor: default;
}
#authScreen .brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--lp-a-text);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--lp-a) 26%, transparent),
    color-mix(in srgb, var(--lp-b) 18%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--lp-a) 38%, transparent);
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 40%, transparent);
}
#authScreen .brand-title {
  font-weight: 750;
  font-size: 16px;
  letter-spacing: -0.02em;
}
#authScreen .brand-subtitle {
  color: var(--lp-muted);
  font-size: 11px;
}
#authScreen .auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  color: var(--lp-text);
  background: var(--lp-glass);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 0.3s var(--lp-spring),
    border-color 0.25s var(--lp-ease),
    box-shadow 0.25s var(--lp-ease);
}
#authScreen .auth-back .icon {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
  transition: translate 0.3s var(--lp-spring);
}
#authScreen .auth-back:hover {
  border-color: color-mix(in srgb, var(--lp-a) 65%, transparent);
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 40%, transparent);
  transform: translateY(-2px);
}
#authScreen .auth-back:hover .icon {
  translate: -5px 0;
}
#authScreen .auth-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#authScreen .segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  background: var(--lp-glass);
}
#authScreen .segmented button {
  min-width: 44px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--lp-muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s var(--lp-ease),
    color 0.25s var(--lp-ease),
    transform 0.25s var(--lp-spring);
}
#authScreen .segmented button.is-active {
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(16px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 55%, transparent);
}
#authScreen .segmented button:not(.is-active):hover {
  color: var(--lp-text);
  transform: translateY(-1px);
}
#authScreen .auth-top-actions .icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--lp-line);
  border-radius: 50%;
  color: var(--lp-text);
  background: var(--lp-glass);
  cursor: pointer;
  transition:
    transform 0.3s var(--lp-spring),
    box-shadow 0.25s var(--lp-ease),
    border-color 0.25s var(--lp-ease);
}
#authScreen .auth-top-actions .icon-btn:hover {
  border-color: color-mix(in srgb, var(--lp-a) 70%, transparent);
  box-shadow: 0 0 calc(18px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 45%, transparent);
  transform: translateY(-2px) scale(1.04);
}
#authScreen .auth-layout {
  align-items: center;
}
#authScreen .auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--lp-line-2);
  border-radius: 999px;
  color: var(--lp-text);
  background: var(--lp-glass);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#authScreen .auth-kicker .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-a);
  box-shadow: 0 0 calc(12px * var(--lp-glow)) var(--lp-a);
}
#authScreen .auth-title {
  color: var(--lp-text);
  font-weight: 800;
  letter-spacing: -0.04em;
}
#authScreen .auth-title .accent-word {
  color: transparent;
  background: linear-gradient(100deg, var(--lp-a-text), var(--lp-b-text));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(
    0 0 calc(18px * var(--lp-glow))
      color-mix(in srgb, var(--lp-a) 45%, transparent)
  );
}
#authScreen .auth-copy {
  color: var(--lp-muted);
}
#authScreen .auth-highlights .pill {
  border: 1px solid var(--lp-line-2);
  border-radius: 999px;
  color: var(--lp-muted);
  background: var(--lp-glass);
}
#authScreen .auth-highlights .pill--accent {
  color: var(--lp-ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
}
#authScreen .auth-card {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--lp-line-2);
  border-radius: calc(var(--lp-r) + 4px);
  color: var(--lp-text);
  background:
    linear-gradient(
      160deg,
      var(--lp-glass-2),
      var(--lp-glass) 70%,
      color-mix(in srgb, var(--lp-a) 7%, transparent)
    ),
    color-mix(in srgb, var(--lp-bg-2) 78%, transparent);
  box-shadow:
    0 50px 90px -40px var(--lp-shadow),
    0 0 calc(70px * var(--lp-glow)) -16px
      color-mix(in srgb, var(--lp-a) 48%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 16%);
  animation: lp-stage-in 1s var(--lp-spring) 0.15s both;
}
#authScreen .auth-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--lp-ang),
    transparent 0 70%,
    var(--lp-a),
    var(--lp-b),
    transparent
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--lp-ease);
}
#authScreen .auth-card:focus-within::before {
  opacity: calc(0.9 * var(--lp-glow));
  animation: lp-spin-ring 5s linear infinite;
}
#authScreen .auth-card-title,
#authScreen .field-label {
  color: var(--lp-text);
}
#authScreen .auth-card-sub,
#authScreen .form-note,
#authScreen .field-hint {
  color: var(--lp-muted);
}
#authScreen .auth-card .pill--accent {
  color: var(--lp-ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
}
#authScreen .auth-tabs {
  display: flex;
  width: 100%;
}
#authScreen .auth-tabs button {
  flex: 1;
}
#authScreen .auth-card :is(input, select, textarea) {
  min-height: 52px;
  border: 1px solid var(--lp-line-2);
  border-radius: 16px;
  color: var(--lp-text);
  background: color-mix(in srgb, var(--lp-bg) 55%, transparent);
  font: inherit;
  transition:
    border-color 0.25s var(--lp-ease),
    box-shadow 0.25s var(--lp-ease),
    background 0.25s var(--lp-ease);
}
#authScreen .auth-card :is(input, select, textarea)::placeholder {
  color: color-mix(in srgb, var(--lp-muted) 80%, transparent);
}
#authScreen .auth-card :is(input, select, textarea):hover {
  border-color: color-mix(in srgb, var(--lp-a) 50%, var(--lp-line-2));
}
#authScreen .auth-card :is(input, select, textarea):focus {
  outline: 0;
  border-color: var(--lp-a);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--lp-a) 24%, transparent),
    0 0 calc(24px * var(--lp-glow)) -4px
      color-mix(in srgb, var(--lp-a) 60%, transparent);
}
#authScreen .auth-card .btn {
  min-height: 52px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.35s var(--lp-spring),
    box-shadow 0.3s var(--lp-ease),
    border-color 0.3s var(--lp-ease);
}
#authScreen .auth-card .btn--primary {
  border: 0;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 14px 40px -14px color-mix(in srgb, var(--lp-a) 80%, transparent);
}
#authScreen .auth-card .btn--primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 calc(44px * var(--lp-glow)) 0
    color-mix(in srgb, var(--lp-b) 55%, transparent);
}
#authScreen .auth-card .btn:not(.btn--primary) {
  border: 1px solid var(--lp-line-2);
  color: var(--lp-text);
  background: var(--lp-glass);
}
#authScreen .auth-card .btn:not(.btn--primary):hover {
  border-color: color-mix(in srgb, var(--lp-a) 65%, transparent);
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 35%, transparent);
  transform: translateY(-1px);
}
#authScreen .auth-card .btn:active {
  transform: scale(0.97);
}
#authScreen .auth-card a,
#authScreen .auth-card .link-btn {
  color: var(--lp-a-text);
}
#authScreen .auth-footer,
#authScreen .auth-footer a {
  color: var(--lp-muted);
}
html[data-anim="off"] #authScreen *,
html[data-anim="off"] #authScreen *::before {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  #authScreen *,
  #authScreen *::before {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 767px) {
  #authScreen .auth-topbar {
    padding: 8px;
    gap: 8px;
  }
  #authScreen .auth-back span {
    display: none;
  }
  #authScreen .auth-back {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  #authScreen .brand-subtitle {
    display: none;
  }
}
/* phone width: back, language and theme leave no room for the name, so only the logo stays */
@media (max-width: 420px) {
  #authScreen .brand-copy {
    display: none;
  }
}

/* ---- 16. Background: orbits, falling letters, comets, shock rings ---------- */

.lp-orbit-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.lp-orbits {
  position: absolute;
  inset: 0;
  contain: layout paint;
  opacity: calc(0.9 * var(--lp-glow));
  transform: translate3d(0, calc(var(--lp-sy, 0px) * -0.1), 0);
}
:root[data-theme="light"] .lp-orbits {
  opacity: calc(0.34 * var(--lp-glow));
}
/* A square that covers the screen, like the old "slice" viewBox. */
.lp-orbit-tilt {
  --lp-side: max(100vw, 100vh);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--lp-side);
  height: var(--lp-side);
  margin: calc(var(--lp-side) / -2) 0 0 calc(var(--lp-side) / -2);
  pointer-events: none;
}
.lp-orbit-tilt--1 {
  transform: rotate(-24deg) scale(1, 0.4);
}
.lp-orbit-tilt--2 {
  transform: rotate(18deg) scale(1, 0.34);
}
.lp-orbit-tilt--3 {
  transform: rotate(-8deg) scale(1, 0.6);
}
.lp-orbit {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  will-change: transform;
  animation: lp-spin 90s linear infinite;
}
.lp-orbit--2 {
  animation-duration: 64s;
  animation-direction: reverse;
}
.lp-orbit--3 {
  animation-duration: 140s;
}
.lp-orbit-path {
  fill: none;
  stroke: url(#lpOrbitGrad);
  stroke-width: 1.6;
  stroke-dasharray: 3 11;
  vector-effect: non-scaling-stroke;
}
.lp-planet {
  fill: url(#lpPlanet);
}
.lp-planet--small {
  opacity: 0.8;
}
.lp-glyph {
  position: absolute;
  left: var(--x);
  bottom: -12vh;
  color: var(--lp-a);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: var(--s);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  animation: lp-rise var(--t) linear var(--dl) infinite;
  will-change: transform, opacity;
}
:root[data-theme="light"] .lp-glyph {
  color: var(--lp-a-text);
  text-shadow: none;
}
.lp-shock {
  position: absolute;
  left: 0;
  top: 0;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border: 2px solid var(--lp-a);
  border-radius: 50%;
  box-shadow:
    0 0 calc(26px * var(--lp-glow)) var(--lp-a),
    inset 0 0 calc(22px * var(--lp-glow)) var(--lp-b);
  pointer-events: none;
  animation: lp-shock 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

/* ---- 17. Wide screens: the page itself grows, up to a limit ------------------ */

@media (min-width: 1280px) {
  .lp-main,
  .lp-nav {
    width: min(1560px, calc(100% - 64px));
  }
  .lp-main {
    padding-inline: 0;
  }
  .lp-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .lp-title {
    font-size: clamp(40px, 5.6vw, 112px);
  }
  .lp-subtitle {
    font-size: clamp(17px, 1.3vw, 24px);
  }
  .lp-stage {
    justify-self: center;
    width: min(100%, clamp(560px, 38vw, 760px));
  }
}
@media (min-width: 1280px) {
  /* a section heading and its line of copy sit side by side instead of leaving
     the right half of the row empty */
  .lp-heading:not(.lp-heading--center) {
    max-width: none;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 120px);
    align-items: end;
  }
  .lp-heading:not(.lp-heading--center) .lp-eyebrow {
    grid-column: 1 / -1;
  }
  .lp-heading:not(.lp-heading--center) p {
    padding-bottom: 6px;
  }
  .lp-heading--center {
    max-width: 920px;
  }
}
@media (min-width: 1800px) {
  .lp-main,
  .lp-nav {
    width: min(1760px, calc(100% - 128px));
  }
  .lp-hero {
    gap: 96px;
  }
}

@media (min-width: 2200px) {
  .lp-main,
  .lp-nav {
    width: min(2060px, calc(100% - 192px));
  }
  .lp-title {
    font-size: 128px;
  }
  .lp-stage {
    width: min(100%, 860px);
  }
}

/* ---- 18. More neon: edge light, sheens, scan lines, pulses ------------------ */

.lp-card {
  overflow: hidden;
}
.lp-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lp-a),
    #fff,
    var(--lp-b),
    transparent
  );
  box-shadow: 0 0 calc(18px * var(--lp-glow)) var(--lp-a);
  opacity: 0.9;
  animation: lp-scan 4.8s ease-in-out infinite;
}
.lp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgb(255 255 255 / 20%) 50%,
    transparent 64%
  );
  transform: translateX(-130%);
  pointer-events: none;
  animation: lp-sheen 7s ease-in-out 1.6s infinite;
}
.lp-tile::after,
.lp .pricing-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 70%;
  z-index: -1;
  display: block !important;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 100%,
    color-mix(in srgb, var(--lp-a) 40%, transparent),
    transparent 70%
  );
  opacity: calc(0.35 * var(--lp-glow));
  pointer-events: none;
  animation: lp-glow-pulse 5.5s ease-in-out infinite;
}
.lp-tile--voice::after {
  animation-delay: -1.4s;
}
.lp-tile--feedback::after {
  animation-delay: -2.8s;
}
.lp-tile--world::after {
  animation-delay: -4.2s;
}
.lp-brand-mark {
  position: relative;
}
.lp-brand-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 16px;
  border: 1px solid var(--lp-a);
  opacity: 0;
  animation: lp-beacon-square 3.2s ease-out infinite;
}
.lp-btn--main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgb(255 255 255 / 34%) 50%,
    transparent 62%
  );
  background-size: 260% 100%;
  background-position: 170% 0;
  pointer-events: none;
  /* small area (one button), so repainting the sweep is cheap and stays
     clipped to the pill without an overflow clip on the button */
  animation: lp-sheen-bg 9s ease-in-out 3s infinite;
}
.lp-title-line:not(.lp-title-accent) .lp-w {
  text-shadow: 0 0 calc(34px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 34%, transparent);
}
.lp-stats strong,
.lp .pricing-price strong {
  filter: drop-shadow(
    0 0 calc(10px * var(--lp-glow))
      color-mix(in srgb, var(--lp-a) 55%, transparent)
  );
}
.lp-track span:nth-child(3n + 1) {
  filter: drop-shadow(
    0 0 calc(14px * var(--lp-glow))
      color-mix(in srgb, var(--lp-a) 50%, transparent)
  );
}
.lp-eyebrow::before {
  animation: lp-line-pulse 2.8s ease-in-out infinite;
  /* it stretches away from the text, never over the first letter */
  transform-origin: 100% 50%;
}
.lp-sat b {
  position: relative;
}
.lp-sat:nth-child(odd) b::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 calc(30px * var(--lp-glow)) 2px
    color-mix(in srgb, var(--lp-a) 60%, transparent);
  opacity: 0;
  pointer-events: none;
  animation: lp-glow-pulse 3.6s ease-in-out infinite alternate;
}
.lp .pricing-card {
  isolation: isolate;
}
/* the rings of all nodes run on one clock from the start, so the lit ones pulse
   together instead of each beginning when its own step lights */
.lp-node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--lp-a);
  visibility: hidden;
  animation: lp-beacon 2.4s ease-out infinite;
}
.lp-step.is-lit .lp-node::after {
  visibility: visible;
}
.lp-node {
  position: absolute;
}
.lp-final::before,
.lp-final::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 46%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1.5px solid color-mix(in srgb, var(--lp-a) 70%, transparent);
  border-radius: 50%;
  opacity: 0;
  animation: lp-ring-out 5s ease-out infinite;
  pointer-events: none;
}
.lp-final::after {
  animation-delay: 2.5s;
  border-color: color-mix(in srgb, var(--lp-b) 70%, transparent);
}
.lp-tile,
.lp .pricing-card,
.lp-final {
  box-shadow: 0 0 calc(40px * var(--lp-glow)) -22px
    color-mix(in srgb, var(--lp-a) 60%, transparent);
}
.lp-footer .credit-link {
  box-shadow: 0 0 calc(18px * var(--lp-glow)) 1px
    color-mix(in srgb, var(--lp-a) 40%, transparent);
}
.lp-mosaic figure {
  box-shadow: 0 0 calc(26px * var(--lp-glow)) -8px
    color-mix(in srgb, var(--lp-a) 55%, transparent);
}
.lp-kicker {
  box-shadow: 0 0 calc(24px * var(--lp-glow)) -6px
    color-mix(in srgb, var(--lp-a) 45%, transparent);
}

/* ---- 19. Sign-in: sphere, sliding tab thumb, fields, password helpers --------- */

/* the outer ring sits 14% outside the box and its dot 5 px further, so the
   margins make room for it instead of letting it cross the text around */
.lp-sphere {
  --sphere: 190px;
  position: relative;
  width: var(--sphere);
  height: var(--sphere);
  margin-block: calc(var(--sphere) * 0.14 + 14px);
}
.lp-sphere-core {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 6%, transparent 22%),
    radial-gradient(circle at 50% 50%, var(--lp-a), var(--lp-b) 75%);
  box-shadow:
    0 0 calc(50px * var(--lp-glow))
      color-mix(in srgb, var(--lp-a) 70%, transparent),
    0 0 calc(110px * var(--lp-glow))
      color-mix(in srgb, var(--lp-b) 40%, transparent);
  animation: lp-core 5s ease-in-out infinite;
}
.lp-sphere-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed color-mix(in srgb, var(--lp-a) 55%, var(--lp-line-2));
  border-radius: 50%;
  animation: lp-spin 14s linear infinite;
}
.lp-sphere-ring i {
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--lp-a);
  box-shadow: 0 0 calc(14px * var(--lp-glow)) var(--lp-a);
}
.lp-sphere-ring--2 {
  inset: 12%;
  animation-duration: 9s;
  animation-direction: reverse;
}
.lp-sphere-ring--2 i {
  background: var(--lp-b);
  box-shadow: 0 0 calc(14px * var(--lp-glow)) var(--lp-b);
}
.lp-sphere-ring--3 {
  inset: -14%;
  border-style: dotted;
  animation-duration: 24s;
}
#authScreen .auth-tabs {
  position: relative;
  isolation: isolate;
}
#authScreen .auth-tabs::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  z-index: -1;
  width: calc((100% - 6px) / var(--tabs-n, 2));
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(20px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 60%, transparent);
  transition: transform 0.55s var(--lp-spring);
}
#authScreen .auth-tabs::before {
  transform: translateX(calc(var(--tab-i, 0) * 100%));
}
#authScreen .auth-tabs button.is-active {
  background: transparent;
  box-shadow: none;
}
#authScreen [data-auth-form]:not([hidden]) {
  animation: lp-form-in 0.6s var(--lp-spring) both;
}
#authScreen .auth-card .field {
  animation: lp-field-in 0.7s var(--lp-spring) both;
}
#authScreen .auth-card .field:nth-of-type(1) {
  animation-delay: 0.25s;
}
#authScreen .auth-card .field:nth-of-type(2) {
  animation-delay: 0.33s;
}
#authScreen .auth-card .field:nth-of-type(3) {
  animation-delay: 0.41s;
}
#authScreen .auth-card .field:focus-within .field-label {
  color: var(--lp-a-text);
  transform: translateX(3px);
}
#authScreen .auth-card .field-label {
  transition:
    color 0.25s var(--lp-ease),
    transform 0.35s var(--lp-spring);
}
#authScreen .auth-card {
  animation:
    lp-stage-in 1s var(--lp-spring) 0.15s both,
    lp-card-bob 9s ease-in-out 1.4s infinite alternate;
}
.lp-pw {
  position: relative;
  display: block;
}
.lp-pw input {
  width: 100%;
  padding-right: 52px !important;
}
.lp-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--lp-muted);
  background: transparent;
  cursor: pointer;
  translate: 0 -50%;
  transition:
    color 0.25s var(--lp-ease),
    background 0.25s var(--lp-ease),
    transform 0.3s var(--lp-spring);
}
.lp-pw-toggle:hover {
  color: var(--lp-a-text);
  background: var(--lp-glass-2);
  transform: scale(1.1);
}
.lp-pw-toggle:active {
  transform: scale(0.88);
}
.lp-pw-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-pw-toggle .lp-eye-off {
  display: none;
}
.lp-pw-toggle[aria-pressed="true"] .lp-eye-on {
  display: none;
}
.lp-pw-toggle[aria-pressed="true"] .lp-eye-off {
  display: block;
}
.lp-caps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--lp-b) 60%, transparent);
  border-radius: 999px;
  color: var(--lp-text);
  background: color-mix(in srgb, var(--lp-b) 18%, transparent);
  font-size: 12px;
  font-weight: 650;
  animation: lp-pop 0.35s var(--lp-spring) both;
}
.lp-caps[hidden] {
  display: none;
}
.lp-meter {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.lp-meter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.lp-meter-bar i {
  height: 5px;
  border-radius: 5px;
  background: var(--lp-line);
  transform-origin: 0 50%;
  transition:
    background 0.35s var(--lp-ease),
    box-shadow 0.35s var(--lp-ease),
    transform 0.5s var(--lp-spring);
}
.lp-meter[data-level="1"] i:nth-child(-n + 1),
.lp-meter[data-level="2"] i:nth-child(-n + 2),
.lp-meter[data-level="3"] i:nth-child(-n + 3),
.lp-meter[data-level="4"] i:nth-child(-n + 4) {
  background: linear-gradient(90deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(10px * var(--lp-glow)) var(--lp-a);
  transform: scaleY(1.5);
}
.lp-meter-label {
  color: var(--lp-muted);
  font-size: 12px;
  font-weight: 650;
}
.lp-meter[data-level="4"] .lp-meter-label {
  color: var(--lp-a-text);
}
#authNotice.is-shake {
  animation: lp-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
#authScreen form[aria-busy="true"] .btn--primary {
  pointer-events: none;
  opacity: 0.9;
}
#authScreen form[aria-busy="true"] .btn--primary::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid color-mix(in srgb, var(--lp-ink) 30%, transparent);
  border-top-color: var(--lp-ink);
  border-radius: 50%;
  vertical-align: middle;
  animation: lp-spin 0.7s linear infinite;
}

/* ---- 20. Keyframes for sections 16 to 19 ------------------------------------- */

@keyframes lp-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--r0, -8deg));
  }
  12% {
    opacity: var(--o, 0.2);
  }
  88% {
    opacity: var(--o, 0.2);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 30px), -128vh, 0) rotate(var(--r1, 8deg));
  }
}
@keyframes lp-shock {
  from {
    opacity: 0.9;
    transform: translate3d(var(--sx), var(--sy), 0) scale(0.1);
  }
  to {
    opacity: 0;
    transform: translate3d(var(--sx), var(--sy), 0) scale(5);
  }
}
@keyframes lp-scan {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(0, 330px, 0);
    opacity: 0;
  }
}
@keyframes lp-sheen {
  0%,
  55% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}
@keyframes lp-sheen-bg {
  0%,
  55% {
    background-position: 170% 0;
  }
  100% {
    background-position: -70% 0;
  }
}
@keyframes lp-glow-pulse {
  50% {
    opacity: calc(0.7 * var(--lp-glow));
    transform: scale(1.08);
  }
}
@keyframes lp-beacon-square {
  from {
    opacity: 0.8;
    transform: scale(0.9);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes lp-line-pulse {
  50% {
    transform: scaleX(1.5);
    opacity: 0.7;
  }
}
@keyframes lp-ring-out {
  from {
    opacity: 0.75;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(2.1);
  }
}
@keyframes lp-core {
  50% {
    transform: scale(1.08);
  }
}
@keyframes lp-form-in {
  from {
    opacity: 0;
    transform: translate3d(18px, 0, 0);
  }
}
@keyframes lp-field-in {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.98);
  }
}
@keyframes lp-card-bob {
  to {
    translate: 0 -8px;
  }
}
@keyframes lp-shake {
  10%,
  90% {
    transform: translate3d(-2px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(4px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-7px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(7px, 0, 0);
  }
}

/* The new moving parts obey the same switches. */
html[data-anim="off"] .lp-glyph,
html[data-anim="off"] .lp-shock,
html[data-anim="off"] .lp-orbits {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .lp-glyph,
  .lp-shock,
  .lp-orbits {
    display: none;
  }
}
html[data-fx="lite"] .lp-glyph,
html[data-fx="lite"] .lp-orbits {
  display: none;
}
@media (max-width: 767px) {
  .lp-sphere {
    --sphere: 140px;
    justify-self: center;
  }
  .lp-glyph:nth-child(n + 11) {
    display: none;
  }
}

/* Sections scrolled out of view stop their infinite animations (setupLive). */
.lp [data-live="0"] *,
.lp [data-live="0"] *::before,
.lp [data-live="0"] *::after {
  animation-play-state: paused !important;
}

/* ---- 20. "Why Yusiverse" window --------------------------------------------- */
/* A dialog of its own: dark glass, a light that runs round its edge, four
   animated reasons, and a private-by-design strip. Everything moving is
   transform or opacity; the page behind is paused while it is open. */

dialog.lp-why {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  overflow: visible;
  color: var(--lp-text);
  background: transparent;
}
dialog.lp-why[open] {
  animation: lp-why-in 0.55s var(--lp-spring) both;
}
dialog.lp-why::backdrop {
  background:
    radial-gradient(
      60% 50% at 50% 38%,
      color-mix(in srgb, var(--lp-a) 22%, transparent),
      transparent 70%
    ),
    rgb(3 4 10 / 78%);
  animation: lp-why-fade 0.45s var(--lp-ease) both;
}
:root[data-theme="light"] dialog.lp-why::backdrop {
  background:
    radial-gradient(
      60% 50% at 50% 38%,
      color-mix(in srgb, var(--lp-a) 18%, transparent),
      transparent 70%
    ),
    rgb(230 232 248 / 80%);
}
html.lp-modal-open .lp-fx,
html.lp-modal-open .lp-fx *,
html.lp-modal-open #landingScreen,
html.lp-modal-open #landingScreen * {
  animation-play-state: paused !important;
}

.lp-why-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  max-height: calc(100dvh - 32px);
  border-radius: 34px;
  background: color-mix(in srgb, var(--lp-bg-2) 94%, var(--lp-a));
  box-shadow:
    0 60px 120px -30px rgb(0 0 0 / 70%),
    0 0 calc(90px * var(--lp-glow)) -20px
      color-mix(in srgb, var(--lp-a) 55%, transparent);
}
/* the light that runs round the edge: a big conic square turning behind a
   slightly smaller card face, so only a 1.5 px rim shows */
.lp-why-card::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 50%;
  width: 220%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 62%,
    var(--lp-a) 74%,
    #fff 80%,
    var(--lp-b) 88%,
    transparent 100%
  );
  opacity: calc(0.95 * var(--lp-glow));
  will-change: transform;
  animation: lp-spin 9s linear infinite;
}
.lp-why-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.5px;
  border-radius: 32.5px;
  background: color-mix(in srgb, var(--lp-bg-2) 94%, var(--lp-a));
}
.lp-why-glow {
  position: absolute;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.lp-why-glow--a {
  left: -18%;
  top: -34%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--lp-a) 40%, transparent),
    transparent
  );
  animation: lp-drift-a 22s ease-in-out infinite alternate;
}
.lp-why-glow--b {
  right: -20%;
  bottom: -40%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--lp-b) 36%, transparent),
    transparent
  );
  animation: lp-drift-b 26s ease-in-out infinite alternate;
}
.lp-why-close {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--lp-line-2);
  border-radius: 50%;
  color: var(--lp-text);
  background: var(--lp-glass-2);
  cursor: pointer;
  transition:
    transform 0.4s var(--lp-spring),
    border-color 0.25s var(--lp-ease),
    box-shadow 0.25s var(--lp-ease);
}
.lp-why-close .icon {
  width: 18px;
  height: 18px;
}
.lp-why-close:hover,
.lp-why-close:focus-visible {
  transform: rotate(90deg) scale(1.06);
  border-color: color-mix(in srgb, var(--lp-a) 70%, transparent);
  box-shadow: 0 0 calc(24px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 50%, transparent);
  outline: none;
}
.lp-why-scroll {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(24px, 4vw, 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* staggered entrance of every block once the window opens */
.lp-why[open] .lp-why-head,
.lp-why[open] .lp-why-item,
.lp-why[open] .lp-why-private,
.lp-why[open] .lp-why-actions {
  animation: lp-why-rise 0.7s var(--lp-spring) both;
  animation-delay: calc(0.12s + var(--i, 0) * 0.09s);
}
.lp-why-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  padding-right: 56px;
}
.lp-why-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lp-a-text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lp-why-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}
.lp-why-accent {
  display: inline-block;
  color: transparent;
  background: linear-gradient(
    100deg,
    var(--lp-a-text),
    var(--lp-b-text) 55%,
    var(--lp-a-text)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(
    0 0 calc(22px * var(--lp-glow))
      color-mix(in srgb, var(--lp-a) 45%, transparent)
  );
}
.lp-why-lead {
  margin: 0;
  color: var(--lp-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}
.lp-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lp-why-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px 14px 20px;
  border: 1px solid var(--lp-line);
  border-radius: 24px;
  background: var(--lp-glass);
  transition:
    transform 0.5s var(--lp-spring),
    border-color 0.3s var(--lp-ease),
    box-shadow 0.3s var(--lp-ease);
}
.lp-why-item:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--lp-a) 55%, var(--lp-line));
  box-shadow:
    0 24px 50px -24px var(--lp-shadow),
    0 0 calc(34px * var(--lp-glow)) -8px
      color-mix(in srgb, var(--lp-a) 50%, transparent);
}
.lp-why-item h3 {
  margin: 10px 6px 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.lp-why-item p {
  margin: 0 6px;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.5;
}
.lp-why-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 132px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(
      90% 80% at 50% 0%,
      color-mix(in srgb, var(--lp-a) 22%, transparent),
      transparent 70%
    ),
    color-mix(in srgb, var(--lp-bg) 60%, transparent);
}
/* 1 words: chips drifting up and down, a photo tile */
.lp-why-chip {
  position: absolute;
  left: 8%;
  top: 14%;
  padding: 5px 11px;
  border: 1px solid var(--lp-line-2);
  border-radius: 999px;
  background: var(--lp-glass-2);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  animation: lp-float-a 5s ease-in-out calc(var(--k) * -1.3s) infinite alternate;
}
.lp-why-chip:nth-child(2) {
  left: auto;
  right: 8%;
  top: 30%;
}
.lp-why-chip--hot {
  top: auto;
  bottom: 14%;
  color: var(--lp-ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
}
.lp-why-photo {
  position: absolute;
  right: 12%;
  bottom: 14%;
  width: 46px;
  height: 34px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 70% 28%, #fff 0 5px, transparent 6px),
    linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(18px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 55%, transparent);
  animation: lp-float-b 4.2s ease-in-out infinite alternate;
}
/* 2 voice: a wave and a recording tag */
.lp-why-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 56px;
}
.lp-why-wave i {
  width: 4px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--lp-a), var(--lp-b));
  transform: scaleY(0.2);
  animation: lp-bar 1.1s ease-in-out infinite alternate;
}
.lp-why-wave i:nth-child(3n) {
  animation-duration: 0.8s;
  animation-delay: -0.3s;
}
.lp-why-wave i:nth-child(3n + 1) {
  animation-duration: 1.4s;
  animation-delay: -0.7s;
}
.lp-why-rec {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
.lp-why-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a7a;
  box-shadow: 0 0 10px #ff5a7a;
  animation: lp-glow-pulse 1.4s ease-in-out infinite;
}
/* 3 teacher: your sentence, a typing dot row, the correction */
.lp-why-bubble {
  position: absolute;
  padding: 7px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.lp-why-bubble--you {
  right: 12px;
  top: 16px;
  border: 1px solid var(--lp-line-2);
  background: var(--lp-glass-2);
  animation: lp-why-bubble 6s ease-in-out infinite;
}
.lp-why-bubble--teacher {
  left: 12px;
  bottom: 14px;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(20px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 50%, transparent);
  animation: lp-why-bubble 6s ease-in-out 1.6s infinite;
}
.lp-why-dots {
  position: absolute;
  left: 16px;
  top: 44px;
  display: flex;
  gap: 4px;
}
.lp-why-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-muted);
  animation: lp-dot 1.2s ease-in-out infinite;
}
.lp-why-dots i:nth-child(2) {
  animation-delay: 0.18s;
}
.lp-why-dots i:nth-child(3) {
  animation-delay: 0.36s;
}
/* 4 rhythm: seven days lighting up one after another */
.lp-why-days {
  display: flex;
  gap: 7px;
}
.lp-why-days i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--lp-line-2);
  background: var(--lp-glass);
  animation: lp-why-day 7s ease-in-out infinite;
}
.lp-why-days i:nth-child(2) {
  animation-delay: 0.5s;
}
.lp-why-days i:nth-child(3) {
  animation-delay: 1s;
}
.lp-why-days i:nth-child(4) {
  animation-delay: 1.5s;
}
.lp-why-days i:nth-child(5) {
  animation-delay: 2s;
}
.lp-why-days i:nth-child(6) {
  animation-delay: 2.5s;
}
.lp-why-days i:nth-child(7) {
  animation-delay: 3s;
}
.lp-why-xp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 calc(18px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 55%, transparent);
  animation: lp-why-bubble 7s ease-in-out 3s infinite;
}
.lp-why-private {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--lp-a) 40%, var(--lp-line));
  border-radius: 22px;
  background: color-mix(in srgb, var(--lp-a) 9%, transparent);
}
.lp-why-private p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.5;
}
.lp-why-private strong {
  color: var(--lp-text);
}
.lp-why-lock {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 55%, transparent);
}
.lp-why-lock .icon {
  width: 22px;
  height: 22px;
}
.lp-why-lock::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 17px;
  border: 1px solid var(--lp-a);
  opacity: 0;
  animation: lp-beacon-square 3.2s ease-out infinite;
}
.lp-why-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@keyframes lp-why-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.94);
  }
}
@keyframes lp-why-fade {
  from {
    opacity: 0;
  }
}
@keyframes lp-why-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
}
@keyframes lp-why-bubble {
  0%,
  8% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.92);
  }
  18%,
  80% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
}
@keyframes lp-why-day {
  0%,
  8% {
    background: var(--lp-glass);
    transform: scale(1);
  }
  16%,
  72% {
    background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
    transform: scale(1.12);
  }
  86%,
  100% {
    background: var(--lp-glass);
    transform: scale(1);
  }
}

@media (max-width: 1023px) {
  .lp-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  dialog.lp-why {
    width: 100vw;
    max-height: 100dvh;
    margin: 0;
    align-self: end;
  }
  .lp-why-card {
    max-height: 94dvh;
    border-radius: 28px 28px 0 0;
  }
  .lp-why-card::after {
    border-radius: 26.5px 26.5px 0 0;
  }
  .lp-why-grid {
    grid-template-columns: 1fr;
  }
  .lp-why-head {
    padding-right: 48px;
  }
  .lp-why-actions .lp-btn {
    flex: 1 1 100%;
  }
}
html[data-anim="off"] dialog.lp-why,
html[data-anim="off"] dialog.lp-why *,
html[data-anim="off"] dialog.lp-why::backdrop {
  animation: none !important;
}
html[data-anim="off"] .lp-why-wave i {
  transform: scaleY(0.6);
}
@media (prefers-reduced-motion: reduce) {
  dialog.lp-why,
  dialog.lp-why *,
  dialog.lp-why::backdrop {
    animation: none !important;
    transition: none !important;
  }
  .lp-why-wave i {
    transform: scaleY(0.6);
  }
}

/* ---- 21. Registration: steps, six code boxes, a burst at the end ------------- */

.lp-reg {
  position: relative;
}
.lp-reg-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 2px 0 8px;
  padding: 0;
  list-style: none;
}
.lp-reg-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--lp-muted);
  font-size: 12px;
  font-weight: 650;
}
.lp-reg-steps li span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--lp-line-2);
  border-radius: 50%;
  color: var(--lp-text);
  background: var(--lp-bg-2);
  font-weight: 800;
  transition:
    background 0.4s var(--lp-ease),
    color 0.4s var(--lp-ease),
    border-color 0.4s var(--lp-ease),
    box-shadow 0.4s var(--lp-ease),
    transform 0.5s var(--lp-spring);
}
.lp-reg-steps em {
  font-style: normal;
}
/* the line behind the three nodes, and the lit part of it */
.lp-reg-steps::before,
.lp-reg-line {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(100% / 6);
  right: calc(100% / 6);
  top: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--lp-line-2);
}
.lp-reg-line {
  background: linear-gradient(90deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(12px * var(--lp-glow)) var(--lp-a);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--lp-spring);
}
.lp-reg[data-step="2"] .lp-reg-line {
  transform: scaleX(0.5);
}
.lp-reg[data-step="3"] .lp-reg-line,
.lp-reg[data-step="done"] .lp-reg-line {
  transform: scaleX(1);
}
/* reached steps are lit, the current one grows and glows */
.lp-reg[data-step="1"] .lp-reg-steps li:nth-child(1) span,
.lp-reg[data-step="2"] .lp-reg-steps li:nth-child(-n + 2) span,
.lp-reg[data-step="3"] .lp-reg-steps li span,
.lp-reg[data-step="done"] .lp-reg-steps li span {
  color: var(--lp-ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
}
.lp-reg[data-step="1"] .lp-reg-steps li:nth-child(1) span,
.lp-reg[data-step="2"] .lp-reg-steps li:nth-child(2) span,
.lp-reg[data-step="3"] .lp-reg-steps li:nth-child(3) span {
  transform: scale(1.14);
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 65%, transparent);
}
.lp-reg[data-step="1"] .lp-reg-steps li:nth-child(1),
.lp-reg[data-step="2"] .lp-reg-steps li:nth-child(2),
.lp-reg[data-step="3"] .lp-reg-steps li:nth-child(3) {
  color: var(--lp-text);
}
/* only the current step shows, and it slides in */
.lp-reg-step {
  display: none;
  gap: 14px;
}
.lp-reg[data-step="1"] .lp-reg-step[data-step="1"],
.lp-reg[data-step="2"] .lp-reg-step[data-step="2"],
.lp-reg[data-step="3"] .lp-reg-step[data-step="3"] {
  display: grid;
  animation: lp-reg-in 0.55s var(--lp-spring) both;
}
.lp-reg[data-step="done"] .lp-reg-step,
.lp-reg[data-step="done"] .lp-reg-steps {
  display: none;
}
.lp-reg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.lp-reg-row .btn:only-child {
  margin-inline-end: auto;
}
.lp-reg-row .btn[disabled] {
  opacity: 0.55;
}
/* done: a check, rings leaving it */
.lp-reg-done {
  display: none;
  position: relative;
  justify-items: center;
  gap: 18px;
  padding: 36px 0 28px;
  text-align: center;
}
.lp-reg[data-step="done"] .lp-reg-done {
  display: grid;
  animation: lp-reg-in 0.5s var(--lp-spring) both;
}
.lp-reg-done strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.lp-reg-check {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(50px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 70%, transparent);
  animation: lp-pop 0.7s var(--lp-spring) both;
}
.lp-reg-check .icon {
  width: 40px;
  height: 40px;
  stroke-width: 3;
}
.lp-reg-burst {
  position: absolute;
  left: 50%;
  top: 36px;
  width: 84px;
  height: 84px;
  translate: -50% 0;
}
.lp-reg-burst i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--lp-a);
  border-radius: 50%;
  opacity: 0;
  animation: lp-ring-out 1.4s ease-out infinite;
}
.lp-reg-burst i:nth-child(2) {
  border-color: var(--lp-b);
  animation-delay: 0.35s;
}
.lp-reg-burst i:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes lp-reg-in {
  from {
    opacity: 0;
    transform: translate3d(26px, 0, 0);
  }
}
html[data-anim="off"] .lp-reg *,
html[data-anim="off"] .lp-reg-burst i {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .lp-reg *,
  .lp-reg-burst i {
    animation: none !important;
    transition: none !important;
  }
}

/* the invitation card is the two-step variant: invitation (done), password */
.lp-reg--invite .lp-reg-steps {
  grid-template-columns: repeat(2, 1fr);
}
.lp-reg--invite .lp-reg-steps::before,
.lp-reg--invite .lp-reg-line {
  left: 25%;
  right: 25%;
}
.lp-reg--invite[data-step="2"] .lp-reg-line {
  transform: scaleX(1);
  transition-duration: 1.1s;
}
.lp-reg--invite .lp-reg-steps li:nth-child(1) .icon {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}
.lp-reg--invite[data-step="done"] > :not(.lp-reg-done) {
  display: none;
}
.lp-reg--invite[data-step="done"] .lp-reg-done {
  display: grid;
}

/* ---- 22. Accent menu: a compact list, every colour with its name ----------------- */
/* The cabinet styles print each colour name under a round swatch; here the same
   ten buttons become two columns of small rows, a dot and the name side by side. */

:root .landing-accent-menu {
  grid-template-columns: repeat(2, 132px);
  gap: 4px;
  padding: 8px;
  border-radius: 20px;
  box-shadow:
    0 30px 70px -24px var(--lp-shadow),
    0 0 calc(36px * var(--lp-glow)) -14px
      color-mix(in srgb, var(--lp-a) 50%, transparent);
}
:root .landing-accent-menu .accent-swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transition:
    background 0.2s var(--lp-ease),
    transform 0.25s var(--lp-spring);
}
/* the colour dot */
:root .landing-accent-menu .accent-swatch::after {
  content: "";
  position: static;
  display: block;
  order: -1;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    color-mix(in srgb, var(--swatch) 55%, #fff),
    var(--swatch) 65%
  );
  box-shadow: 0 0 calc(8px * var(--lp-glow))
    color-mix(in srgb, var(--swatch) 55%, transparent);
  transition: transform 0.25s var(--lp-spring);
}
/* the name, always shown */
:root .landing-accent-menu .accent-swatch::before {
  content: attr(title);
  position: static;
  translate: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 1;
  transition: color 0.2s var(--lp-ease);
}
:root .landing-accent-menu .accent-swatch:hover,
:root .landing-accent-menu .accent-swatch:focus-visible {
  transform: none;
  background: var(--lp-glass-2);
  box-shadow: none;
  outline: none;
}
:root .landing-accent-menu .accent-swatch:hover::before,
:root .landing-accent-menu .accent-swatch:focus-visible::before {
  color: var(--lp-text);
  translate: none;
  opacity: 1;
}
:root .landing-accent-menu .accent-swatch:hover::after {
  transform: scale(1.18);
}
:root .landing-accent-menu .accent-swatch.is-active {
  border: 0;
  background: color-mix(in srgb, var(--swatch) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--swatch) 50%, transparent);
}
:root .landing-accent-menu .accent-swatch.is-active::before {
  color: var(--lp-text);
  font-weight: 750;
}
:root .landing-accent-menu .accent-swatch.is-active::after {
  display: block;
  box-shadow:
    0 0 0 2px var(--lp-bg-2),
    0 0 0 3.5px var(--swatch),
    0 0 calc(12px * var(--lp-glow)) var(--swatch);
}
@media (max-width: 420px) {
  :root .landing-accent-menu {
    grid-template-columns: repeat(2, 126px);
    right: 0;
  }
}

/* ---- 23. The logo: a glowing core with two orbits turning round it ------------ */
/* Plain boxes, not SVG shapes: every moving part is its own layer that the
   compositor turns, so the logo costs nothing per frame. */

.ylogo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.ylogo > * {
  position: absolute;
  inset: 0;
}
.ylogo-halo {
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--lp-a) 60%, transparent),
    color-mix(in srgb, var(--lp-b) 22%, transparent) 55%,
    transparent 72%
  );
  opacity: calc(0.9 * var(--lp-glow));
  animation: ylogo-breathe 3.6s ease-in-out infinite;
}
.ylogo-tilt--1 {
  transform: rotate(-32deg) scale(1, 0.36);
}
.ylogo-tilt--2 {
  transform: rotate(34deg) scale(1, 0.42);
}
.ylogo-spin {
  will-change: transform;
  animation: lp-spin 7s linear infinite;
}
.ylogo-spin--2 {
  animation-duration: 11s;
  animation-direction: reverse;
}
.ylogo-ring {
  position: absolute;
  inset: 2%;
  border: 2px solid color-mix(in srgb, var(--lp-a) 85%, transparent);
  border-radius: 50%;
}
.ylogo-spin--2 .ylogo-ring {
  inset: 5%;
  border-color: color-mix(in srgb, var(--lp-b) 85%, transparent);
}
.ylogo-sat {
  position: absolute;
  right: 0;
  top: 50%;
  width: 17%;
  height: 17%;
  margin-top: -8.5%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgb(255 255 255 / 70%);
}
.ylogo-sat--b {
  left: 5%;
  right: auto;
  background: var(--lp-b);
  box-shadow: 0 0 6px var(--lp-b);
}
.ylogo-core {
  inset: 0;
  animation: ylogo-pulse 3.6s ease-in-out infinite;
}
.ylogo-core svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ylogo-y {
  fill: none;
  stroke: var(--lp-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* the mark has no tile behind it any more */
.brand-mark--orb,
:root[data-style] .brand-mark--orb,
#authScreen .brand-mark--orb {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  animation: none;
}
.lp-brand-mark.brand-mark--orb::after {
  display: none;
}
@keyframes ylogo-breathe {
  50% {
    transform: scale(1.18);
    opacity: 0.75;
  }
}
@keyframes ylogo-pulse {
  50% {
    transform: scale(1.06);
  }
}
html[data-anim="off"] .ylogo *,
html[data-anim="off"] .ylogo {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .ylogo *,
  .ylogo {
    animation: none !important;
  }
}

/* ---- 24. Delights: confetti, a whirling logo, a sphere that listens ----------- */

.fx-confetti {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
}
.fx-confetti i {
  position: absolute;
  width: var(--w, 8px);
  height: calc(var(--w, 8px) * 0.45);
  border-radius: 2px;
  background: var(--c);
  opacity: 0;
  animation: fx-confetti 1.25s cubic-bezier(0.12, 0.7, 0.3, 1) forwards;
}
@keyframes fx-confetti {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), calc(var(--dy) + 260px), 0)
      rotate(var(--rot));
  }
}
/* click the logo: the orbits whirl and the core flares */
.brand-mark--orb {
  cursor: pointer;
}
.ylogo.is-burst .ylogo-spin--1 {
  animation-duration: 0.7s;
}
.ylogo.is-burst .ylogo-spin--2 {
  animation-duration: 0.9s;
}
.ylogo.is-burst .ylogo-core {
  animation: ylogo-flare 1.4s var(--lp-spring) both;
}
@keyframes ylogo-flare {
  30% {
    transform: scale(1.35);
  }
}
/* the sign-in sphere reacts to typing and to a strong password */
.lp-sphere-core {
  transition: transform 0.35s var(--lp-spring);
}
.lp-sphere.is-typing .lp-sphere-core {
  transform: scale(1.14);
}
.lp-sphere.is-flare .lp-sphere-core {
  animation: ylogo-flare 1.2s var(--lp-spring) both;
}
.lp-sphere.is-flare::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  border: 2px solid var(--lp-a);
  opacity: 0;
  animation: lp-ring-out 1.2s ease-out both;
}
html[data-anim="off"] .fx-confetti {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .fx-confetti {
    display: none;
  }
}

/* ---- 25. Lesson prices: pick the length, watch the numbers roll ---------------- */

.lp-pricing[data-state] {
  display: none;
}
.lp-rates {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  justify-items: center;
}
.lp-rates-pick {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  width: min(100%, 420px);
  padding: 5px;
  border: 1px solid var(--lp-line-2);
  border-radius: 999px;
  background: var(--lp-glass);
  box-shadow: 0 0 calc(30px * var(--lp-glow)) -14px
    color-mix(in srgb, var(--lp-a) 60%, transparent);
}
.lp-rates-thumb {
  position: absolute;
  z-index: -1;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(24px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 65%, transparent);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.6s var(--lp-spring);
}
.lp-rates-pick button {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-height: 56px;
  padding: 6px 8px;
  border: 0;
  border-radius: 999px;
  color: var(--lp-muted);
  background: none;
  font: inherit;
  cursor: pointer;
  transition: color 0.3s var(--lp-ease);
}
.lp-rates-pick button strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.lp-rates-pick button span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lp-rates-pick button.is-on {
  color: var(--lp-ink);
}
.lp-rates-pick button:hover:not(.is-on) {
  color: var(--lp-text);
}
.lp-rates-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 940px);
}
.lp-rate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--lp-line-2);
  border-radius: 30px;
  background:
    radial-gradient(
      90% 60% at 0% 0%,
      color-mix(in srgb, var(--lp-a) 14%, transparent),
      transparent 70%
    ),
    color-mix(in srgb, var(--lp-bg-2) 88%, transparent);
  transition:
    transform 0.5s var(--lp-spring),
    border-color 0.3s var(--lp-ease),
    box-shadow 0.3s var(--lp-ease);
}
.lp-rate:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--lp-a) 60%, var(--lp-line));
  box-shadow:
    0 30px 70px -30px var(--lp-shadow),
    0 0 calc(44px * var(--lp-glow)) -10px
      color-mix(in srgb, var(--lp-a) 55%, transparent);
}
/* the package: a light runs round its edge, a ribbon shines */
.lp-rate--best {
  border-color: transparent;
  box-shadow: 0 0 calc(70px * var(--lp-glow)) -18px
    color-mix(in srgb, var(--lp-a) 70%, transparent);
}
.lp-rate--best::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 50%;
  width: 230%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 60%,
    var(--lp-a) 74%,
    #fff 80%,
    var(--lp-b) 88%,
    transparent 100%
  );
  opacity: calc(0.95 * var(--lp-glow));
  will-change: transform;
  animation: lp-spin 8s linear infinite;
}
.lp-rate--best::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.5px;
  border-radius: 28.5px;
  background:
    radial-gradient(
      90% 60% at 100% 0%,
      color-mix(in srgb, var(--lp-b) 22%, transparent),
      transparent 70%
    ),
    color-mix(in srgb, var(--lp-bg-2) 96%, var(--lp-a));
}
.lp-rate-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 12px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 calc(18px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 60%, transparent);
}
.lp-rate-kicker {
  color: var(--lp-a-text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lp-rate-was {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  color: var(--lp-muted);
  font-size: 15px;
}
.lp-rate-was s {
  text-decoration-color: color-mix(in srgb, var(--lp-b) 80%, transparent);
  text-decoration-thickness: 2px;
}
.lp-rate-chip {
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.lp-rate-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.lp-roll {
  display: inline-flex;
  align-items: baseline;
  color: var(--lp-text);
  /* the glow is drawn after the digit columns are clipped, so no boxes show */
  filter: drop-shadow(
    0 0 calc(16px * var(--lp-glow))
      color-mix(in srgb, var(--lp-a) 55%, transparent)
  );
}
.lp-rate--best .lp-roll {
  color: color-mix(in srgb, var(--lp-a) 35%, var(--lp-text));
}
.lp-digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}
.lp-digit-strip {
  display: block;
  transform: translate3d(0, calc(var(--d, 0) * -1em), 0);
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.lp-digit-strip i {
  display: block;
  height: 1em;
  font-style: normal;
}
.lp-sep {
  display: inline-block;
  width: 0.28em;
}
.lp-rate-cur {
  color: var(--lp-a-text);
  font-size: 0.5em;
  font-weight: 700;
}
.lp-rate-sub {
  margin: 0;
  color: var(--lp-muted);
  font-size: 14px;
}
.lp-rate-save {
  margin: 0;
  min-height: 0;
  color: var(--lp-a-text);
  font-size: 15px;
  font-weight: 750;
}
.lp-rate-save span {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--lp-a) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--lp-a) 12%, transparent);
}
.lp-rate-list {
  display: grid;
  gap: 9px;
  margin: 6px 0 10px;
  padding: 0;
  list-style: none;
}
.lp-rate-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--lp-text);
  font-size: 14.5px;
  line-height: 1.4;
}
.lp-rate-list .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  color: var(--lp-ink);
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  stroke-width: 3;
}
.lp-rate .lp-btn {
  width: 100%;
  margin-top: auto;
}
/* the package card already has a light running round its edge, so its button
   stays quiet: no ring or sweep until the pointer is on it */
.lp-rate .lp-btn--main:not(:hover, :focus-visible)::before {
  opacity: 0;
}
.lp-rate .lp-btn--main::after {
  animation: none;
}
.lp-rates-note {
  margin: 0;
  color: var(--lp-muted);
  font-size: 14px;
  text-align: center;
}
.lp-rates-note b {
  color: var(--lp-text);
}
/* the cards slide in one after the other with the section */
.lp-rate {
  animation: lp-rate-in 0.8s var(--lp-spring) both;
}
@keyframes lp-rate-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.97);
  }
}
.lp-rate--best {
  animation-delay: 0.12s;
}
@media (max-width: 767px) {
  .lp-rates-cards {
    grid-template-columns: 1fr;
  }
  .lp-rate-price {
    font-size: clamp(48px, 15vw, 70px);
  }
}
html[data-anim="off"] .lp-rate,
html[data-anim="off"] .lp-rate::before,
html[data-anim="off"] .lp-rate-save span {
  animation: none;
}
html[data-anim="off"] .lp-digit-strip,
html[data-anim="off"] .lp-rates-thumb {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .lp-rate,
  .lp-rate::before,
  .lp-rate-save span {
    animation: none;
  }
  .lp-digit-strip,
  .lp-rates-thumb {
    transition: none;
  }
}

/* ---- 26. Registration: two steps, password rules, terms, six code boxes ------- */

.lp-reg-steps--2 {
  grid-template-columns: repeat(2, 1fr);
}
.lp-reg-steps--2::before,
.lp-reg-steps--2 .lp-reg-line {
  left: 25%;
  right: 25%;
}
.lp-reg[data-step="1"] .lp-reg-steps--2 .lp-reg-line {
  transform: scaleX(0);
}
.lp-reg[data-step="2"] .lp-reg-steps--2 .lp-reg-line,
.lp-reg[data-step="done"] .lp-reg-steps--2 .lp-reg-line {
  transform: scaleX(1);
}
.lp-pwd-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-pwd-rules li {
  position: relative;
  padding-inline-start: 14px;
  color: var(--lp-muted);
  font-size: 12px;
  transition: color 0.2s var(--lp-ease);
}
.lp-pwd-rules li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.lp-pwd-rules li[data-ok="1"] {
  color: var(--lp-text);
}
.lp-pwd-rules li[data-ok="1"]::before {
  background: var(--success);
  opacity: 1;
  box-shadow: 0 0 calc(8px * var(--lp-glow))
    color-mix(in srgb, var(--success) 60%, transparent);
}
.lp-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lp-terms .check-chip {
  min-height: 44px;
  border-color: var(--lp-line-2);
  color: var(--lp-text);
  background: color-mix(in srgb, var(--lp-bg) 55%, transparent);
}
.lp-terms .check-chip:has(input:checked) {
  border-color: var(--lp-a);
  background: color-mix(in srgb, var(--lp-a) 14%, transparent);
}
#authScreen .auth-card .lp-terms input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  accent-color: var(--lp-a);
  box-shadow: none;
}
.lp-terms-link {
  min-height: 44px;
  padding: 4px 2px;
  border: 0;
  color: var(--lp-a-text);
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.lp-terms-link:hover {
  color: var(--lp-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-sso {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.lp-sso[hidden],
.lp-sso [hidden] {
  display: none;
}
.lp-sso-google {
  display: grid;
  justify-items: center;
  min-height: 44px;
}
.lp-sso-consent {
  display: grid;
  gap: 12px;
}
.lp-sso-wait {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--lp-a) 50%, transparent);
  border-radius: 16px;
}
.lp-sso-wait .form-note {
  margin: 0;
}
.lp-sso-count {
  color: var(--lp-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.setting-sso {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
#ssoConsentGo[disabled],
#regSend[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.lp-reg-dev {
  margin: 0;
  padding: 8px 12px;
  border: 1px dashed color-mix(in srgb, var(--lp-a) 50%, transparent);
  border-radius: 12px;
  color: var(--lp-muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.lp-code {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
#authScreen .auth-card .lp-code input {
  min-height: 60px;
  padding: 0;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 26px;
  font-weight: 800;
  caret-color: var(--lp-a);
}
#authScreen .auth-card .lp-code input:focus {
  transform: translateY(-3px) scale(1.04);
}
.lp-code.is-full input {
  border-color: var(--lp-a);
  box-shadow: 0 0 calc(22px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 45%, transparent);
  animation: lp-code-ok 0.6s var(--lp-spring) both;
}
.lp-code.is-full input:nth-child(2) {
  animation-delay: 0.04s;
}
.lp-code.is-full input:nth-child(3) {
  animation-delay: 0.08s;
}
.lp-code.is-full input:nth-child(4) {
  animation-delay: 0.12s;
}
.lp-code.is-full input:nth-child(5) {
  animation-delay: 0.16s;
}
.lp-code.is-full input:nth-child(6) {
  animation-delay: 0.2s;
}
@keyframes lp-code-ok {
  40% {
    transform: translateY(-6px) scale(1.08);
  }
}
@media (max-width: 420px) {
  .lp-code {
    gap: 6px;
  }
  #authScreen .auth-card .lp-code input {
    min-height: 54px;
    font-size: 22px;
  }
}

/* three tabs fit on one line; the small buttons of the steps keep a real width */
#authScreen .auth-tabs button {
  min-height: 44px;
  padding-inline: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.lp-reg-row .btn {
  min-width: 96px;
}

/* ---- 27. The sign-in card, tidier: sentence-case labels, one clear route -------- */

#authScreen .field-label {
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lp-muted);
}
#authScreen .auth-card .field:focus-within .field-label {
  color: var(--lp-a-text);
}
#authScreen .auth-card-title {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.03em;
}
#authScreen .auth-card-sub {
  max-width: 34ch;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.5;
}
/* "Forgot your password?" sits right under the password, on the right */
.lp-auth-forgot {
  justify-self: end;
  margin: -6px 2px 2px;
  padding: 4px 2px;
  border: 0;
  color: var(--lp-a-text);
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s var(--lp-ease);
}
.lp-auth-forgot:hover {
  color: var(--lp-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* the passkey, offered under the main button after a thin "or" */
.lp-auth-alt {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.lp-auth-alt[hidden] {
  display: none;
}
.lp-auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lp-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lp-auth-or::before,
.lp-auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lp-line-2),
    transparent
  );
}
.lp-auth-alt .btn {
  gap: 10px;
}
.lp-auth-alt .icon {
  width: 18px;
  height: 18px;
}

/* ---- 19. Top bar: living controls ------------------------------------------- */
/* Landing and sign-in share one set: a language thumb that slides, a light ring
   that runs round a button under the pointer, a lit dot on sound, an accent orb
   that turns, links that underline from the centre and a line of light that
   breathes under the bar. Everything moves by transform and opacity only. */

.lp-nav::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lp-a),
    var(--lp-b),
    transparent
  );
  box-shadow: 0 0 calc(14px * var(--lp-glow)) var(--lp-a);
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: lp-nav-breathe 4.6s ease-in-out infinite alternate;
}

/* language: two equal slots and one thumb that glides between them */
:is(.lp-controls, #authScreen .auth-top-actions) .segmented {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  padding: 3px;
  overflow: hidden;
}
:is(.lp-controls, #authScreen .auth-top-actions) .segmented::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  box-shadow: 0 0 calc(16px * var(--lp-glow))
    color-mix(in srgb, var(--lp-a) 55%, transparent);
  transition: transform 0.5s var(--lp-spring);
}
:is(.lp-controls, #authScreen .auth-top-actions)
  .segmented:has(button:nth-child(2).is-active)::before {
  transform: translateX(100%);
}
:is(.lp-controls, #authScreen .auth-top-actions) .segmented button {
  position: relative;
  min-width: 46px;
  transition:
    color 0.3s var(--lp-ease),
    transform 0.3s var(--lp-spring);
}
:is(.lp-controls, #authScreen .auth-top-actions) .segmented button.is-active {
  background: transparent;
  box-shadow: none;
  font-weight: 800;
}
:is(.lp-controls, #authScreen .auth-top-actions)
  .segmented
  button:not(.is-active):hover {
  color: var(--lp-text);
  transform: scale(1.08);
}
:is(.lp-controls, #authScreen .auth-top-actions) .segmented button:active {
  transform: scale(0.94);
}

/* touch: the language buttons are the whole 44px pill, the thumb sits 2px inside it */
@media (max-width: 640px), (pointer: coarse) {
  :is(.lp-controls, #authScreen .auth-top-actions) .segmented {
    padding: 0;
  }
  :is(.lp-controls, #authScreen .auth-top-actions) .segmented::before {
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(50% - 2px);
  }
  :is(.lp-controls, #authScreen .auth-top-actions) .segmented button {
    min-height: 44px;
  }
}

/* round buttons: a ring of light runs round the edge while the pointer is on it */
:is(.lp-controls, #authScreen .auth-top-actions) .icon-btn {
  position: relative;
  overflow: visible;
}
:is(.lp-controls, #authScreen .auth-top-actions) .icon-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--lp-a),
    transparent 28%,
    var(--lp-b) 52%,
    transparent 78%,
    var(--lp-a)
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2.5px),
    #000 calc(100% - 2px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2.5px),
    #000 calc(100% - 2px)
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--lp-ease);
  animation: lp-ring-spin 2.6s linear infinite paused;
}
:is(.lp-controls, #authScreen .auth-top-actions)
  .icon-btn:is(:hover, :focus-visible, [aria-expanded="true"])::before {
  opacity: 1;
  animation-play-state: running;
}
:is(.lp-controls, #authScreen .auth-top-actions) .icon-btn .icon {
  transition: transform 0.45s var(--lp-spring);
}
:is(.lp-controls, #authScreen .auth-top-actions) .icon-btn:hover .icon {
  transform: rotate(-14deg) scale(1.12);
}
:is(.lp-controls, #authScreen .auth-top-actions) .icon-btn.is-flip .icon {
  animation: lp-icon-flip 0.7s var(--lp-spring);
}

/* sound: a small lit dot says it is on, and breathes */
.landing-sound-toggle::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-b);
  box-shadow: 0 0 8px var(--lp-b);
  opacity: 0;
  transform: scale(0);
  transition:
    opacity 0.3s var(--lp-ease),
    transform 0.4s var(--lp-spring);
}
.landing-sound-toggle[aria-pressed="true"]::after {
  opacity: 1;
  transform: scale(1);
  animation: lp-dot-pulse 2.2s ease-in-out 0.4s infinite;
}
.landing-sound-toggle[aria-pressed="false"] .icon {
  opacity: 0.55;
}

/* accent: the orb turns slowly, grows when its menu is open */
.landing-accent-orb {
  animation: lp-orb-spin 9s linear infinite;
  transition: scale 0.4s var(--lp-spring);
}
.landing-accent-toggle:hover .landing-accent-orb {
  animation-duration: 2.4s;
}
.landing-accent-toggle[aria-expanded="true"] .landing-accent-orb {
  scale: 1.2;
}

/* links: a glass pill with a gradient hairline, an icon and gradient lettering
   even at rest; a sheen slides across now and then, and the pill lights up and
   lifts under the pointer */
.lp-links button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px 0 15px;
  border: 1px solid transparent;
  color: transparent;
  font-weight: 650;
  letter-spacing: 0.01em;
  background:
    linear-gradient(90deg, var(--lp-text) 0%, var(--lp-a-text) 120%),
    linear-gradient(var(--lp-glass), var(--lp-glass)),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--lp-a) 80%, transparent),
      var(--lp-line) 42%,
      color-mix(in srgb, var(--lp-b) 70%, transparent)
    );
  background-size:
    200% 100%,
    auto,
    auto;
  background-position:
    0 0,
    0 0,
    0 0;
  -webkit-background-clip: text, padding-box, border-box;
  background-clip: text, padding-box, border-box;
  background-origin: padding-box, padding-box, border-box;
  transition:
    background-position 0.6s var(--lp-ease),
    box-shadow 0.3s var(--lp-ease),
    transform 0.35s var(--lp-spring);
}
.lp-links button::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  background: linear-gradient(135deg, var(--lp-a), var(--lp-b));
  -webkit-mask: var(--lp-link-icon) center / contain no-repeat;
  mask: var(--lp-link-icon) center / contain no-repeat;
  transition: transform 0.45s var(--lp-spring);
}
.lp-links button[data-action="open-auth"] {
  --lp-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E");
}
.lp-links button[data-action="open-why"] {
  --lp-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 16.5v-5'/%3E%3Cpath d='M12 7.8h.01'/%3E%3C/svg%3E");
}
.lp-links button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgb(255 255 255 / 26%) 50%,
    transparent 62%
  );
  transform: translateX(-130%);
  animation: lp-link-sheen 6.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}
.lp-links button[data-action="open-why"]::after {
  animation-delay: 2.9s;
}
.lp-links button:is(:hover, :focus-visible) {
  background-position:
    100% 0,
    0 0,
    0 0;
  box-shadow:
    0 0 calc(24px * var(--lp-glow))
      color-mix(in srgb, var(--lp-a) 38%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--lp-a) 14%, transparent);
  transform: translateY(-2px);
}
.lp-links button:is(:hover, :focus-visible)::before {
  transform: rotate(-12deg) scale(1.18);
}
.lp-links button:is(:hover, :focus-visible):active {
  transform: scale(0.96);
}

@keyframes lp-link-sheen {
  0%,
  62% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}
@keyframes lp-nav-breathe {
  from {
    opacity: 0.35;
    transform: scaleX(0.55);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
@keyframes lp-ring-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes lp-orb-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes lp-dot-pulse {
  50% {
    opacity: 0.55;
    transform: scale(0.7);
  }
}
@keyframes lp-icon-flip {
  from {
    opacity: 0.4;
    transform: rotate(-200deg) scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.lp-controls, #authScreen .auth-top-actions) .icon-btn::before,
  .lp-nav::after,
  .landing-accent-orb,
  .landing-sound-toggle::after,
  .lp-links button::after,
  .icon-btn.is-flip .icon {
    animation: none !important;
  }
}
html[data-anim="off"] .lp-nav::after,
html[data-anim="off"] .landing-accent-orb,
html[data-anim="off"] .landing-sound-toggle::after,
html[data-anim="off"] .lp-links button::after,
html[data-anim="off"]
  :is(.lp-controls, #authScreen .auth-top-actions)
  .icon-btn::before,
html[data-anim="off"] .icon-btn.is-flip .icon {
  animation: none !important;
}

/* ---- 24. The logo in more places: it turns wherever it is shown -------------- */

.ylogo--btn {
  width: 30px;
  height: 30px;
}
.ylogo--foot {
  display: inline-block;
  flex: none;
  width: 26px;
  height: 26px;
  margin-right: -12px;
  vertical-align: middle;
}
.lp-footer,
.auth-footer {
  align-items: center;
}
.ylogo--about {
  flex: none;
  width: 52px;
  height: 52px;
}
#aboutDialog .dialog-head {
  align-items: center;
  gap: 14px;
}
#aboutDialog .dialog-head > div {
  flex: 1 1 auto;
  min-width: 0;
}
/* a returning visitor sees the logo, not an empty page, while the session is
   confirmed; it fades in after a beat so a quick resume does not flash it */
.boot-splash {
  display: none;
}
html.resuming .boot-splash {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: boot-in 0.5s ease-out 0.25s both;
}
.ylogo--splash {
  width: 104px;
  height: 104px;
}
@keyframes boot-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
