/* NoSlop marketing site
   Playful water world: bright app-cyan scenes, wavy section edges, chunky
   rounded type (Baloo 2 + Nunito), white cards with hard offset shadows,
   cute droplet mascots. Inspired by thebrainrotapp.com's structure, painted
   in the NoSlop app's own visual language. */

:root {
  --sky: #35c6e8;
  --sky-deep: #23a7cf;
  --sky-light: #a9e7f8;
  --sky-pale: #d6f4fd;
  --paper: #fdfeff;
  --ink: #1e3a4c;
  --ink-2: #46647a;
  --muted: #7c93a3;
  --card: #ffffff;
  --wash: #d9f4fc;
  --cream: #fff3dc;
  --blush: #ffb3c0;

  --shadow-card: 0 4px 0 rgba(30, 58, 76, 0.08);
  --shadow-card-hover: 0 9px 0 rgba(30, 58, 76, 0.1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Baloo 2", "Nunito", -apple-system, sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --pad: clamp(20px, 4vw, 60px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--sky-pale);
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  overflow-x: clip;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

picture {
  display: block;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: var(--wash);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  transition: transform 0.25s var(--spring);
}

.brand:hover {
  transform: scale(1.05);
}

.brand svg {
  width: 1.9rem;
  height: 1.9rem;
}

/* ---------- pills & badges ---------- */

.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: var(--sky);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 3px 0 rgba(30, 58, 76, 0.18);
  transition: transform 0.25s var(--spring), box-shadow 0.2s;
}

.btn-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 0 rgba(30, 58, 76, 0.18);
}

.btn-pill:active {
  transform: translateY(0) scale(0.97);
}

.asb {
  height: 100%;
  width: auto;
}

/* ---------- phone frames ---------- */

.phone {
  background: #12242f;
  border-radius: clamp(26px, 3vw, 44px);
  padding: clamp(6px, 0.62vw, 10px);
  box-shadow: 0 24px 40px rgba(16, 42, 58, 0.28);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: clamp(20px, 2.4vw, 35px);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1400;
  background: var(--sky-pale);
  overflow: hidden;
  border-radius: 0 0 2.08% 2.08% / 0 0 2.71% 2.71%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: clamp(1rem, 2.2vw, 2rem) var(--pad);
  display: flex;
  justify-content: center;
}

.brand-hero {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.brand-hero svg {
  width: clamp(1.8rem, 2.6vw, 2.4rem);
  height: clamp(1.8rem, 2.6vw, 2.4rem);
}

.hero-inner {
  position: absolute;
  top: 6.5%;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: clamp(1.9rem, 5.6vw, 4.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-title span {
  display: block;
}

.hero-sub {
  margin-top: clamp(0.6rem, 1.2vw, 1.1rem);
  font-size: clamp(0.95rem, 1.5vw, 1.3rem);
  font-weight: 600;
  color: var(--ink-2);
  max-width: min(34rem, calc(100vw - 2.5rem));
}

.hero-cta {
  margin-top: clamp(0.9rem, 1.6vw, 1.6rem);
  display: inline-block;
  height: clamp(42px, 4.2vw, 60px);
  transition: transform 0.25s var(--spring);
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.04);
}

.hero-cta:active {
  transform: translateY(-1px) scale(0.97);
}

.hero-phone {
  position: absolute;
  left: 50%;
  bottom: 3.2%;
  transform: translateX(-50%) translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  width: 23%;
  max-width: 360px;
  z-index: 2;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  z-index: 3;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ---------- ABOUT + STATS ---------- */

.about {
  background: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad);
  text-align: center;
}

.about-copy {
  max-width: 32rem;
  margin: 0 auto;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-2);
}

.about-copy p + p {
  margin-top: 1rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.75rem;
}

.stat {
  position: relative;
  padding: 0 2.4rem;
}

/* droplet-sprig ornaments framing each stat */
.stat::before,
.stat::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.7rem;
  height: 3rem;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 46" fill="none"><path d="M8 42 C3.5 32 3.5 19 10.5 7" stroke="%237ADCF2" stroke-width="2.4" stroke-linecap="round"/><path d="M13.5 3.2c2.6 3.4 3.9 5.6 3.9 7.4a3.9 3.9 0 1 1-7.8 0c0-1.8 1.3-4 3.9-7.4Z" fill="%237ADCF2"/><path d="M5.6 15.4c2.9 2.9 4.5 5 4.9 6.7a3.6 3.6 0 1 1-7 1.6c-.4-1.7.2-4.2 2.1-8.3Z" fill="%23A9E7F8"/><path d="M3.4 28.6c3.4 2.2 5.5 3.9 6.3 5.4a3.4 3.4 0 1 1-6 3.2c-.8-1.5-.9-4-.3-8.6Z" fill="%237ADCF2"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.stat::before {
  left: 0;
  transform: translateY(-50%);
}

.stat::after {
  right: 0;
  transform: translateY(-50%) scaleX(-1);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: var(--sky-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 0.15rem;
  max-width: 15rem;
}

/* ---------- FEATURES ---------- */

.features {
  background: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
}

.features-head,
.apps-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
}

