:root {
  --grape: #4a1597;
  --grape-deep: #2c0a5e;
  --grape-soft: #e9defc;
  --paper: #fff7ea;
  --paper-2: #fdebd0;
  --ink: #241046;
  --muted: #5a4a73;
  --red: #d81e28;
  --red-deep: #a8121b;
  --orange: #ff6b1a;
  --cheese: #ffc94a;
  --cheese-deep: #f2a91f;
  --white: #ffffff;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --text: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --radius: 28px;
  --gutter: 16px;
  --step-0: 17px;
  --step-1: clamp(19px, 1.1vw + 14px, 22px);
  --step-2: clamp(26px, 2vw + 16px, 36px);
  --step-3: clamp(40px, 5.4vw + 12px, 92px);
  --step-small: 15px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --step-0: 18px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--grape-deep);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 4px solid var(--cheese);
  outline-offset: 3px;
  border-radius: 12px;
}

::selection {
  background: var(--cheese);
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
}

.page {
  position: relative;
  z-index: 1;
  background: var(--grape);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn {
  --bg: var(--ink);
  --fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease-bounce), background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.btn:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 80ms;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-red {
  --bg: var(--red);
}

.btn-red:hover {
  --bg: var(--red-deep);
}

.btn-ink {
  --bg: var(--ink);
}

.btn-cheese {
  --bg: var(--cheese);
  --fg: var(--ink);
}

.btn-ghost {
  --bg: var(--paper-2);
  --fg: var(--ink);
}

.btn-big {
  min-height: 60px;
  padding: 14px 30px;
  font-size: var(--step-1);
}

.btn-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  color: var(--white);
}

.mark {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
  color: var(--white);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
}

.bar-links {
  display: none;
  gap: 28px;
  font-weight: 600;
}

.bar-links a {
  text-decoration: none;
  padding: 8px 2px;
  transition: color 160ms ease;
}

.bar-links a:hover {
  color: var(--cheese);
}

@media (min-width: 980px) {
  .bar {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .bar-links {
    display: flex;
  }
}

.hero {
  position: relative;
  padding: 8px 12px 0;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--cheese) 0 6px, transparent 6.5px),
    radial-gradient(circle, var(--orange) 0 5px, transparent 5.5px),
    radial-gradient(circle, #ff8ccf 0 4px, transparent 4.5px);
  background-size: 260px 220px, 310px 270px, 190px 240px;
  background-position: 30px 40px, 140px 120px, 80px 180px;
  opacity: 0.85;
}

.hero::after {
  background-image:
    radial-gradient(circle, var(--white) 0 3px, transparent 3.5px),
    radial-gradient(circle, #4fa3f7 0 5px, transparent 5.5px);
  background-size: 170px 150px, 280px 330px;
  background-position: 10px 10px, 200px 60px;
  opacity: 0.55;
}

.sheet {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
}

.hero-sheet {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  border-radius: 0;
  padding: 28px 20px 0;
  display: grid;
  gap: 28px;
  -webkit-mask:
    radial-gradient(circle at 0 0, transparent 22px, #000 22.5px) top left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 0, transparent 22px, #000 22.5px) top right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 0, transparent 22px, #000 22.5px) top left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 0, transparent 22px, #000 22.5px) top right / 51% 100% no-repeat;
}

.paint-title {
  font-size: clamp(46px, 13vw, 128px);
  line-height: 0.92;
  color: var(--red);
}

.paint-title .line {
  display: block;
}

.paint-title .line + .line {
  color: var(--grape);
}

.paint-title .ch {
  display: inline-block;
  transition: color 260ms ease, transform 420ms var(--ease-bounce);
}

.js .paint-title.is-waiting .ch {
  color: var(--paper);
  -webkit-text-stroke: 2.5px var(--ink);
}

.js .paint-title .ch.is-painted {
  animation: dab 520ms var(--ease-bounce);
}

@keyframes dab {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(-4deg); }
  100% { transform: scale(1); }
}

.hero-lead {
  margin-top: 22px;
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.45;
}

.hero-lead strong {
  font-weight: 700;
  color: var(--red);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 22px;
  font-size: var(--step-small);
  font-weight: 600;
}

.hero-facts li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grape-soft);
  color: var(--grape-deep);
}

.hero-art {
  position: relative;
  margin: 0 -4px;
}

.hero-art img {
  width: 100%;
  max-width: 380px;
  margin: -12px auto 0;
}

