/* P324 landing: shell (S1). The header with its account menu, the final call and the footer.
   Spec 5, 11, 12, 21; see tokens.css for the shared values. */

/* ---- Header (spec 12) ----------------------------------------------- */

.lp-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 12px clamp(12px, 2.2vw, 32px) 0;
  transition: transform 300ms var(--lp-ease-out);
  font-family: var(--lp-font);
}

/* The other pages (no .lp on body): room under the fixed header, 12 px top padding + 58 px bar, and the
   icon sheet hidden as tokens.css hides it on home. */
body:not(.lp) {
  padding-top: 70px;
}

body:not(.lp) > .sprite {
  display: none;
}

.lp-nav.is-away {
  transform: translateY(-120%);
}

.lp-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  /* Full width, like riffloop's: logo at the left edge, actions at the right, room for #249's menus. */
  min-height: 58px;
  padding: 0 clamp(8px, 1.8vw, 24px);
  border: 1px solid transparent;
  border-radius: 999px;
  box-sizing: border-box;
  transition: background-color 300ms var(--lp-ease-out), border-color 300ms, box-shadow 300ms;
}

.lp-nav.is-pill .lp-nav__inner {
  background: #0e0e12d9;
  border-color: var(--lp-line);
  box-shadow: 0 12px 40px #00000066;
}

@supports (backdrop-filter: blur(1px)) {
  .lp-nav.is-pill .lp-nav__inner {
    background: #0e0e12a6;
    backdrop-filter: blur(16px) saturate(1.4);
  }
}

.lp-nav a {
  color: inherit;
  text-decoration: none;
}

.lp-nav :focus-visible {
  outline: 2px solid var(--lp-gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.lp-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--lp-ink);
  white-space: nowrap;
}

.lp-nav__brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.lp-nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-inline: auto;
  font-size: 14px;
  color: var(--lp-ink-2);
}

.lp-nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms;
}

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

.lp-nav .nav__download svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.lp-nav__links .lp-nav__fold-only,
.lp-nav__fold {
  display: none;
}

.lp-nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Wide screens: three columns, the links on the page's true centre. 1fr not minmax(0, 1fr), so a wide
   signed-in cta widens its side instead of running over the links. */
@media (min-width: 1100px) {
  .lp-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .lp-nav__brand {
    justify-self: start;
  }

  .lp-nav__links {
    margin-inline: 0;
  }

  .lp-nav__cta {
    justify-self: end;
  }
}

/* One size for the bar's controls: Add to Chrome, Open Studio and the avatar are all 42 px, as is the fold. */
.lp-nav .lp-btn,
.lp-nav__studio {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  box-sizing: border-box;
  font: 700 14px/1 var(--lp-font);
  white-space: nowrap;
}

/* Open Studio: the secondary beside the gradient. Dark glass, a gold to red-violet hairline, ↗ lifts on hover. */
.lp-nav__studio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #1d1922, #0f0d13) padding-box,
    linear-gradient(120deg, #ffd166b3, #ff2d5580 45%, #8b2be2b3) border-box;
  box-shadow: inset 0 1px 0 #ffffff1f, 0 6px 18px #0000008c;
  color: #fff;
  transition: box-shadow 250ms var(--lp-ease-out);
}

.lp-nav__studio:hover {
  background:
    linear-gradient(180deg, #26202c, #15111a) padding-box,
    linear-gradient(120deg, var(--lp-gold), var(--lp-hot) 45%, #8b2be2) border-box;
  box-shadow: inset 0 1px 0 #ffffff29, 0 8px 24px #b0179a40;
}

.lp-nav__studio span {
  transition: transform 250ms var(--lp-ease-spring);
}

.lp-nav__studio:hover span {
  transform: translate(2px, -2px);
}

.lp-nav .lp-nav__studio:focus-visible {
  border-radius: 999px;
}

.lp-nav__plus {
  display: none;
  color: var(--lp-hot);
  font-weight: 400;
}

.lp-nav__arrow {
  transition: transform 250ms var(--lp-ease-spring);
}

.nav__install:hover .lp-nav__arrow {
  transform: translateX(3px);
}

/* .lp-btn sets display, which outranks the user agent's [hidden] rule. */
.lp-nav .nav__install[hidden] {
  display: none;
}

/* ---- Signed in (spec 21): ring, avatar ----------------------------- */

.lp-nav[data-auth="in"] .nav__install {
  order: -1;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--lp-bg), var(--lp-bg)) padding-box, var(--lp-action) border-box;
  box-shadow: none;
}

