/* P324 landing: plans (passes, switch, compare) and the FAQ. Owned by S3; see tokens.css for the shared values.
   Tilts use `rotate` and motion animates `translate`, so an entrance never fights a pass's resting tilt. */

/* ---------- Headline ---------- */

.lp-plans { text-align: center; overflow-x: clip; }

.lp-plans__title {
  /* The section-heading scale (.lp-h2), with room between the lines so START FREE. never sits on PLAY. */
  font-size: clamp(56px, 8.4vw, 120px);
  line-height: 0.92;
}

.lp-plans__night {
  position: relative;
  display: inline-block;
  color: var(--lp-gold);
}

.lp-plans__ring {
  position: absolute;
  top: -6%;
  left: -4%;
  width: 107%;
  height: 116%;
  overflow: visible;
  fill: none;
  stroke: var(--lp-hot);
  /* In viewBox units, about 4 px at 1440. No non-scaling-stroke: with pathLength="1" and a stretched
     viewBox it measured the draw-in dash in screen pixels, so only part of the ring was ever drawn. */
  stroke-width: 2.6;
  stroke-linecap: round;
  pointer-events: none;
}

/* ---------- Monthly / Yearly ---------- */

.lp-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 48px 0 72px;
}

.lp-switch[hidden] { display: none; }

.lp-switch__track {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--lp-surface);
  box-shadow: inset 0 0 0 1px var(--lp-line-strong);
}

.lp-switch__opt {
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  background: transparent;
  color: var(--lp-ink-2);
  font: 600 15px/1 var(--lp-font);
  cursor: pointer;
  transition: background-color 250ms var(--lp-ease-inout), color 250ms;
}

.lp-switch__opt[aria-checked="true"] { background: #fff; color: var(--lp-paper-ink); }
.lp-switch__opt:focus-visible { outline: 2px solid var(--lp-gold); outline-offset: 2px; }

.lp-switch__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 22px;
  text-transform: uppercase;
}

.lp-switch__arrow { width: 44px; height: 20px; stroke-width: 2.5; }

/* ---------- Passes ---------- */

.lp-passes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  max-width: 1320px;
  margin-inline: auto;
  padding-top: 40px;
  text-align: left;
}

.lp-pass {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 32px 28px;
  border-radius: 22px;
  transition: translate 350ms var(--lp-ease-spring), rotate 1.2s var(--lp-ease-spring), box-shadow 300ms;
}