.sticker {
  position: absolute;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  line-height: 1;
  font-family: var(--display);
}

.sticker-cheese {
  top: -14px;
  left: -2px;
  width: 112px;
  height: 112px;
  background: var(--orange);
  color: var(--white);
  transform: rotate(-12deg);
  font-size: 15px;
}

.sticker-cheese strong {
  font-weight: 400;
  font-size: 32px;
  color: var(--cheese);
}

@media (min-width: 560px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 0 var(--gutter);
  }

  .hero-sheet {
    max-width: 1240px;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    padding: 64px 56px 0;
    min-height: calc(100svh - 108px);
  }

  .hero-text {
    padding-bottom: 72px;
    align-self: center;
  }

  .paint-title {
    font-size: clamp(64px, 6vw, 112px);
  }

  .paint-title .line + .line {
    padding-left: 0.6em;
  }

  .hero-art {
    align-self: center;
    margin: 0;
    padding-bottom: 24px;
  }

  .hero-art img {
    width: auto;
    max-width: 100%;
    max-height: calc(100svh - 150px);
    margin: 0 auto;
  }

  .sticker-cheese {
    top: 36px;
    left: -48px;
    width: 148px;
    height: 148px;
    font-size: 19px;
  }

  .sticker-cheese strong {
    font-size: 42px;
  }
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--red);
  color: var(--white);
  padding: 16px 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-track span::after {
  content: '';
  display: inline-block;
  width: 26px;
  height: 22px;
  margin: 0 26px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 30% 35%, var(--cheese-deep) 0 2px, transparent 2.5px),
    radial-gradient(circle at 65% 55%, var(--cheese-deep) 0 2px, transparent 2.5px),
    var(--cheese);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.kid {
  position: relative;
  background: var(--paper);
  padding: 96px var(--gutter) 112px;
  display: grid;
  gap: 48px;
  max-width: 100%;
}

.kid h2 {
  color: var(--grape);
  max-width: 12ch;
}

.kid-lead {
  margin-top: 24px;
  max-width: 46ch;
  font-size: var(--step-1);
}

.tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 6px;
}

.tips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--grape-deep);
  font-size: 15px;
  font-weight: 600;
}

.tips svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--cheese);
  stroke-width: 4;
  stroke-linecap: round;
}

.tips svg .dot {
  fill: var(--cheese);
  stroke: none;
}

.ai-card {
  position: relative;
  align-self: start;
  background: var(--grape);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  scroll-margin-top: 24px;
}

.ai-card::before,
.ai-card::after {
  content: '';
  position: absolute;
  top: 92px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
}

.ai-card::before { left: -14px; }

.ai-card::after { right: -14px; }

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  margin-bottom: 26px;
  background-image: radial-gradient(circle, var(--grape-deep) 0 3.5px, transparent 4px);
  background-size: 16px 8px;
  background-repeat: repeat-x;
  background-position: left bottom;
}

.ai-title {
  font-size: clamp(34px, 3vw, 44px);
  color: var(--cheese);
}

.ai-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cheese);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--step-small);
}

.ai-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field .label {
  font-weight: 600;
  font-size: 17px;
}

.field input[type='text'],
.field input[type='email'] {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 3px solid transparent;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font: 500 18px/1.2 var(--text);
  transition: border-color 160ms ease;
}

.field input[type='text']:focus,
.field input[type='email']:focus {
  outline: none;
  border-color: var(--cheese);
}

.field input[aria-invalid='true'] {
  border-color: #ff9aa0;
}

.field-error,
.form-error {
  color: #ffd0d3;
  font-weight: 600;
  font-size: var(--step-small);
}

.form-error {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgb(216 30 40 / 0.35);
  color: var(--white);
}

.drop {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 20px 16px;
  border-radius: 20px;
  background: var(--grape-deep);
  text-align: center;
  transition: background-color 160ms ease, transform 220ms var(--ease-bounce);
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.35) 0 2px, transparent 2.5px);
  background-size: 14px 14px;
}

.drop.is-over {
  background-color: #3d1580;
  transform: scale(1.02);
}

.drop svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 6px;
  fill: none;
  stroke: var(--cheese);
  stroke-width: 3.5;
  stroke-linejoin: round;
}

.drop-hint {
  font-size: var(--step-small);
  color: #e3d6fb;
}

.drop-thumb {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--cheese);
}

