:root {
  --bg: #050507;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #fbf8f4;
  --muted: #c7c0c7;
  --amber: #ffcf33;
  --amber-soft: #ff9f1a;
  --red-hot: #b60f22;
  --wine: #7b1034;
  --wine-deep: #470719;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.05), transparent 14%),
    linear-gradient(180deg, #040405 0%, #09090b 46%, #040405 100%);
}

.music-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 1;
  isolation: isolate;
}

.note {
  position: absolute;
  color: rgba(255, 255, 255, 0.42);
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.18),
    0 0 54px rgba(255, 255, 255, 0.14),
    0 0 110px rgba(255, 255, 255, 0.1);
  filter: blur(0);
  user-select: none;
  mix-blend-mode: screen;
  animation: floatNote 12s ease-in-out infinite alternate;
}

.note-a {
  top: 8%;
  left: 6%;
  font-size: 8.8rem;
  animation-duration: 11s;
}

.note-b {
  top: 13%;
  right: 8%;
  font-size: 10rem;
  animation-duration: 13s;
}

.note-c {
  top: 35%;
  left: 2%;
  font-size: 7.4rem;
  animation-duration: 14s;
}

.note-d {
  top: 46%;
  right: 4%;
  font-size: 9.2rem;
  animation-duration: 12s;
}

.note-e {
  bottom: 16%;
  left: 10%;
  font-size: 10.4rem;
  animation-duration: 15s;
}

.note-f {
  bottom: 8%;
  right: 12%;
  font-size: 8rem;
  animation-duration: 10s;
}

.note-g {
  top: 68%;
  left: 50%;
  font-size: 8.6rem;
  animation-duration: 13s;
}

@keyframes floatNote {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.22;
  }

  50% {
    transform: translate3d(28px, -30px, 0) rotate(5deg) scale(1.06);
    opacity: 0.5;
  }

  100% {
    transform: translate3d(-24px, -46px, 0) rotate(-6deg) scale(0.96);
    opacity: 0.34;
  }
}

.music-particles::before,
.music-particles::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.3;
}

.music-particles::before {
  width: 440px;
  height: 440px;
  top: 4%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0) 74%);
}

.music-particles::after {
  width: 400px;
  height: 400px;
  right: -8%;
  bottom: 4%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 36%, rgba(255, 255, 255, 0) 72%);
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.05), transparent 12%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.04), transparent 16%),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.035), transparent 16%);
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 28px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(255, 207, 51, 0.08), rgba(182, 15, 34, 0.08));
  box-shadow:
    0 14px 34px rgba(123, 16, 52, 0.16),
    0 0 24px rgba(255, 207, 51, 0.1);
  backdrop-filter: blur(16px);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 13px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text {
  font-family: "Fraunces", serif;
  font-size: 1.18rem;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.08);
}

.brand-subtext {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-cta,
.waitlist-form button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(182, 15, 34, 0.96), rgba(122, 8, 28, 0.96) 55%, rgba(255, 159, 26, 0.88));
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  box-shadow:
    0 18px 38px rgba(71, 7, 25, 0.32),
    0 0 22px rgba(182, 15, 34, 0.22);
}

.nav-cta,
.waitlist-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 21px;
  border: 1px solid rgba(247, 250, 252, 0.56);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #f12827 0%, #d9070a 46%, #a80005 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -8px 12px rgba(70, 0, 2, 0.38),
    0 0 0 3px #08090b,
    0 0 0 4px rgba(0, 218, 255, 0.5),
    0 14px 28px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(0, 218, 255, 0.18);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover,
.waitlist-form button:hover {
  transform: translateY(-1px);
  border-color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #ff3a36 0%, #e50b0d 46%, #b50006 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -8px 12px rgba(70, 0, 2, 0.34),
    0 0 0 3px #08090b,
    0 0 0 4px rgba(0, 228, 255, 0.8),
    0 16px 30px rgba(0, 0, 0, 0.54),
    0 0 28px rgba(0, 218, 255, 0.3);
}

