/* Pothy showcase: the promo film's world (cream paper, paper-cut stickers
   that tremble at 4 fps, Pothy the pot), with the app's tokens. No build,
   no framework, no third-party requests. */

@font-face {
  font-family: 'Roboto';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/roboto-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/roboto-medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/roboto-bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-weight: 800 900;
  font-display: swap;
  src: url('fonts/roboto-black.woff2') format('woff2');
}

:root {
  --green: #2ecc71;
  --green-strong: #1e9e55;
  --green-soft: #e3f8ec;
  --orange: #ffa534;
  --orange-strong: #d9800f;
  --orange-soft: #fff1de;
  --water: #3ba7e8;
  --water-deep: #1579b6;
  --water-soft: #e6f4fc;
  --danger: #c9353a;
  --danger-soft: #fdecec;
  --ink: #1d1b20;
  --gray: #5f6368;
  --gray-light: #8e8e93;
  --line: #e5e5ea;
  --grouped: #f2f2f7;
  --cream: #fbf5ea;
  --paper: 0 5px 0 rgba(29, 27, 32, 0.16);
  --soft-shadow: 0 16px 44px rgba(29, 27, 32, 0.12);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 10px;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 60;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  border-radius: 0 4px 4px 0;
}

/* ------------------------------------------------------------------ header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 234, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29, 27, 32, 0.06);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.6px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--paper);
  transition: transform 0.4s var(--pop);
}

.brand:hover .brand-mark {
  transform: rotate(-12deg) scale(1.08);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

/* The designer's wordmark (docs/design/brand/), next to the leaf. */
.brand-word {
  display: block;
  width: auto;
  height: 60px;
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray);
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: rgba(46, 204, 113, 0.14);
  color: var(--green-strong);
}

.lang {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex: none;
}

.lang a {
  font-weight: 800;
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--gray);
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

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

.lang a[aria-current='page'] {
  background: var(--green);
  color: #fff;
}

.notify-link {
  flex: none;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 0 var(--green-strong);
  transition: transform 0.25s var(--pop);
}

.notify-link:hover {
  transform: translateY(-1px) scale(1.04);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The other language, offered once to a browser that speaks it. */
.lang-hint {
  position: sticky;
  top: 64px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 44px 8px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  animation: hint-in 0.5s var(--pop) both;
  transition: opacity 0.3s, transform 0.3s;
}

.lang-hint a {
  color: var(--green);
  font-weight: 800;
}

.lang-hint button {
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.lang-hint.gone {
  opacity: 0;
  transform: translateY(-100%);
}

@keyframes hint-in {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  flex: none;
  transition: transform 0.25s var(--pop);
}

.admin-link:hover {
  transform: translateY(-1px) scale(1.04);
}

.admin-link svg {
  width: 15px;
  height: 15px;
}

/* ------------------------------------------------------------------ bits */

.sticker {
  --r: -2deg;
  display: inline-block;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  padding: 0.3em 0.58em 0.34em;
  border-radius: 0.42em;
  box-shadow: var(--paper);
  transform: rotate(var(--r));
  animation: boil 0.5s steps(1) infinite;
}

.sticker.green {
  color: var(--green-strong);
}

.sticker.orange {
  color: var(--orange-strong);
}

.sticker.water {
  color: var(--water);
}

.sticker.solid {
  background: var(--green-strong);
  color: #fff;
}

.sticker.solid-orange {
  background: var(--orange);
  color: #fff;
}

.sticker.solid-red {
  background: var(--danger);
  color: #fff;
}

/* Paper cut-outs never sit still: a small tremble, four images a second. */
@keyframes boil {
  0% {
    transform: rotate(var(--r)) translate(0, 0);
  }
  33% {
    transform: rotate(calc(var(--r) + 0.7deg)) translate(0.6px, -0.4px);
  }
  66% {
    transform: rotate(calc(var(--r) - 0.5deg)) translate(-0.5px, 0.5px);
  }
}

@keyframes sticker-in {
  from {
    opacity: 0;
    transform: rotate(var(--r)) scale(0.2);
  }
  to {
    opacity: 1;
    transform: rotate(var(--r)) scale(1);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  font-size: 0.86em;
  font-weight: 700;
  background: var(--grouped);
  color: var(--gray);
  white-space: nowrap;
}

.badge svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.badge.green {
  background: var(--green-soft);
  color: var(--green-strong);
}

.badge.orange {
  background: var(--orange-soft);
  color: var(--orange-strong);
}

.badge.water {
  background: var(--water-soft);
  color: var(--water-deep);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.muted {
  color: var(--gray);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 24px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--pop), box-shadow 0.25s;
}

.pill:hover {
  transform: translateY(-2px) scale(1.03);
}

.pill:active {
  transform: translateY(2px) scale(0.98);
}

.pill.green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 5px 0 var(--green-strong);
}

.pill.green:active {
  box-shadow: 0 2px 0 var(--green-strong);
}

.pill.ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--paper);
}

.pill.small {
  font-size: 14px;
  padding: 10px 16px;
}

.pill svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.pill.small svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------------ Pothy */

[data-pothy] {
  display: block;
}

.pothy {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
}