.drop-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop:has(#ai-photo:focus-visible) label[for='ai-photo'] {
  outline: 4px solid var(--cheese);
  outline-offset: 3px;
}

.only-touch {
  display: none;
}

@media (pointer: coarse) {
  .only-touch {
    display: inline-flex;
  }

  .only-fine {
    display: none;
  }
}

.field-check {
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 4px 12px;
}

.field-check input {
  width: 26px;
  height: 26px;
  margin: 2px 0 0;
  accent-color: var(--cheese);
}

.field-check label {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
}

.field-check .field-error {
  grid-column: 2;
}

.ai-wait,
.ai-result,
.ai-soon,
.ai-error {
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
}

[data-view][hidden] {
  display: none;
}

.oven {
  display: flex;
  gap: 12px;
  justify-content: center;
  height: 64px;
  align-items: end;
}

.cheese {
  width: 44px;
  height: 38px;
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 28% 34%, var(--cheese-deep) 0 3px, transparent 3.5px),
    radial-gradient(circle at 66% 30%, var(--cheese-deep) 0 2.5px, transparent 3px),
    radial-gradient(circle at 52% 66%, var(--cheese-deep) 0 3px, transparent 3.5px),
    var(--cheese);
  animation: funk 720ms var(--ease-bounce) infinite alternate;
}

.c2 { animation-delay: 180ms; }

.c3 { animation-delay: 360ms; }

.c4 { animation-delay: 540ms; }

@keyframes funk {
  0% { transform: translateY(0) scale(1.08, 0.9); }
  100% { transform: translateY(-22px) scale(0.96, 1.05) rotate(8deg); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg) translateY(-6px); }
}

.wait-msg {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--cheese);
  min-height: 2.2em;
  transition: opacity 240ms ease, transform 240ms ease;
}

.wait-msg.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.wait-note,
.result-note {
  font-size: 16px;
  color: #efe6ff;
  max-width: 36ch;
}

.result-title,
.error-title {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.05;
  color: var(--cheese);
}

.result-frame {
  display: block;
  width: 100%;
  max-width: 380px;
  padding: 10px;
  border-radius: 22px;
  background: var(--paper);
  transform: rotate(-1.5deg);
  animation: land 700ms var(--ease-bounce);
}

.result-frame img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

@keyframes land {
  0% { transform: rotate(-8deg) scale(0.6); opacity: 0; }
  100% { transform: rotate(-1.5deg) scale(1); opacity: 1; }
}

.error-text {
  max-width: 34ch;
  font-size: 18px;
}

@media (min-width: 980px) {
  .kid {
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: 72px;
    padding: 160px max(var(--gutter), calc((100vw - 1320px) / 2)) 176px;
  }

  .ai-card {
    position: sticky;
    top: 24px;
    padding: 36px 36px 32px;
  }

  .ai-card::before,
  .ai-card::after {
    top: 102px;
  }
}

.paint {
  background: var(--orange);
  padding: 96px var(--gutter) 112px;
}

.paint-head h2 {
  color: var(--white);
}

.paint-head p {
  margin-top: 18px;
  max-width: 44ch;
  font-size: var(--step-1);
  color: var(--ink);
}

.paint-body {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.paint-sheet {
  padding: 12px;
  max-width: 640px;
  width: 100%;
  justify-self: center;
}

.paint-sheet canvas,
.paint-fallback {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: var(--white);
}

.paint-sheet canvas {
  display: none;
  cursor: crosshair;
  touch-action: manipulation;
}

.paint.is-ready canvas {
  display: block;
}

.paint.is-ready .paint-fallback {
  display: none;
}

.paint-tools {
  display: grid;
  gap: 18px;
  align-content: start;
}

.crayons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.crayons button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 10px 6px 6px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 14px/1.15 var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 220ms var(--ease-bounce), background-color 160ms ease;
}

.crayons button::before {
  content: '';
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c);
  transition: transform 220ms var(--ease-bounce);
}

.crayons button:hover::before {
  transform: scale(1.1);
}

.crayons button[aria-checked='true'] {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-3px);
}

.crayons button[aria-checked='true']::before {
  transform: scale(1.08);
}

