:root {
  color-scheme: light;
  --ink: #2c2440;
  --muted: #8c6d9a;
  --muted-2: #9990a6;
  --faint: #b3aabf;
  --brand-pink: #e24b8b;
  --brand-orange: #f0894f;
  --bug: #dc605b;
  --improvement: #6a92cc;
  --idea: #ddab41;
  --delight: #e0679a;
  --surface: #ffffff;
  --sunken: #fbfafd;
  --border: #e4dfec;
  --border-soft: #ede8f1;
  --accent: var(--bug);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-hover: 150ms;
  --dur-press: 90ms;
  --cta: linear-gradient(100deg, #e24b8b 0%, #f0894f 100%);
  --card-radius: 28px;
  --page-bg:
    radial-gradient(58% 48% at 52% 43%, rgb(255 247 238 / .84) 0%, rgb(255 247 238 / 0%) 58%),
    linear-gradient(180deg, #ddd4ed 0%, #ece1ea 46%, #fbede6 83%, #fffaf6 100%);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@property --float-x {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --float-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --float-s {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@property --float-r {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

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

button,
a,
label,
select,
input,
textarea,
.category-card,
.chip-field label,
.field-optional,
.logo-reset,
.text-link,
.footer-characters img {
  transition:
    transform var(--dur-hover) var(--ease),
    box-shadow var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease),
    filter var(--dur-hover) var(--ease);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body[data-route="feedback"] [data-surface="landing"],
body[data-route="landing"] [data-surface="feedback"],
[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-pink) 45%, transparent);
  outline-offset: 2px;
}

.page {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100dvh;
  background: var(--page-bg);
}

.surface {
  min-height: 0;
  overflow: hidden;
}

/* ---------------------------------------------------------------- Top bar */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px) clamp(24px, 5vw, 76px) 0;
}

.brand-logo,
.card-logo {
  display: block;
  width: clamp(116px, 10vw, 136px);
  height: auto;
}

.topbar > picture {
  display: block;
  flex: 0 0 auto;
  margin-right: auto;
}

.logo-reset picture,
.success-copy picture,
.mini-scenes picture,
.landing-hero > picture,
.footer-tagline picture {
  display: contents;
}

.logo-reset {
  display: inline-flex;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.logo-reset:focus-visible {
  outline: none;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgb(140 109 154 / .3);
}

/* Real food-group icon row (apple · leaf · water · egg) */
.food-row {
  display: inline-flex;
  align-items: center;
  gap: clamp(13px, 1.4vw, 21px);
}

.food-row img {
  display: block;
  height: clamp(28px, 2.5vw, 37px);
  width: auto;
  filter: drop-shadow(0 6px 11px rgb(120 80 130 / .14));
  transition: transform .5s var(--ease-out);
}

.food-row-sm {
  gap: 12px;
}

.food-row-sm img {
  height: 25px;
  filter: none;
}

.topbar:hover .food-row img {
  transform: translateY(-2px);
}

.topbar:hover .food-row img:nth-child(2) {
  transform: translateY(-5px) rotate(-3deg);
}

.topbar:hover .food-row img:nth-child(3) {
  transform: translateY(-3px);
}

/* ------------------------------------------------------------- Landing hero */
.landing-surface {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr);
  min-height: 100%;
}