.lp-nav[data-auth="in"] .nav__install:hover {
  background: linear-gradient(#1a0d16, #1a0d16) padding-box, var(--lp-action) border-box;
}

.lp-nav[data-auth="in"] .lp-nav__plus {
  display: inline;
}

.lp-nav[data-auth="in"] .nav__install .lp-nav__arrow {
  display: none;
}

.lp-acct {
  position: relative;
  display: flex; /* No line box round the pill, so it centres on the bar like Open Studio. */
}

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

/* Held while nav.ts asks the API who is signed in, so the buttons beside it don't move when it answers. */
.lp-acct.is-pending {
  visibility: hidden;
}

.lp-acct__button {
  /* As drawn in design/chordlens.pen, Nav · account states: quiet glass, the colour is the face's ring. */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  box-sizing: border-box;
  padding: 0 8px 0 3px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  background: #ffffff0d;
  color: #c9c9d1;
  cursor: pointer;
  transition: background-color 200ms var(--lp-ease-out), border-color 200ms var(--lp-ease-out);
}

.lp-acct__button:hover,
.lp-acct.is-open .lp-acct__button {
  border-color: #ffffff40;
  background: #ffffff1f;
}

/* The ring is the plan's colour (Pro red-violet, Premium gold, Free none), 2px round the face. */
.lp-acct__button .lp-face,
.lp-face--big {
  padding: 2px;
}

.lp-acct__button .lp-face {
  width: 36px;
  height: 36px;
}

.lp-acct[data-plan="pro"] .lp-face {
  background: linear-gradient(160deg, #ff2d55, #e0187a, #8b2be2);
}

.lp-acct[data-plan="premium"] .lp-face {
  background: linear-gradient(160deg, #ffd166, #c9962e);
}

.lp-acct__chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--lp-ease-out);
}

.lp-acct.is-open .lp-acct__chevron {
  transform: rotate(180deg);
}

/* The face: photo, or the initial. */
.lp-face {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-sizing: border-box;
}

.lp-face img,
.lp-face__initial {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.lp-face img {
  display: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 200ms;
}

.lp-face.has-photo img {
  display: block;
  opacity: 1;
}

.lp-face.has-photo .lp-face__initial {
  display: none;
}

.lp-face__initial {
  display: grid;
  place-items: center;
  background: #2a1420;
  color: #f5f5f6;
  font-size: 15px;
  font-weight: 700;
}

.lp-face--big {
  width: 46px;
  height: 46px;
}

.lp-face--big .lp-face__initial {
  font-size: 18px;
}

/* The menu: scales 0.96→1 from its top right, items rise 4 px one after another. */
.lp-acct__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  padding: 10px;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: #121015;
  box-shadow: 0 24px 60px #000000a6;
  transform-origin: top right;
  animation: lp-menu-in 220ms var(--lp-ease-out);
}

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

.lp-acct__menu > * {
  animation: lp-item-in 220ms var(--lp-ease-out) backwards;
}

.lp-acct__menu > :nth-child(2) { animation-delay: 30ms; }
.lp-acct__menu > :nth-child(3) { animation-delay: 60ms; }
.lp-acct__menu > :nth-child(4) { animation-delay: 90ms; }
.lp-acct__menu > :nth-child(5) { animation-delay: 120ms; }
.lp-acct__menu > :nth-child(6) { animation-delay: 150ms; }

@keyframes lp-menu-in {
  from { opacity: 0; transform: scale(0.96); }
}

@keyframes lp-item-in {
  from { opacity: 0; transform: translateY(4px); }
}

.lp-acct__who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--lp-line);
}

.lp-acct__id {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  row-gap: 3px;
  min-width: 0;
}