.pothy .shadow {
  fill: var(--pot-ink, #cc7000);
  opacity: 0.16;
}

.pothy .body {
  fill: var(--pot, #ffa534);
}

.pothy .rim {
  fill: var(--pot-ink, #cc7000);
}

.pothy .shine {
  fill: #fff;
  opacity: 0.3;
}

.pothy .lf {
  fill: var(--green);
}

.pothy .lf.dark {
  fill: var(--green-strong);
}

.pothy .stem {
  fill: none;
  stroke: var(--green-strong);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.pothy .vein {
  stroke: #e3f8ec;
  stroke-opacity: 0.8;
  stroke-linecap: round;
}

.pothy .plant {
  transform-box: view-box;
  transform-origin: 50px 60px;
  animation: sway 3.6s ease-in-out infinite var(--sd, 0s);
}

.pothy .arm {
  transform-box: view-box;
  transform-origin: 50px 60px;
  transform: rotate(calc(var(--side) * var(--droop, 0) * 42deg));
  transition: transform 1.3s var(--pop);
}

.pothy .leaf {
  transform-box: view-box;
  animation: flutter 1.8s ease-in-out infinite var(--d, 0s);
}

.pothy.sad {
  --droop: 1;
}

.pothy.sad .plant {
  animation-duration: 7s;
}

.pothy .eyes {
  transform-box: view-box;
  transform-origin: 50px 74.5px;
  animation: blink 4.2s infinite var(--bd, 0s);
}

.pothy .eyes ellipse {
  fill: var(--pot-ink, #cc7000);
}

.pothy .glint {
  fill: #fff;
  opacity: 0.85;
}

.pothy .gaze {
  transform: translate(calc(var(--lx, 0) * 1.8px), calc(var(--ly, 0) * 1.3px));
  transition: transform 0.3s var(--out);
}

.pothy .mouth,
.pothy .brows {
  fill: none;
  stroke: var(--pot-ink, #cc7000);
  stroke-width: 1.4;
  stroke-linecap: round;
  transition: opacity 0.5s;
}

.pothy .brows {
  stroke-width: 1.2;
}

.pothy .frown,
.pothy .brows {
  opacity: 0;
}

.pothy.sad .frown,
.pothy.sad .brows {
  opacity: 1;
}

.pothy.sad .smile {
  opacity: 0;
}

.pothy .cheek {
  fill: #ff6f61;
  opacity: 0;
  transition: opacity 0.6s;
}

.pothy.blush .cheek {
  opacity: 0.42;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-2.8deg);
  }
  50% {
    transform: rotate(2.8deg);
  }
}

@keyframes flutter {
  0%,
  100% {
    transform: rotate(-2.8deg);
  }
  50% {
    transform: rotate(2.8deg);
  }
}

@keyframes blink {
  0%,
  88%,
  94%,
  100% {
    transform: scaleY(1);
  }
  91% {
    transform: scaleY(0.12);
  }
}

/* ------------------------------------------------------------------ headings */

.h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin: 16px 0 14px;
}

.h2 em,
.step h3 em {
  font-style: normal;
  color: var(--green-strong);
}

.h2 em.red {
  color: var(--danger);
}

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 30px;
}

.section-head p {
  color: var(--gray);
  font-size: 19px;
  margin: 0;
}

.section-head .sticker,
.step-text > .sticker {
  font-size: 17px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 48px 0 36px;
  background: radial-gradient(ellipse at 75% 55%, rgba(255, 241, 222, 0.95), transparent 60%),
    radial-gradient(ellipse at 10% 10%, rgba(227, 248, 236, 0.9), transparent 55%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 9px;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s var(--pop);
  font-weight: 800;
  font-size: 14px;
  color: var(--orange-strong);
  background: var(--orange-soft);
  padding: 7px 14px;
  border-radius: 999px;
}

a.eyebrow:hover {
  transform: scale(1.03);
}

.eyebrow b {
  color: var(--green-strong);
  font-weight: 900;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  animation: ping 1.6s infinite;
}

@keyframes ping {
  from {
    box-shadow: 0 0 0 0 rgba(255, 165, 52, 0.7);
  }
  to {
    box-shadow: 0 0 0 11px rgba(255, 165, 52, 0);
  }
}

.hero h1 {
  font-size: clamp(46px, 7.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
  margin: 20px 0;
}

.kicker {
  display: block;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--gray);
  margin-bottom: 14px;
}

.fam {
  color: var(--green-strong);
  position: relative;
  white-space: nowrap;
  display: inline-block;
}

.fam svg {
  position: absolute;
  left: -2%;
  width: 104%;
  bottom: -0.1em;
  height: 0.26em;
  overflow: visible;
}

.fam path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw 1.1s 0.7s var(--out) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero .lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--gray);
  max-width: 32em;
  margin: 0 0 28px;
}

.ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.tagline {
  margin: 22px 0 0;
  font-weight: 800;
  color: var(--gray);
}

.stage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  container-type: inline-size;
}

.stage .shelf {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  height: 2.6%;
  border-radius: 99px;
  background: rgba(204, 112, 0, 0.26);
}

.star {
  position: absolute;
  width: 62%;
  left: 19%;
  bottom: 5.4%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 40%;
  animation: land 1s 0.15s var(--pop) both;
  -webkit-tap-highlight-color: transparent;
}

.star .pothy {
  transform-origin: 50% 92%;
}

.star.boing .pothy {
  animation: boing 0.7s var(--pop);
}

@keyframes land {
  0% {
    transform: translateY(-130%);
    opacity: 0;
  }
  50% {
    transform: translateY(0) scale(1.12, 0.86);
    opacity: 1;
  }
  72% {
    transform: scale(0.96, 1.05);
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

@keyframes boing {
  0% {
    transform: none;
  }
  25% {
    transform: scale(1.16, 0.84);
  }
  50% {
    transform: scale(0.92, 1.1) translateY(-4%);
  }
  75% {
    transform: scale(1.04, 0.97);
  }
  100% {
    transform: none;
  }
}

.stage .sticker {
  position: absolute;
  font-size: clamp(17px, 5.6cqw, 30px);
  opacity: 0;
  animation: sticker-in 0.6s var(--pop) forwards var(--at), boil 0.5s steps(1) infinite calc(var(--at) + 0.6s);
}

.stage .s1 {
  --r: -4deg;
  --at: 1s;
  top: 3%;
  left: 2%;
}

.stage .s2 {
  --r: 5deg;
  --at: 1.5s;
  top: 14%;
  right: 1%;
  font-size: clamp(14px, 4cqw, 21px);
}

.stage .s3 {
  --r: 2deg;
  --at: 2.1s;
  bottom: -1%;
  right: 3%;
  font-size: clamp(15px, 4.6cqw, 25px);
}

.heart {
  position: absolute;
  width: 10%;
  left: 45%;
  top: 22%;
  animation: fade-pop 0.5s 2.6s var(--pop) both, beat 1.1s 3.1s ease-in-out infinite;
}

@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.2);
  }
  45% {
    transform: scale(0.95);
  }
}

@keyframes fade-pop {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
}

.hint {
  position: absolute;
  left: 3%;
  top: 46%;
  font-size: clamp(13px, 3.4cqw, 16px);
  font-weight: 700;
  font-style: italic;
  color: var(--gray-light);
  rotate: -8deg;
  animation: fade-pop 0.6s 3.6s both;
}