.paint-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 980px) {
  .paint {
    padding: 160px max(var(--gutter), calc((100vw - 1320px) / 2)) 176px;
  }

  .paint-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
  }

  .paint-body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    margin-top: 56px;
  }

  .paint-tools {
    position: sticky;
    top: 24px;
  }

  .paint-sheet {
    max-width: 500px;
  }

  .crayons {
    grid-template-columns: 1fr 1fr;
  }

  .crayons button {
    font-size: 16px;
  }
}

.steps {
  background: var(--cheese);
  padding: 96px 0 112px;
  overflow: hidden;
}

@media (min-width: 980px) {
  .steps {
    padding: 160px 0 176px;
  }
}

.price {
  background: var(--grape-deep);
  padding: 112px 10px;
}

.ticket {
  --notch: 28px;
  position: relative;
  display: grid;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.ticket-main {
  padding: 32px 24px 36px;
  background: var(--paper);
}

.ticket-main h2 {
  font-size: clamp(40px, 9vw, 72px);
  color: var(--red);
  max-width: 11ch;
}

.ticket-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  font-size: var(--step-0);
  font-weight: 600;
}

.ticket-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}

.ticket-list li::before {
  content: '';
  width: 22px;
  height: 19px;
  margin-top: 3px;
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 30% 35%, var(--cheese-deep) 0 2px, transparent 2.5px),
    radial-gradient(circle at 66% 58%, var(--cheese-deep) 0 2px, transparent 2.5px),
    var(--cheese);
}

.ticket-stub {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: center;
  padding: 36px 24px 32px;
  background: var(--cheese);
  text-align: center;
}

.ticket-stub::before {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  top: -4px;
  height: 8px;
  background-image: radial-gradient(circle, var(--grape-deep) 0 3.5px, transparent 4px);
  background-size: 18px 8px;
}

.ticket::before,
.ticket::after {
  content: '';
  position: absolute;
  z-index: 1;
  width: var(--notch);
  height: var(--notch);
  border-radius: 50%;
  background: var(--grape-deep);
}

.ticket-price {
  font-family: var(--display);
  font-size: clamp(64px, 16vw, 104px);
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ticket-note {
  font-size: var(--step-small);
  font-weight: 600;
}

@media (max-width: 859px) {
  .ticket::before,
  .ticket::after {
    top: var(--split, 60%);
  }

  .ticket::before { left: calc(var(--notch) / -2); }

  .ticket::after { right: calc(var(--notch) / -2); }
}

@media (min-width: 860px) {
  .price {
    padding: 176px var(--gutter);
  }

  .ticket {
    grid-template-columns: 7fr 4fr;
    aspect-ratio: 2.3 / 1;
  }

  .ticket::before,
  .ticket::after {
    left: calc(63.6% - var(--notch) / 2);
  }

  .ticket::before { top: calc(var(--notch) / -2); }

  .ticket::after { bottom: calc(var(--notch) / -2); }

  .ticket-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
  }

  .ticket-main h2 {
    font-size: clamp(48px, 4.6vw, 72px);
  }

  .ticket-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
  }

  .ticket-stub {
    padding: 40px 32px;
  }

  .ticket-stub::before {
    left: -4px;
    right: auto;
    top: 22px;
    bottom: 22px;
    width: 8px;
    height: auto;
    background-size: 8px 18px;
  }

  .ticket-price {
    font-size: clamp(64px, 6.4vw, 104px);
  }
}

.faq {
  background: var(--paper);
  padding: 96px var(--gutter) 112px;
  display: grid;
  gap: 48px;
}

.faq h2 {
  color: var(--grape);
}

.faq-facts {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--grape-deep);
}

.faq-list {
  margin: 32px 0 36px;
  display: grid;
  gap: 8px;
}

.faq details {
  border-radius: 20px;
  background: var(--paper-2);
  transition: background-color 160ms ease;
}

.faq details[open] {
  background: var(--grape-soft);
}

.faq summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px 20px;
  min-height: 44px;
  font-weight: 700;
  font-size: var(--step-1);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--grape);
  border-bottom: 3px solid var(--grape);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 260ms var(--ease-bounce);
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq details p {
  padding: 0 20px 20px;
  max-width: 60ch;
  font-size: var(--step-0);
}

@media (min-width: 980px) {
  .faq {
    padding: 160px max(var(--gutter), calc((100vw - 1320px) / 2)) 176px;
  }
}

.close {
  position: sticky;
  bottom: 0;
  z-index: 0;
  background: var(--red);
  color: var(--white);
  padding: 80px var(--gutter) 16px;
  overflow: hidden;
}

