/* Home page */

.hero {
  position: relative;
  padding: 44px 20px 0;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 180px;
  width: 1200px;
  height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 106, 0, 0.42), rgba(235, 50, 4, 0.18) 55%, transparent 100%);
  filter: blur(20px);
  pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.hero h1 {
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero .lede {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--soft);
  font-size: 15px;
}

/* The stage: phone in the middle, friends around it */
.stage {
  position: relative;
  max-width: 1120px;
  height: 700px;
  margin: 40px auto 0;
}
.phone {
  position: absolute;
  left: 50%;
  top: 0;
  width: 310px;
  height: 640px;
  transform: translateX(-50%);
  padding: 11px;
  border-radius: 54px;
  background: #050403;
  box-shadow:
    0 0 0 2px #2a2420,
    0 0 0 3px #0b0908,
    0 40px 120px -20px rgba(255, 90, 0, 0.55),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
  z-index: 5;
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: #ffffff;
  color: #000;
  font-family: var(--text);
  text-align: left;
}
.island {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 92px;
  height: 27px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
  z-index: 3;
}
.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  padding: 4px 26px 0 32px;
  font-size: 14px;
  font-weight: 600;
}
.status svg { height: 11px; width: auto; }
.appnav { display: flex; align-items: center; justify-content: space-between; padding: 2px 14px 8px; }
.circle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.circle svg { width: 16px; height: 16px; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); font-size: 12px; }
.seg span { padding: 6px 9px; border-radius: 999px; }
.seg span:first-child { background: #ececef; }
.foldercard {
  display: grid;
  place-items: center;
  height: 148px;
  margin: 0 14px;
  border-radius: 18px;
  border: 1px solid #f1e6c8;
  background: linear-gradient(#fffaf0, #fff5dc);
}
.foldercard .folder { width: 156px; height: auto; overflow: visible; }
.btitle { display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; }
.btitle strong { font-family: var(--hand); font-weight: 700; letter-spacing: -0.01em; font-size: 23px; line-height: 1; }
.newpill { padding: 3px 9px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }
.bmeta { padding: 2px 16px 0; font-size: 11px; color: #6d6d72; }
.bhead { display: flex; justify-content: space-between; padding: 12px 16px 2px; font-size: 13px; color: #8a8a8e; font-weight: 600; }
.bhead span:last-child { color: var(--red); }
.rows { list-style: none; margin: 0; padding: 0 12px 0 16px; }
.rows li > span:last-child { min-width: 0; }
.rows li { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-bottom: 1px solid #efeff2; }
.thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  overflow: hidden;
}
.thumb img { width: 86%; height: 86%; object-fit: contain; }
.thumb.fill img { width: 100%; height: 100%; object-fit: cover; }
.rows b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.rows small { display: block; margin-top: 2px; font-size: 11.5px; color: #8a8a8e; }
.blastbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 18px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 35%);
}
.blastbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.3s ease;
}
.blastbtn:active { transform: scale(0.97); }
.blastbtn svg { width: 18px; height: 18px; fill: currentColor; }
.blastbtn.sent { background: var(--red); }
.blastbtn.ready { animation: nudge 2.8s ease-in-out 1.2s infinite; }
@keyframes nudge {
  0%, 70%, 100% { transform: scale(1); }
  78% { transform: scale(1.05); }
  86% { transform: scale(0.98); }
}

/* Friends */
.friend {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 116px;
  transform: translate(-50%, -50%);
  animation: bob 6s ease-in-out infinite;
}
.friend:nth-child(2n) { animation-delay: -2s; }
.friend:nth-child(3n) { animation-delay: -4s; }
.av {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg, #2a2420);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease, transform 0.35s ease; }
.av img.out { opacity: 0; transform: scale(1.15); }
.name { transition: opacity 0.35s ease; }
.name.out { opacity: 0; }
.name {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.got {
  position: absolute;
  top: -8px;
  right: -4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #000;
  font-family: var(--display);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.4) rotate(-8deg);
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.3, 1.8, 0.5, 1);
  z-index: 2;
}
.friend.hit .av { transform: scale(1.12); }
.friend.hit .got { opacity: 1; transform: scale(1) rotate(6deg); }
.f1 { left: 16%; top: 16%; }
.f2 { left: 7%;  top: 50%; }
.f3 { left: 18%; top: 83%; }
.f4 { left: 84%; top: 14%; }
.f5 { left: 93%; top: 50%; }
.f6 { left: 82%; top: 83%; }

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

/* Stickers floating around the stage */
.sticker {
  position: absolute;
  z-index: 2;
  width: 96px;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}
.st1 { left: 30%; top: 2%;  width: 84px; rotate: -14deg; }
.st2 { left: 66%; top: 4%;  width: 90px; rotate: 12deg; animation-delay: -3s; }
.st3 { left: 29%; top: 60%; width: 78px; rotate: 10deg; animation-delay: -5s; }
.st4 { left: 67%; top: 64%; width: 88px; rotate: -10deg; animation-delay: -1.5s; }
.st5 { left: 1%;  top: 4%;  width: 70px; rotate: 18deg; animation-delay: -6s; opacity: 0.8; }
.st6 { left: 93%; top: 74%; width: 72px; rotate: -16deg; animation-delay: -2s; opacity: 0.8; }
.st7 { left: 18%; top: 35%; width: 52px; rotate: -12deg; animation-delay: -4s; }
.st8 { left: 77%; top: 36%; width: 84px; rotate: 10deg; animation-delay: -2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hint {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
}
.hint b { color: var(--yellow); }

/* The little bundle that flies to each friend */
.flyer {
  position: fixed;
  z-index: 60;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
.spark {
  position: fixed;
  z-index: 59;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
}

.store-row { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 26px 0 0; padding: 0 20px; }
.store-row p { margin: 0; color: var(--soft); font-size: 14px; }

/* Marquee of bundle names */
.marquee {
  margin: 90px 0 0;
  transform: rotate(-2deg);
}
/* Two identical groups slide left together; each is well under Safari's
   largest layer size, so neither gets cut off part way along. */
.track {
  display: flex;
  padding: 18px 0;
  overflow: hidden;
  background: var(--yellow);
  color: #000;
  box-shadow: 0 20px 60px -20px rgba(252, 185, 3, 0.4);
}
.group {
  display: flex;
  flex: none;
  animation: slide 30s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.group span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--hand);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}
.group span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
@keyframes slide { to { transform: translate3d(-100%, 0, 0); } }

/* Steps */
.section { max-width: 1120px; margin: 0 auto; padding: 110px 20px 0; }
.eyebrow { margin: 0 0 10px; font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1; color: var(--yellow); }
.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.step {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: 28px;
  background: var(--night-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.step img { display: block; width: 132px; height: 132px; object-fit: contain; margin: 4px 0 14px -6px; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.5)); }
.num {
  position: absolute;
  top: 24px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  font-family: var(--display);
  font-size: 16px;
}
.step h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.step p { margin: 0; color: var(--soft); }

/* Groups and conversations */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.feature {
  position: relative;
  padding: 22px 22px 28px;
  border-radius: 32px;
  background: var(--night-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--fire);
  opacity: 0.55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.feature h3 { margin: 22px 0 8px; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.feature p { margin: 0; color: var(--soft); }

/* 1. Profile pill */
.pillstage { height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.profilepill {
  position: relative;
  width: min(100%, 390px);
  height: 96px;
  margin: 18px 0 26px;
  border-radius: 999px;
  overflow: visible;
  box-shadow: 0 20px 50px -18px rgba(255, 106, 0, 0.6);
}
.skins { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.skin { position: absolute; inset: 0; background-size: 90px; background-color: #1c1c1e; opacity: 0; transition: opacity 0.6s ease; }
.skin.on { opacity: 1; }
.who-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.who-chip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.who-chip b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.who-chip img, .who-chip b, .notif span { transition: opacity 0.35s ease; }
.who-chip .out, .notif .out { opacity: 0; }
/* Charms all over the pill: the ones inside are clipped by it, the free
   ones sit on top of everything and hang off its edges. Each sits on its
   centre; --r is its tilt. */
.charms { position: absolute; inset: 0; pointer-events: none; }
.charms.free { border-radius: inherit; }
.charms img {
  position: absolute;
  height: auto;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.45s cubic-bezier(0.3, 1.8, 0.5, 1), opacity 0.2s ease-out;
}
/* A GIF in the pile sits in a rounded box, the way it does in the app. */
.charms img.gif { aspect-ratio: 3 / 2; border-radius: 12px; object-fit: cover; }
/* Out: shrinks and spins away. In: grows back with a bounce, one by one. */
.charms img.pop {
  transform: translate(-50%, -50%) rotate(calc(var(--r, 0deg) - 40deg)) scale(0.2);
  opacity: 0;
  transition: transform 0.3s ease-in, opacity 0.25s ease-in;
}
.swatches { display: flex; gap: 12px; }
.sw { width: 34px; height: 34px; border-radius: 50%; background-size: 60px; border: 1px solid var(--line); transition: box-shadow 0.3s ease; }
.sw.on { box-shadow: 0 0 0 3px var(--night-2), 0 0 0 6px var(--yellow); }
.stickerbar { display: flex; gap: 10px; padding: 8px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.stickerbar img { width: 40px; height: 40px; transition: transform 0.3s cubic-bezier(0.3, 1.8, 0.5, 1); }
.stickerbar .gifthumb { width: 52px; border-radius: 8px; object-fit: cover; }
.stickerbar img.on { transform: scale(1.25) translateY(-4px); }

/* 2. Reels */
.reelstage { height: 340px; display: grid; place-items: center; }
.reel {
  position: relative;
  width: 186px;
  height: 330px;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  border: 5px solid #050403;
  box-shadow: 0 0 0 1.5px #2a2420, 0 24px 60px -18px rgba(255, 106, 0, 0.55);
  transform: rotate(-3deg);
}
.reel-track { position: absolute; inset: 0; will-change: transform; }
.reel-slide { position: relative; height: 100%; }
.reel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bars { position: absolute; z-index: 2; left: 8px; right: 8px; top: 8px; display: flex; gap: 4px; }
.bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); transition: background 0.3s ease; }
.bars i.done { background: #fff; }
/* A fingertip that presses low on the screen and flicks up. */
.reel-touch {
  position: absolute;
  z-index: 3;
  left: 58%;
  top: 72%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
  opacity: 0;
  pointer-events: none;
}
.reel-touch.flick { animation: flick 0.8s ease-out; }
@keyframes flick {
  0% { opacity: 0; transform: translateY(0) scale(0.7); }
  15% { opacity: 1; transform: translateY(0) scale(1); }
  70% { opacity: 0.9; transform: translateY(-150px) scale(1); }
  100% { opacity: 0; transform: translateY(-190px) scale(0.8); }
}
.reelcap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  text-align: left;
}
.rbundle { display: block; font-family: var(--hand); font-weight: 700; font-size: 14px; line-height: 1; color: var(--yellow); }
.rtitle { display: block; font-size: 13px; line-height: 1.25; margin-top: 4px; }
.rdomain { font-size: 11px; color: rgba(255, 255, 255, 0.7); }

/* 3. Saving */
.savestage { position: relative; height: 340px; }
.bigfolder { position: absolute; left: 50%; bottom: 10px; width: 210px; margin-left: -105px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)); z-index: 2; }
.savestage .card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 92px;
  height: 118px;
  margin-left: -46px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  z-index: 1;
  animation: dropin 4.5s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
.savestage .c1 { --x: -90px; --r: -10deg; }
.savestage .c2 { --x: 0px; --r: 4deg; animation-delay: 0.35s; }
.savestage .c3 { --x: 90px; --r: 11deg; animation-delay: 0.7s; }
@keyframes dropin {
  0% { transform: translate(var(--x), -10px) rotate(var(--r)); opacity: 0; }
  12% { transform: translate(var(--x), 20px) rotate(var(--r)); opacity: 1; }
  40% { transform: translate(var(--x), 20px) rotate(var(--r)); opacity: 1; }
  62% { transform: translate(calc(var(--x) * 0.25), 150px) rotate(0deg) scale(0.8); opacity: 1; }
  70%, 100% { transform: translate(calc(var(--x) * 0.25), 170px) rotate(0deg) scale(0.7); opacity: 0; }
}
.count {
  position: absolute;
  z-index: 3;
  right: 18%;
  bottom: 150px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--red);
  font-size: 13px;
  font-weight: 700;
  animation: countpop 4.5s ease infinite;
}
@keyframes countpop {
  0%, 62% { transform: scale(0); }
  70% { transform: scale(1.2); }
  76%, 94% { transform: scale(1); }
  100% { transform: scale(0); }
}

.chat {
  height: 340px;
  border-radius: 24px;
  background: #fff;
  color: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chathead { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #efeff2; }
.chathead img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.chathead.one-to-one small { color: #1c8a43; }
.chat { position: relative; }
.burst { position: absolute; left: 50%; bottom: 40px; z-index: 5; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25)); }
.chathead b { display: block; font-family: var(--display); font-weight: 400; font-size: 15px; }
.chathead small { color: #8a8a8e; font-size: 12px; }
.msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px; }
.msg { display: none; flex: none; align-items: flex-end; gap: 8px; }
.msg.show { display: flex; animation: msgin 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes msgin { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
.msg.out { justify-content: flex-end; }
.who { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.bubble {
  position: relative;
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 18px 18px 18px 6px;
  background: #f0f0f3;
  font-size: 14px;
  line-height: 1.35;
}
.msg.out .bubble { border-radius: 18px 18px 6px 18px; background: #000; color: #fff; }
.msg.bundle .bubble { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: #fff7df; border: 1px solid #f3e3b4; }
.msg.bundle .bubble img { width: 44px; height: 44px; }
.msg.bundle .bubble .skinned { width: 62px; height: 52px; flex: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.2)); }
.msg.bundle b { display: block; font-family: var(--hand); font-weight: 700; font-size: 16px; line-height: 1; }
.msg.bundle small { color: #8a8a8e; font-size: 12px; }
.react {
  position: absolute;
  right: -6px;
  bottom: -12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.3, 1.8, 0.5, 1) 0.5s;
}
.react svg { width: 14px; height: 14px; fill: var(--red); }
.msg.show .react { transform: scale(1); }
.msg.voice .bubble { display: flex; align-items: center; gap: 8px; }
.play { width: 0; height: 0; border-left: 10px solid #000; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--red); }
.msg.voice.show .wave i { animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -0.3s !important; }
.wave i:nth-child(3n+1) { animation-delay: -0.6s !important; }
.wave i:nth-child(4n) { animation-delay: -0.15s !important; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 95%; } }
.msg.voice small { color: #8a8a8e; font-size: 12px; }
.stk { width: 64px; height: 64px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); }
.msg.sticker.show .stk { animation: stickerpop 0.5s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes stickerpop { from { transform: scale(0.3) rotate(-20deg); } }
.msg.typing .bubble { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9aa0; animation: dot 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Last call */
.finale { position: relative; padding: 130px 20px 110px; text-align: center; isolation: isolate; }
.finale::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 106, 0, 0.38), transparent);
  filter: blur(10px);
}
.finale .wordmark { width: min(520px, 86%); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.finale h2 { margin: 18px auto 28px; max-width: 640px; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; }

/* Phones */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 96px 1fr; column-gap: 18px; align-items: center; }
  .step img { width: 96px; height: 96px; margin: 0; grid-row: span 2; }
  .step h3 { padding-right: 44px; }
  .quad { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { padding-top: 30px; }
  .hero .lede { display: none; }
  .stage { height: auto; margin-top: 28px; padding-bottom: 36px; }
  .phone { position: relative; left: auto; transform: none; margin: 0 auto; width: 280px; height: 580px; border-radius: 48px; padding: 10px; }
  .screen { border-radius: 39px; }
  .foldercard { height: 128px; }
  .foldercard .folder { width: 134px; }
  .friends {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
    max-width: 360px;
    margin: 30px auto 0;
  }
  .friend { position: relative; left: auto; top: auto; transform: none; width: auto; }
  .av { width: 78px; height: 78px; }
  .sticker { width: 64px; }
  .st1 { left: 2%; top: 6%; width: 62px; }
  .st2 { left: auto; right: 2%; top: 22%; width: 64px; }
  .st3, .st4, .st5, .st6, .st7, .st8 { display: none; }
  .hint { position: static; transform: none; margin-top: 18px; text-align: center; white-space: normal; }
  .marquee { margin-top: 64px; }
  .group span { font-size: 22px; }
  .section { padding-top: 80px; }
  .finale { padding: 90px 20px 80px; }
}

/* The greeting pill: Hello in a new language every two seconds. */
.hello {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: var(--fire);
  color: #000;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  transform: rotate(-3deg);
  box-shadow: 0 6px 20px -6px rgba(255, 106, 0, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  animation: hellobob 2s ease-in-out infinite;
}
.hello-wave {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  font-size: 15px;
  transform-origin: 70% 70%;
  animation: wave 2s ease-in-out infinite;
}
.hello-word { display: inline-block; min-width: 3ch; white-space: nowrap; }
.hello-word.swap { animation: helloin 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes helloin {
  from { opacity: 0; transform: translateY(8px) scale(0.7) rotate(-8deg); }
}
@keyframes hellobob {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-2px); }
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(18deg); }
  20%, 40% { transform: rotate(-10deg); }
}

/* What your friends see */
.receive { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.recv-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.recv-points li { position: relative; padding-left: 30px; font-family: var(--display); font-size: 19px; line-height: 1.25; }
.recv-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fire);
}
.recv-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 20px 28px;
  border-radius: 32px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 106, 0, 0.28), transparent 70%), var(--night-2);
  border: 1px solid var(--line);
  min-height: 560px;
}
.notif {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 340px);
  padding: 10px 14px 10px 10px;
  border-radius: 20px;
  background: rgba(245, 245, 247, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #000;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  transform: translateY(-24px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.3s ease;
}
.notif img { width: 38px; height: 38px; border-radius: 9px; }
.notif div { flex: 1; min-width: 0; line-height: 1.25; }
.notif b { display: block; font-size: 14px; }
.notif span { font-size: 14px; }
.notif small { align-self: flex-start; color: #6d6d72; font-size: 12px; }
.recv-card {
  width: min(100%, 340px);
  padding: 14px;
  border-radius: 28px;
  background: #fff;
  color: #000;
  box-shadow: 0 30px 70px -24px rgba(255, 90, 0, 0.55);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.35s ease;
}
.recv-bundle { display: flex; flex-direction: column; align-items: center; padding: 4px 0 6px; text-align: center; transition: opacity 0.35s ease; }
.recv-card.swap .recv-bundle { opacity: 0; }
.recv-fold { width: 200px; height: auto; overflow: visible; }
.recv-bundle strong { margin-top: 8px; font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1.05; letter-spacing: -0.01em; }
.recv-bundle small { margin-top: 2px; color: #8a8a8e; font-size: 13px; transition: opacity 0.35s ease; }
.recv-bundle small.out { opacity: 0; }
.recv-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.recv-rows li { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #efeff2; }
.recv-rows li:last-child { border-bottom: 0; }
.recv-rows img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: none; }
.recv-rows span { flex: 1; min-width: 0; }
.recv-rows b { display: block; font-size: 13px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recv-rows small { color: #8a8a8e; font-size: 11px; }
.tick {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9f8ee;
  color: #1c8a43;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.recv-add {
  display: grid;
  place-items: center;
  height: 46px;
  margin-top: 10px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.recv-stage.s1 .notif, .recv-stage.s2 .notif { transform: none; opacity: 1; }
.recv-stage.s2 .recv-card { transform: none; opacity: 1; }
.recv-rows li.on .tick { opacity: 1; transform: none; }
.recv-add.done { background: var(--red); transform: scale(1.03); }

/* No ads, no tracking: a small line under the last button */
.trust { margin: 34px auto 0; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--display);
  font-size: 11px;
}
.trust-item svg { width: 13px; height: 13px; fill: var(--yellow); color: var(--yellow); }
.trust p { max-width: 420px; margin: 10px auto 0; color: var(--soft); font-size: 12.5px; line-height: 1.5; }
.trust a { color: var(--white); }

@media (max-width: 900px) {
  .receive { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .recv-stage { min-height: 0; padding: 20px 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .notif, .recv-card { transform: none; opacity: 1; transition: none; }
  .tick { opacity: 1; transform: none; }
}

/* Blast Chain, the game at the end of the page. */
.chaingame {
  position: relative;
  margin-top: 40px;
  height: clamp(440px, 68vh, 640px);
  border-radius: 32px;
  overflow: hidden;
  background: #0c0907;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(255, 106, 0, 0.45);
}
.chaingame canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.cg-hud { position: absolute; left: 16px; top: 14px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.cg-len { font-family: var(--display); font-size: 22px; color: var(--yellow); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.cg-board { margin: 0; padding: 8px 12px; min-width: 130px; list-style: none; border-radius: 14px; background: rgba(0, 0, 0, 0.45); font-size: 13px; }
.cg-board:empty { display: none; }
.cg-board li { display: flex; justify-content: space-between; gap: 14px; color: var(--soft); line-height: 1.6; }
.cg-board li.me { color: var(--yellow); font-weight: 700; }
.cg-board b { font-weight: 600; color: inherit; }
.cg-boost {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: none;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: var(--fire);
  color: #000;
  font-family: var(--display);
  font-size: 13px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.chaingame.playing .cg-boost { display: block; }
@media (hover: hover) and (pointer: fine) { .chaingame.playing .cg-boost { display: none; } }
.cg-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88%, 420px);
  transform: translate(-50%, -50%);
  padding: 26px 24px;
  border-radius: 26px;
  text-align: center;
  background: rgba(12, 9, 7, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.cg-panel[hidden] { display: none; }
.cg-panel h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.cg-panel p { margin: 0 0 20px; color: var(--soft); font-size: 15px; line-height: 1.55; }

/* Map and Plan */
.sublede { max-width: 640px; margin: 18px 0 0; color: var(--soft); font-size: 18px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.mapstage, .planstage { min-height: 420px; display: grid; place-items: center; padding: 20px 0 0; }

.map {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  overflow: hidden;
  background: #f2eee6;
  box-shadow: 0 30px 70px -28px rgba(255, 90, 0, 0.5);
}
.mapbase { position: absolute; inset: 0; width: 100%; height: 100%; }
.route { stroke-dashoffset: 0; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -20; } }
.mapseg {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #000;
  font-size: 12px;
  z-index: 3;
}
.mapseg span { padding: 5px 11px; border-radius: 999px; }
.mapseg .on { background: #ececef; font-weight: 600; }
.stop {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.3s ease;
  z-index: 2;
}
.stop img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.stop i {
  position: absolute;
  right: -7px;
  top: -7px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--red);
  color: #fff;
  font: 400 10px/1 var(--display);
}
.stop.on { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(235, 50, 4, 0.35), 0 10px 22px rgba(0, 0, 0, 0.3); z-index: 3; }
.map.drop .stop { animation: pindrop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.map.drop .stop:nth-of-type(2) { animation-delay: 0.15s; }
.map.drop .stop:nth-of-type(3) { animation-delay: 0.3s; }
.map.drop .stop:nth-of-type(4) { animation-delay: 0.45s; }
@keyframes pindrop { from { opacity: 0; translate: 0 -30px; } }
.stopcard {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #000;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
  z-index: 4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.stopcard.out { opacity: 0; transform: translateY(8px); }
.stopcard img { width: 48px; height: 48px; border-radius: 11px; object-fit: cover; flex: none; }
.stopcard span { min-width: 0; line-height: 1.25; }
.stopcard b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stopcard small { display: block; font-size: 11.5px; color: #8a8a8e; }
.stopcard .sc-n { color: var(--red); font-weight: 700; }

.plan {
  position: relative;
  width: min(100%, 360px);
  padding: 18px 16px 12px;
  border-radius: 26px;
  background: #fff;
  color: #000;
  box-shadow: 0 30px 70px -28px rgba(255, 90, 0, 0.5);
}
.plan-notif {
  position: absolute;
  left: 10px;
  right: 10px;
  top: -18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 9px;
  border-radius: 18px;
  background: rgba(245, 245, 247, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1.25;
  z-index: 3;
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.3s ease;
  pointer-events: none;
}
.plan-notif.show { opacity: 1; transform: none; }
.plan-notif img { width: 32px; height: 32px; border-radius: 8px; }
.plan-notif span { flex: 1; min-width: 0; }
.plan-notif b { display: block; }
.plan-notif small { align-self: flex-start; color: #6d6d72; font-size: 11px; }
.plan-title { display: block; font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1.05; letter-spacing: -0.01em; }
.plan-day { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--red); font-size: 13px; font-weight: 600; }
.plan-day svg { width: 15px; height: 15px; }
.plan-progress { margin-top: 10px; }
.plan-progress > span { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.plan-progress small { color: #8a8a8e; font-size: 11.5px; }
.plan-progress i { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: #ececef; overflow: hidden; }
.plan-progress em { display: block; height: 100%; border-radius: inherit; background: #34c759; transition: width 0.5s ease; }
.plan-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.plan-rows li { display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid #efeff2; }
.plan-rows li.new { animation: rowin 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes rowin { from { opacity: 0; transform: translateY(-8px); } }
.pt-check { position: relative; flex: none; width: 21px; height: 21px; border-radius: 50%; border: 2px solid #d1d1d6; transition: background 0.25s ease, border-color 0.25s ease; }
.done .pt-check { background: #34c759; border-color: #34c759; }
.done .pt-check::after { content: ""; position: absolute; left: 5.5px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.pt-text { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.25s ease; }
.done .pt-text { color: #8a8a8e; text-decoration: line-through; }
.pt-claim { flex: none; }
.pt-claim > span { display: inline-flex; align-items: center; gap: 5px; height: 26px; border-radius: 999px; font-size: 11.5px; font-weight: 700; animation: claimin 0.4s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes claimin { from { transform: scale(0.6); opacity: 0; } }
.pt-got { padding: 0 10px; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.pt-who { padding: 0 10px 0 3px; background: #f2f2f5; }
.pt-who img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.pt-mine { padding: 0 10px; background: var(--red); color: #fff; }
.pt-got.tap { animation: tap 0.35s ease; }
@keyframes tap { 50% { transform: scale(0.88); } }
.plan-add { display: flex; align-items: center; gap: 10px; min-height: 40px; color: #8a8a8e; font-size: 13.5px; }
.pa-plus { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; line-height: 1; }
.pa-field.typing { color: #000; }
.pa-field.typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--red); animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mapstage, .planstage { min-height: 0; padding: 22px 0 4px; }
  .sublede { font-size: 16px; }
  .stop { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-width: 2px; }
  .stop i { width: 18px; height: 18px; right: -6px; top: -6px; font-size: 9px; }
  .stopcard { left: 8px; right: 8px; bottom: 8px; padding: 6px 10px 6px 6px; border-radius: 14px; }
  .stopcard img { width: 38px; height: 38px; border-radius: 9px; }
  .stopcard b { font-size: 13px; }
  .mapseg { top: 8px; font-size: 11px; }
  .mapseg span { padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .route { animation: none; }
}
