/* Whoosh! marketing site. Plain CSS, no build step. */

:root {
  --sky: #8ec5ff;
  --periwinkle: #c9b8ff;
  --pink: #ffd6e8;
  --peach: #ffebd2;
  --ink: #2b2a4c;
  --ink-soft: #54527a;
  --coral: #ff7a8a;
  --coral-lip: #d9566a;
  --mint: #5fddb0;
  --mint-lip: #2fae86;
  --sun: #ffc94d;
  --sun-lip: #d79e1e;
  --lav: #b79cff;
  --lav-lip: #8467e0;
  --cream: #fff9f2;
  --white: #fff;
  --line: rgba(183, 156, 255, 0.35);
  --radius: 28px;
  --gutter: clamp(16px, 4.5vw, 32px);
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sky-gradient: linear-gradient(180deg, #8ec5ff 0%, #c9b8ff 38%, #ffd6e8 72%, #ffebd2 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration-color: var(--lav);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

a {
  text-decoration-skip-ink: none;
}

a:hover {
  text-decoration-color: var(--coral);
}

:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px #fff;
  border-radius: 12px;
}

.night :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 7px var(--ink);
}

.container {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Buttons: chunky with a darker bottom lip ---------- */

.btn {
  --bg: var(--coral);
  --lip: var(--coral-lip);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;
  padding: 0.7em 1.6em;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--lip), 0 14px 24px -8px rgba(43, 42, 76, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--lip), 0 18px 28px -8px rgba(43, 42, 76, 0.28);
}

.btn:active,
.btn.is-pressed {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--lip), 0 4px 8px -4px rgba(43, 42, 76, 0.3);
}

.btn svg {
  width: 1.4em;
  height: 1.4em;
  flex: none;
}

.btn--coral {
  --bg: var(--coral);
  --lip: var(--coral-lip);
}

.btn--mint {
  --bg: var(--mint);
  --lip: var(--mint-lip);
}

.btn--sun {
  --bg: var(--sun);
  --lip: var(--sun-lip);
}

.btn--lav {
  --bg: var(--lav);
  --lip: var(--lav-lip);
}

.btn--soft {
  --bg: #fff;
  --lip: #cfc3f5;
}

.btn--soon {
  cursor: default;
}

.btn--soon:hover,
.btn--soon:active {
  transform: none;
  box-shadow: 0 6px 0 var(--lip), 0 14px 24px -8px rgba(43, 42, 76, 0.25);
}

.btn--sm {
  min-height: 44px;
  padding: 0.45em 1.2em;
  font-size: 0.98rem;
  box-shadow: 0 4px 0 var(--lip);
}

.btn--xl {
  min-height: 76px;
  padding: 0.6em 2.4em;
  font-size: 1.5rem;
}

.btn[aria-disabled="true"]:not(.btn--soon) {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  top: 12px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 0 rgba(183, 156, 255, 0.35), 0 12px 30px -12px rgba(43, 42, 76, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}

.nav__links a:hover {
  background: rgba(183, 156, 255, 0.22);
}

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

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(183, 156, 255, 0.22);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu[open] summary {
  background: var(--lav);
}

.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 220px;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(183, 156, 255, 0.4), 0 20px 40px -12px rgba(43, 42, 76, 0.3);
}

.menu__panel a {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 500;
  text-decoration: none;
}

.menu__panel a:hover {
  background: var(--cream);
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }

  .menu {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav__right .btn {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding: 120px 0 0;
  background: var(--sky-gradient);
  isolation: isolate;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  align-items: center;
  padding-bottom: 72px;
}

.hero__puff {
  order: -1;
  justify-self: center;
  width: min(62vw, 250px);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.lockup img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(43, 42, 76, 0.18), 0 14px 24px -8px rgba(43, 42, 76, 0.35);
}

.lockup span {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hook {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.6rem, 8.4vw, 5rem);
  line-height: 1;
  margin-bottom: 18px;
}

.hero h1 .whoosh {
  display: inline-block;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 4px 0 var(--lav-lip), 0 10px 24px rgba(43, 42, 76, 0.25);
}

.hero__lead {
  max-width: 34em;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: var(--ink);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 14px;
  margin: 28px 0 14px;
}

.hero__apk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 22px;
}

