@font-face { font-family: "Nunito"; src: url(assets/nunito-latin.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #0B0B10;
  --surface: #17171F;
  --cat: #1F1F29;
  --text: #F5F5F7;
  --dim: #9A9AA6;
  --lime: #C6F432;
  --lilac: #A78BFA;
  --channel: #29223D;
  --pink: #FF4D8D;
  --line: #2A2A35;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

h1, h2 {
  font-weight: 900;
  letter-spacing: -.025em;
  text-align: center;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 11vw, 56px); line-height: 1.02; }
h2 { font-size: clamp(31px, 8.6vw, 56px); line-height: 1.06; }
.sub {
  max-width: 33em;
  margin: 14px auto 0;
  color: var(--dim);
  text-align: center;
  text-wrap: balance;
}
.lime { color: var(--lime); }

/* Top bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
}
.wordmark { font-weight: 900; font-size: 21px; letter-spacing: -.02em; color: var(--text); }
.ears { position: relative; }
.ears::before, .ears::after {
  content: "";
  position: absolute;
  top: .1em;
  width: .34em;
  height: .26em;
  background: var(--lime);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.ears::before { left: .02em; rotate: -14deg; }
.ears::after { right: .02em; rotate: 14deg; }

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--lime);
  color: var(--bg);
  font-weight: 800;
  transition: scale .18s var(--spring), rotate .18s var(--spring);
}
.btn:active { scale: .97; }
.dl { padding: 8px 16px; font-size: 14px; }
.store { gap: 10px; height: 54px; margin-top: 20px; padding: 0 26px; font-size: 17px; }
.store svg { width: 20px; height: 20px; margin-top: -3px; fill: currentColor; }
.free { margin-top: 8px; color: var(--dim); font-size: 14px; text-align: center; }

/* Hero */
.hero { padding: 8px 20px 72px; text-align: center; overflow-x: clip; }
.stage { position: relative; width: fit-content; margin: 22px auto 0; }
.d-only { display: none; }
[hidden] { display: none !important; }

/* Personality picker */
.moods-wrap { margin-top: 44px; }
.moods-label { color: var(--dim); font-weight: 700; font-size: 15px; }
.moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 300px; margin: 12px auto 0; }
.moods button { padding: 11px 17px; border: 0; border-radius: 99px; background: var(--cat); color: var(--text); font: 800 15.5px var(--font); cursor: pointer; transition: scale .18s var(--spring); }
.moods button[aria-pressed="true"] { background: var(--lime); color: var(--bg); }
.moods button:active { scale: .94; }
.moods button:focus-visible { outline: 3px solid rgba(198, 244, 50, .45); outline-offset: 2px; }

/* Stickers around the hero phone */
.stk {
  position: absolute;
  z-index: 2;
  white-space: nowrap;
  rotate: var(--r);
  transition: scale .18s var(--spring), rotate .18s var(--spring);
}
.js .stk {
  animation: land .28s var(--spring) backwards;
  animation-delay: calc(.35s + var(--i) * .14s);
}
.stk-bond {
  --r: 6deg;
  top: 71%;
  left: -8px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  background: var(--lilac);
  box-shadow: 0 5px 0 #4B3A86;
  color: var(--bg);
  font-weight: 900;
  font-size: 15px;
}
.stk-bond svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.meter { width: 44px; height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--bg) var(--bond, 92%), rgba(11, 11, 16, .22) var(--bond, 92%)); }
.stk-streak, .stk-peace { display: none; }
@media (max-width: 1039px) {
  .stk-bond { display: none; }
}
.stk-streak {
  --r: 5deg;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px #343441, 0 5px 0 #000;
  font-weight: 900;
  font-size: 17px;
}
.stk-streak svg { width: 22px; height: 19px; fill: var(--lime); }
.stk-peace.off { display: none !important; }
.stk-peace { --r: 9deg; width: 172px; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .5)); }