.lp-acct__name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-acct__badge {
  justify-self: start;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 700 10px/1.2 var(--lp-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
}

.lp-acct[data-plan="premium"] .lp-acct__badge {
  color: var(--lp-gold);
}

.lp-acct[data-plan="pro"] .lp-acct__badge {
  border-color: transparent;
  background: var(--lp-pro);
  color: #fff;
}

.lp-acct__email {
  grid-column: 1 / -1;
  overflow: hidden;
  font-size: 12px;
  color: var(--lp-ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-acct__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--lp-ink);
  font: 500 14px/1.2 var(--lp-font);
  text-align: left;
  cursor: pointer;
}

.lp-acct__item:hover,
.lp-acct__item:focus {
  background-color: #ffffff12;
  outline: none;
}

.lp-acct__item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--lp-gold);
}

.lp-acct__item svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--lp-ink-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-acct__aside {
  margin-left: auto;
  font: 11px var(--lp-mono);
  color: var(--lp-ink-3);
}

.lp-acct__out {
  margin-top: 4px;
  border-top: 1px solid var(--lp-line);
  border-radius: 0 0 10px 10px;
}

/* ---- Fold: below 1100 px the centre links go behind a button --------- */

@media (max-width: 1099px) {
  .lp-nav__fold {
    display: inline-grid;
    place-items: center;
    order: 1;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--lp-line);
    border-radius: 50%;
    background: #ffffff0d;
    color: var(--lp-ink);
    cursor: pointer;
  }

  .lp-nav__fold svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  .lp-nav__cta {
    margin-left: auto;
  }

  .lp-nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--lp-line);
    border-radius: 18px;
    background: #121015;
    box-shadow: 0 24px 60px #000000a6;
    font-size: 16px;
  }

  .lp-nav.is-folded-open .lp-nav__links {
    display: flex;
    animation: lp-item-in 300ms var(--lp-ease-out);
  }

  .lp-nav__links a {
    padding: 14px 12px;
    border-radius: 10px;
  }

  .lp-nav__links a:hover {
    background: #ffffff0d;
  }
}

@media (max-width: 599px) {
  .lp-nav__inner {
    gap: 10px;
  }

  .lp-nav__links .lp-nav__fold-only {
    display: inline-flex;
  }

  /* Phones: Open Studio moves into the fold (signed out) or the avatar menu (signed in). */
  .lp-nav__studio,
  .lp-nav[data-auth="in"] .lp-nav__studio,
  .lp-nav[data-auth="in"] .nav__install {
    display: none;
  }

  .lp-nav .lp-btn {
    padding: 0 14px;
  }

  .lp-acct__menu {
    position: fixed;
    top: 80px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
  }
}

/* ---- Final call (spec 11) -------------------------------------------- */

.lp-final {
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: clamp(28px, 3vw, 44px);
  padding-block: clamp(80px, 9vw, 120px) clamp(90px, 10vw, 140px);
  text-align: center;
  isolation: isolate;
}

.lp-final__glow {
  position: absolute;
  top: 78%;
  left: 50%;
  z-index: -1;
  width: 1000px;
  height: 640px;
  margin: -320px 0 0 -500px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #e0184f55, #8b2be233 45%, transparent 75%);
  filter: blur(30px);
  pointer-events: none;
  will-change: transform;
}

.lp-final__title {
  /* Bookends the page at the hero's size (spec: the opening's type came down at the user's ask). */
  font-size: clamp(64px, 11vw, 160px);
  line-height: 0.96;
  color: var(--lp-ink);
}

.lp-final__line {
  display: block;
}

.lp-final__char {
  display: inline-block;
  white-space: pre;
}

.lp-final.is-waiting .lp-final__char {
  opacity: 0;
  transform: translateY(0.35em);
}

.lp-final.is-in .lp-final__char {
  opacity: 1;
  transform: none;
  transition: transform 700ms var(--lp-ease-out), opacity 500ms var(--lp-ease-out);
  transition-delay: calc(var(--i, 0) * 30ms);
}

.lp-final__cta {
  padding: 19px 30px;
  font-size: 17px;
}

/* ---- Footer ----------------------------------------------------------- */

.lp-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: var(--lp-page);
  margin-inline: auto;
  padding: 36px clamp(20px, 3.9vw, 56px) 40px;
  border-top: 1px solid var(--lp-line);
  box-sizing: border-box;
  font-family: var(--lp-font);
  font-size: 13px;
  color: var(--lp-ink-3);
  text-align: center;
}