.close-inner {
  display: grid;
  gap: 28px;
  justify-items: start;
  max-width: 1320px;
  margin: 0 auto;
}

.close h2 {
  font-size: clamp(36px, 5vw, 76px);
  max-width: 16ch;
}

.close .btn-red {
  --bg: var(--white);
  --fg: var(--red);
}

.close .btn-red:hover {
  --bg: var(--cheese);
  --fg: var(--ink);
}

.close-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 600;
  font-size: 16px;
}

.close-links a {
  display: inline-block;
  padding: 8px 0;
}

.legal {
  font-size: var(--step-small);
}

.blocks {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  gap: 4px;
  height: 22svh;
  min-height: 120px;
  max-width: 1320px;
  margin: 40px auto 0;
}

.blocks span {
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 14px 14px 4px 4px;
  font-family: var(--display);
  font-size: clamp(30px, 9vw, 150px);
  line-height: 1;
  color: var(--red);
  background: var(--cheese);
}

.blocks span:nth-child(1) { height: 92%; background: var(--grape); color: var(--cheese); }

.blocks span:nth-child(2) { height: 74%; background: var(--cheese); }

.blocks span:nth-child(3) { height: 100%; background: var(--orange); color: var(--white); }

.blocks span:nth-child(4) { height: 66%; background: var(--paper); color: var(--grape); }

.blocks span:nth-child(5) { height: 88%; background: var(--grape-deep); color: var(--cheese); }

.blocks span:nth-child(6) { height: 70%; background: var(--cheese); color: var(--red); }

.blocks span:nth-child(7) { height: 96%; background: var(--paper); color: var(--red); }

.blocks span:nth-child(8) { height: 62%; background: var(--orange); color: var(--white); }

.blocks span:nth-child(9) { height: 84%; background: var(--grape); color: var(--white); }

@media (min-width: 980px) {
  .close {
    padding-top: 120px;
  }

  .blocks {
    height: 34svh;
    gap: 6px;
  }
}

.clip {
  background: var(--grape-deep);
  color: var(--white);
  padding: 72px var(--gutter) 80px;
  display: grid;
  gap: 32px;
}

.clip h2 {
  color: var(--cheese);
  font-size: clamp(40px, 5vw, 76px);
}

.clip-text p {
  margin-top: 18px;
  max-width: 40ch;
  font-size: var(--step-1);
}

.clip-play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.clip-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.clip-play:hover img {
  transform: scale(1.04);
}

.clip-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 260ms var(--ease-bounce);
}

.clip-icon::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 22px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--white);
}

.clip-play:hover .clip-icon {
  transform: scale(1.12);
}

.clip-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 700 16px/1.2 var(--text);
}

.clip-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
}

@media (min-width: 980px) {
  .clip {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 64px;
    padding: 128px max(var(--gutter), calc((100vw - 1320px) / 2));
  }
}

.buybar {
  position: fixed;
  z-index: 50;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(0);
  transition: transform 320ms var(--ease-bounce), opacity 200ms ease;
}

.buybar.is-away {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

.buybar p {
  display: grid;
  line-height: 1.15;
}

.buybar strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  color: var(--cheese);
}

.buybar span {
  font-size: 13px;
  font-weight: 600;
}

.buybar .btn {
  flex: none;
  min-height: 48px;
  padding: 10px 20px;
}

@media (min-width: 980px) {
  .buybar {
    display: none;
  }
}

.kid-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  margin-top: 28px;
}

.kid-demo img {
  width: 100%;
  border-radius: 20px;
  background: var(--white);
  transform: rotate(-4deg);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

.kid-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--grape) 0 3px, transparent 3.5px) 0 0 / 16px 16px,
    var(--grape-soft);
  transform: rotate(5deg);
  animation: bob 2.4s ease-in-out infinite;
}

.kid-slot span {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

@keyframes bob {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-8px); }
}

.kid-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.kid-pages li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grape);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
}

.counts {
  background: var(--grape);
  padding: 72px var(--gutter) 88px;
}

.counts > h2 {
  color: var(--white);
  margin-bottom: 32px;
}

.count-list {
  display: grid;
  gap: 12px;
}

.count {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: baseline;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
}

