:root {
  /* Stick Me! "paper and chalk": the app's palette (apps/stickme Paper.kt). */
  color-scheme: dark;
  --plum: #1e2420; /* chalkboard */
  --wall: #2a322c;
  --ink: #edebe3; /* chalk */
  --muted: #b8bdb4;
  --coral: #ff9fc6; /* pink chalk */
  --gold: #ffe27a; /* yellow chalk */
  --wood: #c89a64; /* cardboard */
  --wood-dark: #4a3f33;
  --mint: #8ff2c8;
  --sky: #8ccbff;
  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', sans-serif;
  --body: 'Gochi Hand', 'Comic Sans MS', cursive;
  --radius-phone: 2rem;
  --focus: 0 0 0 3px var(--plum), 0 0 0 6px var(--coral);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--plum);
  color: var(--ink);
  font: 18px/1.55 var(--body);
}

::selection {
  background: var(--coral);
  color: var(--plum);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

a {
  color: var(--coral);
}
a:hover {
  color: var(--gold);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--coral);
  color: var(--plum);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  z-index: 20;
}
.skip:focus {
  top: 1rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.top-play {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--plum);
  background: var(--gold);
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
}
.top-play:hover {
  color: var(--plum);
  background: #ffe199;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 4.5rem);
  display: grid;
  align-items: stretch;
}

.hero-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  pointer-events: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(20, 15, 36, 0.92) 0%,
      rgba(20, 15, 36, 0.55) 48%,
      rgba(20, 15, 36, 0.2) 100%
    ),
    linear-gradient(180deg, rgba(20, 15, 36, 0.15), rgba(20, 15, 36, 0.55));
  pointer-events: none;
}

.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.floater {
  position: absolute;
  width: min(18vw, 160px);
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.35));
  animation: drift 6.5s ease-in-out infinite alternate;
}
.f1 {
  left: 46%;
  top: 8%;
  animation-duration: 7.2s;
}
.f2 {
  left: 72%;
  top: 58%;
  width: min(14vw, 120px);
  animation-duration: 5.4s;
  animation-delay: -1.4s;
}
.f3 {
  left: 58%;
  top: 70%;
  width: min(11vw, 96px);
  animation-duration: 8s;
  animation-delay: -2s;
}
.f4 {
  right: 6%;
  top: 12%;
  width: min(12vw, 108px);
  animation-duration: 6s;
  animation-delay: -0.6s;
}
.f5 {
  left: 40%;
  bottom: 6%;
  width: min(10vw, 88px);
  animation-duration: 5.8s;
  animation-delay: -2.8s;
}

@keyframes drift {
  from {
    transform: translateY(0) rotate(-6deg);
  }
  to {
    transform: translateY(-22px) rotate(7deg);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 2.5rem;
  align-items: center;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
  font-weight: 400;
  max-width: 8ch;
}

.lede {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  margin: 0 0 0.9rem;
  max-width: 22ch;
  color: var(--ink);
}

.sub {
  margin: 0 0 1.6rem;
  max-width: 34ch;
  color: var(--muted);
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--coral);
  color: var(--plum);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.2rem 0.85rem 1rem;
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}
.play:hover {
  color: var(--plum);
  background: #ff9b98;
}
.play svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.phones {
  display: grid;
  justify-items: center;
}

.phone {
  width: min(100%, 280px);
  background: #1a1028;
  border-radius: var(--radius-phone);
  padding: 0.7rem;
  border: 2px solid color-mix(in srgb, var(--wood) 55%, transparent);
  box-shadow: 8px 22px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(4deg);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1920;
  object-fit: cover;
  border-radius: 1.35rem;
  background: var(--wall);
}

.shelf {
  position: relative;
  padding: 3.5rem 0 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(20, 15, 36, 0.92) 18%,
    var(--plum) 40%
  );
}

.shelf-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 1.25rem 1.4rem;
  scrollbar-color: var(--wood) var(--wall);
}
.shelf-rail:empty {
  display: none;
}

.shot {
  flex: 0 0 auto;
  width: min(42vw, 230px);
  scroll-snap-align: start;
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1920;
  object-fit: cover;
  border-radius: 1.4rem 1.4rem 0.4rem 0.4rem;
  background: var(--wall);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}
.shot figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.55rem 0.15rem 0;
}

.shelf-board {
  height: 28px;
  margin: 0 0 0.4rem;
  background: linear-gradient(
    180deg,
    #e0c08a 0%,
    var(--wood) 38%,
    var(--wood-dark) 100%
  );
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
}

.how {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 2.6rem auto 0;
  color: var(--muted);
}
.how p {
  margin: 0 0 1rem;
}
.how strong {
  color: var(--ink);
  font-weight: 600;
}

.foot {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 2.4rem auto 0;
  padding: 1.4rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid color-mix(in srgb, var(--wood) 35%, transparent);
}
.foot a {
  color: var(--muted);
}
.foot a:hover {
  color: var(--gold);
}

.policy {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}
.policy h1 {
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
  font-weight: 400;
}
.policy h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
  color: var(--coral);
}
.policy p,
.policy li {
  color: var(--muted);
}
.updated {
  color: #9e93b0;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .hero {
    min-height: 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 0.4rem 0 2rem;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }
  .lede {
    max-width: 22ch;
  }
  .sub {
    font-size: 0.98rem;
    margin-bottom: 1.15rem;
  }
  .phone {
    width: min(52vw, 200px);
    transform: rotate(2deg);
    margin: 0.2rem auto 0;
  }
  .f1,
  .f5 {
    display: none;
  }
  .shot {
    width: min(58vw, 200px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floater {
    animation: none;
  }
}