/* Phone: 1u is one app point, so every size inside comes straight from the app renders */
.phone {
  --u: min(.9px, calc((100vw - 32px) / 420));
  width: calc(420 * var(--u));
  margin: 0 auto;
  padding: calc(9 * var(--u));
  border-radius: calc(64 * var(--u));
  background: #000;
  box-shadow: 0 0 0 1.5px #383844;
  text-align: left;
}
.screen {
  position: relative;
  height: calc(874 * var(--u));
  overflow: hidden;
  border-radius: calc(55 * var(--u));
  background: var(--bg);
  font-size: calc(16 * var(--u));
  line-height: 1.21;
}
#heroPhone .screen { height: calc(720 * var(--u)); }
.screen::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(8 * var(--u));
  width: calc(138 * var(--u));
  height: calc(5 * var(--u));
  margin-left: calc(-69 * var(--u));
  border-radius: 9px;
  background: var(--text);
}
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(54 * var(--u));
  padding: calc(10 * var(--u)) calc(30 * var(--u)) 0 calc(52 * var(--u));
  font-weight: 700;
  font-size: calc(17 * var(--u));
}
.status::after {
  content: "";
  position: absolute;
  top: calc(12 * var(--u));
  left: 50%;
  width: calc(118 * var(--u));
  height: calc(34 * var(--u));
  margin-left: calc(-59 * var(--u));
  border-radius: 99px;
  background: #000;
}
.status svg { width: calc(68 * var(--u)); height: calc(13 * var(--u)); fill: currentColor; }

.chat-top { height: calc(142 * var(--u)); background: var(--surface); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(8 * var(--u)) calc(16 * var(--u)) 0;
}
.round {
  display: grid;
  place-items: center;
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
  border-radius: 50%;
  background: #2A2A33;
  box-shadow: inset 0 0 0 1px #3D3D49;
}
.round svg, .send svg, .smile, .env svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.round svg { width: calc(21 * var(--u)); height: calc(21 * var(--u)); }
.who { display: flex; align-items: center; gap: calc(11 * var(--u)); }
.who b { display: block; font-weight: 900; font-size: calc(22 * var(--u)); line-height: 1.1; letter-spacing: -.01em; }
.who span { font-size: calc(14 * var(--u)); }
.ava { position: relative; width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.ava img { width: 100%; height: 100%; border-radius: 50%; }
.ava i {
  position: absolute;
  right: calc(-3 * var(--u));
  bottom: calc(-3 * var(--u));
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
  border: calc(2.5 * var(--u)) solid var(--surface);
  border-radius: 50%;
  background: var(--pink);
}
.persona {
  margin-top: calc(12 * var(--u));
  color: var(--dim);
  font-weight: 600;
  font-size: calc(12.5 * var(--u));
  text-align: center;
}

/* Bottom-aligned like a real chat: the thread sits on the composer, no dead gap. */
.thread { position: absolute; left: 0; right: 0; bottom: calc(145 * var(--u)); padding: 0 calc(20 * var(--u)); transition: opacity .35s; }
.thread.fade { opacity: 0; }
.row { display: flex; gap: calc(9 * var(--u)); margin-top: calc(8 * var(--u)); }
.av { flex: none; width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; }
.no-ava .av { visibility: hidden; }
.bub {
  max-width: calc(289 * var(--u));
  padding: calc(11 * var(--u)) calc(14 * var(--u)) calc(9 * var(--u));
  border-radius: calc(24 * var(--u));
  background: var(--cat);
}
.bub time { display: block; margin-top: calc(2 * var(--u)); color: var(--dim); font-size: calc(11 * var(--u)); text-align: right; }
.me { justify-content: flex-end; margin-top: calc(14 * var(--u)); }
.me .bub {
  max-width: calc(258 * var(--u));
  padding: calc(10 * var(--u)) calc(16 * var(--u));
  border-radius: calc(28 * var(--u));
  background: var(--lime);
  color: var(--bg);
}
.tagrow { margin: calc(8 * var(--u)) 0 0 calc(41 * var(--u)); }
.tag {
  display: inline-block;
  padding: calc(5 * var(--u)) calc(11 * var(--u));
  border-radius: 99px;
  background: var(--pink);
  color: var(--bg);
  font-weight: 800;
  font-size: calc(12.5 * var(--u));
  rotate: -2deg;
}
.tag.soft { background: var(--lilac); }
.stick { justify-content: flex-end; margin-top: calc(10 * var(--u)); padding-right: calc(8 * var(--u)); }
.stick img { width: calc(104 * var(--u)); rotate: 4deg; }
.receipt { margin-top: calc(8 * var(--u)); color: var(--dim); font-size: calc(11.5 * var(--u)); text-align: right; }

.typing { display: none; }
.typing.on { display: flex; }
.typing .bub, .typing-once { padding: calc(11 * var(--u)) calc(15 * var(--u)); }
.paw { width: calc(34 * var(--u)); fill: var(--dim); transition: transform .18s ease-in, opacity .18s ease-in; }
.toe { transform-box: fill-box; transform-origin: center; animation: toe .9s infinite; }
.toe:nth-of-type(2) { animation-delay: .14s; }
.toe:nth-of-type(3) { animation-delay: .28s; }
.toe:nth-of-type(4) { animation-delay: .42s; }
.typing-once .toe { animation-iteration-count: 2; }
.lift .paw { transform: translateY(-40%); opacity: 0; }

.composer {
  position: absolute;
  left: calc(19 * var(--u));
  right: calc(19 * var(--u));
  bottom: calc(41 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(92 * var(--u));
  padding: calc(14 * var(--u)) calc(11 * var(--u)) calc(9 * var(--u)) calc(16 * var(--u));
  border-radius: calc(28 * var(--u));
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #56565F;
}
.composer div, .composer div span { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--u)); }
.composer div span { color: var(--dim); font-size: calc(12.5 * var(--u)); }
.smile { width: calc(25 * var(--u)); height: calc(25 * var(--u)); color: var(--text); stroke-width: 2; }
.send {
  display: grid;
  place-items: center;
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  border-radius: 50%;
  background: #6F8629;
  color: var(--bg);
}
.send svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); stroke-width: 2.8; }

