:root {
  --ink: #111111;
  --muted: #676767;
  --line: rgba(17, 17, 17, 0.12);
  --white: #ffffff;
  --soft-gray: #eeeeee;
  --green: #bfff3f;
  --green-deep: #94c822;
  --header-height: 72px;
  --page-gutter: clamp(22px, 5vw, 72px);
  --radius: 24px;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("./fonts/woff2/SF-Pro-Display-Regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("./fonts/woff2/SF-Pro-Display-Semibold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("./fonts/woff2/SF-Pro-Display-Bold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.scroll-banner {
  --scroll-banner-glyph-size: 32px;
  --scroll-banner-glyph-gap: 14px;
  --scroll-banner-radius: 58px;
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  display: block;
  width: min(360px, calc(100vw - 32px));
  height: 50px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: var(--scroll-banner-radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.12);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -16px, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity, transform;
  transition: top 480ms cubic-bezier(0.22, 1, 0.36, 1), width 480ms cubic-bezier(0.22, 1, 0.36, 1), height 480ms cubic-bezier(0.22, 1, 0.36, 1), min-height 480ms cubic-bezier(0.22, 1, 0.36, 1), padding 480ms ease, border-width 480ms ease, border-color 480ms ease, background 480ms ease, box-shadow 480ms ease, opacity 260ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  /* Avoid live backdrop sampling on this animated surface; the tint and
     highlight preserve the frosted treatment without the compositing flicker. */
}

.scroll-banner__backdrop {
  position: fixed;
  z-index: 19;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms ease;
}

.scroll-banner__backdrop.is-visible {
  opacity: 1;
}

.scroll-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}

.scroll-banner__brand {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 12px;
  display: grid;
  width: var(--scroll-banner-glyph-size);
  height: var(--scroll-banner-glyph-size);
  place-items: center;
  transform: translate(0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transition: top 480ms cubic-bezier(0.22, 1, 0.36, 1), left 480ms cubic-bezier(0.22, 1, 0.36, 1), width 480ms cubic-bezier(0.22, 1, 0.36, 1), height 480ms cubic-bezier(0.22, 1, 0.36, 1), transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-banner__brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scroll-banner__body {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding-left: calc(var(--scroll-banner-glyph-size) + var(--scroll-banner-glyph-gap));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: padding 480ms ease;
}

.scroll-banner__message,
.scroll-banner__credit,
.scroll-banner__logos {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: max-height 480ms ease, margin 480ms ease, opacity 360ms ease, transform 480ms ease;
}

.scroll-banner__message {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}

.scroll-banner__credit {
  color: #a3a3a3;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.scroll-banner__credit a {
  color: #0071e3;
  text-decoration: none;
}

.scroll-banner__credit a:hover,
.scroll-banner__credit a:focus-visible {
  text-decoration: underline;
}

.scroll-banner__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.scroll-banner__logos img {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.scroll-banner__logos img[alt="Lemmy"] {
  height: 30px;
}

.scroll-banner__signup {
  display: flex;
  width: 100%;
  height: 29px;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  transition: height 480ms ease, gap 480ms ease;
}

.scroll-banner__input {
  height: 18px;
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  transition: height 480ms ease, padding 480ms ease, border-radius 480ms ease, background 480ms ease, font-size 480ms ease;
}

.scroll-banner__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.scroll-banner__input:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.scroll-banner__button {
  flex: 0 0 auto;
  height: 29px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #0071e3;
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: height 480ms ease, padding 480ms ease, font-size 480ms ease;
}

.screen-transition-video {
  position: fixed;
  z-index: -1;
  top: -1px;
  left: -1px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.scroll-banner__button:hover {
  background: #0077ed;
}

.scroll-banner__button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.scroll-banner.is-cta {
  --scroll-banner-glyph-size: clamp(124px, 15vw, 190px);
  --scroll-banner-glyph-gap: clamp(32px, 5vw, 54px);
  top: 50%;
  width: min(620px, calc(100vw - 40px));
  height: auto;
  min-height: 0;
  padding: clamp(34px, 5vw, 50px) clamp(28px, 5vw, 50px);
  border-width: 0;
  border-color: transparent;
  border-radius: var(--scroll-banner-radius);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  transform: translate3d(-50%, -50%, 0);
}

.scroll-banner.is-cta .scroll-banner__brand {
  top: clamp(34px, 5vw, 62px);
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

.scroll-banner.is-cta .scroll-banner__body {
  width: 100%;
  height: auto;
  justify-content: flex-start;
  padding: calc(var(--scroll-banner-glyph-size) + var(--scroll-banner-glyph-gap)) 0 0;
}

.scroll-banner.is-cta .scroll-banner__message {
  max-height: 110px;
  margin: 0 auto clamp(18px, 2vw, 26px);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-banner.is-cta .scroll-banner__signup {
  width: 100%;
  height: 50px;
  flex: 0 0 auto;
  gap: 14px;
}

.scroll-banner.is-cta .scroll-banner__input {
  height: 50px;
  min-height: 0;
  padding: 0 18px;
  border-radius: 999px;
  background: #efefef;
  font-size: 18px;
}

.scroll-banner.is-cta .scroll-banner__input::placeholder {
  color: #777;
}

.scroll-banner.is-cta .scroll-banner__button {
  height: 50px;
  min-height: 0;
  padding: 0 24px;
  font-size: 18px;
}

.scroll-banner.is-cta .scroll-banner__credit {
  max-height: 30px;
  margin: clamp(58px, 7vw, 82px) auto 20px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-banner.is-cta .scroll-banner__logos {
  max-height: 52px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-banner__status {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.scroll-banner__status:not(:empty) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.beta-toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.beta-toast {
  padding: 14px 18px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.18);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.beta-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.beta-toast--success {
  border-color: rgba(80, 126, 0, 0.3);
  background: #f3ffd9;
}

.beta-toast--error {
  border-color: rgba(180, 45, 35, 0.25);
  background: #fff1ef;
}

.scroll-banner__trap,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.story {
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 1px;
  scrollbar-width: none;
}

.story::-webkit-scrollbar {
  display: none;
}

.panel {
  min-height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.panel__inner {
  display: flex;
  width: min(100%, 1320px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--header-height) + 36px) var(--page-gutter) 60px;
}

.panel--intro,
.panel--mission {
  position: relative;
  background: var(--white);
}

.panel--honestly,
.panel--special {
  background: var(--soft-gray);
}

.intro-layout,
.honestly-layout,
.mission-layout,
.special-layout {
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 108px);
}

.copy-block {
  max-width: 900px;
}

.intro-logo {
  display: block;
  width: clamp(132px, 15vw, 190px);
  height: auto;
  margin-bottom: 54px;
  animation: introReveal 2400ms cubic-bezier(0.22, 1, 0.36, 1) 1s both;
  will-change: opacity, transform;
}

@keyframes introReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introPhoneReveal {
  from {
    opacity: 0;
    translate: 0 28px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.copy-block h1,
.copy-block h2,
.copy-block p {
  margin-top: 0;
}

.copy-block h1,
.copy-block h2 {
  max-width: 24ch;
  margin-bottom: 24px;
  font-size: clamp(32px, 4vw, 70px);
  font-weight: 700;
  line-height: 0.98;
}

.copy-block h1 {
  max-width: 13ch;
  font-size: clamp(31px, 4vw, 64px);
}

.copy-block p {
  max-width: 46ch;
  margin-bottom: 54px;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.18;
  text-wrap: pretty;
  text-align: justify;
  text-align-last: justify;
}

.eyebrow,
.section-note,
.media-placeholder__label,
.media-placeholder__note,
.feature-card__number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 54px;
  font-size: 2.8vw;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  animation: introReveal 2400ms cubic-bezier(0.22, 1, 0.36, 1) 1.5s both;
  will-change: opacity, transform;
}

.copy-block--intro h1 {
  animation: introReveal 2400ms cubic-bezier(0.22, 1, 0.36, 1) 2s both;
  will-change: opacity, transform;
}

.media-placeholder {
  position: relative;
  display: grid;
  flex: 0 1 48%;
  min-height: min(70vh, 650px);
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.48);
}

.media-placeholder__label {
  position: absolute;
  top: 22px;
  left: 24px;
}

.media-placeholder__note {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.phone-placeholder {
  display: grid;
  width: min(54%, 250px);
  aspect-ratio: 0.49;
  place-items: center;
  border: 8px solid var(--ink);
  border-radius: 38px;
  background: #fafafa;
  box-shadow: 0 24px 40px rgba(17, 17, 17, 0.12);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.phone-placeholder::before {
  position: absolute;
  top: 15px;
  width: 28%;
  height: 5px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

.phone-placeholder--hero {
  transform: rotate(5deg);
}

.phone-placeholder--wide {
  width: min(64%, 295px);
}

.panel--honestly .media-placeholder {
  background: rgba(255, 255, 255, 0.66);
}

.mission-layout {
  flex-direction: row;
}

.media-placeholder--green {
  border: 0;
  background: transparent;
}

.media-placeholder--model {
  border: 0;
  background: transparent;
  z-index: 4;
}

.phone-transition-stage {
  position: fixed;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

@media (min-width: 701px) {
  .media-placeholder--model {
  transform: translateX(clamp(0px, 6vw, 90px));  }
}

.shill-art {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: -25%;
  width: auto;
  height: 70%;
  pointer-events: none;
}

.model-shell {
  position: absolute;
  top: var(--phone-top, 50%);
  left: var(--phone-left, 72%);
  z-index: 2;
  display: grid;
  width: min(33vw, 360px);
  aspect-ratio: 0.56;
  place-items: center;
  transform: translate(-50%, -50%) translate(var(--model-x, 0%), var(--model-y, 0%)) scale(var(--phone-transition-scale, 1)) scale(var(--model-scale, 1)) rotate(var(--model-roll, 0deg));
  transform-origin: center center;
  animation: introPhoneReveal 4s cubic-bezier(0.22, 1, 0.36, 1) 3s both;
  will-change: opacity, translate;
}

.ace-peek-art {
  --ace-peek-width: 50%;
  --ace-peek-offset-x: 0%;
  /* Distance from the model shell's top edge to the artwork baseline. */
  --ace-peek-offset-y: 23px;
  position: absolute;
  bottom: calc(100% - var(--ace-peek-offset-y));
  left: calc(50% + var(--ace-peek-offset-x));
  z-index: 1;
  width: var(--ace-peek-width);
  aspect-ratio: 476.2 / 250.7;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(100%);
  transition: opacity 160ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.ace-lounge-art {
  position: absolute;
  z-index: 1;
  top: 60%;
  left: 30%;
  display: block;
  width: min(36vw, 860px);
  height: auto;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 1;
}

.ace-peek-art.is-loaded {
  visibility: visible;
}

.ace-peek-art svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
}

.model-shell.is-ready .ace-peek-art.is-loaded svg {
  opacity: 0;
}

.model-shell.is-ace-peek-active .ace-peek-art.is-loaded {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.model-shell.is-ace-peek-active .ace-peek-art.is-loaded svg {
  opacity: 1;
}

.model-shell.is-ace-peek-hiding .ace-peek-art.is-loaded {
  opacity: 1;
  transform: translateX(-50%) translateY(100%);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.model-shell.is-ace-peek-hiding .ace-peek-art.is-loaded svg {
  opacity: 1;
}

.ace-peek-art [id="Hands:_Upper_Layer"],
.ace-peek-art [id="Hands:_Lower_Layer"],
.ace-peek-art [id="Line_Art"],
.ace-peek-art [id="Color"] {
  transform-box: view-box;
  transform-origin: center bottom;
}

.model-shell.is-ace-peek-active .ace-peek-art.is-loaded [id="Hands:_Upper_Layer"],
.model-shell.is-ace-peek-active .ace-peek-art.is-loaded [id="Hands:_Lower_Layer"] {
  animation: acePeekHands 4200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.model-shell.is-ace-peek-active .ace-peek-art.is-loaded [id="Line_Art"],
.model-shell.is-ace-peek-active .ace-peek-art.is-loaded [id="Color"] {
  animation: acePeekHead 4200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.model-shell.is-ace-peek-hiding .ace-peek-art.is-loaded [id="Hands:_Upper_Layer"],
.model-shell.is-ace-peek-hiding .ace-peek-art.is-loaded [id="Hands:_Lower_Layer"],
.model-shell.is-ace-peek-hiding .ace-peek-art.is-loaded [id="Line_Art"],
.model-shell.is-ace-peek-hiding .ace-peek-art.is-loaded [id="Color"] {
  animation: none;
  transform: translateY(0);
}

@keyframes acePeekHands {
  0%,
  12% {
    transform: translateY(100%);
  }

  42% {
    transform: translateY(-3px);
  }

  60%,
  100% {
    transform: translateY(0);
  }
}

@keyframes acePeekHead {
  0%,
  56% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(0);
  }
}

.phone-model-three {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.phone-model-glb {
  display: none;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.usd-fallback-active .phone-model-three {
  display: none;
}

.usd-fallback-active .phone-model-glb {
  display: block;
}

.honestly-layout {
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(120px, 16vh, 170px);
  text-align: center;
}

.copy-block--honestly {
  max-width: 760px;
}

@media (min-width: 701px) {
  .copy-block--honestly h2 {
    max-width: none;
    white-space: nowrap;
  }
}

.copy-block--honestly p {
  margin-right: auto;
  margin-left: auto;
}

.copy-block--honestly h2 {
  margin-right: auto;
  margin-left: auto;
}

.panel--honestly .copy-block--honestly h2,
.panel--honestly .copy-block--honestly p {
  opacity: 0;
  transform: translateY(24px);
}

.panel--honestly.is-revealed .copy-block--honestly h2 {
  animation: introReveal 2400ms cubic-bezier(0.22, 1, 0.36, 1) .5s both;
}

.panel--honestly.is-revealed .copy-block--honestly p:nth-of-type(1) {
  animation: introReveal 2400ms cubic-bezier(0.22, 1, 0.36, 1) 2s both;
}

.panel--honestly.is-revealed .copy-block--honestly p:nth-of-type(2) {
  animation: introReveal 2400ms cubic-bezier(0.22, 1, 0.36, 1) 4s both;
}

.panel--mission .copy-block--mission p,
.panel--mission .copy-block--mission h2 {
  opacity: 0;
  transform: translateY(24px);
}

.panel--mission.is-revealed .copy-block--mission p {
  animation: introReveal 2400ms cubic-bezier(0.22, 1, 0.36, 1) .5s both;
}

.panel--mission.is-revealed .copy-block--mission h2 {
  animation: introReveal 2400ms cubic-bezier(0.22, 1, 0.36, 1) 2s both;
}

.model-fallback {
  position: absolute;
  z-index: 1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-shell.is-ready .model-fallback {
  opacity: 0;
}

.diagnostic-panel {
  display: none;
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 16px;
  width: min(330px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 45px rgba(17, 17, 17, 0.16);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.diagnostic-panel__toggle,
.diagnostic-panel__actions button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.diagnostic-panel__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  text-align: left;
}

.diagnostic-panel__body {
  padding: 0 15px 15px;
}

.diagnostic-panel__intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.diagnostic-group {
  min-width: 0;
  margin: 0 0 13px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.diagnostic-group legend {
  padding: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnostic-control {
  display: block;
  margin-top: 8px;
  font-size: 11px;
}

.diagnostic-control > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.diagnostic-control output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.diagnostic-control input {
  display: block;
  width: 100%;
  height: 16px;
  accent-color: var(--green-deep);
}

.diagnostic-panel__readout {
  display: block;
  min-height: 34px;
  padding: 8px;
  border-radius: 8px;
  background: var(--soft-gray);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.45;
}

.diagnostic-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.diagnostic-panel__actions button {
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--soft-gray);
}

.diagnostic-panel__actions button:last-child {
  background: var(--green);
}

.copy-block--mission h2 {
  max-width: 20ch;
  font-size: clamp(29px, 3.7vw, 40px);
}

.copy-block--mission p {
  margin-bottom: 52px;
  text-align: left;
  text-align-last: auto;
}

.special-layout {
  display: block;
  min-height: auto;
  padding-top: clamp(24px, 12vh, 112px);
  padding-bottom: 0;
}

.copy-block--special h2 {
  margin-bottom: 8px;
}

.section-note {
  margin: 0;
}

.carousel {
  width: 100%;
  margin-top: clamp(24px, 4vh, 44px);
}

/* Fallback for a cached preview that still nests the carousel in the inner column. */
.panel__inner .carousel {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
}

.panel--special > .carousel {
  position: static;
  width: 100%;
  margin-left: 0;
}

.carousel__viewport {
  width: 100%;
  overflow: hidden;
}

.carousel__track {
  --carousel-progress: 0;
  --carousel-caption-offset: 120px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 10% 28px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 10%;
  scrollbar-width: none;
}

.carousel__track::before,
.carousel__track::after {
  /* Give the first and last cards the same centering room as the middle cards. */
  flex: 0 0 max(0px, calc(10% - 24px));
  content: "";
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.feature-card {
  display: flex;
  flex: 0 0 80%;
  min-height: clamp(400px, 56vh, 680px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(32px, 3vw, 72px);
  scroll-snap-align: center;
  border-radius: clamp(28px, 3vw, 46px);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
  text-align: center;
}

.feature-card__number {
  color: var(--green-deep);
}

.feature-card h3 {
  max-width: 20ch;
  margin: 0 0 14px;
  font-size: clamp(38px, 3vw, 92px);
  line-height: 0.98;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 2.4vw, 19px);
  max-width: 40ch;
}

.feature-card h3,
.feature-card p {
  --carousel-parallax-offset: calc(var(--carousel-index) - var(--carousel-progress, 0));
  --carousel-parallax-x: calc(
    (var(--carousel-parallax-offset) + var(--carousel-parallax-offset) * 1.6) * var(--carousel-caption-offset)
  );
  --carousel-parallax-opacity: calc(
    1 - max(var(--carousel-parallax-offset), -1 * var(--carousel-parallax-offset)) * 3.2
  );
  opacity: var(--carousel-parallax-opacity);
  transform: translate3d(var(--carousel-parallax-x), 0, 0);
  will-change: opacity, transform;
}

#feature-native-ios h3 {
  max-width: 15ch;
}

#feature-native-ios p {
  max-width: 37ch;
}

#feature-native-ios {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #111;
}

#feature-native-ios .feature-card__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#feature-native-ios::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.05) 48%, rgba(0, 0, 0, 0.24));
  content: "";
}

#feature-native-ios > *:not(.feature-card__video) {
  position: relative;
  z-index: 2;
}

#feature-native-ios p {
  color: var(--white);
}

#feature-integrations {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: 0;
}

.integrations-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 18px);
  padding: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px) 0;
  overflow: hidden;
  opacity: 0.74;
}

.integrations-column {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.integrations-column__track {
  position: absolute;
  top: var(--integrations-offset);
  left: 0;
  display: flex;
  width: 100%;
  flex-direction: column;
  animation-duration: 50s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform;
}

.integrations-column__track img {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.integrations-column__track > svg {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.integrations-column--one {
  --integrations-offset: -12%;
}

.integrations-column--one .integrations-column__track,
.integrations-column--three .integrations-column__track {
  animation-name: integrations-scroll-down;
}

.integrations-column--two {
  --integrations-offset: -30%;
}

.integrations-column--two .integrations-column__track {
  animation-name: integrations-scroll-up;
}

.integrations-column--three {
  --integrations-offset: -48%;
}

.feature-card__copy-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(56px, 4vw, 132px) clamp(24px, 7vw, 110px) 0;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(255, 255, 255, 0.94) 46%,
    rgba(255, 255, 255, 0) 66%
  );
  pointer-events: none;
}

@keyframes integrations-scroll-down {
  from {
    transform: translateY(-50%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes integrations-scroll-up {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

#feature-communities h3 {
  max-width: 25ch;
}

#feature-communities {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #413879;
}

#feature-communities::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("./images/concert.webp") center / cover no-repeat;
  content: "";
  transform: scale(1.16);
  transform-origin: center;
  animation: concert-ken-burns 12s ease-in-out infinite alternate;
}

#feature-communities::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    #413879 0%,
    rgba(65, 56, 121, 0.9) 26%,
    rgba(65, 56, 121, 0.48) 48%,
    rgba(65, 56, 121, 0) 78%
  );
  content: "";
}

#feature-communities > * {
  position: relative;
  z-index: 2;
}

@keyframes concert-ken-burns {
  from {
    transform: scale(1.16);
  }

  to {
    transform: scale(1);
  }
}

#feature-communities p {
  color: var(--white);
  max-width: 41ch;
}

#feature-basics h3 {
  max-width: 15ch;
}

#feature-basics {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #0071e3;
}

#feature-basics .feature-card__copy-scrim {
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(0, 113, 227, .8) 0%,
    rgba(0, 113, 227, 0.8) 42%,
    rgba(0, 113, 227, 0) 62%
  )
}

#feature-basics .feature-card__copy-scrim p {
  color: #99c6f4;
  max-width: 42ch;
}

.feature-toolkit {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.feature-toolkit__glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 80%;
  aspect-ratio: 724.5 / 752.3;
  background: #004a95;
  mask: url("./images/ace_glyph.svg") center / contain no-repeat;
  -webkit-mask: url("./images/ace_glyph.svg") center / contain no-repeat;
  opacity: 0.96;
  transform: translate(-50%, -50%);
}

.feature-toolkit__list {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.feature-pill {
  position: absolute;
  top: var(--pill-top);
  left: var(--pill-left);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px 13px 13px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(76, 148, 232, 0.88), rgba(42, 111, 207, 0.84));
  box-shadow: 0 12px 32px rgba(0, 48, 100, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: #fff;
  font-size: clamp(13px, 1.45vw, 18px);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  isolation: isolate;
  transform: translate3d(-50%, -50%, 0) rotate(var(--pill-rotation)) scale(0.72);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity, transform;
  text-shadow: 0 1px 2px rgba(0, 48, 100, 0.3);
  transition: opacity 480ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  /* Keep the frost static while the pill itself moves. */
}

.feature-pill:nth-child(1) {
  --pill-left: 14%;
  --pill-top: 45%;
  --pill-rotation: -12deg;
  --pill-delay: 0s;
}

.feature-pill:nth-child(2) {
  --pill-left: 84%;
  --pill-top: 44%;
  --pill-rotation: 8deg;
  --pill-delay: -2s;
}

.feature-pill:nth-child(3) {
  --pill-left: 24%;
  --pill-top: 57%;
  --pill-rotation: 10deg;
  --pill-delay: -4s;
}

.feature-pill:nth-child(4) {
  --pill-left: 76%;
  --pill-top: 58%;
  --pill-rotation: -7deg;
  --pill-delay: -6s;
}

.feature-pill:nth-child(5) {
  --pill-left: 12%;
  --pill-top: 73%;
  --pill-rotation: 6deg;
  --pill-delay: -8s;
}

.feature-pill:nth-child(6) {
  --pill-left: 88%;
  --pill-top: 74%;
  --pill-rotation: -10deg;
  --pill-delay: -10s;
}

.feature-pill:nth-child(7) {
  --pill-left: 35%;
  --pill-top: 85%;
  --pill-rotation: -5deg;
  --pill-delay: -12s;
}

.feature-pill:nth-child(8) {
  --pill-left: 67%;
  --pill-top: 86%;
  --pill-rotation: 8deg;
  --pill-delay: -14s;
}

.feature-pill:nth-child(9) {
  --pill-left: 8%;
  --pill-top: 57%;
  --pill-rotation: -14deg;
  --pill-delay: -16s;
}

.feature-pill:nth-child(10) {
  --pill-left: 95%;
  --pill-top: 57%;
  --pill-rotation: 12deg;
  --pill-delay: -18s;
}

.feature-pill:nth-child(11) {
  --pill-left: 37%;
  --pill-top: 69%;
  --pill-rotation: 4deg;
  --pill-delay: -20s;
}

.feature-pill:nth-child(12) {
  --pill-left: 63%;
  --pill-top: 70%;
  --pill-rotation: -6deg;
  --pill-delay: -22s;
}

.feature-pill:nth-child(13) {
  --pill-left: 50%;
  --pill-top: 92%;
  --pill-rotation: 2deg;
  --pill-delay: -24s;
}

.feature-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 48, 100, 0.3));
  opacity: 0.86;
}

.feature-card--basics .feature-pill {
  gap: 12px;
  padding: 20px 27px 20px 20px;
  font-size: clamp(19px, 2.15vw, 27px);
}

.feature-card--basics .feature-pill img {
  width: 33px;
  height: 33px;
}

.feature-pill.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) rotate(var(--pill-rotation)) scale(1);
}

.feature-pill.is-entering {
  animation: feature-pill-bounce 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes feature-pill-bounce {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotate(var(--pill-rotation)) scale(0.62);
  }

  48% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotate(var(--pill-rotation)) scale(1.16);
  }

  72% {
    transform: translate3d(-50%, -50%, 0) rotate(var(--pill-rotation)) scale(0.94);
  }

  88% {
    transform: translate3d(-50%, -50%, 0) rotate(var(--pill-rotation)) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotate(var(--pill-rotation)) scale(1);
  }
}