.landing-hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(440px, calc(100dvh - 320px), 740px);
  margin: 0 auto;
  padding: 8px clamp(22px, 5vw, 76px) 0;
  text-align: center;
  isolation: isolate;
  animation: hero-enter 900ms var(--ease-out) both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: scale(.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  /* Pencil "Hero word DAILY HABITS": Inter 900, 138 / 0.84, white. */
  color: #fff;
  font-size: clamp(5rem, 12.2vw, 13.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .84;
  text-shadow: 0 20px 34px rgb(120 78 130 / .08);
  white-space: nowrap;
}

.hero-word-back {
  position: absolute;
  top: 44%;
  left: 50%;
  z-index: 1;
  transform: translate(calc(-50% + (var(--hero-x, 0) * -10px)), calc(-50% + (var(--hero-y, 0) * -5px)));
}

.hero-pico {
  position: relative;
  z-index: 4;
  width: clamp(340px, 31vw, 520px);
  max-height: min(60dvh, 640px);
  object-fit: contain;
  filter: drop-shadow(0 42px 52px rgb(111 75 120 / .24));
  transform: translate(calc(var(--hero-x, 0) * 8px), calc(var(--hero-y, 0) * 6px));
  will-change: transform;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(78px, 11.4vh, 118px);
  z-index: 5;
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0;
  /* Pencil "Figma hero subtitle": Inter 34 / normal, #b0285f, centered. */
  color: #b0285f;
  font-size: clamp(1.5rem, 2.9vw, 2.125rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}

/* Desktop keeps the tagline on one line; the break only shows on mobile. */
.hero-break {
  display: none;
}

.mini-scenes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.mini-scene {
  position: absolute;
  width: clamp(52px, 6vw, 90px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 13px 19px rgb(100 70 120 / .18));
  transform:
    translate(
      calc(var(--float-x, 0px) + (var(--hero-x, 0) * var(--drift-x, 0px))),
      calc(var(--float-y, 0px) + (var(--hero-y, 0) * var(--drift-y, 0px)))
    )
    rotate(calc(var(--tilt, 0deg) + var(--float-r, 0deg)))
    scale(var(--float-s, 1));
  animation:
    float-scene var(--float-duration, 8s) ease-in-out infinite,
    scene-in 900ms var(--ease-out) both;
  animation-delay: var(--float-delay, 0s), calc(320ms + var(--float-delay-in, 0ms));
  will-change: transform;
}

@keyframes scene-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.mini-calendar {
  top: 24%;
  left: clamp(16%, 31vw, 36%);
  --drift-x: -18px;
  --drift-y: -12px;
  --tilt: -3deg;
  --float-duration: 7.6s;
  --float-delay-in: 0ms;
}

.mini-music {
  top: 25%;
  right: clamp(15%, 30vw, 35%);
  width: clamp(56px, 6.6vw, 98px);
  --drift-x: 22px;
  --drift-y: -10px;
  --tilt: 2deg;
  --float-duration: 8.4s;
  --float-delay: -1.6s;
  --float-delay-in: 120ms;
}

.mini-activity {
  top: 43%;
  left: clamp(11%, 25vw, 30%);
  width: clamp(44px, 5.2vw, 70px);
  --drift-x: -22px;
  --drift-y: 12px;
  --tilt: 4deg;
  --float-duration: 8.8s;
  --float-delay: -2.1s;
  --float-delay-in: 360ms;
}

@keyframes float-scene {
  0%,
  100% {
    --float-x: 0px;
    --float-y: 0px;
    --float-s: 1;
    --float-r: 0deg;
  }

  35% {
    --float-x: 7px;
    --float-y: -10px;
    --float-s: 1.05;
    --float-r: 2deg;
  }

  68% {
    --float-x: -5px;
    --float-y: 7px;
    --float-s: .97;
    --float-r: -1.5deg;
  }
}

/* ----------------------------------------------------------------- Footer */
.nibble-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(18px, 5vw, 72px);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px) clamp(30px, 3.4vw, 46px);
}

.nibble-footer p {
  margin: 0;
  color: #9d79a7;
  font-size: clamp(.72rem, .9vw, .86rem);
  font-weight: 700;
}

.nibble-footer p:last-child {
  justify-self: end;
}

.footer-characters {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 26px);
  min-width: clamp(280px, 32vw, 560px);
}

.footer-characters img {
  width: auto;
  height: clamp(74px, 8.6vw, 152px);
  object-fit: contain;
  transition: transform .5s var(--ease-out);
}

.footer-characters img.footer-logo {
  position: absolute;
  left: 50%;
  top: 63%;
  z-index: 3;
  width: clamp(62px, 7.2vw, 110px);
  height: auto;
  transform: translate(-50%, calc(-50% + 26px));
  filter: drop-shadow(0 6px 18px rgb(90 60 110 / .28));
}

.footer-characters:hover img:not(.footer-logo) {
  transform: translateY(-5px) rotate(-1.5deg);
}

.footer-characters:hover img:nth-child(even):not(.footer-logo) {
  transform: translateY(-9px) rotate(2deg);
}