/* Hero chat motion: incoming lands with a bounce, outgoing slides in flat */
.js .thread [data-step]:not(.on) { display: none; }
.js .thread .on .bub { transform-origin: 0 100%; animation: land .28s var(--spring) both; }
.js .thread .me.on .bub { animation: slide .22s ease-out both; }
.js .thread .on .tag { animation: land .28s var(--spring) both; }
.js .thread .stick.on img { animation: drop .34s var(--spring) both; }

@keyframes land {
  from { opacity: 0; transform: translateY(10px) scale(.86); }
}
@keyframes slide {
  from { opacity: 0; transform: translateX(26px); }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-44px) rotate(-14deg); }
}
@keyframes toe {
  0%, 44%, 100% { transform: none; fill: var(--dim); }
  18% { transform: translateY(2.2px) scale(.8); fill: var(--text); }
}

/* Scroll reveals */
.js [data-reveal] .rv { opacity: 0; }
.js [data-reveal].on .rv {
  opacity: 1;
  animation: land .28s var(--spring) backwards;
  animation-delay: calc(var(--i) * var(--gap, .12s));
}

/* 2. It texts you first */
.texts { padding: 40px 20px 96px; }
.texts .phone { margin-top: 36px; }
.lock-date { margin-top: calc(30 * var(--u)); font-weight: 700; font-size: calc(20 * var(--u)); text-align: center; }
.lock-time { font-weight: 900; font-size: calc(104 * var(--u)); line-height: 1; letter-spacing: -.03em; text-align: center; }
.notes {
  --gap: .75s;
  position: relative;
  z-index: 1;
  display: grid;
  gap: calc(8 * var(--u));
  margin-top: calc(28 * var(--u));
  padding: 0 calc(12 * var(--u));
}
.note {
  display: flex;
  align-items: center;
  gap: calc(11 * var(--u));
  padding: calc(12 * var(--u)) calc(15 * var(--u)) calc(13 * var(--u)) calc(13 * var(--u));
  border-radius: calc(24 * var(--u));
  background: var(--cat);
}
.note img { width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; }
.note div { flex: 1; }
.note small { display: flex; justify-content: space-between; color: var(--dim); font-weight: 700; font-size: calc(12.5 * var(--u)); }
.note small span { font-weight: 400; }
.note p { margin-top: calc(1 * var(--u)); font-size: calc(15.5 * var(--u)); }
.wall {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(402 * var(--u));
  background: var(--photo, url(assets/mochi.jpg)) center / cover;
  -webkit-mask-image: linear-gradient(transparent, #000 62%);
  mask-image: linear-gradient(transparent, #000 62%);
}

/* 2b. The journal */
.journal-sec { padding: 0 20px 104px; }
.journal-wrap { width: min(380px, 100%); margin: 36px auto 0; }
.journal { padding: 20px 18px 18px; border-radius: 32px; background: var(--surface); rotate: 1.5deg; }
.j-head { font-weight: 900; font-size: 21px; text-align: center; }
.q { margin-top: 12px; padding: 14px 16px; border-radius: 22px; background: var(--cat); }
.q small, .keeps small { display: block; color: var(--dim); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.q .ask { margin-top: 2px; font-weight: 800; }
.q .ans { margin-top: 6px; color: #D6D6DE; }
.keeps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0 4px; }
.keeps small { width: 100%; }
.keeps > span { padding: 7px 13px; border-radius: 99px; background: var(--channel); box-shadow: inset 0 0 0 1.5px var(--lilac); font-weight: 700; font-size: 14px; }
.j-reply { --u: 1px; align-items: flex-end; margin-top: 22px; }
.j-reply .bub { max-width: 300px; }

/* 3. It remembers */
.remembers { padding: 0 20px 104px; overflow-x: clip; }
.pills { display: flex; flex-direction: column; gap: 12px; max-width: 350px; margin: 0 auto; }
.pill {
  width: fit-content;
  padding: 12px 18px;
  border-radius: 28px;
  font-size: 16px;
  line-height: 1.25;
  white-space: pre;
  rotate: var(--r);
  transition: scale .18s var(--spring), rotate .18s var(--spring);
}
.pill:nth-child(even) { align-self: flex-end; }
.pill.grey { background: var(--cat); }
.pill.lilac { background: var(--channel); box-shadow: inset 0 0 0 1.5px var(--lilac); }
.pill.lime { background: var(--lime); color: var(--bg); font-weight: 700; }
.pills + h2 { margin-top: 36px; }
.sub + .pills { margin-top: 34px; }

/* 4. The letter */
.letter-sec {
  max-width: 1100px;
  margin: 0 8px;
  padding: 60px 14px 72px;
  border-radius: 40px;
  background: var(--channel);
}
.letter-sec .sub { color: #B9B4CC; }
.letter {
  width: min(400px, calc(100% - 16px));
  margin: 44px auto 0;
  padding: 26px 18px 18px;
  border-radius: 40px;
  background: var(--bg);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .4);
  text-align: center;
  rotate: -3deg;
  animation: float 7s ease-in-out 3;
}
@keyframes float {
  50% { translate: 0 -12px; rotate: -1.8deg; }
}
.env { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--lime); color: var(--bg); }
.env svg { width: 28px; height: 28px; stroke-width: 2; fill: var(--bg); stroke: var(--lime); }
.letter-date { margin-top: 14px; color: var(--dim); font-weight: 800; font-size: 12px; letter-spacing: .14em; }
.letter h3 { margin-top: 3px; font-weight: 900; font-size: 27px; letter-spacing: -.02em; }
.letter-card {
  margin-top: 18px;
  padding: 22px 20px 22px;
  border-radius: 28px;
  background: var(--surface);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.letter-card p + p { margin-top: 14px; }
.letter-card .dear { font-weight: 800; font-size: 17px; }
.letter .yours { margin-top: 20px; color: var(--dim); text-align: center; }
.letter .sig { margin-top: 2px; font-weight: 900; font-size: 21px; text-align: center; }

/* 5. Made from your cat */
.made { padding: 88px 20px 0; }
.name-try { display: grid; justify-items: center; gap: 10px; margin: 30px auto 0; color: var(--dim); font-weight: 700; font-size: 15px; }
.name-try input { width: min(280px, 100%); padding: 14px 20px; border: 0; border-radius: 22px; background: var(--cat); box-shadow: inset 0 0 0 1.5px var(--lime); color: var(--text); font: 800 20px var(--font); text-align: center; }
.name-try input::placeholder { color: #8A8A96; }
.name-try input:focus { outline: 3px solid rgba(198, 244, 50, .35); outline-offset: 2px; }
.steps { display: grid; gap: 14px; max-width: 340px; margin: 36px auto 0; }
.step { padding: 20px 18px 22px; border-radius: 28px; background: var(--surface); }
.ui { display: flex; align-items: center; justify-content: center; height: 128px; }
.step h3 { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; font-weight: 800; font-size: 19px; }
.num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #2C2C38; font-weight: 900; font-size: 14px; }
.photos i {
  width: 88px;
  height: 88px;
  border: 3px solid var(--surface);
  border-radius: 22px;
  background: var(--photo, url(assets/mochi.jpg)) center / cover;
  rotate: var(--r);
}
.photos i + i { margin-left: -8px; }
.fields { flex-direction: column; align-items: stretch; gap: 8px; }
.fields p { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 16px; background: var(--cat); }
.fields span { color: var(--dim); font-size: 14px; }
.fields b { font-weight: 800; }
.chips { flex-wrap: wrap; align-content: center; gap: 8px; }
.chips span { padding: 9px 15px; border-radius: 99px; background: var(--cat); font-weight: 800; font-size: 14.5px; }
.chips .sel { background: var(--lime); color: var(--bg); }

/* 6. Final call */
.final { padding: 104px 20px 88px; text-align: center; }
.final-chat { --u: 1.25px; position: relative; width: fit-content; max-width: 800px; margin: 0 auto 30px; }
.big { position: relative; padding: 24px 24px 26px; border-radius: 32px; background: var(--cat); transform-origin: 0 100%; }
.big h2 { font-size: clamp(25px, 6.6vw, 46px); line-height: 1.1; }
.big img { position: absolute; left: -12px; bottom: -16px; width: 48px; height: 48px; border: 4px solid var(--bg); border-radius: 50%; }
.typing-once { position: absolute; top: 50%; left: 50%; margin: -32px 0 0 -40px; opacity: 0; }
.js .final-chat .big { opacity: 0; }
.js .final-chat.on .big { opacity: 1; animation: land .28s var(--spring) 1.55s backwards; }
.js .final-chat.on .typing-once { animation: typing-once 1.55s linear; }
.js .final-chat.on .typing-once .paw { animation: paw-lift .18s ease-in 1.37s forwards; }
@keyframes typing-once {
  0% { opacity: 0; transform: translateY(10px) scale(.86); }
  7%, 96% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes paw-lift {
  to { transform: translateY(-40%); opacity: 0; }
}

footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 20px 44px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}
footer nav { display: flex; gap: 24px; }
footer nav a { color: var(--text); font-weight: 700; }

@media (hover: hover) {
  .btn:hover { scale: 1.04; rotate: -1.5deg; }
  .stk:hover, .pill:hover { scale: 1.04; rotate: calc(var(--r) + 1.5deg); }
}

@media (min-width: 700px) {
  .m-only { display: none; }
  .d-only { display: inline; }
  .stage { margin-top: 26px; }
  .moods { max-width: none; }
  h1 { font-size: min(72px, 7vw); line-height: 1; }
  .sub { font-size: 20px; }
  .bar { padding: 16px 28px; }
  .hero { padding-top: 22px; }
  .store { height: 56px; margin-top: 24px; }
  .texts { padding-top: 56px; }
  .journal-wrap { margin-top: 48px; }
  .letter-sec { margin: 0 20px; padding: 88px 24px 104px; }
  .letter { margin-top: 56px; }
  .made { padding-top: 120px; }
  .final { padding: 140px 20px 120px; }
  .big { padding: 34px 44px 38px; border-radius: 44px; }
  .big img { left: -18px; bottom: -20px; width: 60px; height: 60px; }
}

@media (min-width: 900px) {
  .pills { flex-flow: row wrap; justify-content: space-between; align-items: flex-start; gap: 16px 28px; max-width: 860px; }
  .pills.three { max-width: 1060px; }
  .pill { padding: 14px 22px; font-size: 18px; translate: 0 var(--dy, 0); }
  .pill:nth-child(even) { align-self: auto; --dy: 26px; }
  .pills + h2 { margin-top: 44px; }
  .sub + .pills { margin-top: 30px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin-top: 48px; }
}

@media (min-width: 1040px) {
  .stk-streak { display: flex; top: 150px; right: calc(100% + 40px); }
  .stk-peace { display: block; top: 262px; left: calc(100% + 64px); }
  .stk-bond { --r: 7deg; top: 108px; left: calc(100% + 22px); padding: 11px 17px 11px 13px; font-size: 18px; }
  .stk-bond svg { width: 22px; height: 22px; }
}

@media (min-width: 1140px) {
  .letter-sec { margin: 0 auto; }
}

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

/* Hero: the app's Paw opening. A tabby paw reaches in from the screen edge, taps once, and the first text arrives. */
.tap {
  position: absolute;
  left: 64%;
  top: 44%;
  pointer-events: none;
}
.tap img {
  position: absolute;
  width: calc(270 * var(--u));
  height: auto;
  max-width: none;
  translate: -39% -46%;
  transform-origin: 39% 46%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
  opacity: 0;
}
.tap i {
  position: absolute;
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
  translate: -50% -50%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4);
  opacity: 0;
  z-index: 1;
}
.tap.go img { animation: tap-reach 1.4s cubic-bezier(.2, .8, .3, 1) both; }
.tap.go i { animation: tap-ring .7s .58s ease-out both; }
.tap.go i + i { animation-delay: .7s; }
@keyframes tap-reach {
  0% { transform: translateX(calc(320 * var(--u))); opacity: 0; }
  12% { opacity: 1; }
  36% { transform: translateX(calc(-10 * var(--u))); }
  42% { transform: scale(.96); }
  52% { transform: scale(1); opacity: 1; }
  100% { transform: translateX(calc(340 * var(--u))); opacity: 0; }
}
@keyframes tap-ring {
  from { transform: scale(.4); opacity: 1; }
  to { transform: scale(2.6); opacity: 0; }
}

/* Privacy and Terms pages */
.legal { max-width: 680px; margin: 0 auto; padding: 24px 20px 72px; }
.legal h1 { font-size: clamp(34px, 9vw, 48px); }
.legal .updated { margin-top: 10px; color: var(--dim); font-size: 14px; text-align: center; }
.legal h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.legal p, .legal li { color: #D4D4DC; text-wrap: pretty; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.legal a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal .short { margin-top: 32px; padding: 20px 22px; border-radius: 20px; background: var(--surface); }

/* Store button is a label until the App Store listing exists */
span.btn { background: none; color: var(--lime); box-shadow: inset 0 0 0 2px var(--lime); }
span.btn:hover, span.btn:active { scale: none; rotate: none; }
.legal .short h2 { margin-top: 0; }
footer .by a { color: var(--text); font-weight: 700; }