.hugged .hint {
  visibility: hidden;
}

.sparkle {
  position: absolute;
  width: 24px;
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
}

.float-heart {
  position: absolute;
  width: 8%;
  pointer-events: none;
  animation: float-up 1.3s var(--out) forwards;
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3) rotate(var(--tilt));
  }
  15% {
    opacity: 1;
    transform: translate(0, -20%) scale(1.1) rotate(var(--tilt));
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), -320%) scale(0.8) rotate(var(--tilt));
  }
}

/* ------------------------------------------------------------------ steps */

section {
  scroll-margin-top: 70px;
}

.prologue {
  padding: 40px 0 20px;
}

.steps {
  padding: 60px 0 10px;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}

.steps .step:nth-of-type(even) .step-text {
  order: 2;
}

.step-text p {
  color: var(--gray);
  font-size: 18px;
  margin: 0 0 14px;
}

.num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 23px;
  box-shadow: var(--paper);
  rotate: -6deg;
}

.step h3 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin: 16px 0 14px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 11px;
}

.checks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-weight: 600;
}

.checks li::before {
  content: '';
  flex: none;
  width: 23px;
  height: 23px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E9E55' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.in .checks li {
  animation: check-in 0.5s 0.2s var(--pop) both;
}

.in .checks li:nth-child(2) {
  animation-delay: 0.32s;
}

.in .checks li:nth-child(3) {
  animation-delay: 0.44s;
}

@keyframes check-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
}

#dry {
  margin-top: 10px;
}

#dry .when-dry,
#dry[aria-pressed='true'] .when-wet {
  display: none;
}

#dry[aria-pressed='true'] .when-dry {
  display: inline;
}

#dry[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--paper);
}

/* ------------------------------------------------------------------ sets */

.set {
  position: relative;
  border-radius: 34px;
  background: linear-gradient(180deg, var(--green-soft), #fff 90%);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  max-width: 540px;
  justify-self: center;
}

.set.warm {
  background: linear-gradient(180deg, var(--orange-soft), #fff 90%);
}

.set.has-phone {
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.set > .sticker {
  position: absolute;
  z-index: 8;
  font-size: clamp(14px, 3.9cqw, 21px);
  max-width: 46%;
}

/* One-shot stickers pop when the scene enters. */
.js .set > .sticker.pop {
  opacity: 0;
}

.js .in .set > .sticker.pop {
  animation: sticker-in 0.6s var(--pop) forwards var(--at, 0.4s), boil 0.5s steps(1) infinite calc(var(--at, 0.4s) + 0.6s);
}

.phone {
  position: relative;
  width: min(66%, 272px);
  aspect-ratio: 1 / 2.05;
  background: var(--ink);
  border-radius: 13% / 6.3%;
  padding: 2.8%;
  box-shadow: 0 22px 44px rgba(29, 27, 32, 0.24);
  container-type: inline-size;
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 10.5% / 5.1%;
  background: #fff;
  overflow: hidden;
  font-size: 4.7cqw;
  line-height: 1.3;
}

.notch {
  position: absolute;
  top: 1.6%;
  left: 50%;
  width: 30%;
  height: 3.4%;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 99px;
  z-index: 9;
}

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1em;
  box-shadow: 0 6px 16px rgba(29, 27, 32, 0.08);
}

/* 1. Snap. A 7 s loop: aim, flash, think, meet. */
.cam {
  background: linear-gradient(180deg, #e9f5ec 0%, #d6eadb 70%, var(--ink) 70%);
}

.viewfinder {
  position: absolute;
  inset: 13% 9% 36%;
  animation: breathe 1.7s ease-in-out infinite;
}

.viewfinder i {
  position: absolute;
  width: 20%;
  height: 13%;
  border: 0.35em solid #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.viewfinder i:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 0.8em;
}

.viewfinder i:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 0.8em;
}

.viewfinder i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 0.8em;
}

.viewfinder i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 0.8em;
}

@keyframes breathe {
  50% {
    transform: scale(0.95);
  }
}

.snap-pothy {
  position: absolute;
  width: 64%;
  left: 18%;
  top: 22%;
}

.shutter {
  position: absolute;
  bottom: 9%;
  left: 50%;
  width: 20%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.25em var(--ink), 0 0 0 0.5em #fff;
  animation: shutter 7s infinite;
}

@keyframes shutter {
  0%,
  15%,
  21%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  18% {
    transform: translateX(-50%) scale(0.82);
  }
}

.flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: flash 7s infinite;
  pointer-events: none;
  z-index: 6;
}

@keyframes flash {
  0%,
  18%,
  27%,
  100% {
    opacity: 0;
  }
  19.5% {
    opacity: 1;
  }
}

.idchip {
  position: absolute;
  left: 50%;
  top: 13%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.9em;
  background: #fff;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(29, 27, 32, 0.12);
  opacity: 0;
  animation: idchip 7s var(--pop) infinite;
  z-index: 5;
}

