/* watermochi.com — the site as a piece of the app: the ad's lilac mornings,
   night lock screen and deep ocean, Nunito Black titles with one blue word,
   bubbles, the app's floor grid and the whole Mochi crew. */

/* Nunito served from the site itself (SIL OFL, fonts/OFL.txt): no request
   to a font service, so no visitor's address leaves for a third party. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #16244a;
  --ink-soft: #4b5a7c;
  --blue: #3a7bf2;
  --blue-deep: #2457d6;
  --navy: #13294b;
  --app-bg: #f3f6fb;
  --mist: #f6f5ff;
  --lilac: #e9e6ff;
  --night-1: #0d1838;
  --night-2: #1a2c62;
  --ocean-1: #0a2a86;
  --ocean-2: #1748c9;
  --gold: #f5c04a;
  --white: #ffffff;
  --ok: #1f9d63;
  --error: #c2364b;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px rgba(28, 43, 110, 0.16);
  --shadow-soft: 0 10px 30px rgba(28, 43, 110, 0.1);
  --gutter: 16px;
  --max: 1160px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hidden means hidden, whatever display a rule gives the element. */
[hidden] {
  display: none !important;
}

a {
  color: var(--blue-deep);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

em {
  font-style: normal;
  color: var(--blue);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 12px;
}

:focus-visible {
  outline: 3px solid rgba(58, 123, 242, 0.55);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ——— Header ——— */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 0;
}

.top .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 9px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(58, 123, 242, 0.3);
}

