/* =======================================================================
   Statusful — marketing landing page
   Full-bleed entry view shown to logged-out visitors. Reuses the global
   design tokens (--bg / --ink / --tone / …) from styles.css, so it follows
   the same monochrome theme + per-status tone glyphs and adapts to
   dark/light automatically. All classes are prefixed `lp-` to stay clear of
   the app's own component classes.
   ======================================================================= */

.lp {
  position: relative;
  width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--bg);
}

/* cursor-reactive ambient glow + a faint dotted field, both fixed behind
   everything. The glow follows the pointer via --mx/--my (set in JS). */
.lp__atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      40rem 40rem at var(--mx, 50%) var(--my, 0%),
      color-mix(in srgb, var(--accent) 9%, transparent),
      transparent 60%
    );
  transition: background 0.5s linear;
}

.lp__grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(circle at center, var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* drifting tone glyphs in the hero backdrop */
.lp__float {
  position: absolute;
  z-index: 0;
  color: var(--tone, var(--faint));
  opacity: 0;
  animation: lp-drift var(--dur, 22s) var(--ease) var(--delay, 0s) infinite;
  will-change: transform, opacity;
}

.lp__float .lp-i {
  width: var(--size, 26px);
  height: var(--size, 26px);
}

@keyframes lp-drift {
  0% { opacity: 0; transform: translateY(24px) rotate(-6deg) scale(0.9); }
  12%, 80% { opacity: 0.22; }
  50% { transform: translateY(-26px) rotate(6deg) scale(1.05); }
  100% { opacity: 0; transform: translateY(-60px) rotate(10deg) scale(1); }
}

.lp__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ---- scroll progress + nav -------------------------------------------- */

.lp-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: var(--accent);
  opacity: 0.85;
}

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.lp-nav.is-stuck {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.lp-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.lp-nav__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent);
  animation: lp-ping 2.6s var(--ease) infinite;
}

@keyframes lp-ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 45%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--live) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 0%, transparent); }
}

.lp-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-iconbtn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}

.lp-iconbtn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.lp-iconbtn .lp-i {
  width: 19px;
  height: 19px;
}

.lp-nav__login {
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.18s var(--ease);
}

.lp-nav__login:hover { color: var(--ink); }

/* ---- shared buttons --------------------------------------------------- */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.lp-btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.92rem; }
.lp-btn--lg { min-height: 60px; padding: 0 32px; font-size: 1.06rem; }

.lp-btn--primary {
  color: var(--accent-ink);
  background: var(--ink);
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--ink) 55%, transparent);
}

.lp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--ink) 60%, transparent);
}

.lp-btn--primary:active { transform: translateY(0) scale(0.99); }

.lp-btn--primary .lp-i { transition: transform 0.2s var(--ease); }
.lp-btn--primary:hover .lp-i { transform: translateX(4px); }

.lp-btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.lp-btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.lp-i { width: 1.2em; height: 1.2em; flex: none; }

/* ---- generic section scaffolding -------------------------------------- */

.lp-section {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 11vw, 132px) 0;
}

.lp-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lp-overline::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.lp-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
}

.lp-sub {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
}

/* reveal-on-scroll: elements start shifted + transparent, IO adds .is-in */
.lp-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--rd, 0s);
}

.lp-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- hero ------------------------------------------------------------- */

.lp-hero {
  position: relative;
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 9vw, 96px) 0 clamp(48px, 8vw, 90px);
}

.lp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  align-self: flex-start;
  padding: 7px 14px 7px 11px;
  margin-bottom: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.lp-hero__eyebrow .lp-livedot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}

.lp-hero__head {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  font-size: clamp(2.9rem, 11vw, 6.4rem);
}

.lp-hero__head .lp-dim { color: var(--muted); }

/* the live, cycling status line */
.lp-cycler-row {
  display: flex;
  align-items: center;
  min-height: 1.1em;
  margin-top: 0.1em;
}

.lp-cycler {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  color: var(--tone, var(--accent));
}

.lp-cycler__glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 0.92em;
  height: 0.92em;
}

.lp-cycler__glyph .lp-i { width: 100%; height: 100%; }

.lp-cycler__word { white-space: nowrap; }

.lp-cycler.is-out .lp-cycler__glyph,
.lp-cycler.is-out .lp-cycler__word {
  animation: lp-word-out 0.26s var(--ease) forwards;
}

.lp-cycler.is-in .lp-cycler__glyph,
.lp-cycler.is-in .lp-cycler__word {
  animation: lp-word-in 0.34s var(--ease) both;
}

@keyframes lp-word-out {
  to { opacity: 0; transform: translateY(-0.32em); filter: blur(3px); }
}