.spin {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 0.18em solid var(--green-soft);
  border-top-color: var(--green-strong);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes idchip {
  0%,
  21% {
    opacity: 0;
    scale: 0.7;
  }
  24%,
  33% {
    opacity: 1;
    scale: 1;
  }
  36%,
  100% {
    opacity: 0;
    scale: 0.7;
  }
}

.result {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 4%;
  padding: 7% 7% 6%;
  border: 0.14em solid var(--green);
  transform: translateY(135%);
  animation: result 7s var(--pop) infinite;
  z-index: 7;
}

@keyframes result {
  0%,
  33% {
    transform: translateY(135%);
  }
  40%,
  92% {
    transform: none;
  }
  100% {
    transform: translateY(135%);
  }
}

.result b {
  font-size: 1.6em;
  display: block;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.result i {
  color: var(--gray);
  display: block;
  margin-bottom: 0.5em;
}

.mini-cta {
  display: block;
  text-align: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.6em;
  margin-top: 0.8em;
}

.set > .loop-a,
.set > .loop-b,
.set > .loop-c {
  opacity: 0;
}

.set > .loop-a {
  animation: boil 0.5s steps(1) infinite, loop-a 7s var(--pop) infinite;
}

.set > .loop-b {
  animation: boil 0.5s steps(1) infinite, loop-b 7s var(--pop) infinite;
}

.set > .loop-c {
  animation: boil 0.5s steps(1) infinite, loop-c 7s var(--pop) infinite;
}

@keyframes loop-a {
  0%,
  16% {
    opacity: 0;
    scale: 0.3;
  }
  18.5%,
  28% {
    opacity: 1;
    scale: 1;
  }
  31%,
  100% {
    opacity: 0;
    scale: 0.3;
  }
}

@keyframes loop-b {
  0%,
  39% {
    opacity: 0;
    scale: 0.3;
  }
  43%,
  89% {
    opacity: 1;
    scale: 1;
  }
  93%,
  100% {
    opacity: 0;
    scale: 0.3;
  }
}

@keyframes loop-c {
  0%,
  58% {
    opacity: 0;
    scale: 0.3;
  }
  62%,
  90% {
    opacity: 1;
    scale: 1;
  }
  94%,
  100% {
    opacity: 0;
    scale: 0.3;
  }
}

/* 2. Reminders. The same 7 s loop: ask, answer, learn. */
.plant-page .hdr {
  height: 33%;
  background: linear-gradient(180deg, var(--green-soft), #fff);
  display: grid;
  place-items: end center;
  padding-bottom: 2%;
}

.plant-page .hdr [data-pothy] {
  width: 56%;
}

.plant-page .body {
  display: block;
  padding: 4% 8% 0;
}

.plant-page h4 {
  margin: 0;
  font-size: 1.9em;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.flip {
  display: grid;
}

.flip > * {
  grid-area: 1 / 1;
}

.flip.chip {
  justify-items: start;
  margin: 0.7em 0 0.9em;
}

.flip .before {
  animation: flip-out 7s infinite;
}

.flip .after {
  opacity: 0;
  animation: flip-in 7s var(--pop) infinite;
}

@keyframes flip-out {
  0%,
  57% {
    opacity: 1;
  }
  59%,
  97% {
    opacity: 0;
  }
}

@keyframes flip-in {
  0%,
  58% {
    opacity: 0;
    scale: 0.6;
  }
  63%,
  96% {
    opacity: 1;
    scale: 1;
  }
  100% {
    opacity: 0;
  }
}

.nextup {
  display: flex;
  gap: 0.7em;
  align-items: center;
  padding: 0.75em;
}

.nextup small {
  display: block;
  font-weight: 800;
  color: var(--gray);
  font-size: 0.72em;
  letter-spacing: 0.06em;
}

.bubble-ic {
  width: 2.4em;
  height: 2.4em;
  flex: none;
  border-radius: 50%;
  background: var(--water-soft);
  color: var(--water);
  display: grid;
  place-items: center;
}

.bubble-ic svg {
  width: 55%;
}

.plant-page .note {
  font-size: 0.86em;
  margin: 0.9em 0 0;
}

.notif {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 7%;
  padding: 0.9em 1em 1em;
  border-radius: 1.3em;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(29, 27, 32, 0.22);
  transform: translateY(-150%);
  animation: notif 7s var(--pop) infinite;
  z-index: 8;
}

@keyframes notif {
  0%,
  6% {
    transform: translateY(-150%);
  }
  13%,
  51% {
    transform: none;
  }
  57%,
  100% {
    transform: translateY(-150%);
  }
}

.notif .app {
  display: flex;
  gap: 0.45em;
  align-items: center;
  color: var(--gray);
  font-size: 0.82em;
}

.notif .app i {
  width: 1.4em;
  height: 1.4em;
  border-radius: 0.4em;
  background: var(--green);
}

.notif b {
  display: block;
  font-size: 1.1em;
  margin: 0.3em 0 0.15em;
}

.notif .muted {
  display: block;
  font-size: 0.9em;
}

.notif .acts {
  display: flex;
  gap: 0.45em;
  margin-top: 0.7em;
}

.notif .acts > span {
  padding: 0.4em 0.8em;
  border-radius: 999px;
  font-weight: 800;
  background: var(--grouped);
  font-size: 0.9em;
}

.notif .acts > span:first-child {
  background: var(--water-soft);
  color: var(--water-deep);
}

.press {
  position: relative;
  animation: press 7s infinite;
}

@keyframes press {
  0%,
  42%,
  47%,
  100% {
    transform: none;
    background: var(--grouped);
  }
  44.5% {
    transform: scale(0.88);
    background: var(--line);
  }
}

.finger {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.6em;
  height: 2.6em;
  margin: -1.3em;
  border-radius: 50%;
  background: rgba(29, 27, 32, 0.22);
  border: 0.18em solid #fff;
  opacity: 0;
  animation: finger 7s infinite;
}

@keyframes finger {
  0%,
  28% {
    opacity: 0;
    transform: translate(90%, 160%);
  }
  36%,
  47% {
    opacity: 1;
    transform: none;
  }
  45% {
    box-shadow: 0 0 0 0.6em rgba(255, 255, 255, 0.6);
  }
  53%,
  100% {
    opacity: 0;
    transform: none;
  }
}

.peek {
  position: absolute;
  width: 25%;
  left: 1%;
  bottom: -3%;
  z-index: 7;
}

.last {
  display: flex;
  gap: 0.7em;
  align-items: center;
  padding: 0.75em;
  margin-top: 0.9em;
}

.last small {
  display: block;
  font-weight: 800;
  color: var(--gray);
  font-size: 0.72em;
  letter-spacing: 0.06em;
}

.thumbs {
  display: flex;
  flex: none;
}

.thumbs i {
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.5em;
  border: 0.15em solid #fff;
  background: linear-gradient(160deg, #bfe9cf, var(--green) 70%);
  margin-left: -0.6em;
}

.thumbs i:first-child {
  margin-left: 0;
  background: linear-gradient(160deg, #ffe1b8, var(--orange) 75%);
}

.thumbs i:last-child {
  background: linear-gradient(160deg, #cfe8f7, var(--water) 75%);
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.9em 1em 1.3em;
  border-top: 1px solid var(--line);
  background: #fff;
}

.tabbar i {
  width: 1.3em;
  height: 1.3em;
  border-radius: 0.4em;
  background: var(--line);
}

.tabbar i.on {
  width: 2.6em;
  border-radius: 999px;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 0.35em var(--green-soft), inset 0 0 0 10em var(--green);
}

.tabbar i.mid {
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--green);
}

/* 3. The family tree, drawn when it scrolls in. */
.links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.links path {
  fill: none;
  stroke: rgba(30, 158, 85, 0.5);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.js .links path {
  stroke-dashoffset: 100;
}

.in .links path {
  animation: draw 0.8s var(--out) forwards;
}

.in .links path:nth-child(1) {
  animation-delay: 0.6s;
}

.in .links path:nth-child(2) {
  animation-delay: 0.75s;
}

.in .links path:nth-child(3) {
  animation-delay: 1.5s;
}

.in .links path:nth-child(4) {
  animation-delay: 1.65s;
}

.node {
  position: absolute;
  translate: -50% -100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.node [data-pothy] {
  width: 100%;
}

.node .sticker {
  font-size: clamp(11px, 3.3cqw, 17px);
  margin-top: -9%;
  white-space: nowrap;
}

.js .node {
  opacity: 0;
}

.in .node {
  animation: node-in 0.7s var(--pop) forwards;
}

.in .n1 {
  animation-delay: 1s;
}

.in .n2 {
  animation-delay: 1.15s;
}

.in .n3 {
  animation-delay: 1.9s;
}

.in .n4 {
  animation-delay: 2.05s;
}

@keyframes node-in {
  from {
    opacity: 0;
    scale: 0.2;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.snip {
  --at: 0.3s;
  top: 7%;
  right: 7%;
}

.family {
  --at: 2.4s;
  top: 6%;
  left: 5%;
  max-width: 34% !important;
}

/* 4. Around you: soft zones, never pins on addresses. */
.set.map {
  background: #efeadb;
}

.map-blocks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 16%, rgba(255, 255, 255, 0.65) 16% 17%),
    repeating-linear-gradient(0deg, transparent 0 13%, rgba(255, 255, 255, 0.65) 13% 14%), #ece6d4;
}

.river {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.zone {
  position: absolute;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.2);
  border: 2px solid rgba(30, 158, 85, 0.35);
  display: grid;
  place-items: center;
  animation: zone 3.2s ease-in-out infinite;
}

.zone b {
  background: var(--green-strong);
  color: #fff;
  border-radius: 999px;
  padding: 0.15em 0.65em;
  font-size: clamp(12px, 3.6cqw, 19px);
  box-shadow: var(--paper);
}

.js .zone {
  opacity: 0;
}

.in .zone {
  animation: node-in 0.7s var(--pop) forwards, zone 3.2s ease-in-out infinite 1s;
}

.in .z2 {
  animation-delay: 0.25s, 1.2s;
}

.in .z3 {
  animation-delay: 0.5s, 1.4s;
}

@keyframes zone {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.05;
  }
}

.here {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px;
  border-radius: 50%;
  background: var(--water);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.here::before,
.here::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(59, 167, 232, 0.35);
  animation: radar 2.4s infinite;
}

.here::after {
  animation-delay: 1.2s;
}

@keyframes radar {
  to {
    transform: scale(7);
    opacity: 0;
  }
}

.listing {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 6%;
  display: flex;
  gap: 0.8em;
  align-items: center;
  padding: 0.8em;
  font-size: clamp(12px, 3.3cqw, 17px);
  z-index: 4;
}

.js .listing {
  opacity: 0;
}

.in .listing {
  animation: rise 0.7s 1s var(--pop) forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(60%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.listing .art,
.swap .art,
.q .art {
  display: block;
  flex: none;
  background: var(--water-soft);
  border-radius: 0.8em;
}

.listing .art {
  width: 26%;
  padding: 3% 3% 0;
}

.listing .info {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  min-width: 0;
}

.listing b {
  font-size: 1.25em;
  line-height: 1.1;
}

.listing .muted {
  font-size: 0.9em;
  line-height: 1.3;
}

.chance {
  --at: 1.9s;
  top: 6%;
  right: 5%;
}

/* 5. Chat and swap. Plays once when it scrolls in. */
.chat {
  display: flex;
  flex-direction: column;
  padding: 16% 5% 4%;
}

.chat-head {
  display: flex;
  gap: 0.55em;
  align-items: center;
  padding-bottom: 0.55em;
  border-bottom: 1px solid var(--line);
  line-height: 1.2;
}

.chat-head .badge {
  margin-left: auto;
}

.chat-head .muted {
  font-size: 0.85em;
}

.av {
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: var(--water-soft);
  color: var(--water-deep);
  flex: none;
}

.swap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35em;
  margin: 0.6em 0 0.4em;
  padding: 0.45em;
  background: var(--orange-soft);
  border: 0.1em solid var(--orange);
  border-radius: 1em;
}

.swap .tile {
  background: #fff;
  border-radius: 0.7em;
  border: 1px solid var(--line);
  padding: 0.35em;
  text-align: center;
  line-height: 1.15;
}

.swap .art {
  background: var(--green-soft);
  padding: 0.1em 14% 0;
}

.swap small {
  display: block;
  font-weight: 900;
  color: var(--orange-strong);
  font-size: 0.66em;
  letter-spacing: 0.05em;
  margin-top: 0.35em;
}

.swap .tile b {
  font-size: 0.9em;
}

.swap .sw {
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: var(--orange);
  border: 0.18em solid #fff;
  display: grid;
  place-items: center;
  position: relative;
}

.swap .sw svg {
  width: 62%;
  height: 62%;
  position: absolute;
}

.swap .tick {
  opacity: 0;
}

.in .swap .sw {
  animation: to-green 0.4s 5.3s forwards, spin-once 0.6s 5.2s var(--pop);
}

.in .swap .arrows {
  animation: hide 0.2s 5.3s forwards;
}

.in .swap .tick {
  animation: node-in 0.5s 5.4s var(--pop) forwards;
}

@keyframes to-green {
  to {
    background: var(--green);
  }
}

@keyframes spin-once {
  from {
    rotate: -180deg;
  }
}

@keyframes hide {
  to {
    opacity: 0;
  }
}

.msgs {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  margin-top: 0.3em;
  font-size: 0.95em;
  line-height: 1.28;
}

.msg {
  max-width: 82%;
  padding: 0.45em 0.7em;
  border-radius: 1em;
  border-bottom-left-radius: 0.3em;
  background: var(--grouped);
  align-self: flex-start;
}

.msg.me {
  align-self: flex-end;
  background: var(--green-soft);
  border-bottom-left-radius: 1em;
  border-bottom-right-radius: 0.3em;
}

.sys {
  align-self: center;
  text-align: center;
  background: var(--green-soft);
  color: var(--green-strong);
  font-weight: 800;
  border-radius: 1em;
  padding: 0.35em 0.8em;
  font-size: 0.86em;
}

.js .msg,
.js .sys {
  opacity: 0;
}

.in .msg,
.in .sys {
  animation: msg-in 0.45s var(--pop) forwards;
}

.in .msg:nth-child(1) {
  animation-delay: 0.9s;
}

.in .msg:nth-child(2) {
  animation-delay: 2s;
}

.in .msg:nth-child(3) {
  animation-delay: 3s;
}

.in .msg:nth-child(4) {
  animation-delay: 4s;
}

.in .sys {
  animation-delay: 5.5s;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(0.8em) scale(0.8);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.composer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.35em 0.35em 0.9em;
  border-radius: 999px;
  background: var(--grouped);
  color: var(--gray-light);
}

.composer span {
  flex: 1;
}

.composer i {
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
}

.composer svg {
  width: 55%;
}

.home {
  --at: 6s;
  top: 5%;
  right: 4%;
}

/* 6. Ask. */
.ask-stack {
  position: absolute;
  inset: 9% 6% 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8em;
  font-size: clamp(11.5px, 3cqw, 16px);
  line-height: 1.35;
}

.js .ask-stack > * {
  opacity: 0;
}

.in .ask-stack > * {
  animation: rise 0.6s var(--pop) forwards;
}

.in .ask-stack > :nth-child(2) {
  animation-delay: 0.7s;
}

.in .ask-stack > :nth-child(3) {
  animation-delay: 1.5s;
}

.q {
  display: flex !important;
  gap: 0.8em;
  align-items: center;
  padding: 0.8em;
}

.q .art {
  width: 22%;
  background: var(--green-soft);
  padding: 2% 2% 0;
}

.q small {
  color: var(--green-strong);
  font-weight: 900;
}

.q b {
  display: block;
  font-size: 1.12em;
  line-height: 1.25;
}

.ai {
  background: var(--green-soft);
  border-radius: 1.1em;
  padding: 0.9em 1em;
}

.ai .t {
  display: flex;
  gap: 0.5em;
  align-items: center;
  font-weight: 900;
  margin-bottom: 0.35em;
}

.ai .t i,
.answer .who i {
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  color: #fff;
  flex: none;
}

.ai .t i {
  background: var(--green-strong);
}

.ai ol {
  margin: 0.4em 0 0;
  padding-left: 1.3em;
  font-weight: 600;
}

.ai li::marker {
  color: var(--green-strong);
  font-weight: 900;
}

.answer {
  padding: 0.9em 1em;
  border: 0.14em solid var(--green);
}

.answer .who {
  display: flex;
  gap: 0.5em;
  align-items: center;
  font-weight: 900;
  margin-bottom: 0.35em;
}

.answer .who i {
  background: var(--orange);
}

.answer .who small {
  font-weight: 500;
  color: var(--gray);
}

.answer .row {
  margin-top: 0.55em;
}

.in .thanks {
  animation: node-in 0.5s 2.5s var(--pop) both;
}

.in .thanks svg {
  animation: beat 1.1s 3s ease-in-out infinite;
}

.stuck {
  --at: 0.1s;
  top: 3%;
  left: 4%;
}

/* Prologue: the drowning, and the rescue. */
.drown {
  background: linear-gradient(180deg, #eaf5fc, #fff 85%);
  transition: background 1s;
}

.drown.dry {
  background: linear-gradient(180deg, var(--orange-soft), #fff 85%);
}

.can {
  position: absolute;
  width: 40%;
  left: 3%;
  top: 12%;
  transform-origin: 40% 80%;
  animation: pour 2.2s ease-in-out infinite;
  transition: opacity 0.6s, translate 0.8s var(--out);
}

@keyframes pour {
  0%,
  100% {
    rotate: 20deg;
  }
  50% {
    rotate: 27deg;
  }
}

.drops {
  position: absolute;
  left: 40%;
  top: 33%;
  width: 12%;
  height: 34%;
  transition: opacity 0.4s;
}

.drops i {
  position: absolute;
  top: 0;
  width: 0.55em;
  height: 0.8em;
  font-size: clamp(10px, 2.6cqw, 16px);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--water);
  animation: fall 0.9s ease-in infinite;
}

.drops i:nth-child(1) {
  left: 10%;
}

.drops i:nth-child(2) {
  left: 45%;
  animation-delay: -0.3s;
}

.drops i:nth-child(3) {
  left: 75%;
  animation-delay: -0.6s;
}

.drops i:nth-child(4) {
  left: 25%;
  animation-delay: -0.15s;
}

.drops i:nth-child(5) {
  left: 60%;
  animation-delay: -0.45s;
}

.drops i:nth-child(6) {
  left: 90%;
  animation-delay: -0.75s;
}

@keyframes fall {
  from {
    top: 0;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  to {
    top: 100%;
    opacity: 0;
  }
}

.puddle {
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 5.5%;
  height: 6%;
  border-radius: 50%;
  background: rgba(59, 167, 232, 0.3);
  animation: puddle 2.4s ease-in-out infinite;
  transition: transform 1s var(--out), opacity 1s;
}

@keyframes puddle {
  50% {
    scale: 1.06 1.12;
  }
}

.victim {
  position: absolute;
  width: 46%;
  left: 27%;
  bottom: 6%;
}

.set > .glug {
  font-size: clamp(14px, 4cqw, 22px);
  animation: boil 0.5s steps(1) infinite, glug 1.8s var(--pop) infinite;
  transition: opacity 0.3s;
}

.g1 {
  right: 9%;
  top: 40%;
}

.set > .g2 {
  left: 6%;
  top: 60%;
  animation-delay: 0s, -0.9s;
}

@keyframes glug {
  0%,
  100% {
    opacity: 0;
    scale: 0.4;
  }
  20%,
  60% {
    opacity: 1;
    scale: 1;
  }
}

.set > .verdict {
  top: 6%;
  right: 5%;
  max-width: 62%;
  transition: opacity 0.4s, scale 0.5s var(--pop);
}

.dry-only,
.drown.dry .wet-only {
  opacity: 0;
  scale: 0.3;
}

.drown.dry .dry-only {
  opacity: 1;
  scale: 1;
}

.drown.dry .can {
  opacity: 0;
  translate: -40% -60%;
}

.drown.dry .drops {
  opacity: 0;
}

.drown.dry > .glug {
  animation: none;
  opacity: 0;
}

.drown.dry .puddle {
  opacity: 0;
  transform: scale(0.2);
}

.sun {
  position: absolute;
  width: 17%;
  left: 9%;
  top: 9%;
  transition: opacity 0.6s, scale 0.8s var(--pop);
  animation: spin 14s linear infinite;
}

/* ------------------------------------------------------------------ extras */

.extras {
  padding: 70px 0 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--paper);
}

.feature:nth-child(4n + 2) {
  transition-delay: 0.06s;
}

.feature:nth-child(4n + 3) {
  transition-delay: 0.12s;
}

.feature:nth-child(4n + 4) {
  transition-delay: 0.18s;
}

.feature .ic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  margin-bottom: 14px;
  box-shadow: var(--paper);
}

.feature:nth-child(3n + 2) .ic {
  background: var(--green);
}

.feature:nth-child(3n) .ic {
  background: var(--water);
}

.feature .ic svg {
  width: 25px;
  height: 25px;
}

.feature:hover .ic {
  animation: wiggle 0.5s var(--pop);
}

@keyframes wiggle {
  30% {
    rotate: -14deg;
  }
  60% {
    rotate: 10deg;
  }
}

.feature h4 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--gray);
}

/* ------------------------------------------------------------------ promises */

.promises {
  padding: 60px 0;
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.promise {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--green-soft);
  border-radius: 22px;
}

.promise b {
  display: block;
  font-size: 19px;
  margin-bottom: 4px;
}

.promise > span:last-child > span {
  color: var(--gray);
}

.promise .n {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-strong);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

/* ------------------------------------------------------------------ FAQ */

.faq {
  padding: 60px 0 20px;
}

.qa-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.qa {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--paper);
}

.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: '+';
  flex: none;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-strong);
  font-weight: 900;
  font-size: 20px;
  transition: rotate 0.35s var(--pop), background 0.2s;
}

.qa[open] summary::after {
  rotate: 45deg;
  background: var(--green-soft);
  color: var(--green-strong);
}

.qa h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.qa p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--gray);
  font-size: 17px;
}

.qa[open] p {
  animation: msg-in 0.4s var(--out);
}

/* ------------------------------------------------------------------ newsletter */

.newsletter {
  padding: 10px 0 70px;
  scroll-margin-top: 90px;
}

.signup {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff 30%, var(--orange-soft));
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.mail-art {
  position: relative;
  width: min(100%, 280px);
  justify-self: center;
  container-type: inline-size;
}

.mail-art .float-heart {
  width: 16%;
}

.envelope {
  position: absolute;
  width: 34%;
  right: 4%;
  bottom: 12%;
  rotate: -12deg;
  filter: drop-shadow(0 4px 0 rgba(29, 27, 32, 0.14));
  animation: wobble 2.4s ease-in-out infinite;
}

@keyframes wobble {
  50% {
    rotate: -4deg;
    translate: 0 -4%;
  }
}

/* Sent: the letter flies off, stop-motion style. */
.sent .envelope {
  animation: fly 1.3s steps(9) forwards;
}

@keyframes fly {
  30% {
    translate: -10% -30%;
    rotate: 10deg;
  }
  100% {
    translate: 160% -380%;
    rotate: 40deg;
    opacity: 0;
  }
}

.signup-body .sticker {
  font-size: 17px;
}

.signup .h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 14px 0 10px;
}