.nav-cta:focus-visible,
.waitlist-form button:focus-visible {
  outline: 2px solid #00dcff;
  outline-offset: 4px;
}

.hero {
  padding: 18px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -6% -2% 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.035), transparent 20%),
    radial-gradient(circle at 76% 38%, rgba(255, 255, 255, 0.03), transparent 24%);
  filter: blur(18px);
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 207, 51, 0.92);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.74rem;
  text-shadow: 0 0 18px rgba(255, 207, 51, 0.12);
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.55rem, 5.2vw, 4.55rem);
  line-height: 0.96;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 12px 34px rgba(0, 0, 0, 0.28);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.hero-text,
.waitlist-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 37ch;
  margin: 16px 0 0;
  font-size: 1rem;
}

.hero-text-lead {
  max-width: 35ch;
  color: rgba(251, 248, 244, 0.82);
  font-size: 1.08rem;
  line-height: 1.58;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-points span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-journey {
  display: grid;
  gap: 7px;
  max-width: 39ch;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-journey p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-journey strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-copy {
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 574px;
  padding-top: 54px;
}

.hero-product-stage {
  position: relative;
  min-height: 520px;
  z-index: 1;
}

.hero-feature-floats {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 54px;
  z-index: 3;
  pointer-events: none;
}

.hero-feature-float {
  position: absolute;
  top: 13px;
  left: 50%;
  width: max-content;
  max-width: 90%;
  margin: 0;
  color: rgba(255, 249, 231, 0.96);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.68),
    0 0 18px rgba(255, 207, 51, 0.14);
  animation: heroFeatureFloat 12s ease-in-out infinite;
}

.feature-two {
  animation-delay: 2.4s;
}

.feature-three {
  animation-delay: 4.8s;
}

.feature-four {
  animation-delay: 7.2s;
}

.feature-five {
  animation-delay: 9.6s;
}

@keyframes heroFeatureFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  3% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  16% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  19% {
    opacity: 0;
    transform: translate(-50%, -8px);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% 2% 5%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 40%, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 74% 58%, rgba(255, 255, 255, 0.05), transparent 30%);
  filter: blur(32px);
  pointer-events: none;
}

.hero-visual::after {
  display: none;
}

.hero-orbit {
  display: none;
}

.hero-orbit-a {
  width: 78%;
  height: 64%;
  right: 5%;
  top: 15%;
  transform: rotate(-8deg);
  opacity: 0.62;
}

.hero-orbit-b {
  width: 62%;
  height: 50%;
  right: 13%;
  top: 21%;
  transform: rotate(10deg);
  opacity: 0.34;
}

.hero-spark {
  display: none;
}

.hero-render {
  position: absolute;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-product-slide {
  position: absolute;
  inset: 0;
  width: min(100%, 620px);
  height: 100%;
  margin: auto 0 auto auto;
  opacity: 0;
  transform: translateY(34px) scale(0.94) rotate(-5deg);
  transform-origin: center center;
  filter: drop-shadow(0 30px 52px rgba(0, 0, 0, 0.42));
  pointer-events: none;
  animation: heroProductCycle 7.2s infinite;
}

.hero-product-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

.hero-product-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-product-slide:nth-child(2) {
  animation-delay: 2.4s;
}

.hero-product-slide:nth-child(3) {
  animation-delay: 4.8s;
}

@keyframes heroProductCycle {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.98) rotate(-2deg);
  }

  5% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }

  30% {
    opacity: 1;
    transform: translateY(-2px) scale(1.015) rotate(0.5deg);
  }

  38% {
    opacity: 0;
    transform: translateY(-10px) scale(1.005) rotate(1.2deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px) scale(1.005) rotate(1.2deg);
  }
}

.showcase {
  padding: 6px 0 18px;
}