.hero__apk small {
  max-width: 24em;
  font-size: 0.92rem;
  line-height: 1.4;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .hero__cta .btn {
    width: 100%;
  }
}

@media (min-width: 880px) {
  .hero {
    padding-top: 128px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px;
    padding-bottom: 96px;
  }

  .hero__puff {
    order: 0;
    width: min(100%, 440px);
  }
}

.hero__wave {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(40px, 7vw, 90px);
  color: var(--cream);
}

/* Drifting CSS clouds */

.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cloud {
  position: absolute;
  left: 0;
  top: var(--y);
  width: var(--w);
  height: calc(var(--w) * 0.3);
  border-radius: 999px;
  background: #fff;
  opacity: var(--o, 0.8);
  animation: drift var(--t) linear infinite;
  animation-delay: var(--d);
  filter: blur(0.3px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 46%;
  height: 170%;
  left: 14%;
  bottom: 28%;
}

.cloud::after {
  width: 34%;
  height: 130%;
  right: 16%;
  bottom: 30%;
}

@keyframes drift {
  from {
    transform: translateX(-130%);
  }

  to {
    transform: translateX(calc(100vw + 30%));
  }
}

.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.9;
  animation: twinkle 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* ---------- Puff animation ---------- */

.puff {
  width: 100%;
  height: auto;
  overflow: visible;
}

.puff__float {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bob 4.4s ease-in-out infinite;
}

.puff__shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: shadow 4.4s ease-in-out infinite;
}

.puff__eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5.5s infinite;
}

.puff__wind {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0.85;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) scale(1.02, 0.98);
  }

  50% {
    transform: translateY(-12px) scale(0.985, 1.02);
  }
}

@keyframes shadow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.14;
  }

  50% {
    transform: scale(0.82);
    opacity: 0.08;
  }
}