@keyframes lp-word-in {
  from { opacity: 0; transform: translateY(0.36em); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

.lp-hero__lede {
  max-width: 33rem;
  margin: clamp(22px, 4vw, 32px) 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2.4vw, 1.28rem);
  line-height: 1.5;
}

.lp-hero__lede b { color: var(--ink); font-weight: 600; }

.lp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 5vw, 40px);
}

.lp-hero__note {
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.84rem;
  font-weight: 500;
}

.lp-hero__scroll {
  position: absolute;
  left: 0;
  bottom: clamp(8px, 3vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
}

.lp-hero__scroll .lp-i {
  width: 16px;
  height: 16px;
  animation: lp-bob 1.8s var(--ease) infinite;
}

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

/* ---- interactive demo ------------------------------------------------- */

.lp-demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  margin-top: clamp(34px, 6vw, 56px);
  align-items: start;
}

@media (min-width: 880px) {
  .lp-demo__grid { grid-template-columns: 22rem minmax(0, 1fr); align-items: stretch; }
}

/* the live status card (mirrors the app's hero/profile card language) */
.lp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(130% 100% at 0% 0%, color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent), transparent 58%),
    var(--surface);
  border-color: color-mix(in srgb, var(--tone, var(--accent)) 22%, var(--line));
  overflow: hidden;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.lp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--tone, var(--accent)) 12%, transparent) 50%, transparent 70%);
  background-size: 240% 100%;
  animation: lp-sheen 7s var(--ease) infinite;
}

@keyframes lp-sheen {
  0% { background-position: 140% 0; }
  60%, 100% { background-position: -40% 0; }
}

.lp-card__top {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 1;
}

.lp-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  flex: none;
}

.lp-card__avatar svg { display: block; width: 100%; height: 100%; }

.lp-card__id { min-width: 0; }

.lp-card__handle {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.lp-card__url {
  color: var(--faint);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.lp-card__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--live);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-card__live .lp-livedot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent);
  animation: lp-ping 2.4s var(--ease) infinite;
}

.lp-card__status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 4px;
  position: relative;
  z-index: 1;
}

.lp-card__glyph {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex: none;
  background: color-mix(in srgb, var(--tone, var(--accent)) 16%, var(--surface-2));
  color: var(--tone, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--accent)) 40%, var(--line));
}

.lp-card__glyph .lp-i { width: 28px; height: 28px; }

.lp-card__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(1.6rem, 4.4vw, 2rem);
  overflow-wrap: anywhere;
}

.lp-card.is-bump .lp-card__glyph { animation: lp-pop 0.4s var(--ease); }
.lp-card.is-bump .lp-card__label { animation: lp-rise 0.34s var(--ease); }

@keyframes lp-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes lp-rise {
  from { opacity: 0.3; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.lp-card__meta {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lp-card__count strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.lp-card__count span {
  display: block;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 500;
}

.lp-card__track { display: flex; gap: 5px; }

.lp-seg {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.4s var(--ease);
}

.lp-seg.is-on { background: var(--tone, var(--accent)); }

/* the demo's right side: instruction + a live mini timeline + preset tiles */
.lp-demo__play {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-demo__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  align-self: flex-start;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.lp-demo__hint .lp-i { width: 17px; height: 17px; color: var(--faint); }

.lp-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 560px) { .lp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 880px) { .lp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.lp-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.lp-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tone, var(--accent)) 50%, var(--line-strong));
  background: var(--surface-2);
}

.lp-tile:active { transform: translateY(0) scale(0.98); }

.lp-tile.is-active {
  border-color: color-mix(in srgb, var(--tone, var(--accent)) 65%, var(--line-strong));
  background: color-mix(in srgb, var(--tone, var(--accent)) 12%, var(--surface));
}

.lp-tile__glyph { color: var(--tone, var(--ink)); }
.lp-tile__glyph .lp-i { width: 22px; height: 22px; }

.lp-tile__label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* mini timeline strip inside the demo */
.lp-strip {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 60px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.lp-strip__seed {
  flex: none;
  width: 11px;
  height: 11px;
  margin: 0 4px 0 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.lp-strip__line {
  flex: none;
  width: 16px;
  height: 2px;
  background: var(--line-strong);
}

.lp-strip__node {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, var(--surface-2));
  color: var(--tone, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--accent)) 38%, var(--line));
}

.lp-strip__node .lp-i { width: 19px; height: 19px; }

.lp-strip__node--new { animation: lp-pop 0.42s var(--ease); }

.lp-strip__empty {
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 500;
  padding-left: 8px;
}

/* ---- feature cards ---------------------------------------------------- */

.lp-features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(34px, 6vw, 54px);
}

@media (min-width: 620px) { .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lp-feature {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.lp-feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tone, var(--accent)) 40%, var(--line-strong));
}