.signup .muted {
  font-size: 18px;
  margin: 0 0 20px;
}

.field {
  display: flex;
  gap: 10px;
  padding: 6px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
}

.field input[type='email'] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  padding: 0 14px;
  color: var(--ink);
}

.field .pill {
  padding: 12px 20px;
  flex: none;
}

.field .spin {
  display: none;
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
}

.busy .field .spin {
  display: block;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.status {
  min-height: 0;
  margin: 0;
  font-weight: 700;
}

.status:not(:empty) {
  margin-top: 12px;
}

.status[data-tone='bad'] {
  color: var(--danger);
}

.sent .field {
  display: none;
}

.sent .status {
  display: inline-block;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 900;
  color: var(--green-strong);
  background: #fff;
  padding: 0.35em 0.7em;
  border-radius: 0.45em;
  box-shadow: var(--paper);
  rotate: -1.5deg;
  animation: sticker-in 0.6s var(--pop) both;
  --r: 0deg;
}

.fine {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--gray-light);
}

/* ------------------------------------------------------------------ film */

.film {
  padding: 60px 0;
}

.film .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.film p {
  color: var(--gray);
  font-size: 18px;
}

.film-frame {
  justify-self: center;
  width: min(360px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 38px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 26px 60px rgba(29, 27, 32, 0.26);
  border: 9px solid var(--ink);
}

.film-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--cream);
}