.carousel__controls {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  margin: 6px auto 0;
}

.carousel__dots {
  --carousel-card-progress: 0;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 58px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
}

.carousel__dot {
  position: relative;
  width: 31px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.carousel__dot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.2);
  content: "";
  transform: translate(-50%, -50%);
  transition: width 180ms ease, background 180ms ease;
}

.carousel__dot.is-active::before {
  width: 29px;
  background: #000;
}

.carousel__dot.is-active::after {
  position: absolute;
  top: 50%;
  left: calc(50% - 14.5px);
  width: calc(29px * var(--carousel-card-progress));
  height: 8px;
  border-radius: 999px;
  background: #666;
  content: "";
  transform: translateY(-50%);
  transition: width 80ms linear, background 180ms ease;
}

.carousel__dot:hover::before,
.carousel__dot:focus-visible::before {
  background: rgba(17, 17, 17, 0.42);
}

.carousel__dot.is-active:hover::before,
.carousel__dot.is-active:focus-visible::before {
  background: #000;
}

.carousel__dot.is-active:hover::after,
.carousel__dot.is-active:focus-visible::after {
  background: #444;
}

.carousel__play {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.carousel__play-icon {
  width: 17px;
  height: 21px;
  object-fit: contain;
}

.carousel__play:hover,
.carousel__play:focus-visible {
  background: rgba(17, 17, 17, 0.1);
  transform: scale(1.06);
}

.carousel__dot:focus-visible,
.carousel__play:focus-visible {
  outline-color: rgba(17, 17, 17, 0.42);
}

:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  :root {
    --header-height: 62px;
    --page-gutter: 22px;
  }

  .ace-peek-art {
    --ace-peek-offset-y: 17px;
  }

  .panel__inner {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding-top: calc(var(--header-height) + -20px);
    padding-bottom: 44px;
  }

  .panel--honestly .panel__inner {
    justify-content: flex-start;
    padding-top: 128px;
  }

  .panel--honestly .copy-block--honestly {
    position: relative;
    top: -40px;
  }

  .panel--honestly .copy-block--honestly h2,
  .panel--honestly .copy-block--honestly p {
    margin-bottom: 30px;
  }

  .panel--honestly .copy-block--honestly p {
    text-align-last: auto;
  }

  .copy-block {
    max-width: none;
  }

  .copy-block h1,
  .copy-block h2 {
    margin-bottom: 16px;
    font-size: clamp(16px, 5vw, 48px);
  }

  .copy-block p {
    font-size: 17px;
  }

  .copy-block--intro {
    text-align: center;
    transform: translateY(-10px);
  }

  .copy-block--intro .intro-logo,
  .copy-block--intro .eyebrow,
  .copy-block--intro h1 {
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 34px;
  }

  .copy-block--intro h1 {
    max-width: 25ch;
    text-align: left;
    line-height: 1.2;
  }
  
  .shill-art {
    bottom: -50px;
    left: 2%;
    height: 90%;
  }

  .media-placeholder {
    flex: 1;
    min-height: 0;
    width: 100%;
    border-radius: 28px;
  }

  .model-shell {
    width: min(64vw, 280px);
  }

  .ace-lounge-art {
    top: 50%;
    left: calc(100% - 44vw);
    width: min(76vw, 860px);
  }

  .phone-placeholder {
    width: min(48%, 170px);
    border-width: 6px;
    border-radius: 28px;
  }

  .mission-layout {
    flex-direction: column;
  }

  .mission-layout .media-placeholder--green {
    display: none;
  }

  .copy-block--mission p {
    margin-bottom: 22px;
  }

  .panel--mission .copy-block--mission {
    padding-top: 460px;
  }

  .special-layout {
    display: flex;
    min-height: auto;
    padding-top: calc(var(--header-height) + 18px);
  }

  .carousel {
    margin-top: 12px;
  }

  .feature-card {
    flex-basis: 80%;
    min-height: min(58vh, 520px);
    padding: 24px;
  }

  .feature-toolkit__glyph {
    height: 55%;
  }

  #feature-integrations .integrations-visual {
    right: 16px;
    left: 16px;
    display: block;
    padding: 16px 0 0;
  }

  #feature-integrations .integrations-column {
    display: none;
  }

  #feature-integrations .integrations-column--one {
    display: block;
    width: 100%;
    height: 100%;
    --integrations-offset: 0%;
  }

  #feature-integrations .integrations-column--one .integrations-column__track {
    animation-name: integrations-scroll-up;
  }

  #feature-integrations .feature-card__copy-scrim {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(255, 255, 255, 0.94) 40%,
      rgba(255, 255, 255, 0) 50%
    );
  }

  .feature-card h3 {
    font-size: clamp(21px, 3vw, 92px);
  }

  .feature-card__copy-scrim {
    padding: clamp(30px, 4vw, 132px) clamp(24px, 7vw, 110px) 0;
  }

  .feature-card--basics .feature-pill {
    gap: 6px;
    padding: 10px 13.5px 10px 10px;
    font-size: clamp(9.5px, 1.075vw, 13.5px);
  }

  .feature-card--basics .feature-pill img {
    width: 16.5px;
    height: 16.5px;
  }

  .carousel__track {
    --carousel-caption-offset: 64px;
  }

  .scroll-banner {
    --scroll-banner-glyph-size: 28px;
    --scroll-banner-glyph-gap: 10px;
    --scroll-banner-radius: 38px;
    top: 10px;
    width: calc(100vw - 24px);
    height: 44px;
    padding: 7px 8px 7px 10px;
  }

  .scroll-banner__brand {
    top: 7px;
    left: 10px;
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .scroll-banner__signup {
    height: 28px;
    gap: 8px;
  }

  .scroll-banner__input {
    font-size: 13px;
  }

  .scroll-banner__button {
    height: 28px;
    padding: 8px 13px;
    font-size: 12px;
  }

  .scroll-banner.is-cta {
    width: calc(100vw - 32px);
    height: auto;
    min-height: 0;
    padding: 30px 20px;
    border-radius: 38px;
  }

  .scroll-banner.is-cta .scroll-banner__brand {
    --scroll-banner-glyph-size: 126px;
    --scroll-banner-glyph-gap: 34px;
    width: 126px;
    height: 126px;
  }

  .scroll-banner.is-cta .scroll-banner__message {
    font-size: 20px;
  }

  .scroll-banner.is-cta .scroll-banner__signup {
    height: 48px;
    gap: 8px;
  }

  .scroll-banner.is-cta .scroll-banner__input,
  .scroll-banner.is-cta .scroll-banner__button {
    height: 48px;
    min-height: 0;
    font-size: 15px;
  }

  .scroll-banner.is-cta .scroll-banner__input {
    padding: 0 14px;
  }

  .scroll-banner.is-cta .scroll-banner__button {
    padding: 0 16px;
  }

  .scroll-banner.is-cta .scroll-banner__credit {
    margin-top: 54px;
    font-size: 16px;
  }

  .scroll-banner.is-cta .scroll-banner__logos img {
    height: 32px;
  }

  .scroll-banner.is-cta .scroll-banner__logos img[alt="Lemmy"] {
    height: 30px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #feature-communities::after {
    animation: none;
    transform: scale(1);
  }

  .integrations-column__track {
    animation: none;
  }

  .feature-pill {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotate(var(--pill-rotation));
    transition: none;
    animation: none;
  }

  .beta-toast {
    transition: none;
  }

  .intro-logo,
  .eyebrow,
  .copy-block--intro h1 {
    animation: none;
    opacity: 1;
    translate: 0 0;
    transform: none;
  }

  .model-shell {
    animation: none;
    opacity: 1;
    translate: 0 0;
  }

.panel--honestly .copy-block--honestly h2,
.panel--honestly .copy-block--honestly p,
.panel--mission .copy-block--mission p,
.panel--mission .copy-block--mission h2 {
  animation: none;
  opacity: 1;
  transform: none;
}

  .feature-card h3,
  .feature-card p {
    will-change: auto;
  }
}