.footer-characters:hover .footer-logo {
  transform: translate(-50%, calc(-50% + 26px)) scale(1.03);
}

.footer-tagline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-yogurt {
  height: clamp(36px, 3.6vw, 56px);
  width: auto;
  filter: drop-shadow(0 6px 12px rgb(120 80 130 / .18));
}

/* --------------------------------------------------------- Feedback surface */
.feedback-surface {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 100%;
  padding-top: 0;
}

.feedback-stage {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: min(820px, calc(100dvh - 108px));
  padding: clamp(28px, 5vh, 60px) 20px clamp(64px, 8vh, 96px);
}

.feedback-card,
.success-card {
  position: relative;
  width: min(100%, 600px);
  border: 0;
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow:
    0 40px 90px -44px rgb(80 50 110 / .58),
    0 1px 0 rgb(255 255 255 / .8) inset;
}

.feedback-card {
  padding: clamp(28px, 3.4vw, 40px) clamp(24px, 3.6vw, 44px) clamp(24px, 2.6vw, 32px);
  animation: card-in 720ms var(--ease-out) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.99);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Staggered entrance for the card's sections */
.feedback-card > * {
  animation: rise-in 560ms var(--ease-out) both;
}

.feedback-card > *:nth-child(1) { animation-delay: 120ms; }
.feedback-card > *:nth-child(2) { animation-delay: 175ms; }
.feedback-card > *:nth-child(3) { animation-delay: 220ms; }
.feedback-card > *:nth-child(4) { animation-delay: 265ms; }
.feedback-card > *:nth-child(5) { animation-delay: 305ms; }
.feedback-card > *:nth-child(6) { animation-delay: 340ms; }
.feedback-card > *:nth-child(7) { animation-delay: 370ms; }
.feedback-card > *:nth-child(n+8) { animation-delay: 400ms; }

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.card-head h1,
.success-copy h1 {
  margin: 14px 0 8px;
  color: #392849;
  font-size: clamp(1.6rem, 2.5vw, 1.78rem);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.02;
}

.card-head p,
.success-copy p,
.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend,
.field > span,
.chip-field legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 900;
  line-height: 1.2;
}

.identity-field {
  margin: 4px 0 0;
}

.identity-field em {
  color: var(--faint);
  font-style: normal;
  font-weight: 600;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.category-grid legend {
  grid-column: 1 / -1;
  margin-bottom: 11px;
  padding-top: 22px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}

.category-card[data-category-card="bug"] {
  --accent: var(--bug);
}

.category-card[data-category-card="improvement"] {
  --accent: var(--improvement);
}

.category-card[data-category-card="idea"] {
  --accent: var(--idea);
}

.category-card[data-category-card="delight"] {
  --accent: var(--delight);
}

.feedback-card[data-category="bug"] {
  --accent: var(--bug);
}

.feedback-card[data-category="improvement"] {
  --accent: var(--improvement);
}

.feedback-card[data-category="idea"] {
  --accent: var(--idea);
}

.feedback-card[data-category="delight"],
.feedback-card.is-empty {
  --accent: var(--delight);
}

.category-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 76px;
  border: 2px solid var(--border-soft);
  border-radius: 16px;
  padding: 13px 15px;
  background: #fff;
  cursor: pointer;
}

.category-card:hover {
  border-color: #d8cee4;
  box-shadow: 0 10px 24px -14px rgb(80 50 110 / .28);
  transform: translateY(-2px);
}

.category-card:active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 4%, #fff);
  transform: scale(.99);
  transition-duration: var(--dur-press);
}

.category-card:has(input:focus-visible) {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.category-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 55%, transparent);
}

.category-card input,
.chip-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-card input:focus-visible,
.chip-field input:focus-visible,
.field-optional input:focus-visible {
  outline: none;
}

.category-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f3f1f6;
  font-size: 1.24rem;
  line-height: 1;
}

.category-card.is-active .category-mark {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  transform: scale(1.04);
}

.category-copy strong,
.category-copy small {
  display: block;
}

.category-copy strong {
  margin-bottom: 2px;
  font-size: .93rem;
  font-weight: 900;
}

.category-copy small {
  color: var(--muted-2);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
}