/* ------------------------------------------------------------------ finale */

.finale {
  padding: 60px 0 40px;
  text-align: center;
}

.finale p {
  margin: 12px 0;
}

.shelf-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1%;
  max-width: 700px;
  margin: 0 auto;
  border-bottom: 14px solid rgba(204, 112, 0, 0.26);
  border-radius: 0 0 10px 10px;
  padding: 0 4%;
}

.shelf-row > span {
  flex: 1 1 0;
}

.shelf-row > span:nth-child(3) {
  flex-grow: 1.5;
}

.shelf-row .pothy {
  margin-bottom: -8.5%;
}

.js .shelf-row > span {
  opacity: 0;
}

.in .shelf-row > span {
  animation: land 0.9s var(--pop) forwards;
}

.in .shelf-row > span:nth-child(1) {
  animation-delay: 0.45s;
}

.in .shelf-row > span:nth-child(2) {
  animation-delay: 0.2s;
}

.in .shelf-row > span:nth-child(4) {
  animation-delay: 0.3s;
}

.in .shelf-row > span:nth-child(5) {
  animation-delay: 0.55s;
}

.logo {
  font-size: clamp(56px, 10vw, 104px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 34px 0 18px !important;
}

.finale .sticker {
  font-size: clamp(17px, 2.4vw, 24px);
}

.finale .sticker.big {
  font-size: clamp(22px, 3.4vw, 34px);
}

/* ------------------------------------------------------------------ footer */

footer {
  padding: 30px 0 44px;
  color: var(--gray);
  font-size: 14px;
  border-top: 1px solid rgba(29, 27, 32, 0.07);
}

footer .wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.foot-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-links a {
  text-decoration: none;
  font-weight: 700;
}

.foot-links a:hover {
  color: var(--green-strong);
}

.brand.small {
  font-size: 18px;
  color: var(--ink);
}

.brand.small .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.brand.small .brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand.small .brand-word {
  height: 46px;
}

/* ------------------------------------------------------------------ links to the pages */

/* Text links: ink with a green underline (the green alone is too faint on cream). */
.more-link,
.prose .block a,
.qa .more a,
.crumbs a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.more-link {
  display: inline-block;
  margin-top: 20px;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.more-link:hover,
.prose .block a:hover,
.qa .more a:hover,
.crumbs a:hover {
  text-decoration-color: var(--orange);
}

.qa p.more {
  padding-top: 0;
}

/* ------------------------------------------------------------------ landing pages */

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--gray);
}