.count-big {
  grid-row: span 2;
  font-family: var(--display);
  font-size: clamp(72px, 22vw, 132px);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.count-word {
  grid-column: 1 / -1;
  grid-row: auto;
  font-size: clamp(44px, 12vw, 72px);
  line-height: 0.95;
  margin-bottom: 6px;
}

.count h3 {
  font-size: 26px;
  align-self: end;
}

.count p:not(.count-big) {
  grid-column: 2;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.45;
}

.count-paper h3,
.count-paper p:not(.count-big) {
  grid-column: 1 / -1;
}

.count-grape { background: var(--grape-deep); color: var(--white); }
.count-grape .count-big { color: var(--cheese); }
.count-red { background: var(--red); color: var(--white); }
.count-cheese { background: var(--cheese); color: var(--ink); }
.count-cheese .count-big { color: var(--red); }
.count-paper { background: var(--paper); color: var(--ink); }
.count-paper .count-big { color: var(--grape); }

.teasers {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.teaser {
  width: 100%;
  border-radius: 20px;
  background: var(--white);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

.teaser-a { transform: rotate(-3deg); }
.teaser-b { transform: rotate(3deg) translateY(18px); }

@media (min-width: 768px) {
  .count-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .counts {
    display: grid;
    grid-template-columns: 8fr 4fr;
    column-gap: 48px;
    padding: 160px max(var(--gutter), calc((100vw - 1320px) / 2)) 176px;
  }

  .counts > h2 {
    grid-column: 1 / -1;
    margin-bottom: 48px;
  }

  .teasers {
    grid-template-columns: 1fr;
    margin-top: 0;
    align-content: center;
  }
}

.steps {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.steps h2 {
  color: var(--ink);
  max-width: 14ch;
}

.moments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}

.moment {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 18px 22px;
  border-radius: var(--radius);
  min-height: 170px;
}

.moment h3 {
  font-size: 24px;
}

.moment p {
  font-size: 16px;
  line-height: 1.4;
}

.moment-a { background: var(--grape); color: var(--white); transform: rotate(-1.5deg); }
.moment-b { background: var(--paper); color: var(--ink); transform: rotate(1deg) translateY(10px); }
.moment-c { background: var(--red); color: var(--white); transform: rotate(1.2deg); }
.moment-d { background: var(--ink); color: var(--white); transform: rotate(-1deg) translateY(10px); }

@media (min-width: 980px) {
  .steps {
    padding-left: max(var(--gutter), calc((100vw - 1320px) / 2));
    padding-right: max(var(--gutter), calc((100vw - 1320px) / 2));
  }

  .steps h2 {
    max-width: none;
  }

  .moments {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
  }

  .moment {
    min-height: 260px;
    padding: 28px;
  }

  .moment h3 {
    font-size: 32px;
  }

  .moment p {
    font-size: 18px;
  }
}

.faq-list {
  margin: 0;
}

@media (min-width: 980px) {
  .faq {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }

  .faq-head {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 767px) {
  .kid,
  .paint,
  .faq {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .steps {
    padding: 72px var(--gutter) 80px;
  }

  .price {
    padding: 72px 10px;
  }

  .crayons {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .crayons button,
  .crayons button[aria-checked='true'] {
    justify-content: center;
    min-height: 56px;
    padding: 0;
    border-radius: 50%;
    aspect-ratio: 1;
    background: var(--paper);
  }

  .crayons button[aria-checked='true'] {
    background: var(--ink);
  }

  .crayons button::before {
    width: 70%;
    height: 70%;
  }

  .crayons button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .paint-sheet {
    max-width: min(100%, calc(54svh * 0.7));
    padding: 8px;
  }

  .paint-body {
    gap: 16px;
    margin-top: 24px;
  }

  .close {
    padding-bottom: 96px;
  }
}

.js [data-pop] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-bounce);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.js [data-pop].in {
  opacity: 1;
  transform: none;
}

.js .hero-sheet {
  animation: rise 900ms var(--ease-out) both;
}

.js .hero-art img {
  animation: rise 1100ms 120ms var(--ease-out) both;
}

.js .sticker-cheese {
  animation: pop 700ms 700ms var(--ease-bounce) both, wobble 2.8s 1.6s ease-in-out infinite;
}

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

@keyframes pop {
  from { opacity: 0; transform: rotate(-40deg) scale(0.2); }
  to { opacity: 1; transform: rotate(-12deg) scale(1); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50% { transform: rotate(-4deg) scale(1.06); }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .ticker-track {
    animation: none;
  }

  .js [data-pop] {
    opacity: 1;
    transform: none;
  }
}