.category-status {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin: 4px 0 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.category-status strong {
  color: var(--accent);
}

.feedback-card.is-empty {
  --accent: #e0679a;
}

.form-with-character {
  position: relative;
  padding-top: 60px;
  min-height: 0;
}

.feedback-card.is-empty .category-status,
.feedback-card.is-empty .question-stack,
.feedback-card.is-empty [data-severity-field],
.feedback-card.is-empty > .field:not(.field-optional):not(.identity-field),
.feedback-card.is-empty [data-attachment-field],
.feedback-card.is-empty .button-wide,
.feedback-card.is-empty .fine-print {
  opacity: .35 !important;
}

.feedback-card.is-empty .question-stack .field,
.feedback-card.is-empty [data-severity-field],
.feedback-card.is-empty > .field:not(.field-optional):not(.identity-field),
.feedback-card.is-empty [data-attachment-field] {
  pointer-events: none;
}

.question-stack {
  display: grid;
  gap: 14px;
}

.question-stack .field {
  animation: rise-in 420ms var(--ease-out) both;
}

.question-stack .field:nth-child(2) { animation-delay: 70ms; }
.question-stack .field:nth-child(3) { animation-delay: 140ms; }

.character-slot {
  position: absolute;
  right: -4px;
  top: -22px;
  width: 150px;
  height: 116px;
  pointer-events: none;
  animation: char-float 6.5s ease-in-out infinite;
  will-change: transform;
}

.category-character {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 116px;
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgb(97 72 110 / .2));
}

@keyframes char-float {
  0%,
  100% {
    transform: translateY(-3px) rotate(-.4deg);
  }

  50% {
    transform: translateY(-11px) rotate(1deg);
  }
}

@keyframes char-pop {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(.9);
  }

  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.category-character.char-in {
  animation: char-pop 520ms var(--ease-out) both;
}

.feedback-card[data-category="bug"] .category-character {
  width: 118px;
  right: 2px;
}

.feedback-card[data-category="improvement"] .category-character {
  width: 104px;
  right: 8px;
}

.feedback-card[data-category="idea"] .category-character {
  width: 128px;
  right: 0;
}

.feedback-card[data-category="delight"] .category-character {
  width: 102px;
  right: 10px;
}

.feedback-card.is-empty .category-character {
  right: 10px;
  bottom: 0;
  width: 116px;
}

.feedback-card > .field:not(.field-optional) {
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-weight: 900;
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  color: var(--ink);
  background: var(--sunken);
  font-size: .9rem;
  font-weight: 600;
}

.field input[type="text"],
.field select {
  min-height: 47px;
  padding: 0 15px;
}

.field textarea {
  min-height: 94px;
  padding: 13px 15px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #c0b8ca;
}

.field input[type="text"]:hover,
.field select:hover,
.field textarea:hover {
  border-color: #d3c9df;
  background: #fff;
}