.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
}

.crumbs a {
  font-weight: 700;
  text-decoration-thickness: 1.5px;
}

.page-hero {
  padding: 8px 0 20px;
  background: radial-gradient(ellipse at 80% 50%, rgba(255, 241, 222, 0.9), transparent 60%);
}

.page-hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 900;
  margin: 18px 0 16px;
}

.page-hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--gray);
  max-width: 34em;
  margin: 0;
}

.page-hero .checks {
  margin-bottom: 26px;
}

.page-hero .scene {
  width: 100%;
  max-width: 540px;
  justify-self: center;
}

.prose {
  padding: 30px 0 10px;
}

.prose .wrap {
  width: min(760px, 100% - 32px);
}

.prose .block {
  padding: 26px 0;
  border-bottom: 1px solid rgba(29, 27, 32, 0.07);
}

.prose .block:last-child {
  border-bottom: 0;
}

.prose h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin: 0 0 14px;
}

.prose p {
  color: var(--gray);
  font-size: 18px;
  margin: 0 0 14px;
}

.prose p b,
.prose li b {
  color: var(--ink);
}

.prose .checks {
  margin: 4px 0 16px;
}

.prose .checks li {
  font-weight: 400;
  font-size: 17px;
  color: var(--gray);
}

.how {
  padding: 50px 0 10px;
}

