/* Yoomy landing — measured 1:1 from the Framer original.
   Two layouts, same as Framer: desktop ≥1200px, phone/tablet below. */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.6);

  /* desktop (≥1200px) */
  --pad-top: 140px;
  --logo: 69px;
  --h1-size: 76px;
  --h1-lh: 83.08px;
  --h1-gap: 28px;
  --btn-gap: 62px;
  --btn-h: 62px;
  --btn-font: 21px;
  --btn-radius: 21px;
  --btn-pad: 0 20.77px 0 17.31px;
  --btn-inner-gap: 14px;
  --phone-gap: 145px;
  --phone-w: 624px;
  --screen-radius: 42px;
  --fade-blur: 23px;
  --lead-gap: 72px;
  --lead-w: 900px;
  --lead-size: 55px;
  --lead-lh: 69.23px;
  --btn2-gap: 120px;
  --footer-gap: 85px;
  --footer-size: 21px;
  --footer-dot-gap: 27px;
  --pad-bottom: 139px;
}

@media (max-width: 1199.98px) {
  :root {
    --pad-top: 64px;
    --logo: 40px;
    --h1-size: 32.66px;
    --h1-lh: 35.63px;
    --h1-gap: 12px;
    --btn-gap: 40px;
    --btn-h: 45px;
    --btn-font: 15px;
    --btn-radius: 15px;
    --btn-pad: 0 14.8px 0 12.4px;
    --btn-inner-gap: 10px;
    --phone-gap: 61px;
    --phone-w: 269px;
    --screen-radius: 18px;
    --fade-blur: 10px;
    --lead-gap: 39px;
    --lead-w: 354px;
    --lead-size: 23.75px;
    --lead-lh: 29.69px;
    --btn2-gap: 64px;
    --footer-gap: 52px;
    --footer-size: 13px;
    --footer-dot-gap: 17px;
    --pad-bottom: 115px;
  }
}

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

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--pad-top) 0 var(--pad-bottom);
  overflow-x: clip;
  min-height: 100vh;
}

/* ---------- Logo ---------- */
.logo { width: var(--logo); height: var(--logo); }
.logo svg { display: block; width: 100%; height: 100%; }

/* ---------- Headline (Inter Display cut) ---------- */
.title {
  margin: var(--h1-gap) 0 0;
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  letter-spacing: -0.04em;
  font-weight: 600;
  font-variation-settings: "opsz" 32;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--btn-inner-gap);
  height: var(--btn-h);
  margin-top: var(--btn-gap);
  padding: var(--btn-pad);
  border-radius: var(--btn-radius);
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: var(--btn-font);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 14;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn__icon { width: 0.86em; height: 1.1em; flex: none; transform: translateY(-0.06em); }
.btn--second { margin-top: var(--btn2-gap); }

/* ---------- Phone ---------- */
.phone {
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 624 / 760;
  margin-top: var(--phone-gap);
}
.phone__hand {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  user-select: none; -webkit-user-drag: none;
}
.phone__screen {
  position: absolute;
  left: 25.48%;
  top: 1.97%;
  width: 47.6%;
  height: 84.87%;
  border-radius: var(--screen-radius);
  overflow: hidden;
  background: #000;
  transform: translateZ(0); /* Safari: clip video to radius */
}
.phone__screen video {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.phone__thumb {
  position: absolute;
  left: 19.55%;
  top: 52.24%;
  width: 11.22%;
  height: 28.29%;
  user-select: none; -webkit-user-drag: none;
}
/* soft black band that dissolves the bottom of the hand */
.phone__fade {
  position: absolute;
  left: 50%;
  top: 94.2%;
  width: 100vw;
  height: 14.3%;
  transform: translateX(-50%);
  background: #000;
  filter: blur(var(--fade-blur));
  pointer-events: none;
}

/* ---------- Lead paragraph ---------- */
.lead {
  width: var(--lead-w);
  max-width: calc(100vw - 20px);
  margin: var(--lead-gap) 0 0;
  font-size: var(--lead-size);
  line-height: var(--lead-lh);
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 14;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: var(--footer-dot-gap);
  margin-top: var(--footer-gap);
  font-size: var(--footer-size);
  line-height: 1.14;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 14;
  color: var(--muted);
  white-space: nowrap;
}
.footer a { color: inherit; text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }

/* =================== Animations =================== */
/* Only hide things when JS is running, so the page never stays blank. */

/* logo + buttons: scale-in with a tiny spring overshoot */
.js .pop {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity .3s ease-out, transform .45s cubic-bezier(.3, 1.35, .5, 1);
}
.js .pop.is-in { opacity: 1; transform: none; }

/* headline letters: fade up out of a blur, staggered */
.title .w { display: inline-block; white-space: nowrap; }
.js .title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(10px);
  transition: opacity .4s ease-out, transform .4s cubic-bezier(.2, .8, .3, 1), filter .4s ease-out;
  transition-delay: calc(var(--i) * 46ms);
}
.js .title.is-in .ch { opacity: 1; transform: none; filter: blur(0); }

/* phone: slides up 150px when it scrolls into view */
.js [data-reveal-up] {
  opacity: 0;
  transform: translateY(150px);
  transition: opacity .4s ease-out, transform .55s cubic-bezier(.2, .9, .3, 1.04);
}
.js [data-reveal-up].is-in { opacity: 1; transform: none; }

/* lead words: unblurred by scroll position (driven in main.js) */
.lead .word { display: inline-block; will-change: opacity, filter; }

@media (prefers-reduced-motion: reduce) {
  .js .pop, .js .title .ch, .js [data-reveal-up] {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  .lead .word { opacity: 1 !important; filter: none !important; }
}

/* Apple logo icon: Font Awesome Free, CC BY 4.0 — https://fontawesome.com/license/free */