/* D436: one compact row, never a list of tools; the tool pages are reached through /tools, the Tools menu and the sitemap. */
.lp-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 14px;
}

.lp-footer a {
  color: var(--lp-ink-2);
  text-decoration: none;
  transition: color 150ms;
}

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

.lp-footer a:focus-visible {
  outline: 2px solid var(--lp-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.lp-footer .lp-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 600;
  color: var(--lp-ink);
}

.lp-footer__tag {
  margin: -6px 0 0;
  color: var(--lp-ink-3);
}

/* ---- Tools menu (P327, frame yxN3Q; P330 columns): a button after FAQ over the tool pages, a column per toolkit,
   styled like the account menu. Below 1100 px the fold lists them inline under a "Tools" head and the group heads. ---------------------------------- */

.lp-tools {
  position: relative;
}

.lp-tools__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -6px -12px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 150ms, background-color 150ms;
}

.lp-tools__button:hover,
.lp-tools.is-open .lp-tools__button {
  color: var(--lp-ink);
}

.lp-tools.is-open .lp-tools__button {
  background: #ffffff12;
}

.lp-tools__button:focus-visible {
  outline: 2px solid var(--lp-gold);
  outline-offset: 2px;
}

.lp-tools__chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: rotate 200ms var(--lp-ease-out);
}

.lp-tools.is-open .lp-tools__button .lp-tools__chevron {
  rotate: 180deg;
}

.lp-tools__menu {
  position: absolute;
  top: calc(100% + 20px);
  left: -20px;
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 8px;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: #121015;
  box-shadow: 0 24px 60px #000000a6;
  transform-origin: top left;
  animation: lp-menu-in 220ms var(--lp-ease-out);
}

/* A column per toolkit outgrows the space either side of Tools: hang the menu from the middle of the nav bar. */
@media (min-width: 1100px) {
  .lp-tools { position: static; }
  .lp-tools__menu { top: calc(100% + 10px); left: 50%; translate: -50% 0; transform-origin: top center; }
}

.lp-tools__menu[hidden],
.lp-tools__head {
  display: none;
}

.lp-tools__group,
.lp-tools__head {
  margin: 0;
  padding: 8px 12px 6px;
  font: 11px var(--lp-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
}

.lp-tools__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A column per toolkit that has a page (P330): the menu widens with each one. */
.lp-tools__cols {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 256px;
  gap: 4px;
}

.lp-nav__links .lp-tools__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--lp-ink);
}

.lp-nav__links .lp-tools__item:hover,
.lp-nav__links .lp-tools__item:focus-visible {
  background: #ffffff12;
}

.lp-tools__item:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--lp-gold);
}

.lp-tools__item svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--lp-hot);
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.lp-tools__item > span {
  display: grid;
  gap: 3px;
}

.lp-tools__name {
  font-size: 14px;
  font-weight: 500;
}

.lp-tools__sub {
  font-size: 12px;
  color: var(--lp-ink-3);
}

/* The Guides menu (P249) is the Tools menu: a path guide shows its place in the path where a tool shows its icon. */
.lp-guides__no {
  flex: none;
  width: 18px;
  font: 600 12px var(--lp-mono);
  color: var(--lp-hot);
}

.lp-guides__item svg {
  stroke-linecap: round;
}

/* D522: five 200px columns fit the 1100px nav, so Guides never spills past the window as sections grow. */
.lp-guides .lp-tools__cols {
  grid-auto-columns: 200px;
}

/* "See all" sits on one line across the columns, however many lines a column's names take (frame ue0wt). */
.lp-guides .lp-tools__col {
  display: flex;
  flex-direction: column;
}

.lp-nav__links .lp-guides__more {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  gap: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #c9c9d1;
}

.lp-guides__more span {
  color: var(--lp-hot);
}

.lp-guides__by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 12px 0;
  border-top: 1px solid var(--lp-line);
}

.lp-guides__by .lp-tools__group {
  padding: 0 8px 0 0;
}

.lp-guides__by nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-nav__links .lp-guides__by a {
  padding: 5px 12px;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #c9c9d1;
}

.lp-nav__links .lp-guides__by a:hover {
  border-color: #ffffff4d;
  color: var(--lp-ink);
}