.lp-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent), transparent 60%);
  transition: opacity 0.3s var(--ease);
}

.lp-feature:hover::before { opacity: 1; }

.lp-feature__glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, var(--surface-2));
  color: var(--tone, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--accent)) 36%, var(--line));
}

.lp-feature__glyph .lp-i { width: 24px; height: 24px; }

.lp-feature__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.3rem;
}

.lp-feature__body {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ---- use cases -------------------------------------------------------- */

.lp-uses {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(34px, 6vw, 54px);
}

@media (min-width: 620px) { .lp-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lp-use {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.lp-use:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tone, var(--accent)) 40%, var(--line-strong));
}

.lp-use::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent), transparent 60%);
  transition: opacity 0.3s var(--ease);
}

.lp-use:hover::before { opacity: 1; }

.lp-use__glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, var(--surface-2));
  color: var(--tone, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--accent)) 36%, var(--line));
}

.lp-use__glyph .lp-i { width: 24px; height: 24px; }

.lp-use__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.3rem;
}

.lp-use__body {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* sample status line — shows the real preset output for the scenario */
.lp-use__sample {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.lp-use__sample-k {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lp-use__sample-v {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lp-use__sample-glyph {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex: none;
  background: color-mix(in srgb, var(--tone, var(--accent)) 16%, var(--surface-2));
  color: var(--tone, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--accent)) 38%, var(--line));
}

.lp-use__sample-glyph .lp-i { width: 16px; height: 16px; }

/* ---- handle showcase -------------------------------------------------- */

.lp-handle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  margin-top: clamp(34px, 6vw, 54px);
}

@media (min-width: 820px) { .lp-handle { grid-template-columns: 1fr 22rem; } }

.lp-handle__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 62%),
    var(--surface);
  text-align: center;
}

.lp-handle__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}

.lp-handle__avatar svg { display: block; width: 100%; height: 100%; }

.lp-handle__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.15em;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 4.6vw, 1.95rem);
  line-height: 1.05;
}

/* a single rolling slot in the handle */
.lp-tok {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease);
}

.lp-sep { color: var(--faint); }

.lp-tok.is-rolling {
  color: var(--tone, var(--muted));
  filter: blur(0.4px);
}

.lp-tok.is-locked {
  animation: lp-tok-lock 0.46s var(--ease);
}

@keyframes lp-tok-lock {
  0% { transform: translateY(-4px) scale(1.14); color: var(--tone, var(--accent)); filter: blur(0); }
  55% { transform: translateY(0) scale(1); }
  100% { transform: none; color: inherit; }
}

.lp-handle__url {
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.lp-handle__url b { color: var(--ink); font-weight: 600; }

.lp-handle__shuffle { margin-top: 6px; }
.lp-handle__shuffle .lp-i { transition: transform 0.5s var(--ease); }
.lp-handle__shuffle:hover .lp-i { transform: rotate(180deg); }

/* while a roll is in flight: the icon spins continuously */
.lp-handle__shuffle.is-rolling { pointer-events: none; }
.lp-handle__shuffle.is-rolling .lp-handle__shuffle-i .lp-i {
  animation: lp-spin360 0.6s linear infinite;
}

@keyframes lp-spin360 {
  to { transform: rotate(360deg); }
}

/* avatar flip on lock */
.lp-handle__avatar.is-flip {
  animation: lp-flip 0.42s var(--ease);
}

@keyframes lp-flip {
  0% { transform: perspective(600px) rotateY(0); }
  50% { transform: perspective(600px) rotateY(90deg); }
  100% { transform: perspective(600px) rotateY(0); }
}

/* ---- steps ------------------------------------------------------------ */

.lp-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(34px, 6vw, 54px);
  counter-reset: lp-step;
}

@media (min-width: 760px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.lp-step {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}

.lp-step__n {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.lp-step__title {
  margin: 0 0 7px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.lp-step__body { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* ---- final CTA -------------------------------------------------------- */

.lp-final {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(70px, 12vw, 150px) 0;
}

.lp-final__card {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 64%),
    var(--surface);
  overflow: hidden;
}

.lp-final__head {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
}

.lp-final__sub {
  max-width: 30rem;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.5;
}

.lp-final__cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ---- footer ----------------------------------------------------------- */

.lp-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.84rem;
}

.lp-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1rem;
}

/* ---- reduced motion --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .lp__float,
  .lp-card::after,
  .lp-hero__scroll .lp-i,
  .lp-nav__dot,
  .lp-card__live .lp-livedot { animation: none !important; }

  .lp__float { opacity: 0.18; }

  .lp-reveal { opacity: 1 !important; transform: none !important; }

  .lp-atmos { transition: none; }
}