.showcase-shell {
  display: grid;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.app-heading {
  max-width: 680px;
  margin: 0 auto 6px;
  text-align: center;
}

.app-heading .eyebrow {
  margin-bottom: 10px;
}

.app-heading p:last-child {
  max-width: 53ch;
  margin: 14px auto 0;
}

.carousel-frame {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr 96px;
  align-items: center;
  gap: 20px;
}

.carousel-arrow {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 3;
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 2398 / 1072;
  min-height: 0;
  max-height: 68vh;
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #050507;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.26),
    0 0 0 10px #0b0c10,
    0 0 0 11px rgba(255, 255, 255, 0.08),
    0 0 0 14px rgba(15, 16, 20, 0.92);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(0, 0, 0, 0.18),
    inset 0 10px 18px rgba(255, 255, 255, 0.03),
    inset 0 -10px 18px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 2;
}

.phone-frame::after {
  display: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  border-radius: inherit;
  overflow: hidden;
  background: #050507;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.carousel-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, #fff1c3, #ffc640);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 20px rgba(255, 206, 74, 0.32);
}

.app-download {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 12px auto 0;
}

.app-download-copy {
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-download-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 700;
}

.app-download-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00dcff;
  box-shadow: 0 0 12px rgba(0, 220, 255, 0.8);
}

.app-store-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.play-store-badge {
  display: inline-flex;
  border-radius: 7px;
  line-height: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.play-store-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.play-store-badge:focus-visible {
  outline: 2px solid #00dcff;
  outline-offset: 4px;
}

.play-store-badge img {
  display: block;
  width: auto;
  height: 54px;
}

.itchio-download {
  display: inline-flex;
  min-width: 174px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: #171717;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.itchio-download:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 207, 51, 0.72);
  background: #232018;
}

.itchio-download:focus-visible {
  outline: 2px solid #00dcff;
  outline-offset: 4px;
}

.itchio-download-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.itchio-download-copy small {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.itchio-download-copy strong {
  font-size: 1.16rem;
  letter-spacing: -0.04em;
}

.itchio-download-platform {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #00a4ef;
  font-size: 0.72rem;
  font-weight: 800;
}

.faq-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 74px 0 46px;
}

.faq-heading {
  margin-bottom: 26px;
  text-align: center;
}

.faq-heading h2 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 720px) {
  .faq-heading h2 {
    white-space: nowrap;
  }
}

.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.faq-item summary {
  position: relative;
  padding: 22px 48px 22px 2px;
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font-size: 1.03rem;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 3px;
  color: rgba(0, 218, 255, 0.95);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary::after {
  color: #f12827;
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  max-width: 68ch;
  margin: -2px 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.waitlist-section {
  padding-top: 14px;
}

.waitlist-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 207, 51, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(123, 16, 52, 0.16), transparent 20%),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.waitlist-copy p {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  max-width: 420px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.waitlist-form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  outline: none;
}

.waitlist-form input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.waitlist-form input:focus {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.05),
    0 0 20px rgba(255, 207, 51, 0.08),
    0 0 32px rgba(123, 16, 52, 0.14);
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Ko-fi uses its official overlay on desktop. */
.floatingchat-container-wrap,
.floatingchat-container-wrap-mobi,
.floating-chat-kofi-popup-iframe,
.floating-chat-kofi-popup-iframe-mobi,
.floating-chat-kofi-popup-iframe-closer-mobi {
  right: 24px !important;
  left: auto !important;
}

.mobile-kofi-fab {
  display: none;
}

.mobile-kofi-dialog {
  display: none;
}

@media (max-width: 760px) {
  /* Prevent any late Ko-fi overlay injected by a cached third-party script
     from widening the document before the native mobile button is ready. */
  .floatingchat-container-wrap,
  .floatingchat-container-wrap-mobi,
  .floating-chat-kofi-popup-iframe,
  .floating-chat-kofi-popup-iframe-mobi,
  .floating-chat-kofi-popup-iframe-closer-mobi {
    display: none !important;
  }

  .mobile-kofi-fab {
    position: fixed;
    z-index: 30;
    top: 18px;
    right: max(18px, env(safe-area-inset-right));
    bottom: auto;
    left: auto;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    padding: 0;
    cursor: pointer;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: linear-gradient(145deg, #a4cdfc, #72a5f2 58%, #4d75b6);
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.4),
      0 0 0 5px rgba(0, 185, 254, 0.13),
      0 0 24px rgba(0, 185, 254, 0.42);
    line-height: 1;
    transform: scale(1);
    animation: kofi-heartbeat 8s ease-in-out infinite;
  }

  .mobile-kofi-fab:hover {
    animation-play-state: paused;
    filter: brightness(1.12);
  }

  .mobile-kofi-fab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
  }

  .mobile-kofi-fab img {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }

  .mobile-kofi-dialog[hidden] {
    display: none;
  }

  .mobile-kofi-dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 18px 12px;
  }

  .mobile-kofi-dialog-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(2, 3, 5, 0.82);
    backdrop-filter: blur(7px);
  }

  .mobile-kofi-dialog-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    border-radius: 18px;
    background: #f9f9f9;
    box-shadow: 0 24px 74px rgba(0, 0, 0, 0.66);
    -webkit-overflow-scrolling: touch;
  }

  .mobile-kofi-iframe {
    display: block;
    width: 100%;
    height: 712px;
    border: 0;
    background: #f9f9f9;
  }

  .mobile-kofi-dialog-close {
    position: sticky;
    z-index: 2;
    top: 8px;
    left: calc(100% - 46px);
    display: grid;
    width: 36px;
    height: 36px;
    margin: 8px 8px -44px auto;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 50%;
    background: rgba(15, 16, 20, 0.86);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  }

  body.is-kofi-dialog-open {
    overflow: hidden;
  }
}