.lp-guides__more:focus-visible,
.lp-guides__by a:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--lp-gold);
  border-radius: 10px;
}

/* The foot link to the /tools hub (P328). */
.lp-nav__links .lp-tools__all {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 12px;
  border-top: 1px solid var(--lp-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-ink);
}

.lp-tools__all span {
  color: var(--lp-hot);
}

.lp-tools__all:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--lp-gold);
  border-radius: 10px;
}

.lp-tools__fold {
  display: none;
}

@media (max-width: 1099px) {
  .lp-tools {
    margin: 4px 0;
    padding: 4px 0;
    border-block: 1px solid var(--lp-line);
  }

  /* The fold never lists every tool: Tools opens onto the four toolkits, so its length doesn't grow with the pages. */
  .lp-tools__button,
  .lp-tools__menu,
  .lp-tools__menu[hidden] {
    display: none;
  }

  .lp-tools__fold {
    display: block;
  }

  /* Guides sits right under Tools: one rule between them, not two. */
  .lp-tools + .lp-tools {
    margin-top: -4px;
    border-top: 0;
  }

  .lp-tools__fold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: 10px;
    list-style: none;
    cursor: pointer;
  }

  .lp-tools__fold > summary::-webkit-details-marker {
    display: none;
  }

  .lp-tools__fold[open] .lp-tools__chevron {
    rotate: 180deg;
  }

  .lp-tools__fold ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0 0 6px;
    list-style: none;
  }

  .lp-nav__links .lp-tools__fold a {
    display: flex;
    justify-content: space-between;
    padding: 11px 12px 11px 28px;
    border-radius: 10px;
    font-size: 15px;
    color: var(--lp-ink-2);
  }

  .lp-nav__links .lp-tools__fold a:hover {
    background: #ffffff0d;
  }

  .lp-nav__links .lp-tools__fold-all {
    font-weight: 600;
    color: var(--lp-ink);
  }

  .lp-tools__fold-all span {
    color: var(--lp-hot);
  }

  .lp-tools__fold > summary:focus-visible,
  .lp-nav__links .lp-tools__fold a:focus-visible {
    outline: 2px solid var(--lp-gold);
    outline-offset: 2px;
    border-radius: 10px;
  }
}

/* ---- Reduced motion: same states, nothing slides (tokens.css makes every transition instant) -- */

@media (prefers-reduced-motion: reduce) {
  .lp-acct__menu,
  .lp-acct__menu > *,
  .lp-tools__menu,
  .lp-nav.is-folded-open .lp-nav__links {
    animation: none;
  }

  .nav__install:hover .lp-nav__arrow,
  .lp-nav__studio:hover span {
    transform: none;
  }
}

/* ---- Clarity consent (P723, frame Y7GowT): bottom-left card on a laptop, the full bottom on a phone ---- */

.lp-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  box-sizing: border-box;
  width: 380px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--lp-surface);
  box-shadow: inset 0 0 0 1px var(--lp-line-strong), 0 12px 40px #00000099;
  font-family: var(--lp-font);
}

.lp-consent__title {
  margin: 0 0 8px;
  color: var(--lp-ink);
  font-size: 15px;
  font-weight: 600;
}

.lp-consent__body {
  margin: 0 0 14px;
  color: var(--lp-ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.lp-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-consent__link {
  margin-right: auto;
  color: var(--lp-ink-2);
  font-size: 13px;
}

.lp-consent__btn {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .lp-consent {
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
  }
}

/* The privacy page's Clarity switch (Your choices). */
.lp-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lp-ink);
  font: 600 14px/1 var(--lp-font);
  cursor: pointer;
}

.lp-switch__track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--lp-surface-2);
  box-shadow: inset 0 0 0 1px var(--lp-line-strong);
  transition: background-color 200ms;
}

.lp-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lp-ink-2);
  transition: transform 200ms var(--lp-ease-out);
}

.lp-switch[aria-checked='true'] .lp-switch__track {
  background: var(--lp-red);
  box-shadow: none;
}

.lp-switch[aria-checked='true'] .lp-switch__track::after {
  transform: translateX(18px);
  background: #fff;
}

.lp-switch:focus-visible {
  outline: 2px solid var(--lp-gold);
  outline-offset: 3px;
  border-radius: 999px;
}