.lp-pass__kind {
  margin: 0;
  font: 500 12px/1 var(--lp-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}

.lp-pass__name { font-size: 46px; line-height: 0.9; }

/* Price and unit stay on one line; src/landing-pricing.ts fitPrices() shrinks the figure to fit. */
.lp-pass__price { display: flex; align-items: flex-end; gap: 10px; flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
.lp-pass__amount { font-size: var(--lp-price-size, clamp(72px, 7vw, 104px)); line-height: 0.8; flex: none; }
.lp-roll > span { display: inline-block; }

.lp-pass__unit {
  display: flex;
  flex-direction: column;
  font: 800 30px/0.95 var(--lp-display);
  text-transform: uppercase;
}

.lp-pass__unit s { font-size: 24px; opacity: 0.75; }
.lp-pass__mark { font-size: 20px; color: #c0123f; text-transform: uppercase; align-self: center; }
.lp-pass__other { margin: 0; font-size: 14px; opacity: 0.8; }

.lp-pass__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 15px;
}

.lp-pass__list li { display: flex; gap: 12px; align-items: flex-start; }
.lp-pass__tick { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* D715: a pass is its top (name to list) and its foot (button and small print); on laptops the three share
   two grid rows, so every foot starts on the same line and the buttons sit level. */
.lp-pass__top { display: flex; flex-direction: column; gap: 14px; }
.lp-pass__foot { margin-top: auto; padding-top: 10px; display: grid; gap: 10px; align-content: start; }
@media (min-width: 1101px) {
  .lp-passes { grid-template-rows: auto auto; }
  .lp-pass { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 14px; }
  .lp-pass__foot { margin-top: 0; }
}
.lp-pass__act { display: grid; gap: 8px; justify-items: center; }
.lp-pass__act .lp-btn { width: 100%; box-sizing: border-box; }
.lp-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.lp-btn__icon { width: 18px; height: 18px; transition: translate 250ms var(--lp-ease-spring); }
.lp-btn:hover .lp-btn__icon { translate: 3px 0; }
.lp-pass__small { margin: 0; font-size: 12px; opacity: 0.75; }
.lp-pass__foot .lp-pass__small { text-align: center; }

/* Free: a cream ticket, taped, tilted 2°. */
.lp-pass--free {
  background: var(--lp-cream);
  color: var(--lp-paper-ink);
  rotate: 2deg;
  box-shadow: 0 30px 60px #0008;
}

.lp-pass--free::before {
  content: '';
  position: absolute;
  /* Inside the card's width, so the section's horizontal clip never cuts it near the screen's edge. */
  top: var(--lp-tape-top);
  left: 14px;
  width: 124px;
  height: var(--lp-tape-h);
  background: var(--lp-tape);
  rotate: -8deg;
  transform-origin: right center;
  transition: rotate 300ms var(--lp-ease-spring);
}

.lp-pass--free .lp-pass__tick { color: var(--lp-red); }
.lp-pass--free .lp-pass__list { border-top: 1.5px solid #11101422; padding-top: 22px; }
.lp-btn--free { color: var(--lp-paper-ink); box-shadow: inset 0 0 0 1.5px var(--lp-paper-ink); }

/* Premium: a gold laminate, tilted −2°, its foil following the pointer (--foil, set from the script). */
.lp-pass--premium {
  background:
    radial-gradient(120% 60% at var(--foil, 30%) 0%, #ffd16626, transparent 60%),
    linear-gradient(165deg, #1f1a10, #100d08);
  color: var(--lp-ink);
  rotate: -2deg;
  box-shadow: inset 0 0 0 1.5px #ffd166aa, 0 30px 60px #0009;
}

.lp-pass--premium .lp-pass__name,
.lp-pass--premium .lp-pass__amount,
.lp-pass--premium .lp-pass__tick { color: var(--lp-gold); }
.lp-pass--premium .lp-pass__unit { color: #ffd166cc; }
.lp-pass--premium .lp-pass__list { border-top: 1px solid #ffd16633; padding-top: 22px; }
.lp-btn--premium { color: var(--lp-gold); box-shadow: inset 0 0 0 1.5px var(--lp-gold); }

/* Pro: the all-access pass on its lanyard, the most light, gold edge, the only filled button. */
.lp-pass--pro {
  background: var(--lp-pro);
  color: #fff;
  box-shadow: 0 0 80px #ff2d5566, 0 30px 70px #0009;
  transform-origin: 50% -120px;
  rotate: var(--swing, 0deg);
}

.lp-pass--pro::before,
.lp-pass--pro::after {
  content: '';
  position: absolute;
  left: 50%;
  translate: -50% 0;
}

.lp-pass--pro::before {
  /* The lanyard: a woven strap with two gold threads, running up out of the section. */
  top: -150px;
  width: 38px;
  height: 152px;
  background:
    linear-gradient(90deg, transparent 7px, #ffd16659 7px 9px, transparent 9px 29px, #ffd16659 29px 31px, transparent 31px),
    repeating-linear-gradient(180deg, #2a0d1c 0 3px, #22091a 3px 6px);
  box-shadow: inset 0 -24px 18px -12px #00000099;
  mask-image: linear-gradient(to bottom, transparent, #000 45%);
}
.lp-pass--pro::after {
  /* The clip that holds the pass. */
  top: -12px;
  width: 30px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(180deg, #e9e6ef, #8d8a96);
  box-shadow: 0 2px 4px #0008, inset 0 -3px 0 #0003;
}

/* Pro's gold edge: a 2px ring cut from a conic sweep, so it can draw itself round (spec 10); --lp-edge is how far. */
@property --lp-edge { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
.lp-pass__edge {
  position: absolute;
  z-index: -1; /* Under the lanyard and the content, over the pass's fill, where the inset edge used to paint. */
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(var(--lp-gold) var(--lp-edge), transparent 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.lp-pass--pro .lp-pass__other,
.lp-pass--pro .lp-pass__small { opacity: 0.85; }
/* D715: Upgrade to Pro is a plain link under Start trial, and day 14 one centred line under both. */
.lp-pass__link { color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lp-pass__link:focus-visible { outline: 2px solid var(--lp-gold); outline-offset: 2px; border-radius: 2px; }
.lp-pass__trial { text-align: center; }
.lp-pass__act .lp-btn--pro { white-space: nowrap; }

.lp-pass__ribbon {
  /* Inside the pass's top corner, clear of its edge and the lanyard clip. */
  position: absolute;
  right: 22px;
  top: 22px;
  padding: 7px 14px;
  background: var(--lp-gold);
  color: var(--lp-paper-ink);
  font: 700 12px/1 var(--lp-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  rotate: 3deg;
  box-shadow: 0 6px 14px #0006;
}

.lp-pass__ribbon--launch {
  top: 58px;
  right: 28px;
  background: var(--lp-paper-ink);
  color: var(--lp-gold);
  box-shadow: inset 0 0 0 1.5px var(--lp-gold), 0 6px 14px #0006;
  rotate: -2deg;
}

.lp-pass__box {
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: #4a0d3a66;
  box-shadow: inset 0 0 0 1px #ffd16655;
}

.lp-pass__box .lp-display { font-size: 23px; color: var(--lp-gold); margin-bottom: 10px; }
.lp-pass__per { margin: -4px 0 10px; font-size: 14px; color: #fffc; }
.lp-pass__box .lp-pass__list { gap: 8px; font-size: 14px; }
.lp-pass__box .lp-pass__tick { color: var(--lp-gold); }

.lp-plans__foot { margin: 40px 0 0; font-size: 13px; line-height: 1.5; color: var(--lp-ink-3); text-wrap: balance; }
.lp-plans__foot a { text-decoration: underline; text-underline-offset: 3px; }

/* Prices didn't load: the line and its retry where the passes would be. */
.lp-plans__retry { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin: 40px 0 0; color: var(--lp-ink-3); }

/* ---------- Compare all features ---------- */

.lp-cmp__wrap { margin-top: 20px; }

.lp-cmp__pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 22px;
  border-radius: 999px;
  background: var(--lp-surface);
  box-shadow: inset 0 0 0 1px var(--lp-line-strong);
  font: 600 16px/1 var(--lp-font);
  cursor: pointer;
  list-style: none;
}

.lp-cmp__pill::-webkit-details-marker { display: none; }
.lp-cmp__pill:focus-visible { outline: 2px solid var(--lp-gold); outline-offset: 3px; }
.lp-cmp__icon { width: 18px; height: 18px; }

.lp-cmp__chev {
  width: 28px;
  height: 28px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--lp-surface-2);
  transition: rotate 300ms var(--lp-ease-spring), background-color 300ms;
}

.lp-cmp[open] .lp-cmp__chev { rotate: 180deg; background: var(--lp-hot); }
.lp-cmp__opened,
.lp-cmp[open] .lp-cmp__closed { display: none; }
.lp-cmp[open] .lp-cmp__opened { display: inline; }

.lp-cmp__card {
  margin: 28px auto 0;
  max-width: 1280px;
  padding: 28px;
  border-radius: 28px;
  background: var(--lp-surface);
  box-shadow: inset 0 0 0 1px var(--lp-line);
  text-align: left;
}

.lp-cmp__tabs { display: none; }

.lp-cmp__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.lp-cmp__table th,
.lp-cmp__table td {
  padding: 18px 20px;
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--lp-line);
}

.lp-cmp__table thead th,
.lp-cmp__table tfoot td,
.lp-cmp__gh th { border-bottom: 0; }

.lp-cmp__table thead th { vertical-align: top; padding-block: 24px 30px; }
.lp-cmp__title { font-size: 34px; text-transform: none; }

.lp-cmp__plan,
.lp-cmp__gh th {
  display: block;
  font: 600 12px/1 var(--lp-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
}

.lp-cmp__gh th { display: table-cell; padding-block: 30px 6px; }
.lp-cmp__gh td { border-bottom: 0; }
.lp-cmp__price { display: block; margin-top: 6px; font-size: 44px; line-height: 1; }
.lp-cmp__price small { font: 500 16px var(--lp-font); color: var(--lp-ink-3); text-transform: none; }
[data-tier="premium"] .lp-cmp__plan,
[data-tier="premium"] .lp-cmp__price { color: var(--lp-gold); }
.lp-cmp__tick { display: inline-block; width: 18px; height: 18px; color: var(--lp-gold); vertical-align: middle; }
.lp-cmp__no { color: var(--lp-ink-3); }
.lp-cmp__more { display: none; }
.lp-cmp__tag { display: none; }
.lp-cmp__best { position: static; display: inline-block; margin-bottom: 10px; padding: 5px 10px; font-size: 10px; rotate: 0deg; }

/* Pro's lit column with its gold edge. */
.lp-cmp__table [data-tier="pro"] {
  background: #ff2d5512;
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--lp-gold), inset -2px 0 0 var(--lp-gold);
}

.lp-cmp__table thead [data-tier="pro"] {
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #3a0f22, #ff2d5512);
  box-shadow: inset 2px 0 0 var(--lp-gold), inset -2px 0 0 var(--lp-gold), inset 0 2px 0 var(--lp-gold);
}

.lp-cmp__table tfoot [data-tier="pro"] {
  border-radius: 0 0 20px 20px;
  box-shadow: inset 2px 0 0 var(--lp-gold), inset -2px 0 0 var(--lp-gold), inset 0 -2px 0 var(--lp-gold);
}

/* Where anchors work, one ring over the whole column replaces the cells' edges, so it can draw top to bottom (spec 20). */
@supports (anchor-name: --a) {
  .lp-cmp__table { position: relative; }
  .lp-cmp__table thead [data-tier="pro"] { anchor-name: --lp-pro-col; }
  .lp-cmp__table [data-tier="pro"],
  .lp-cmp__table thead [data-tier="pro"],
  .lp-cmp__table tfoot [data-tier="pro"] { box-shadow: none; }
  .lp-cmp__table tfoot [data-tier="pro"]::after {
    content: '';
    position: absolute;
    top: anchor(--lp-pro-col top);
    left: anchor(--lp-pro-col left);
    right: anchor(--lp-pro-col right);
    bottom: 0;
    border: 2px solid var(--lp-gold);
    border-radius: 20px;
    pointer-events: none;
  }
}

.lp-cmp__table tfoot td { padding-block: 18px 22px; }
.lp-cmp__table tfoot .lp-btn { width: 100%; box-sizing: border-box; padding-block: 14px; }
.lp-cmp__table .lp-btn--free { color: var(--lp-ink); box-shadow: inset 0 0 0 1.5px var(--lp-line-strong); }

.lp-cmp__every {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--lp-surface-2);
  font-size: 14px;
  color: var(--lp-ink-2);
}

.lp-cmp__every .lp-cmp__tick { color: var(--lp-stem-other); flex: none; }
.lp-cmp__soon { margin: 14px 0 0; font-size: 13px; color: var(--lp-ink-3); }

/* ---------- FAQ ---------- */

.lp-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

/* The side is a size container so the title fits its column: "QUESTIONS." runs about 4.5em wide. */
.lp-faq__side { position: sticky; top: 96px; container-type: inline-size; }
.lp-faq__title { font-size: min(clamp(64px, 8vw, 116px), 21cqi); }
.lp-faq__note { margin: 26px 0 30px; font-size: 22px; text-transform: uppercase; }

.lp-faq__stuck {
  position: relative;
  max-width: 460px;
  padding: 26px 24px;
  border-radius: 14px;
  background: var(--lp-cream);
  color: var(--lp-paper-ink);
  rotate: 1.5deg;
  box-shadow: 0 24px 50px #0008;
}

.lp-faq__stuck::before {
  content: '';
  position: absolute;
  top: var(--lp-tape-top);
  right: 70px;
  width: 100px;
  height: var(--lp-tape-h);
  background: var(--lp-tape);
  rotate: -4deg;
}

.lp-faq__stuck h3 { font-size: 36px; text-transform: none; }
.lp-faq__stuck p { margin: 14px 0 18px; font-size: 15px; line-height: 1.5; }
.lp-faq__send { background: var(--lp-paper-ink); color: #fff; padding: 13px 20px; font-size: 15px; }

.lp-q { border-bottom: 1px solid var(--lp-line); border-radius: 0; transition: background-color 450ms var(--lp-ease-inout); }
.lp-q[open] { border: 1px solid var(--lp-line-strong); border-radius: 24px; background: linear-gradient(160deg, #2a0c1c, #120910); }

.lp-q summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  padding: 26px 4px;
  cursor: pointer;
  list-style: none;
}

.lp-q[open] summary { padding: 30px 26px 14px; }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary:focus-visible { outline: 2px solid var(--lp-gold); outline-offset: -2px; border-radius: 12px; }
.lp-q__n { font: 500 13px var(--lp-mono); color: var(--lp-ink-3); }
.lp-q[open] .lp-q__n { color: var(--lp-hot); }
.lp-q__q { font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; transition: translate 250ms var(--lp-ease-spring); }

.lp-q__x {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--lp-line-strong);
  transition: rotate 300ms var(--lp-ease-spring), background-color 300ms, box-shadow 300ms;
}

.lp-q__x::before,
.lp-q__x::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
}

.lp-q__x::after { rotate: 90deg; }
.lp-q:not([open]) summary:hover .lp-q__x { box-shadow: inset 0 0 0 1px var(--lp-ink-2); }
.lp-q[open] .lp-q__x { rotate: 45deg; background: var(--lp-hot); box-shadow: none; }

.lp-q__a { padding: 0 26px 30px 86px; color: var(--lp-ink-2); font-size: 16px; line-height: 1.6; }
.lp-q:not([open]) .lp-q__a { padding-bottom: 0; }
.lp-q__a p { margin: 0; }
.lp-q__a a { color: var(--lp-ink); text-decoration: underline; text-underline-offset: 3px; }
.lp-q__a a:focus-visible { outline: 2px solid var(--lp-gold); outline-offset: 2px; border-radius: 2px; }
.lp-q__a .lp-q__fine { margin-top: 18px; font-size: 13px; color: var(--lp-ink-3); }

.lp-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }

/* Scoped to .lp-chips: the hero's instrument buttons are .lp-chip too (hero.css). */
.lp-chips > .lp-chip {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  background: var(--lp-surface-2);
  box-shadow: inset 0 0 0 1px var(--lp-line-strong);
  font-size: 13px;
  line-height: 1.4;
  color: var(--lp-ink-2);
}

.lp-chip__name { font: 600 11px/1 var(--lp-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.lp-chip__price { font-size: 32px; line-height: 1; color: var(--lp-ink); text-transform: none; }
.lp-chips > .lp-chip--premium { background: #17130a; box-shadow: inset 0 0 0 1px #ffd16688; }
.lp-chip--premium .lp-chip__name,
.lp-chip--premium .lp-chip__price { color: var(--lp-gold); }
.lp-chips > .lp-chip--pro { background: var(--lp-pro); color: #fff; box-shadow: inset 0 0 0 2px var(--lp-gold), 0 0 30px #ff2d5555; }
.lp-chip--pro .lp-chip__name { color: var(--lp-gold); }
.lp-chip--pro .lp-chip__price { color: #fff; }

/* ---------- Motion (spec 10, 18, 19, 20); tokens.css shortens every one under reduced motion. ---------- */

@supports (interpolate-size: allow-keywords) {
  .lp-q,
  .lp-cmp { interpolate-size: allow-keywords; }
  .lp-q::details-content,
  .lp-cmp::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 450ms var(--lp-ease-inout), content-visibility 450ms allow-discrete;
  }
  .lp-cmp::details-content { transition-duration: 300ms; }
  .lp-cmp[open]::details-content { transition-duration: 500ms; }
  .lp-q[open]::details-content,
  .lp-cmp[open]::details-content { block-size: auto; }
}

@keyframes lp-up { from { opacity: 0; translate: 0 8px; } }
@keyframes lp-drop { from { opacity: 0; translate: 0 -80px; } }
@keyframes lp-swing { 0% { opacity: 0; rotate: -14deg; } 30% { opacity: 1; rotate: 8deg; } 55% { rotate: -4deg; } 75% { rotate: 2deg; } 100% { rotate: 0deg; } }
@keyframes lp-slap { from { opacity: 0; scale: 1.5; } }
@keyframes lp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lp-roll { from { opacity: 0; translate: 0 -0.4em; } }
@keyframes lp-sweep { from { --lp-edge: 0deg; } }
@keyframes lp-edge-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes lp-row { from { opacity: 0; translate: 0 24px; } }

@media (prefers-reduced-motion: no-preference) {
  .lp-board.is-waiting:not(.is-in) .lp-pass,
  .lp-board.is-waiting:not(.is-in) .lp-switch__arrow { opacity: 0; }
  .lp-board.is-in .lp-pass { animation: lp-drop 700ms var(--lp-ease-spring) backwards; }
  .lp-board.is-in .lp-pass--premium { animation-delay: 120ms; }
  .lp-board.is-in .lp-pass--pro { animation: lp-swing 1.2s var(--lp-ease-out) 300ms backwards; }
  /* Once: the switch repaints the passes (and adds is-rolling), and the new edge is simply there. */
  .lp-board.is-in .lp-passes:not(.is-rolling) .lp-pass__edge { animation: lp-sweep 900ms var(--lp-ease-inout) 1.5s backwards; }
  .lp-board.is-in .lp-pass__ribbon { animation: lp-slap 350ms var(--lp-ease-spring) 1.3s backwards; }
  .lp-board.is-in .lp-pass__ribbon--launch { animation-delay: 1.42s; }
  .lp-plans:has(.lp-board.is-waiting:not(.is-in)) .lp-plans__ring path { stroke-dashoffset: 1; }
  .lp-plans__ring path { stroke-dasharray: 1; }
  .lp-plans:has(.lp-board.is-in) .lp-plans__ring path { animation: lp-draw 600ms var(--lp-ease-inout) 400ms backwards; }
  .lp-board.is-in .lp-switch__arrow path { stroke-dasharray: 1; animation: lp-draw 600ms var(--lp-ease-inout) 700ms backwards; }
  .lp-passes.is-rolling .lp-roll > span { animation: lp-roll 360ms var(--lp-ease-out) calc(var(--i) * 40ms) backwards; }

  .lp-pass--free:hover { translate: 0 -6px; }
  .lp-pass--free:hover::before { rotate: -20deg; }
  .lp-pass--premium:hover { translate: 0 -4px; }

  .lp-cmp[open] .lp-cmp__table tfoot [data-tier="pro"]::after { animation: lp-edge-down 700ms var(--lp-ease-inout) backwards; }
  .lp-cmp[open] .lp-cmp__group { animation: lp-up 400ms var(--lp-ease-out) backwards; }
  .lp-cmp[open] .lp-cmp__group:nth-of-type(2) { animation-delay: 80ms; }
  .lp-cmp[open] .lp-cmp__group:nth-of-type(3) { animation-delay: 160ms; }

  .lp-faq.is-waiting:not(.is-in) .lp-q,
  .lp-faq.is-waiting:not(.is-in) .lp-faq__stuck { opacity: 0; }
  .lp-faq.is-in .lp-q { animation: lp-row 600ms var(--lp-ease-out) backwards; }
  .lp-faq.is-in .lp-q:nth-child(2) { animation-delay: 100ms; }
  .lp-faq.is-in .lp-q:nth-child(3) { animation-delay: 200ms; }
  .lp-faq.is-in .lp-q:nth-child(4) { animation-delay: 300ms; }
  .lp-faq.is-in .lp-q:nth-child(5) { animation-delay: 400ms; }
  .lp-faq.is-in .lp-q:nth-child(6) { animation-delay: 500ms; }
  .lp-faq.is-in .lp-q:nth-child(7) { animation-delay: 600ms; }
  .lp-faq.is-in .lp-q:nth-child(8) { animation-delay: 700ms; }
  .lp-faq.is-in .lp-faq__stuck { animation: lp-drop 700ms var(--lp-ease-spring) 800ms backwards; }

  .lp-q:not([open]) summary:hover .lp-q__q { translate: 6px 0; }
  .lp-q[open] .lp-q__a > * { animation: lp-up 350ms var(--lp-ease-out) 80ms backwards; }
  .lp-q[open] .lp-chip { animation: lp-drop 500ms var(--lp-ease-spring) 160ms backwards; }
  .lp-q[open] .lp-chip--premium { animation-delay: 220ms; }
  .lp-q[open] .lp-chip--pro { animation-delay: 280ms; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1100px) {
  .lp-passes { grid-template-columns: minmax(0, 520px); justify-content: center; gap: 72px; padding-top: 40px; }
  /* Plan order as on desktop: Free, Premium, Pro. Pro's lanyard (150px) needs the extra room above it. */
  .lp-pass--pro { margin-top: 80px; }
  .lp-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .lp-faq__side { position: static; }
}

@media (max-width: 600px) {
  .lp-switch { flex-direction: column; gap: 12px; margin: 32px 0 48px; }
  /* Under the toggle the arrow can't point sideways at Yearly: it ends the note and turns up toward it. */
  .lp-switch__note { flex-direction: row-reverse; font-size: 20px; }
  .lp-switch__arrow { rotate: var(--lp-note-turn, 45deg); }
  /* The label sits 30px down a phone card: the tape tilts about its middle, so its ends stay above it. */
  .lp-pass--free::before { transform-origin: center; rotate: -6deg; }
  .lp-pass { padding: 30px 22px 24px; }
  .lp-pass--free { rotate: 1deg; }
  .lp-pass--premium { rotate: -1deg; }

  .lp-cmp__pill { width: 100%; justify-content: center; box-sizing: border-box; }
  .lp-cmp__card { padding: 14px; border-radius: 22px; }
  .lp-cmp__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--lp-surface-2); }
  .lp-cmp__tab { border: 0; border-radius: 999px; padding: 12px 0; background: transparent; color: var(--lp-ink-2); font: 600 15px/1 var(--lp-font); cursor: pointer; }
  .lp-cmp__tab[data-tier="premium"] { color: var(--lp-gold); }
  .lp-cmp__tab[aria-pressed="true"] { background: #fff; color: var(--lp-paper-ink); }
  .lp-cmp__tab[data-tier="pro"][aria-pressed="true"] { background: var(--lp-pro); color: #fff; }
  .lp-cmp__tab:focus-visible { outline: 2px solid var(--lp-gold); outline-offset: 2px; }

  .lp-cmp__table[data-show="free"] [data-tier]:not([data-tier="free"]),
  .lp-cmp__table[data-show="premium"] [data-tier]:not([data-tier="premium"]),
  .lp-cmp__table[data-show="pro"] [data-tier]:not([data-tier="pro"]),
  .lp-cmp__table thead th:first-child,
  .lp-cmp__table tfoot td:first-child { display: none; }
  /* One plan at a time: rows become name | value lines, so the hidden columns leave no gaps. */
  .lp-cmp__table,
  .lp-cmp__table thead,
  .lp-cmp__table tbody,
  .lp-cmp__table tfoot { display: block; }
  .lp-cmp__table tr { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .lp-cmp__table thead th,
  .lp-cmp__table tfoot td { flex: 1; }
  .lp-cmp__table th,
  .lp-cmp__table td { padding: 14px 10px; font-size: 14px; }
  .lp-cmp__table tbody tr:not(.lp-cmp__gh) { border-bottom: 1px solid var(--lp-line); margin-inline: 14px; }
  .lp-cmp__table tbody th,
  .lp-cmp__table tbody td { border-bottom: 0; padding-inline: 0; }
  .lp-cmp__gh th { padding: 22px 14px 4px; }
  .lp-cmp__table td { text-align: right; }
  .lp-cmp__table thead th { text-align: left; padding: 18px 16px; }
  .lp-cmp__table tbody [data-tier] { box-shadow: none; background: transparent; }
  .lp-cmp__table thead [data-tier],
  .lp-cmp__table tfoot [data-tier] { box-shadow: none; background: transparent; }
  .lp-cmp__table tfoot [data-tier="pro"]::after { display: none; }
  .lp-cmp__table[data-show="pro"] { border-radius: 18px; }
  .lp-cmp__table[data-show="pro"] { box-shadow: 0 0 0 2px var(--lp-gold); background: linear-gradient(180deg, #2a0c1c, #160a14); }
  .lp-cmp__table[data-show="pro"] .lp-cmp__tag { display: inline-block; margin-left: 8px; padding: 3px 7px; border-radius: 6px; background: #ffd16622; color: var(--lp-gold); font-size: 11px; font-weight: 500; }
  .lp-cmp__table[data-show="pro"] .lp-cmp__more { display: block; margin-top: 6px; font-size: 13px; color: var(--lp-gold); font-weight: 400; }
  .lp-cmp__table tfoot td { padding: 16px; }

  .lp-faq__stuck { rotate: 0.8deg; }
  .lp-q summary { grid-template-columns: 34px minmax(0, 1fr) 40px; padding: 20px 2px; }
  .lp-q[open] summary { padding: 22px 16px 10px; }
  .lp-q__a { padding: 0 16px 22px; }
  .lp-chips { grid-template-columns: minmax(0, 1fr); }
}