.features-head h2,
.apps-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  color: var(--ink);
}

.features-head p,
.apps-head p {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 600;
  color: var(--ink-2);
  max-width: 36rem;
  margin-inline: auto;
}

.features-body {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  border-radius: 20px;
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 0.15rem;
}

.feature-item h3 {
  font-size: 1.3rem;
  color: var(--ink);
}

.feature-item p {
  margin-top: 0.25rem;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
}

/* phones standing in a little pool of saved water */
.phone-pool {
  position: relative;
  padding-top: 1rem;
}

.pool-back,
.pool-front {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0;
  pointer-events: none;
}

.pool-back {
  height: 58%;
  z-index: 0;
}

.pool-front {
  height: 46%;
  z-index: 2;
}

.pool-back svg,
.pool-front svg {
  width: 100%;
  height: 100%;
}

.pool-phones {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.6rem, 1.6vw, 1.4rem);
  padding: 0 1rem 18px;
}

.pool-phones .phone {
  width: clamp(110px, 15vw, 200px);
  box-shadow: 0 18px 30px rgba(16, 42, 58, 0.2);
}

.pool-phones .pool-1 {
  transform: rotate(-4deg);
  transform-origin: bottom center;
}

.pool-phones .pool-2 {
  width: clamp(140px, 18.5vw, 250px);
  margin-bottom: 34px;
  z-index: 1;
}

.pool-phones .pool-3 {
  transform: rotate(4deg);
  transform-origin: bottom center;
}

/* ---------- PROTECTED APPS MARQUEE ---------- */

.apps {
  background: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}

.apps-head {
  padding: 0 var(--pad);
}

.apps-row {
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.js .marquee-track {
  animation: marquee 40s linear infinite;
}

.apps-row:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 1rem;
  padding: 12px 1rem 12px 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.app-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border-radius: 18px;
  padding: 1rem 1.3rem 1rem 1rem;
  box-shadow: var(--shadow-card);
  flex: 0 0 auto;
  min-width: clamp(230px, 24vw, 290px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.app-card img {
  width: 3.4rem;
  height: 3.4rem;
  flex: 0 0 auto;
}

.app-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.app-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.app-card.soon {
  opacity: 0.65;
}

.apps-foot {
  margin: 2rem auto 0;
  padding: 0 var(--pad);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 34rem;
}

/* ---------- CTA + FOOTER (beach scene) ---------- */

.cta {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1480;
  overflow: hidden;
  background: var(--paper);
  border-radius: 4.44% 4.44% 0 0 / 4.32% 4.32% 0 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cta-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(3rem, 8vw, 7rem);
}

.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--ink);
}

.cta-inner h2 span {
  display: block;
}

.cta-inner h2 span + span {
  margin-top: 0.35em;
}

.cta-button {
  margin-top: 2.5rem;
  display: inline-block;
  height: clamp(48px, 4.4vw, 62px);
  transition: transform 0.25s var(--spring);
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.04);
}

.cta-button:active {
  transform: translateY(-1px) scale(0.97);
}