.field input[type="text"]:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.field-optional input:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9990a6 50%),
    linear-gradient(135deg, #9990a6 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 20px,
    calc(100% - 14px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.chip-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.chip-field legend {
  flex: 0 0 100%;
  margin: 0 0 3px;
}

.chip-field label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  color: #6e667c;
  background: #fff;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}

.chip-field label:hover span {
  border-color: #c9bfd6;
  color: var(--ink);
  background: #fbfafd;
}

.chip-field label:active span {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  transform: scale(.97);
  transition-duration: var(--dur-press);
}

.chip-field input:checked + span {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.chip-field label:hover input:checked + span {
  filter: brightness(1.05);
}

.chip-field label:has(input:focus-visible) span {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.field-optional {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 16px;
  border: 1.5px dashed #d8d1e2;
  border-radius: 14px;
  padding: 17px 14px;
  background: var(--sunken);
  text-align: center;
  cursor: pointer;
}

.field-optional:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, #d8d1e2);
  background: #fff;
}

.field-optional:has(input:focus-visible) {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.dropzone-title {
  color: var(--muted-2);
  font-size: .86rem;
  font-weight: 700;
}

.dropzone-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--faint);
}

.dropzone-hint {
  color: #bcb4c8;
  font-size: .72rem;
  font-weight: 700;
}

.field-optional input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.dropzone-file {
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------- Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 17px 30px;
  color: #fff;
  font: 800 1.02rem/1 var(--font);
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}

.button-wide {
  width: 100%;
  margin-top: 8px;
}

.button-primary {
  background: var(--cta);
  box-shadow: 0 16px 32px -10px rgb(226 75 139 / .55);
}

.button-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 22px 44px -12px rgb(226 75 139 / .62);
  transform: translateY(-2px);
}

.button-primary:active {
  filter: brightness(.97);
  box-shadow: 0 8px 18px -10px rgb(226 75 139 / .5);
  transform: translateY(1px) scale(.985);
  transition-duration: var(--dur-press);
}

.button-primary:focus-visible {
  outline: none;
  box-shadow:
    0 16px 32px -10px rgb(226 75 139 / .55),
    0 0 0 3px rgb(226 75 139 / .35);
}

.button-primary:disabled,
.button-primary[aria-disabled="true"] {
  color: #b3aabf;
  background: #eae4f0;
  box-shadow: none;
  filter: none;
  cursor: not-allowed;
  pointer-events: none;
}

.button-primary[aria-busy="true"] {
  color: #fff;
  background: var(--cta);
  box-shadow: 0 16px 32px -10px rgb(226 75 139 / .45);
  cursor: wait;
}

.form-error {
  min-height: 18px;
  margin: 14px 0 6px;
  color: var(--bug);
  font-size: .82rem;
  font-weight: 800;
}

.fine-print {
  margin-top: 14px;
  text-align: center;
  font-size: .78rem;
}

.bot-field,
.turnstile-slot[hidden] {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------- Success */
.success-card {
  position: relative;
  display: block;
  width: min(100%, 544px);
  min-height: 0;
  /* Nudge the card left so the card + peeking Pico read as one centered
     composition (matches the Pencil artboard, where Pico's ~218px overhang
     is balanced by an equal left margin). Ramps in with viewport width. */
  margin-right: clamp(0px, 50vw - 300px, 218px);
  padding: 40px 48px;
  overflow: visible;
  animation: success-in 640ms var(--ease-out) both;
}

@keyframes success-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.success-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.success-copy .card-logo {
  margin: 0 auto;
}

.success-copy h1 {
  margin: 0;
  /* Inter Semi Bold 50 / 110% — matches the Pencil "Success headline". */
  font-size: clamp(2.4rem, 3vw, 3.125rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  color: #2c2440;
}

.success-copy p {
  max-width: 300px;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.5;
}

.success-copy .reference-code {
  max-width: none;
  padding: 8px 14px;
  border: 1px solid rgb(140 109 154 / .18);
  border-radius: 999px;
  background: rgb(255 255 255 / .76);
  color: #8c6d9a;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.text-link {
  display: inline-flex;
  margin-top: -4px;
  padding: 5px 7px;
  border-radius: 8px;
  color: #8c6d9a;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:active {
  color: #6e667c;
}

.text-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(140 109 154 / .3);
}

.success-pico {
  position: absolute;
  /* 1:1 with the Pencil design: 233x423 image, left edge 15px inside the
     card's right edge (peeks from outside), top 19px above the card top. */
  left: calc(100% - 16px);
  top: -19px;
  width: 233px;
  height: 423px;
  max-width: none;
  margin: 0;
  transform: none;
  filter: drop-shadow(0 20px 22px rgb(97 72 110 / .2));
  animation: pico-in 760ms 120ms var(--ease-out) both;
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --------------------------------------------------- Large-screen breathing */
@media (min-width: 1280px) {
  .feedback-stage {
    padding-top: clamp(40px, 6vh, 76px);
    padding-bottom: clamp(72px, 8vh, 104px);
  }
}

@media (min-width: 1680px) {
  .footer-characters {
    gap: 12px;
  }
}

/* --------------------------------------------------------------- Tablet / phone */
@media (max-width: 760px) {
  .topbar {
    padding-top: 34px;
    padding-inline: 22px;
  }

  .brand-logo {
    width: 128px;
  }

  .food-row {
    gap: 14px;
  }

  .food-row img {
    height: 28px;
  }

  .landing-surface {
    grid-template-rows: auto minmax(612px, 1fr);
  }

  .landing-hero {
    min-height: 612px;
    padding-inline: 18px;
  }

  .hero-word {
    font-size: clamp(3.6rem, 17vw, 6rem);
    line-height: .84;
  }

  .hero-pico {
    width: min(96vw, 400px);
    transform: translateY(-8px);
  }

  .hero-copy {
    bottom: 116px;
  }

  .hero-copy h1 {
    white-space: normal;
    font-size: clamp(1.5rem, 6.4vw, 1.95rem);
    text-wrap: balance;
  }

  .hero-break {
    display: inline;
  }

  .mini-scene {
    width: clamp(46px, 12vw, 74px);
  }

  .mini-calendar {
    top: 21%;
    left: 17%;
  }

  .mini-music {
    top: 24%;
    right: 15%;
  }

  .mini-activity {
    top: 46%;
    left: 5%;
  }

  .nibble-footer {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-inline: 22px;
    padding-bottom: 28px;
  }

  .footer-characters {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
  }

  .nibble-footer p {
    font-size: .68rem;
  }

  .footer-characters {
    gap: 6px;
  }

  .footer-characters img {
    height: 66px;
  }

  .footer-characters img.footer-logo {
    width: 54px;
  }

  .footer-yogurt {
    display: none;
  }

  .feedback-surface {
    padding-top: 18px;
  }

  .feedback-stage {
    padding-top: 22px;
    padding-bottom: 60px;
    padding-inline: 8px;
    min-height: auto;
  }

  .feedback-card {
    padding: 24px 18px 22px;
  }

  .card-head {
    position: relative;
    margin-bottom: 16px;
  }

  /* Give the heading + subtitle the full card width so the subtitle stays on
     one line; the food icons lift up onto the logo row (matches Pencil). */
  .card-head > div {
    width: 100%;
  }

  .card-logo {
    width: 78px;
  }

  .card-head h1 {
    margin-top: 12px;
    font-size: 1.46rem;
  }

  .card-head p {
    /* Pencil mobile subtitle: Inter 14 / normal. */
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.35;
  }

  .food-row-sm {
    position: absolute;
    top: 3px;
    right: 0;
    height: 22px;
  }

  .category-grid {
    gap: 9px;
  }

  .category-card {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 100px;
    gap: 8px;
    padding: 13px 8px;
    text-align: center;
  }

  .category-copy strong {
    font-size: .85rem;
  }

  .category-copy small {
    font-size: .64rem;
  }

  .category-status {
    margin-top: 16px;
  }

  .character-slot {
    display: none;
  }

  .form-with-character {
    padding-top: 0;
    min-height: 0;
  }

  .form-with-character .field:first-child {
    max-width: none;
  }

  .field input[type="text"],
  .field select,
  .field textarea {
    font-size: .86rem;
  }

  .chip-field label span {
    min-height: 33px;
    padding-inline: 14px;
    font-size: .8rem;
  }

  .button {
    min-height: 48px;
    font-size: .92rem;
  }

  .success-card {
    display: block;
    align-self: start;
    min-height: 0;
    margin-right: 0;
    padding: 40px 26px 34px;
    overflow: visible;
  }

  .success-copy h1 {
    font-size: 2rem;
  }

  .success-pico {
    position: absolute;
    left: -30px;
    right: auto;
    /* Sit fully below the card (peeking from the bottom-left on the purple
       background), matching the Pencil mobile frame. */
    top: calc(100% + 6px);
    bottom: auto;
    width: 188px;
    height: auto;
    transform: rotate(1deg);
    animation: none;
  }
}

@media (max-width: 390px) {
  .food-row {
    height: 24px;
  }

  .landing-hero {
    min-height: 600px;
  }

  .feedback-stage {
    padding-inline: 6px;
  }

  .feedback-card {
    padding-inline: 15px;
  }

  .category-card {
    min-height: 94px;
  }
}

/* ------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none;
  }

  *:active {
    transform: none !important;
  }

  .landing-hero,
  .feedback-card,
  .feedback-card > *,
  .question-stack .field,
  .mini-scene,
  .character-slot,
  .category-character.char-in,
  .success-card,
  .success-pico {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