.nav {
  display: none;
  gap: 2px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(58, 123, 242, 0.08);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.lang {
  color: var(--ink-soft);
  font-weight: 900;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
}

.lang:hover {
  background: rgba(58, 123, 242, 0.08);
  color: var(--ink);
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 20px;
  border: 0;
  font: inherit;
  font-weight: 900;
  font-size: 1.02rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn .short {
  display: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(19, 41, 75, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(19, 41, 75, 0.38);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(58, 123, 242, 0.35);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
}

@media (max-width: 380px) {
  .top .btn-small {
    padding: 0 12px;
    font-size: 0.82rem;
  }
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: var(--shadow-soft);
}

/* The contact address, hidden from robots until a person taps it. */
.mail {
  font: inherit;
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ——— Shared scenery: bubbles, waves ——— */

.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  bottom: -40px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: radial-gradient(
    circle at 32% 30%,
    rgba(255, 255, 255, 0.9) 0 12%,
    rgba(255, 255, 255, 0.15) 13% 100%
  );
  animation: rise 14s linear infinite;
}

.bubbles span:nth-child(1) {
  left: 6%;
  animation-delay: -2s;
}
.bubbles span:nth-child(2) {
  left: 18%;
  width: 10px;
  height: 10px;
  animation-duration: 11s;
  animation-delay: -7s;
}
.bubbles span:nth-child(3) {
  left: 33%;
  width: 26px;
  height: 26px;
  animation-duration: 18s;
  animation-delay: -4s;
}
.bubbles span:nth-child(4) {
  left: 52%;
  width: 12px;
  height: 12px;
  animation-duration: 12s;
  animation-delay: -9s;
}
.bubbles span:nth-child(5) {
  left: 66%;
  animation-duration: 16s;
  animation-delay: -1s;
}
.bubbles span:nth-child(6) {
  left: 78%;
  width: 30px;
  height: 30px;
  animation-duration: 20s;
  animation-delay: -12s;
}
.bubbles span:nth-child(7) {
  left: 88%;
  width: 9px;
  height: 9px;
  animation-duration: 10s;
  animation-delay: -5s;
}
.bubbles span:nth-child(8) {
  left: 95%;
  width: 16px;
  height: 16px;
  animation-duration: 15s;
  animation-delay: -10s;
}

@keyframes rise {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(14px, -50vh);
  }
  100% {
    transform: translate(-6px, -105vh);
    opacity: 0;
  }
}

/* A liquid edge between two sections, like the ad's scene changes. */
.wave {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: -1px;
}

.wave path:first-child {
  opacity: 0.45;
}

/* A section that ends in a wave stops right at it: the wave is its edge. */
.has-wave {
  padding-bottom: 0 !important;
}

.has-wave > .wave {
  margin-top: 56px;
}

/* ——— 1. Hero ——— */

.hero {
  position: relative;
  overflow: clip;
  margin-top: -66px;
  padding: 110px 0 30px;
  background:
    radial-gradient(
      60% 55% at 12% 8%,
      rgba(198, 186, 255, 0.55),
      transparent 70%
    ),
    radial-gradient(
      50% 50% at 92% 28%,
      rgba(176, 208, 255, 0.6),
      transparent 70%
    ),
    linear-gradient(180deg, #fbfaff 0%, #eef0ff 70%, #e6ebff 100%);
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 940px) {
  .hero {
    padding: 130px 0 40px;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }
}

.hero h1 {
  display: grid;
  gap: 6px;
}

.hero h1 .ask {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  color: var(--ink);
}

.hero h1 .answer {
  font-size: clamp(3.4rem, 10vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lead {
  font-size: clamp(1.08rem, 2.1vw, 1.25rem);
  color: var(--ink-soft);
  margin-top: 22px;
  max-width: 32em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust {
  margin-top: 20px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Mochi standing on the floor grid, waving hello. */
.hero-mochi {
  position: relative;
  justify-self: center;
  width: min(420px, 78vw);
  aspect-ratio: 1;
  margin-bottom: 8%;
}

/* A floor under a Mochi that fills a square box: his feet are at 92.4% of
   its height, and the floor's top is 22.8% of its own width above them. */
.floor.spot {
  position: absolute;
  left: 50%;
  top: calc(92.4% - 0.228 * 150%);
  width: 150%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-mochi .buddy {
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.try-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
  font-weight: 900;
  color: var(--blue-deep);
  text-decoration: none;
}

.try-link:hover {
  text-decoration: underline;
}

.phone {
  position: relative;
  border-radius: 48px;
  padding: 10px;
  background: #0c1730;
  box-shadow:
    0 40px 80px rgba(23, 44, 120, 0.32),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: #0c1730;
  transform: translateX(-50%);
  z-index: 2;
}

.phone .screen {
  position: relative;
  border-radius: 39px;
  overflow: hidden;
  background: var(--app-bg);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

/* The outfits are drawn at slightly different sizes. These bring every
   Mochi's face to Everyday's, measured from the spacing of the eyes, and
   keep the feet where they stand. */
[data-pack],
.buddy[data-buddy] {
  transform-origin: 50% 95%;
}

[data-pack="star-cadet"],
.buddy[data-buddy="star-cadet"] {
  scale: 1.05;
}

[data-pack="rainy-day"],
.buddy[data-buddy="rainy-day"] {
  scale: 1.07;
}

[data-pack="mochi-sport"],
.buddy[data-buddy="mochi-sport"] {
  scale: 0.885;
}

[data-pack="midnight-mage"],
.buddy[data-buddy="midnight-mage"] {
  scale: 0.96;
}

/* ——— Section titles ——— */

section {
  position: relative;
}

.title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.title p {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-top: 16px;
}

/* ——— 2. Playable home screen ——— */

.play {
  padding: 50px 0 90px;
  background: linear-gradient(180deg, #e6ebff 0%, var(--mist) 40%);
}

.play .layout {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-top: 44px;
}

@media (min-width: 940px) {
  .play .layout {
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
  }
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 900;
  font-size: 1.15rem;
}

.steps li::before {
  content: counter(step);
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-soft);
}

.side-note {
  color: var(--ink-soft);
  display: grid;
  gap: 14px;
}

.side-note .big {
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1.15;
}

/* The app's home screen, at its true size. */
.app {
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  justify-self: center;
}

/* The app's light theme with no background chosen: its two soft colour
   clouds, and Mochi standing on the floor grid. */
.app .screen {
  height: 740px;
  display: flex;
  flex-direction: column;
  container-type: size;
  background:
    radial-gradient(75% 38% at 8% 6%, rgba(90, 155, 245, 0.12), transparent),
    radial-gradient(65% 32% at 100% 46%, rgba(140, 124, 240, 0.09), transparent),
    var(--app-bg);
}

.app .scene {
  --sh: clamp(170px, 37cqh, 300px);
  position: relative;
  height: var(--sh);
  flex: none;
}

/* The settings button, at the top right as in the app. */
.app .settings {
  position: absolute;
  z-index: 2;
  top: 44px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6ecf9;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #2b5fd0;
}

.app .settings svg {
  width: 21px;
  height: 21px;
}

/* The floor's top is 22.8% of the screen's width above Mochi's feet. */
.app .floor {
  position: absolute;
  z-index: 1;
  left: 0;
  top: calc(var(--sh) * 0.88 - 22.8cqw);
  width: 100%;
  height: auto;
  pointer-events: none;
}

.app .buddy {
  top: calc(var(--sh) * 0.233);
  width: calc(var(--sh) * 0.7);
  height: calc(var(--sh) * 0.7);
  margin-left: calc(var(--sh) * -0.35);
}

.buddy {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 70px;
  width: 210px;
  height: 210px;
  margin-left: -105px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 92%;
}

/* Pinned to the top: a button centres its content, which would push the
   frames half a Mochi down. */
.buddy img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.buddy .b-drink {
  width: auto;
  height: auto;
}

.buddy.jump {
  animation: jump 0.5s ease-out 4;
}

@keyframes jump {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  30% {
    transform: translateY(-22px) scale(0.96, 1.05);
  }
  60% {
    transform: translateY(0) scale(1.06, 0.94);
  }
}

.app .body {
  position: relative;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: -18px;
  z-index: 4;
}

.app .today {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 14px 16px 16px;
  box-shadow: 0 8px 24px rgba(19, 41, 75, 0.08);
}

.app .today small {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.app .count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.app .count span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.app .bar-track {
  height: 8px;
  border-radius: 99px;
  background: #e2e9f5;
  overflow: hidden;
  margin-top: 8px;
}

.app .bar-fill {
  height: 100%;
  width: 50%;
  border-radius: 99px;
  background: linear-gradient(90deg, #5a9bf5, var(--blue));
  transition: width 0.6s cubic-bezier(0.3, 1.3, 0.5, 1);
}

.app .plus {
  position: absolute;
  right: 16px;
  top: 12px;
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--blue);
  opacity: 0;
}

.app .plus.go {
  animation: plus 1.1s ease-out;
}

@keyframes plus {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-26px);
  }
}

.app .add {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.app .add:active {
  transform: scale(0.97);
}

.app .add b {
  margin-left: auto;
  font-weight: 800;
  font-size: 0.9rem;
}

.app .label {
  font-weight: 800;
  font-size: 0.92rem;
  margin-top: 2px;
}

.app .tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.app .tile {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 4px 8px;
  border: 0;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(19, 41, 75, 0.07);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.app .tile:active {
  transform: scale(0.94);
}

.app .tile img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* The week, as in the app: a ring a day, today filling up. */
.app .week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
  text-align: center;
  font-size: 0.64rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink-soft);
}

.app .week i {
  --deg: 0deg;
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 2px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) var(--deg), #e2e9f5 0);
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 7px);
  mask: radial-gradient(circle, transparent 6px, #000 7px);
}

.app .week .past i {
  --deg: 360deg;
}

.app .week .today-ring {
  color: var(--blue-deep);
}

@container (max-height: 700px) {
  .app .week-block {
    display: none;
  }
}

@container (max-height: 620px) {
  .app .body {
    gap: 8px;
  }
  .app .today {
    padding: 10px 14px 12px;
  }
  .app .count {
    font-size: 2.2rem;
  }
  .app .tabs {
    padding: 6px 8px 10px;
  }
}

.app .tabs {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 10px 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink-soft);
  text-align: center;
}

.app .tabs span:first-child {
  color: var(--blue-deep);
}

.app .tabs svg {
  display: block;
  margin: 0 auto 2px;
  width: 22px;
  height: 22px;
}

.app .toast {
  position: absolute;
  z-index: 6;
  left: 16px;
  right: 16px;
  bottom: 76px;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
}

.app .toast.show {
  opacity: 1;
  transform: none;
}

.app .goal-done .count {
  color: var(--blue-deep);
}

.side-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.side-links .try-link {
  margin: 0;
}

.again {
  justify-self: start;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 8px 0;
}

.cheer-cta {
  text-align: center;
  margin-top: 26px;
}

.cheer-cta .lead {
  margin-left: auto;
  margin-right: auto;
}

.cheer-cta .actions {
  justify-content: center;
  margin-top: 16px;
}

.confetti {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: calc(var(--sh, 300px) * 0.5);
  width: 0;
  height: 0;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  width: 9px;
  height: 14px;
  border-radius: 3px;
  animation: burst 1.3s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes burst {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    opacity: 0;
  }
}

/* ——— 3. Night lock screen ——— */

.night {
  color: var(--white);
  background:
    radial-gradient(
      1.5px 1.5px at 12% 18%,
      rgba(255, 255, 255, 0.9),
      transparent
    ),
    radial-gradient(
      1.5px 1.5px at 28% 62%,
      rgba(255, 255, 255, 0.7),
      transparent
    ),
    radial-gradient(2px 2px at 44% 24%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(
      1.5px 1.5px at 63% 80%,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(2px 2px at 76% 14%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(
      1.5px 1.5px at 90% 52%,
      rgba(255, 255, 255, 0.7),
      transparent
    ),
    radial-gradient(
      60% 50% at 70% 60%,
      rgba(70, 110, 230, 0.35),
      transparent 70%
    ),
    linear-gradient(180deg, var(--night-1), var(--night-2));
  padding: 30px 0 70px;
}

.night .layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 940px) {
  .night .layout {
    grid-template-columns: 1fr 1fr;
  }
}

.night h2 em {
  color: #8fb6ff;
}

.night .copy p {
  color: #c4d1f0;
  font-size: 1.15rem;
  margin-top: 18px;
  max-width: 28em;
}

.lock {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.lock .clock {
  font-weight: 900;
  font-size: clamp(4.5rem, 12vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.lock .date {
  font-weight: 800;
  color: #c4d1f0;
  margin-top: -8px;
}

.notif {
  width: min(400px, 100%);
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 24px;
  padding: 14px 16px 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.notif header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.notif header img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.notif header span:last-child {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.notif strong {
  display: block;
  font-weight: 900;
  font-size: 1.05rem;
  margin-top: 8px;
}

.notif p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.notif .acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.notif .acts button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  background: #e8eefb;
  color: var(--ink);
}

.notif .acts button:first-child {
  background: var(--blue);
  color: var(--white);
}

.notif .acts button.done {
  background: var(--ok);
}

.lock .moon-mochi {
  position: relative;
  width: 230px;
  height: 230px;
  margin-top: 6px;
}

.lock .moon-mochi .buddy {
  top: 0;
  left: 50%;
}

/* Here Mochi is 210 px tall from the top of a 230 px box. */
.lock .moon-mochi .floor {
  top: calc(210px * 0.924 - 340px * 0.228);
  width: 340px;
}

/* ——— 4. The drinks band ——— */

.drinks-sec {
  padding: 40px 0 90px;
  background: linear-gradient(180deg, var(--mist), #efeaff);
}

.drinks {
  display: grid;
  margin-top: 36px;
}

/* Each row is its list four times over, sliding by half its length, faded
   at the screen's sides. A hover holds it still. The padding leaves the
   cards' whole shadow inside, so its edge doesn't show. */
.band {
  overflow: hidden;
  padding: 4px 0 38px;
  margin-bottom: -22px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.band .track {
  display: flex;
  width: max-content;
  animation: band 48s linear infinite;
}

.band.reverse .track {
  animation-duration: 54s;
  animation-direction: reverse;
}

.band:hover .track {
  animation-play-state: paused;
}

@keyframes band {
  to {
    transform: translateX(-50%);
  }
}

.band ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.band li {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 14px;
  padding: 10px 22px 10px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--white);
  box-shadow: 0 10px 26px rgba(28, 43, 110, 0.08);
  font-weight: 900;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  white-space: nowrap;
}

.band li img {
  width: clamp(48px, 9vw, 64px);
  height: clamp(48px, 9vw, 64px);
  object-fit: contain;
}

/* Without motion: one copy of each row, to scroll by hand. */
@media (prefers-reduced-motion: reduce) {
  .band {
    overflow-x: auto;
    padding: 4px var(--gutter) 38px;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }
  .band::-webkit-scrollbar {
    display: none;
  }
  .band .track {
    animation: none;
  }
  .band ul[aria-hidden] {
    display: none;
  }
}

/* ——— 5. Free bento ——— */

.free {
  padding: 30px 0 90px;
  background: linear-gradient(180deg, #efeaff, var(--mist));
}

.bento {
  display: grid;
  gap: 16px;
  margin-top: 44px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 980px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

.cell {
  background: var(--white);
  border-radius: 30px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  align-content: start;
}

.cell .pic {
  height: 130px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.cell p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 110px;
}

.bars i {
  width: 18px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #8db7ff, var(--blue));
}

.bars i:nth-child(1) {
  height: 52%;
}
.bars i:nth-child(2) {
  height: 74%;
}
.bars i:nth-child(3) {
  height: 62%;
}
.bars i:nth-child(4) {
  height: 96%;
}
.bars i:nth-child(5) {
  height: 44%;
}
.bars i:nth-child(6) {
  height: 82%;
}
.bars i:nth-child(7) {
  height: 100%;
}

.quiz {
  width: 170px;
  display: grid;
  gap: 7px;
}

.quiz b {
  justify-self: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e8eefb;
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 900;
}

.quiz span {
  height: 14px;
  border-radius: 7px;
  background: #e8eefb;
}

.quiz span.right {
  background: #2ccf87;
}

.pair {
  position: relative;
  width: 200px;
  height: 130px;
}

.pair img {
  position: absolute;
  bottom: 0;
  width: 110px;
  height: 110px;
}

.pair img:first-child {
  left: 6px;
}

.pair img:nth-child(2) {
  right: 6px;
}

.pair svg {
  position: absolute;
  left: 50%;
  top: 0;
  width: 34px;
  transform: translateX(-50%);
  animation: beat 1.4s ease-in-out infinite;
}

@keyframes beat {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  40% {
    transform: translateX(-50%) scale(1.18);
  }
}

.cell .pic svg.big {
  width: 104px;
  height: 104px;
}

.gauge {
  position: relative;
  width: 190px;
  height: 22px;
  border-radius: 11px;
  background: #e8eefb;
  overflow: visible;
}

.gauge i {
  position: absolute;
  inset: 0 26% 0 0;
  border-radius: 11px;
  background: linear-gradient(90deg, #8db7ff, var(--blue));
}

.gauge b {
  position: absolute;
  right: 18%;
  top: -14px;
  bottom: -14px;
  width: 4px;
  border-radius: 2px;
  background: var(--ink);
}

.premium-note {
  text-align: center;
  margin-top: 30px;
  color: var(--ink-soft);
  font-weight: 800;
}

/* ——— 6. Stage and wall ——— */

.stage {
  color: var(--white);
  background:
    linear-gradient(180deg, #120c3a 0, rgba(18, 12, 58, 0) 180px),
    #120c3a url("/img/ad-scene.webp") center 38% / cover no-repeat;
  padding: 60px 0 0;
  overflow: clip;
}

.stage::after {
  content: "";
  display: block;
  height: 80px;
  background: linear-gradient(180deg, transparent, #160f45);
}

.stage .title p {
  color: #d9d3ff;
}

.stage h2 em {
  color: var(--gold);
}

.crew {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0px, 1.5vw, 18px);
  margin-top: 30px;
  padding: 0 4px;
}

.crew .member {
  display: grid;
  justify-items: center;
  gap: 4px;
  flex: 0 1 190px;
}

.crew .buddy {
  position: relative;
  left: auto;
  top: auto;
  margin: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.crew .member .tag {
  font-weight: 900;
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 12, 58, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.crew .member .tag i {
  font-style: normal;
}

/* On a phone the crew stands in two rows (3 + 2), big enough to see. */
@media (max-width: 600px) {
  .crew {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .crew .member {
    flex: 0 0 31%;
  }
  .crew .member .tag {
    font-size: 0.72rem;
    padding: 3px 9px;
  }
  .crew .member .tag i {
    display: none;
  }
}

.crew .member .tag.offered {
  background: rgba(61, 220, 132, 0.22);
  border-color: rgba(61, 220, 132, 0.5);
}

.wall-sec {
  padding: 40px 0 90px;
  background: linear-gradient(
    180deg,
    #160f45 0%,
    #241a6b 40%,
    var(--ocean-1) 100%
  );
  color: var(--white);
}

.wall-sec .title p {
  color: #d9d3ff;
}

.wall-sec h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

@media (max-width: 760px) {
  .wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wall figure:nth-child(n + 10) {
    display: none;
  }
}

.wall figure {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  animation: wave-bob 3.2s ease-in-out infinite;
}

.wall figure:nth-child(6n + 1) {
  animation-delay: 0s;
}
.wall figure:nth-child(6n + 2) {
  animation-delay: -0.25s;
}
.wall figure:nth-child(6n + 3) {
  animation-delay: -0.5s;
}
.wall figure:nth-child(6n + 4) {
  animation-delay: -0.75s;
}
.wall figure:nth-child(6n + 5) {
  animation-delay: -1s;
}
.wall figure:nth-child(6n + 6) {
  animation-delay: -1.25s;
}
.wall figure:nth-child(n + 7) {
  animation-delay: -1.6s;
}

@keyframes wave-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.wall figure > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wall figure .on {
  position: absolute;
  left: 23%;
  bottom: 4%;
  width: 54%;
}

.wall figcaption {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.wall-note {
  margin-top: 34px;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  color: #d9d3ff;
}

/* ——— 7. Ocean waitlist ——— */

.ocean {
  color: var(--white);
  background:
    linear-gradient(180deg, var(--ocean-1) 0, rgba(10, 42, 134, 0) 180px),
    var(--ocean-1) url("/img/ad-ocean.webp") center top / cover no-repeat;
  padding: 80px 0 0;
  overflow: clip;
}

.ocean .brandmark {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.ocean .brandmark img {
  width: 116px;
  height: 116px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 10, 60, 0.45);
}

.ocean .brandmark h2 {
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  letter-spacing: -0.035em;
}

.ocean .brandmark p {
  font-weight: 800;
  font-size: 1.25rem;
  color: #d5e3ff;
}

.join {
  width: min(560px, 100%);
  margin: 34px auto 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-radius: 32px;
  padding: 28px 24px;
  box-shadow: 0 30px 70px rgba(0, 10, 60, 0.4);
}

@media (min-width: 600px) {
  .join {
    padding: 32px 34px;
  }
}

/* Cloudflare's anti-robot box needs 300px: on a narrow phone the card
   takes a little of the side margins to give it room. */
@media (max-width: 420px) {
  .join {
    width: calc(100% + 16px);
    margin-left: -8px;
    margin-right: -8px;
    padding: 24px 20px;
  }
}

.join h3 {
  font-size: 1.6rem;
}

.join > p {
  color: var(--ink-soft);
  margin-top: 8px;
}

form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 900;
  font-size: 0.95rem;
}

input[type="email"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--app-bg);
  border: 2px solid #dbe3f2;
  border-radius: 18px;
  transition: border-color 0.15s ease;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(58, 123, 242, 0.16);
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.check.big {
  padding: 14px 16px;
  border-radius: 18px;
  background: #eef3ff;
  font-weight: 800;
}

.check small {
  display: block;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin-top: 2px;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.message {
  font-weight: 800;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.message.error {
  color: var(--error);
}

.join .btn-primary {
  width: 100%;
}

.done {
  text-align: center;
  padding: 10px 6px;
}

.done .buddy {
  position: relative;
  left: auto;
  top: auto;
  margin: 0 auto 6px;
  width: 170px;
  height: 170px;
}

.done h3 {
  font-size: 1.7rem;
}

.done p {
  color: var(--ink-soft);
  margin-top: 8px;
}

/* The crew waving goodbye. */
.shore {
  position: relative;
  height: 230px;
  margin-top: 40px;
}

.shore .crew {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  margin: 0;
}

.shore .crew img {
  width: 100%;
  height: auto;
}

.shore .crew .member {
  flex-basis: 170px;
  animation: bob 4s ease-in-out infinite;
}

.shore .crew .member:nth-child(2) {
  animation-delay: -0.8s;
}
.shore .crew .member:nth-child(3) {
  animation-delay: -1.6s;
}
.shore .crew .member:nth-child(4) {
  animation-delay: -2.4s;
}
.shore .crew .member:nth-child(5) {
  animation-delay: -3.2s;
}

@media (max-width: 600px) {
  .shore {
    height: 150px;
    margin-top: 28px;
  }
  .shore .crew {
    flex-wrap: nowrap;
    bottom: 16px;
  }
  .shore .crew .member {
    flex: 0 1 19%;
  }
}

/* ——— 8. FAQ ——— */

.faq-sec {
  padding: 80px 0;
  background: var(--mist);
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 40px auto 0;
}

.faq details {
  background: var(--white);
  border-radius: 22px;
  padding: 4px 22px;
  box-shadow: var(--shadow-soft);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 16px 32px 16px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3ff;
  color: var(--blue);
  font-weight: 900;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--ink-soft);
  padding-bottom: 18px;
}

/* ——— Long pages (privacy, deletion, legal) ——— */

.doc {
  padding: 28px 0 80px;
  background:
    radial-gradient(
      60% 40% at 10% 0%,
      rgba(198, 186, 255, 0.45),
      transparent 70%
    ),
    radial-gradient(
      50% 40% at 95% 10%,
      rgba(176, 208, 255, 0.5),
      transparent 70%
    );
}

.doc article {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px var(--gutter);
  background: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 720px) {
  .doc article {
    padding: 48px 52px;
  }
}

.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.doc .updated {
  color: var(--ink-soft);
  margin-top: 10px;
  font-size: 0.95rem;
}

.doc h2 {
  font-size: 1.45rem;
  margin-top: 38px;
  margin-bottom: 10px;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc p + p {
  margin-top: 10px;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.doc strong {
  color: var(--ink);
}

.doc .box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #eef3ff;
}

.doc .box p {
  color: var(--ink);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.94rem;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid #e2e9f5;
  color: var(--ink-soft);
}

.doc th {
  color: var(--ink);
  font-weight: 900;
}

.table-scroll {
  overflow-x: auto;
}

.lost article {
  text-align: center;
}

.lost img {
  margin: 0 auto 12px;
}

.lost .actions {
  justify-content: center;
}

/* ——— Footer ——— */

footer {
  padding: 40px 0 48px;
  background: var(--mist);
  border-top: 1px solid #e2e6f5;
}

footer .wrap {
  display: grid;
  gap: 22px;
}

@media (min-width: 820px) {
  footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

footer p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 8px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

footer nav a {
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
}

footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ——— The waitlist as a dialog (one-screen pages) ——— */

.join-dialog {
  width: min(560px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: none;
  overflow: auto;
}

.join-dialog::backdrop {
  background: rgba(10, 20, 60, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.join-dialog .join {
  position: relative;
  width: 100%;
  margin: 0;
}

@media (max-width: 420px) {
  .join-dialog {
    width: calc(100% - 16px);
    max-width: none;
  }
}

.join-dialog h2 {
  font-size: 1.6rem;
  padding-right: 40px;
}

.join .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--ink);
  cursor: pointer;
}

.join .close svg {
  width: 18px;
  height: 18px;
}

/* ——— One-screen pages: shared header and footer ——— */

.bare {
  background: linear-gradient(180deg, #fbfaff 0%, #eef0ff 60%, #e6ebff 100%);
}

.x-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.x-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 16px;
  padding: 6px var(--gutter) 10px;
  font-size: 0.8rem;
}

.x-foot a {
  color: var(--ink-soft);
  font-weight: 800;
  text-decoration: none;
}

.x-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ——— /app/: the ad, one sentence, the button ——— */

.express {
  height: 100svh;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

/* On a phone: the title, the ad filling what is left, then the buttons. */
.x-main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.x-copy {
  display: contents;
}

.x-copy .lead,
.x-copy .trust {
  display: none;
}

.x-copy h1 {
  grid-row: 1;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
}

.x-video {
  grid-row: 2;
  min-height: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.x-frame {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #6fa0f5;
  box-shadow: 0 24px 60px rgba(28, 43, 110, 0.25);
}

.x-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.x-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 24, 56, 0.55);
  color: var(--white);
  cursor: pointer;
}

.x-toggle svg {
  width: 18px;
  height: 18px;
}

.x-copy .actions {
  grid-row: 3;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
}

@media (max-width: 859px) {
  .x-copy .actions .btn {
    flex: 1 1 0;
    min-height: 50px;
    padding: 0 14px;
  }
  .x-copy .actions .long {
    display: none;
  }
  .x-copy .actions .short {
    display: inline;
  }
}

/* On a computer: the words on the left, the ad standing on the right. */
@media (min-width: 860px) {
  .x-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    padding-bottom: 8px;
    text-align: left;
  }
  .x-copy {
    display: block;
  }
  .x-copy .lead,
  .x-copy .trust {
    display: block;
  }
  .x-copy h1 {
    font-size: clamp(3rem, 5.4vw, 4.6rem);
    line-height: 0.98;
  }
  .x-copy .actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 28px;
  }
  .x-video {
    grid-row: auto;
    height: 100%;
    max-height: 860px;
    padding: 6px 0;
  }
}

/* ——— /try/: the demo, full screen on a phone ——— */

.trypage {
  height: 100svh;
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}

.trypage .x-top .brand {
  margin-right: 0;
}

/* A narrow phone keeps the logo, the badge and the button on one line. */
@media (max-width: 480px) {
  .trypage .x-top .brand {
    font-size: 0;
    gap: 0;
  }
}

.demo-badge {
  margin-right: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7ddff;
  color: #4a2fb0;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.t-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* Read by screen readers and search engines; on a phone, the demo needs
   the whole screen. */
.t-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.t-side {
  display: none;
}

.trypage .app {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.trypage .app::before {
  display: none;
}

.trypage .app .screen {
  height: 100%;
  border-radius: 0;
}

.trypage .app .settings {
  top: 14px;
}

.t-cheer {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 16px;
  width: min(440px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(19, 41, 75, 0.3);
}

.t-cheer p {
  font-weight: 900;
  font-size: 1.1rem;
}

.t-cheer .actions {
  margin: 0;
  flex-wrap: nowrap;
  width: 100%;
}

.t-cheer .actions .btn {
  flex: 1 1 0;
  min-height: 48px;
  padding: 0 12px;
}

.t-cheer .actions .long {
  display: none;
}

.t-cheer .actions .short {
  display: inline;
}

.t-cheer .again {
  justify-self: center;
}

@media (min-width: 860px) {
  .t-main {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter) 20px;
  }
  .t-intro {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    display: grid;
    gap: 16px;
  }
  .t-intro h1 {
    font-size: clamp(2.6rem, 4.4vw, 3.8rem);
  }
  .t-intro p {
    color: var(--ink-soft);
  }
  .t-side {
    display: grid;
    gap: 14px;
    color: var(--ink-soft);
  }
  .t-side .big {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--ink);
    line-height: 1.15;
  }
  .t-side .actions {
    margin-top: 6px;
  }
  .t-side .trust {
    margin-top: 0;
  }
  .trypage .app {
    width: 360px;
    height: min(760px, calc(100svh - 84px));
    padding: 10px;
    border-radius: 48px;
    background: #0c1730;
    box-shadow:
      0 40px 80px rgba(23, 44, 120, 0.32),
      inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  }
  .trypage .app::before {
    display: block;
  }
  .trypage .app .screen {
    border-radius: 39px;
  }
  .trypage .app .settings {
    top: 44px;
  }
}

/* ——— Reveal ——— */

/* Hidden only once the script runs, so the page never stays blank without it. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bubbles span,
  .wall figure,
  .shore .crew .member,
  .pair svg,
  .buddy.jump {
    animation: none;
  }
}