@keyframes kofi-heartbeat {
  0%,
  64%,
  100% {
    transform: scale(1);
  }

  68% {
    transform: scale(1.13);
  }

  72% {
    transform: scale(0.97);
  }

  76% {
    transform: scale(1.08);
  }

  80% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-kofi-fab {
    animation: none;
  }
}

@media (max-width: 980px) {
  .carousel-frame {
    grid-template-columns: 72px 1fr 72px;
    gap: 14px;
  }

  .carousel-arrow {
    width: 64px;
    height: 64px;
  }

  .carousel-viewport {
    max-height: 58vh;
  }

}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--max-width));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 8px;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    min-height: 0;
    padding-top: clamp(42px, 12vw, 52px);
  }

  .hero-product-stage {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero-visual::after {
    inset: 10% 7% 14%;
  }

  .hero-orbit-a {
    width: 86%;
    height: 58%;
    right: 3%;
  }

  .hero-orbit-b {
    width: 70%;
    height: 45%;
    right: 12%;
  }

  .hero-product-slide {
    width: 100%;
    margin-right: 0;
  }

  .hero-feature-float {
    font-size: 0.66rem;
    top: 11px;
    letter-spacing: 0.08em;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-points {
    justify-content: center;
  }

  .hero-journey {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  h1 {
    font-size: clamp(2.3rem, 10vw, 3.6rem);
  }

  .carousel-frame {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-viewport {
    max-height: none;
    aspect-ratio: 2398 / 1072;
  }

  .app-download {
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
  }

  .app-store-links {
    width: 100%;
    gap: 8px;
  }

  .faq-section {
    padding: 54px 0 34px;
  }

  .faq-item summary {
    padding-top: 19px;
    padding-bottom: 19px;
    font-size: 0.98rem;
  }

  .phone-frame {
    border-radius: 18px;
    box-shadow:
      0 18px 34px rgba(0, 0, 0, 0.24),
      0 0 0 7px #0b0c10,
      0 0 0 8px rgba(255, 255, 255, 0.05),
      0 0 0 10px rgba(15, 16, 20, 0.92);
  }

  .carousel-slide {
    inset: 0;
    border-radius: inherit;
  }

  .waitlist-shell {
    padding: 22px;
  }
}