@keyframes blink {
  0%,
  91%,
  100% {
    transform: scaleY(1);
  }

  94.5% {
    transform: scaleY(0.08);
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
}

.section--white {
  background: #fff;
}

.section--lav {
  background: linear-gradient(180deg, #f4eeff 0%, #fbf3ff 100%);
}

.section--peach {
  background: linear-gradient(180deg, #fff4e6 0%, #ffeef3 100%);
}

.anchor {
  scroll-margin-top: 80px;
}

.section-head {
  max-width: 44rem;
  margin: 0 0 clamp(32px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.h2 {
  font-size: clamp(2rem, 5.2vw, 3.3rem);
}

.section-head p {
  margin-top: 16px;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(183, 156, 255, 0.28);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b3aa0;
}

.section-head .kicker {
  margin-bottom: 12px;
  color: #4b3aa0;
}

.card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(183, 156, 255, 0.25), 0 22px 40px -24px rgba(43, 42, 76, 0.3);
}

/* ---------- Demo ---------- */

.demo {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(16px, 4vw, 32px);
  text-align: center;
  background: linear-gradient(180deg, #e6f2ff 0%, #f1e9ff 55%, #ffe9f3 100%);
  border: 3px solid #fff;
  border-radius: 40px;
  box-shadow: 0 8px 0 rgba(183, 156, 255, 0.4), 0 30px 60px -30px rgba(43, 42, 76, 0.45);
}

.demo__scene {
  width: 100%;
  height: auto;
  overflow: visible;
}

.demo__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.demo__btn {
  min-width: min(100%, 320px);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.demo__status {
  min-height: 3.2em;
  max-width: 28em;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.demo__hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

kbd {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 8px;
  background: #fff;
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  font: inherit;
  font-size: 0.9em;
  font-weight: 600;
}

.flame {
  transform-origin: 0 0;
  animation: flicker 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.23s);
  transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.3s ease 0.12s;
}

.glow {
  transition: opacity 0.3s;
}

@keyframes flicker {
  0%,
  100% {
    transform: rotate(-2deg) scale(1, 1);
  }

  50% {
    transform: rotate(3deg) scale(0.97, 1.08);
  }
}

.is-blowing .candle:not(.is-out) .flame {
  animation: bend 0.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.04s);
}

@keyframes bend {
  from {
    transform: rotate(34deg) scale(1.05, 0.82);
  }

  to {
    transform: rotate(52deg) scale(1.12, 0.7);
  }
}

.candle.is-out .flame {
  animation: none;
  transform: rotate(70deg) scale(0.1);
  opacity: 0;
}

.candle.is-out .glow {
  opacity: 0;
}

.smoke {
  fill: none;
  stroke: #b9b3d6;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
}

.candle.is-out .smoke {
  animation: smoke 1.8s ease-out forwards;
}

@keyframes smoke {
  0% {
    opacity: 0.9;
    transform: translate(0, 0) scale(0.6);
  }

  100% {
    opacity: 0;
    transform: translate(10px, -34px) scale(1.2);
  }
}

.demo__wind path {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 26 140;
  opacity: 0;
}

.is-blowing .demo__wind path {
  opacity: 0.95;
  animation: wind 0.7s linear infinite;
}

.is-blowing .demo__wind path:nth-child(2) {
  animation-delay: -0.23s;
}

.is-blowing .demo__wind path:nth-child(3) {
  animation-delay: -0.46s;
}

@keyframes wind {
  from {
    stroke-dashoffset: 40;
  }

  to {
    stroke-dashoffset: -150;
  }
}

.mouth-o {
  display: none;
}

.is-blowing .mouth-smile {
  display: none;
}

.is-blowing .mouth-o {
  display: block;
}

.is-done .mouth-smile {
  display: block;
}

.is-done .mouth-o {
  display: none;
}

.demo__puff-cheeks {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s;
}

.is-blowing .demo__puff-cheeks {
  transform: scale(1.3);
}

.confetti {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.is-done .confetti {
  opacity: 1;
  animation: pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

@keyframes pop {
  from {
    transform: scale(0.2);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px 30px;
  counter-increment: step;
}

.step__icon {
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 28px;
  background: var(--bg, var(--pink));
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

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

.weather {
  margin-top: clamp(32px, 5vw, 52px);
  text-align: center;
}

.weather h3 {
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.weather__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wx {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
  box-shadow: 0 4px 0 var(--lip);
}

.wx svg {
  width: 30px;
  height: 30px;
}

.wx--stormy {
  --bg: #d6d2f2;
  --lip: #b3add9;
}

.wx--rainy {
  --bg: #cde5ff;
  --lip: #a2c7f2;
}

.wx--foggy {
  --bg: #ece9f6;
  --lip: #cdc8e2;
}

.wx--wiggly {
  --bg: #ffd6dc;
  --lip: #f0abb5;
}

.wx--sunny {
  --bg: #ffeaa8;
  --lip: #efc860;
}

.wx--sleepy {
  --bg: #e1d6ff;
  --lip: #bba7ee;
}

.weather__note {
  max-width: 40rem;
  margin: 18px auto 0;
  color: var(--ink-soft);
}

.breath-note {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: clamp(32px, 5vw, 52px);
  padding: 26px;
  background: linear-gradient(135deg, #eaf4ff, #f4ecff);
}

.breath-note h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.breath-note p {
  margin: 0;
  color: var(--ink-soft);
}

.breath-note__icon {
  width: 72px;
  height: 72px;
}

@media (min-width: 720px) {
  .breath-note {
    grid-template-columns: auto 1fr;
    gap: 28px;
    padding: 30px 36px;
  }
}

/* ---------- Games ---------- */

.games {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.game__art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg, var(--pink));
}

.game__art svg {
  width: 100%;
  height: 100%;
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(43, 42, 76, 0.15);
}

.tag--free {
  background: var(--mint);
}

.tag--plus {
  background: var(--lav);
}

.game__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 22px;
}

.game h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.game p {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--ink-soft);
}

.technique {
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--cream);
  font-size: 0.95rem;
  line-height: 1.4;
}

.technique strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #4b3aa0;
}

.games-note {
  margin: 28px 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
}

.fl {
  animation: flicker 1.3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.fl:nth-of-type(2) {
  animation-delay: -0.4s;
}

.fl:nth-of-type(3) {
  animation-delay: -0.8s;
}

.rise {
  animation: rise 6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.rise:nth-of-type(2n) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.rise:nth-of-type(3n) {
  animation-delay: -4s;
}

@keyframes rise {
  0%,
  100% {
    transform: translateY(3px);
  }

  50% {
    transform: translateY(-5px);
  }
}

.pulse {
  animation: pulse 3.4s ease-in-out infinite;
}

.pulse:nth-of-type(2n) {
  animation-delay: -1.2s;
}

.pulse:nth-of-type(3n) {
  animation-delay: -2.2s;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

/* ---------- Screenshots ---------- */

.shots[hidden] {
  display: none;
}

.shots__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.shots__nav {
  display: none;
  gap: 12px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

@media (min-width: 720px) {
  .shots__nav {
    display: flex;
  }
}

.round-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--lav);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--lav-lip);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.round-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--lav-lip);
}

.round-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.round-btn svg {
  width: 26px;
  height: 26px;
}

.shots__track {
  display: flex;
  gap: clamp(18px, 3vw, 32px);
  margin: 0;
  padding: 12px max(var(--gutter), calc((100vw - 1120px) / 2)) 40px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1120px) / 2));
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

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

.shot {
  flex: none;
  width: clamp(190px, 56vw, 250px);
  scroll-snap-align: start;
}

.shot[hidden] {
  display: none;
}

.phone {
  position: relative;
  aspect-ratio: 1206 / 2622;
  padding: 9px;
  border-radius: 38px;
  background: var(--ink);
  box-shadow: 0 7px 0 #17162f, 0 34px 50px -24px rgba(43, 42, 76, 0.6);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  width: 28%;
  height: 14px;
  border-radius: 999px;
  background: #0f0e24;
  transform: translateX(-50%);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: linear-gradient(180deg, #c9e0ff, #e3d6ff 60%, #ffd9e9);
}

.shot figcaption {
  margin-top: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 1.02rem;
}

.shot figcaption span {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Parents ---------- */

.pillars {
  display: grid;
  gap: 22px;
}

@media (min-width: 760px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px;
}

.pillar__icon {
  width: 60px;
  height: 60px;
  padding: 12px;
  border-radius: 20px;
  background: var(--bg);
}

@media (max-width: 480px) {
  .pillar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.pillar h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.pillar .badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--lav);
  vertical-align: middle;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.science {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 2px dashed rgba(183, 156, 255, 0.7);
}

.science p {
  margin: 0;
  color: var(--ink);
}

.science strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.science svg {
  width: 64px;
  height: auto;
}

@media (min-width: 640px) {
  .science {
    grid-template-columns: auto 1fr;
    gap: 24px;
  }
}

/* ---------- Night (privacy + footer) ---------- */

.night {
  color: #fff;
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(2px 2px at 32% 70%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(3px 3px at 58% 18%, rgba(255, 233, 160, 0.9), transparent 60%),
    radial-gradient(2px 2px at 78% 62%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(2px 2px at 92% 16%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(2px 2px at 46% 88%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(180deg, #2b2a4c 0%, #3c3877 100%);
}

.night .section-head p {
  color: #dcd6f7;
}

.night .kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.night a {
  color: #fff;
  text-decoration-color: var(--sun);
}

.promises {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.promise {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.promise h3 {
  margin: 14px 0 6px;
  font-size: 1.3rem;
}

.promise p {
  margin: 0;
  color: #dcd6f7;
  font-size: 1rem;
}

.promise__icon {
  width: 52px;
  height: 52px;
  padding: 11px;
  border-radius: 18px;
  background: var(--bg);
}

.promise--wide {
  grid-column: 1 / -1;
  background: rgba(95, 221, 176, 0.16);
  border-color: rgba(95, 221, 176, 0.5);
}

@media (min-width: 720px) {
  .promise--wide {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 22px;
    align-items: center;
  }

  .promise--wide .promise__icon {
    grid-row: span 2;
  }

  .promise--wide h3 {
    margin-top: 0;
  }
}

.night__link {
  margin: 28px 0 0;
  text-align: center;
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 960px) {
  .pricing {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: stretch;
  }
}

.plan {
  padding: clamp(24px, 4vw, 36px);
}

.plan h3 {
  font-size: 1.7rem;
}

.plan__price {
  margin: 10px 0 4px;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.plan__price small {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.plan__sub {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

.plan--plus {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #f6f0ff 100%);
  border: 3px solid var(--lav);
  box-shadow: 0 8px 0 var(--lav-lip), 0 30px 50px -26px rgba(132, 103, 224, 0.6);
}

.plan__ribbon {
  position: absolute;
  top: -16px;
  left: 28px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 4px 0 var(--sun-lip);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticks {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 36px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2A4C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.ticks li.off {
  color: #6a6890;
}

.ticks li.off::before {
  background: #e8e3f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6890' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='11' width='12' height='9' rx='2.5'/%3E%3Cpath d='M8.5 11V8.5a3.5 3.5 0 0 1 7 0V11'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.plan__split {
  display: grid;
  gap: 22px;
}

@media (min-width: 640px) {
  .plan__split {
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
  }
}

.options {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.option {
  position: relative;
  padding: 16px 20px;
  border-radius: 22px;
  background: #fff;
  border: 2px solid var(--line);
}

.option--hero {
  border-color: var(--coral);
  background: #fff6f7;
  box-shadow: 0 4px 0 var(--coral-lip);
}

.option strong {
  display: block;
  font-size: 1.05rem;
}

.option b {
  font-size: 1.7rem;
  font-weight: 700;
}

.option span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.option .flag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--coral);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.option .flag--mint {
  background: var(--mint);
}

.fine {
  margin: 22px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

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

.faq {
  max-width: 48rem;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq details {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 5px 0 rgba(183, 156, 255, 0.22);
}

.faq summary {
  position: relative;
  display: block;
  padding: 20px 64px 20px 24px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  border-radius: 22px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--lav) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2A4C' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--sun);
}

.faq__a {
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

.faq__a p:last-child {
  margin-bottom: 0;
}

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  overflow: clip;
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
  background: linear-gradient(0deg, #8ec5ff 0%, #c9b8ff 45%, #ffd6e8 100%);
}

.cta h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.cta p {
  max-width: 32em;
  margin-inline: auto;
}

.cta .hero__cta {
  justify-content: center;
}

.cta__puff {
  width: 150px;
  margin: 0 auto 8px;
}

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

.site-footer {
  padding: 56px 0 40px;
  color: #fff;
  background: var(--ink);
}

.footer__grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  margin: 14px 0 0;
  max-width: 26em;
  color: #cfc9ee;
  font-size: 1rem;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sun);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer a:hover {
  text-decoration-color: var(--sun);
}

.footer__legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  color: #b9b3dc;
}

.footer__legal p {
  max-width: none;
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #b9b3dc;
}

/* ---------- Legal pages ---------- */

.doc-hero {
  padding: 120px 0 56px;
  text-align: center;
  background: var(--sky-gradient);
}

.doc-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.doc-hero p {
  margin: 12px 0 0;
  font-weight: 500;
}

.doc {
  max-width: 46rem;
  margin: -24px auto 0;
  padding: clamp(24px, 5vw, 48px);
  position: relative;
}

.doc-wrap {
  padding-bottom: 80px;
}

.doc h2 {
  margin: 2.2em 0 0.5em;
  font-size: 1.6rem;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.2rem;
}

.doc ul {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.4em;
}

.doc li::marker {
  color: var(--lav-lip);
}

.callout {
  margin: 0 0 2em;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #e6fbf3, #eef6ff);
  border: 2px solid rgba(95, 221, 176, 0.6);
}

.callout h2 {
  margin: 0 0 8px !important;
  font-size: 1.3rem !important;
}

.callout ul {
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .cloud {
    transform: translateX(var(--rx, 20vw));
  }

  .is-blowing .candle:not(.is-out) .flame {
    transform: rotate(42deg) scale(1.08, 0.76);
  }

  .candle.is-out .smoke {
    opacity: 0;
  }

  .demo__wind path {
    stroke-dasharray: none;
  }

  .is-blowing .demo__wind path {
    opacity: 0.7;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