.how-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related .grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

a.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s var(--pop), box-shadow 0.25s;
}

a.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(29, 27, 32, 0.12);
}

a.card-link h3 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

a.card-link p {
  flex: 1;
}

a.card-link .go {
  margin-top: 14px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.landing .newsletter {
  padding-top: 40px;
}

/* ------------------------------------------------------------------ 404 */

.lost {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
}

.lost-en {
  margin: -14px 0 26px;
  color: var(--gray-light);
}

.lost .ctas {
  justify-content: center;
}

.lost-pothy {
  width: min(240px, 60vw);
}

.lost .sticker {
  font-size: 22px;
}

.lost .muted {
  font-size: 18px;
  margin: 0 0 26px;
  max-width: 28em;
}

/* ------------------------------------------------------------------ motion */

/* Scroll reveals, only when the script runs: the page reads fine without. */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.9s var(--pop);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .feature.reveal.in:hover {
  transform: translateY(-5px) rotate(-0.8deg);
  transition-delay: 0s;
}

/* Scenes rest while off screen. */
.js .set:not(.play) *,
.js .set:not(.play) *::before,
.js .set:not(.play) *::after {
  animation-play-state: paused !important;
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 1040px) {
  .nav {
    display: none;
  }

  .top .wrap {
    gap: 8px;
  }

  .lang {
    margin-left: auto;
  }
}

@media (max-width: 880px) {
  .hero .wrap,
  .step,
  .film .wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .steps .step:nth-of-type(even) .step-text {
    order: 0;
  }

  .hero {
    padding-top: 28px;
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .ctas {
    justify-content: center;
  }

  .stage {
    max-width: 420px;
  }

  .step {
    padding: 30px 0;
  }

  .film .step-text {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .signup {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 18px;
    gap: 10px;
  }

  .mail-art {
    width: 170px;
  }
}

@media (max-width: 560px) {
  .notify-link {
    display: none;
  }
}

@media (max-width: 480px) {
  .field {
    flex-direction: column;
    border-radius: 24px;
  }

  .field input[type='email'] {
    padding: 12px 14px;
    text-align: center;
  }

  .admin-link span {
    display: none;
  }

  .admin-link {
    padding: 9px;
  }

  .brand {
    font-size: 20px;
  }

  .ctas .pill {
    width: 100%;
  }

  .set {
    border-radius: 26px;
  }

  .step-text p,
  .section-head p {
    font-size: 17px;
  }

  footer .wrap {
    justify-content: center;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Every scene shows its happy ending, standing still. */
  .js .reveal,
  .js .node,
  .js .zone,
  .js .listing,
  .js .msg,
  .js .sys,
  .js .ask-stack > *,
  .js .shelf-row > span,
  .js .set > .sticker.pop,
  .stage .sticker,
  .heart,
  .set > .loop-b,
  .set > .loop-c,
  .flip .after,
  .swap .tick {
    opacity: 1;
  }

  .js .reveal {
    transform: none;
  }

  .flip .before,
  .swap .arrows,
  .idchip,
  .hint,
  .sent .envelope {
    opacity: 0;
  }

  .swap .sw {
    background: var(--green);
  }

  .fam path,
  .js .links path {
    stroke-dashoffset: 0;
  }

  .result {
    transform: none;
  }
}