.footer-cols {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 21%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 92%;
  max-width: 680px;
  text-align: center;
  justify-items: center;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-col a {
  display: block;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.2rem 0;
  transition: color 0.15s;
}

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

.cta-wordmark {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 1%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 16.5vw, 15rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  user-select: none;
}

.copyright {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.75;
}

/* ---------- LEGAL PAGES ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 254, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(30, 58, 76, 0.07);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-hero {
  position: relative;
  background: var(--sky);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad) clamp(5rem, 9vw, 7rem);
  text-align: center;
  color: #fff;
}

.legal-hero-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wash);
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-top: 0.6rem;
}

.updated {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wash);
}

.white-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(34px, 5vw, 70px);
}

.legal-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad) clamp(4rem, 7vw, 6rem);
}

.connect-layout {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad) clamp(4rem, 7vw, 6rem);
}

.connect-card {
  text-align: center;
}

.connect-card h2 {
  margin-top: 0.6rem;
}

.connect-card .btn-pill {
  display: inline-flex;
  margin-top: 1.4rem;
}

.connect-icon {
  font-size: 2.8rem;
}

.connect-note {
  margin-top: 1.25rem !important;
  font-size: 0.82rem !important;
  color: var(--muted) !important;
}

@media (min-width: 960px) {
  .legal-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
  }
}

.contents {
  position: sticky;
  top: 84px;
  background: var(--card);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
}

@media (max-width: 959px) {
  .contents {
    position: static;
  }
}

.contents h2 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.contents ol {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.contents a {
  color: var(--ink-2);
  font-weight: 700;
  display: flex;
  line-height: 1.35;
  transition: color 0.15s;
}

.contents a:hover {
  color: var(--sky-deep);
}

.legal-body {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 68ch;
}

.legal-section {
  background: var(--card);
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}

.legal-section h2 {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.8rem;
  scroll-margin-top: 90px;
}

.legal-section p {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.97rem;
}

.legal-section p + p {
  margin-top: 0.8rem;
}

.num {
  color: var(--sky-deep);
  font-weight: 800;
  margin-right: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.contents .num {
  flex: 0 0 1.6em;
  margin-right: 0;
}

.mini-footer {
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  padding: clamp(2rem, 4vw, 3rem) var(--pad);
}

.mini-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-weight: 700;
  color: var(--ink-2);
}

.mini-links a:hover {
  color: var(--ink);
}

.mini-copy {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .features-body {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pool-phones .phone {
    width: clamp(120px, 24vw, 200px);
  }

  .pool-phones .pool-2 {
    width: clamp(150px, 30vw, 250px);
  }
}

@media (max-width: 700px) {
  .hero {
    aspect-ratio: 390 / 962;
    border-radius: 0 0 5% 5% / 0 0 2% 2%;
  }

  .site-nav {
    padding: clamp(1.5rem, 7vw, 2.75rem) var(--pad) 0;
  }

  .hero-inner {
    top: clamp(5.5rem, 22vw, 8rem);
    padding: 0 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.05rem, 9.4vw, 2.9rem);
    line-height: 1.12;
  }

  .hero-sub {
    font-size: clamp(0.92rem, 3.7vw, 1.2rem);
    margin-top: clamp(0.9rem, 4vw, 1.5rem);
    max-width: 100%;
  }

  .hero-cta {
    margin-top: clamp(1.25rem, 6vw, 2rem);
    height: clamp(46px, 12vw, 54px);
  }

  .hero-phone {
    width: 58%;
    max-width: none;
    bottom: 2%;
  }

  .hero-wave {
    height: 20%;
  }

  .stat {
    padding: 0 2.1rem;
  }

  .pool-phones {
    gap: 0.5rem;
  }

  .pool-phones .phone {
    width: 27vw;
  }

  .pool-phones .pool-2 {
    width: 33vw;
    margin-bottom: 24px;
  }

  .pool-front {
    height: 54%;
  }

  .app-card {
    min-width: min(70vw, 270px);
  }

  .cta {
    aspect-ratio: 390 / 1133;
    border-radius: 28px 28px 0 0;
  }

  .cta-inner {
    padding-top: clamp(3.5rem, 16vw, 5.5rem);
  }

  .cta-inner h2 {
    font-size: clamp(2.1rem, 9.6vw, 2.8rem);
  }

  .cta-button {
    margin-top: 1.75rem;
    height: clamp(46px, 12vw, 54px);
  }

  .footer-cols {
    bottom: auto;
    top: 58%;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem 1rem;
    text-align: left;
    justify-items: start;
    max-width: 520px;
  }

  .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .footer-col a {
    font-size: 0.9rem;
    padding: 0.25rem 0;
  }

  .cta-wordmark {
    font-size: 21vw;
    bottom: 2.4%;
  }
}

@media (max-width: 560px) {
  .stats {
    gap: 1.6rem;
  }

  .stat::before,
  .stat::after {
    width: 1.4rem;
    height: 2.5rem;
  }

  .pool-phones .phone {
    width: 29vw;
  }

  .pool-phones .pool-2 {
    width: 35vw;
  }
}

/* ---------- MOTION ----------
   Entrance/float effects animate the standalone `translate` property so they
   compose with `transform`-based positioning (centering, rotation poses). */

@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 22px;
  }
}

@keyframes hero-phone-in {
  from {
    opacity: 0;
    translate: 0 70px;
  }
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}


@media (prefers-reduced-motion: no-preference) {
  .hero-title {
    animation: rise-in 0.7s var(--ease-out) both;
  }

  .hero-sub {
    animation: rise-in 0.7s var(--ease-out) 0.12s both;
  }

  .hero-cta {
    animation: rise-in 0.7s var(--ease-out) 0.24s both;
  }

  .hero-phone {
    animation: hero-phone-in 0.9s var(--ease-out) 0.25s both;
  }

  .pool-phones .pool-1 {
    animation: bob 5.5s ease-in-out 0.9s infinite;
  }

  .pool-phones .pool-2 {
    animation: bob 5.5s ease-in-out infinite;
  }

  .pool-phones .pool-3 {
    animation: bob 5.5s ease-in-out 1.8s infinite;
  }
}

/* scroll reveal (script.js adds .is-visible; hidden state only under html.js
   so content stays visible without scripts). transform/box-shadow are listed
   so this rule doesn't kill the per-card hover transitions. */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 0.7s ease var(--reveal-delay, 0s),
    translate 0.7s var(--ease-out) var(--reveal-delay, 0s),
    transform 0.2s,
    box-shadow 0.2s;
}

.js .reveal.is-visible {
  opacity: 1;
  translate: none;
}

.feature-list .feature-item:nth-child(2) {
  --reveal-delay: 0.08s;
}

.feature-list .feature-item:nth-child(3) {
  --reveal-delay: 0.16s;
}

.feature-list .feature-item:nth-child(4) {
  --reveal-delay: 0.24s;
}

.phone-pool.reveal {
  --reveal-delay: 0.15s;
}

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

  .js .reveal {
    opacity: 1;
    translate: none;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .js .marquee-track {
    animation: none;
  }
}
