/* ===== Hamstash marketing site ===== */

:root {
  --cream: #FFF8EE;
  --paper: #FFFFFF;
  --cocoa: #3B2A22;
  --cocoa-soft: #7A6558;
  --tomato: #CC4128;
  --tomato-deep: #B03A24;
  --tomato-soft: #FDE3DD;
  --butter: #FFD66B;
  --butter-soft: #FFF3CF;
  --apricot: #FFA45C;
  --apricot-soft: #FFE6D1;
  --sage: #8CC08A;
  --sage-soft: #E3F1E1;
  --berry: #C8566E;
  --berry-soft: #F6DDE2;
  --sky: #9CCBEA;
  --sky-soft: #E2F0FA;
  --oat: #F3E6D3;
  --oat-deep: #E6D3B8;
  --wood: #C9AE86;

  --shadow: 0 6px 18px rgba(107, 74, 53, 0.14);
  --shadow-soft: 0 4px 12px rgba(107, 74, 53, 0.12);
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  overflow-x: clip; /* safety net for the trotting Mochi */
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  color: var(--cocoa);
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

p {
  color: var(--cocoa-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 1em;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tomato);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

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

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

/* ---- layout helpers ---- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 16px;
}

@media (min-width: 720px) {
  .section {
    padding: 96px 16px;
  }
}

.card {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
}

.pill-soft {
  background: var(--apricot-soft);
  color: var(--tomato-deep);
}

.pill-sage {
  background: var(--sage-soft);
  color: #2F6B37;
}

.pill-butter {
  background: var(--butter-soft);
  color: var(--cocoa);
}

.art {
  display: inline-block;
  vertical-align: middle;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-apricot {
  background: var(--apricot);
}

.dot-butter {
  background: var(--butter);
}

/* ---- nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(59, 42, 34, 0.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--cocoa);
}

/* Keep the nav pill on one line on small phones. */
.pill {
  white-space: nowrap;
}
@media (max-width: 479px) {
  .pill-long {
    display: none;
  }
}

/* ---- hero ---- */
.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 16px 104px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero > * {
  min-width: 0;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tomato-deep);
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.6;
  max-width: 46ch;
  color: var(--cocoa-soft);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
}

.hero-note {
  color: var(--cocoa-soft);
  font-weight: 700;
  font-size: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tomato);
  color: #fff;
  padding: 14px 22px;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  cursor: default;
  user-select: none;
  font: inherit;
}

.store-badge-icon {
  font-size: 18px;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge-small {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

.store-badge-big {
  font-size: 17px;
  font-weight: 800;
  font-family: 'Fredoka', sans-serif;
}

/* ---- hero visual: phone with Mochi peeking over the top edge ---- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 56px;
}

.hero-peek-mochi {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.phone-mock {
  position: relative;
  z-index: 2;
  width: 260px;
  max-width: 80vw;
}

/* ---- ambient trotting Mochi along the hero floor line ---- */
.hero-trot-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 56px;
  overflow: hidden;
  pointer-events: none;
}

.hero-trot-track::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  height: 2px;
  background: var(--oat-deep);
}

.hero-trotter {
  position: absolute;
  bottom: 10px;
  left: -6%;
  opacity: 0;
  animation: hero-trot 30s ease-in-out infinite;
}

@keyframes hero-trot {
  0%   { left: -6%; opacity: 0; transform: translateY(0) rotate(0deg); }
  3%   { opacity: 1; transform: translateY(0) rotate(0deg); }
  6%   { left: 6%;  transform: translateY(-3px) rotate(0deg); }
  9%   { left: 12%; transform: translateY(0) rotate(0deg); }
  12%  { left: 18%; transform: translateY(-3px) rotate(0deg); }
  15%  { left: 24%; transform: translateY(0) rotate(0deg); }
  18%  { left: 30%; transform: translateY(-3px) rotate(0deg); }
  21%  { left: 36%; transform: translateY(0) rotate(0deg); }
  24%  { left: 42%; transform: translateY(-2px) rotate(0deg); }
  26%  { left: 45%; opacity: 1; transform: translateY(0) rotate(-4deg); }
  31%  { left: 45%; opacity: 1; transform: translateY(0) rotate(-4deg); }
  33%  { left: 48%; transform: translateY(0) rotate(0deg); }
  36%  { left: 54%; transform: translateY(-3px) rotate(0deg); }
  39%  { left: 60%; transform: translateY(0) rotate(0deg); }
  42%  { left: 66%; transform: translateY(-3px) rotate(0deg); }
  45%  { left: 72%; transform: translateY(0) rotate(0deg); }
  48%  { left: 78%; transform: translateY(-3px) rotate(0deg); }
  51%  { left: 84%; transform: translateY(0) rotate(0deg); }
  54%  { left: 92%; opacity: 1; transform: translateY(-2px) rotate(0deg); }
  57%  { left: 100%; opacity: 0; transform: translateY(0) rotate(0deg); }
  100% { left: 100%; opacity: 0; }
}

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

/* ---- phone mock ---- */
.phone-frame {
  background: var(--cocoa);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.phone-screen {
  background: var(--cream);
  border-radius: 26px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 380px;
}

.phone-title {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  color: var(--cocoa);
}

.phone-search {
  background: var(--paper);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--cocoa-soft);
  box-shadow: var(--shadow-soft);
}

.phone-search-filled {
  color: var(--cocoa);
  font-weight: 800;
}

.phone-card {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.phone-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--cocoa);
}

/* Specific selectors: `.phone-card p` would otherwise override the smaller meta style. */
.phone-card-result .art {
  flex-shrink: 0;
}

.phone-card-result {
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-card-result-text {
  flex: 1;
  min-width: 0;
}

.phone-result-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--cocoa);
}

.phone-card .phone-result-meta {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--cocoa-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-result-pill {
  font-size: 11px;
  padding: 4px 10px;
  white-space: nowrap;
}

.phone-card-butter {
  background: var(--butter-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-card-sky {
  background: var(--sky-soft);
}

.phone-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.phone-card-head p {
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
}

.phone-count {
  background: var(--paper);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--cocoa);
}

.phone-shelf-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

.phone-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-item .dot {
  position: absolute;
  top: -2px;
  right: -2px;
  border: 2px solid var(--sky-soft);
}

/* ---- section heading + lead helpers ---- */
.sound-familiar h2,
.check-buy h2,
.use-it h2,
.meet-mochi h2,
.cast h2,
.privacy-inner h2 {
  text-align: center;
}

.section-lead {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 1.2em;
  font-size: 1.125rem;
}

/* ---- sound familiar ---- */
.bubble-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.bubble-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bubble-card p {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--cocoa);
}

.bubble-tail {
  position: absolute;
  bottom: -10px;
  left: 32px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border-radius: 50%;
}

.familiar-closing {
  text-align: center;
  margin-top: 24px;
  font-weight: 700;
  color: var(--cocoa-soft);
}

/* ---- check before you buy ---- */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.benefit-block h3 {
  font-size: 1.15rem;
  margin: 16px 0 8px;
}

.mini-mock {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.place-mock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cocoa);
  white-space: nowrap;
}

.chip-sky { background: var(--sky-soft); }
.chip-apricot { background: var(--apricot-soft); }
.chip-sage { background: var(--sage-soft); }

.mini-search {
  margin-bottom: 12px;
}

.mini-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cocoa);
}

.mini-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-list-row + .mini-list-row {
  margin-top: 10px;
}

.mini-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid var(--sage);
  flex-shrink: 0;
}

.mini-list-label {
  font-weight: 800;
  color: var(--cocoa);
  flex: 1;
}

.mini-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--cocoa-soft);
}

.punchy-line {
  text-align: center;
  margin: 32px 0 0;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: var(--cocoa);
}

/* ---- use it before you lose it ---- */
.use-it-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 8px;
}

.use-it-art {
  display: flex;
  justify-content: center;
}

.use-it-note {
  color: var(--cocoa-soft);
  font-size: 0.95rem;
}

.use-it-mock {
  margin: 20px 0;
}

.rescued-pill {
  display: inline-flex;
}

/* ---- your pantry is your business ---- */
.privacy-section {
  background: var(--sage-soft);
}

.privacy-inner {
  text-align: center;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
  text-align: left;
}

.privacy-point {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.privacy-icon {
  display: inline-flex;
  color: var(--tomato-deep);
  margin-bottom: 8px;
}

.privacy-point h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.privacy-point p {
  margin: 0;
}

.privacy-footnote {
  text-align: center;
  margin-top: 28px;
  font-weight: 700;
  color: var(--cocoa);
}

/* ---- meet mochi ---- */
.mochi-intro {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
}

.mochi-stage {
  position: relative;
  margin-top: 40px;
  background: var(--oat);
  border-radius: 32px;
  padding: 48px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Mochi stands on a soft shadow rather than a floor far below: grounded at every width. */
.mochi-hero-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mochi-shadow {
  width: 150px;
  height: 18px;
  margin-top: -14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(107, 74, 53, 0.22), rgba(107, 74, 53, 0));
  animation: mochi-shadow-breathe 4s ease-in-out infinite;
}

@keyframes mochi-shadow-breathe {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.86); opacity: 0.75; }
}

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

.mochi-hero-big {
  position: relative;
  z-index: 1;
  animation: mochi-bob-slow 4s ease-in-out infinite;
}

@keyframes mochi-bob-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

.mochi-jobs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  width: 100%;
}

.job-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.job-card h3 {
  font-size: 0.95rem;
  margin: 0;
}

.job-card p {
  margin: 0;
  font-size: 0.85rem;
}

/* ---- cast ---- */
.cast-caption {
  text-align: center;
  margin-top: 8px;
  font-weight: 700;
  color: var(--cocoa-soft);
}

.cast-shelves {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cast-shelf {
  background: var(--oat-deep);
  border-bottom: 8px solid var(--wood);
  border-radius: 14px;
  padding: 20px 16px 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
}

.cast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.cast-item:hover,
.cast-item:focus-within {
  transform: rotate(-4deg) translateY(-4px);
}

.cast-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cocoa-soft);
}

@media (prefers-reduced-motion: reduce) {
  .cast-item:hover,
  .cast-item:focus-within {
    transform: none;
  }
  .cast-item .art {
    animation: none !important;
  }
}

/* ---- per-character hover / tap animations ---- */
@keyframes cast-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(6deg); } 50% { transform: rotate(-6deg); } 75% { transform: rotate(4deg); } }
@keyframes cast-lean { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(10deg); } 70% { transform: rotate(-3deg); } }
@keyframes cast-hop { 0%, 100% { transform: translateY(0) scaleY(1); } 40% { transform: translateY(-8px) scaleY(1); } 70% { transform: translateY(0) scaleY(0.94); } 85% { transform: translateY(0) scaleY(1.02); } }
@keyframes cast-jiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(3deg); } 40% { transform: rotate(-3deg); } 60% { transform: rotate(3deg); } 80% { transform: rotate(-3deg); } }
@keyframes cast-stretch { 0%, 100% { transform: scale(1, 1); } 40% { transform: scale(0.95, 1.1); } 70% { transform: scale(1.02, 0.98); } }
@keyframes cast-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-2px); } 40% { transform: translateX(2px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
@keyframes cast-tip { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
@keyframes cast-roll { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes cast-pop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 70% { transform: translateY(2px); } }
@keyframes cast-rattle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } 75% { transform: rotate(3deg); } }
@keyframes cast-squish { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.08, 0.92); } }
@keyframes cast-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(5deg); } }
@keyframes cast-shiver { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-1px, 1px); } 40% { transform: translate(1px, -1px); } 60% { transform: translate(-1px, 0); } 80% { transform: translate(1px, 1px); } }
@keyframes cast-unroll { 0%, 100% { transform: rotate(0) translateX(0); } 50% { transform: rotate(-8deg) translateX(4px); } }
@keyframes cast-melt { 0%, 100% { transform: scale(1, 1) translateY(0); } 60% { transform: scale(1, 0.9) translateY(3px); } }
@keyframes cast-peekshake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(8deg); } 50% { transform: rotate(-8deg); } 75% { transform: rotate(5deg); } }

.cast-item[data-id="tomato"]:hover .art, .cast-item[data-id="tomato"]:focus-within .art, .cast-item[data-id="tomato"].is-tapped .art { animation: cast-wobble 0.6s ease; transform-origin: bottom center; }
.cast-item[data-id="banana"]:hover .art, .cast-item[data-id="banana"]:focus-within .art, .cast-item[data-id="banana"].is-tapped .art { animation: cast-lean 0.6s ease; transform-origin: bottom center; }
.cast-item[data-id="milk"]:hover .art, .cast-item[data-id="milk"]:focus-within .art, .cast-item[data-id="milk"].is-tapped .art { animation: cast-hop 0.6s ease; }
.cast-item[data-id="eggs"]:hover .art, .cast-item[data-id="eggs"]:focus-within .art, .cast-item[data-id="eggs"].is-tapped .art { animation: cast-jiggle 0.6s ease; }
.cast-item[data-id="bread"]:hover .art, .cast-item[data-id="bread"]:focus-within .art, .cast-item[data-id="bread"].is-tapped .art { animation: cast-stretch 0.6s ease; }
.cast-item[data-id="coffee"]:hover .art, .cast-item[data-id="coffee"]:focus-within .art, .cast-item[data-id="coffee"].is-tapped .art { animation: cast-shake 0.6s ease; }
.cast-item[data-id="cheese"]:hover .art, .cast-item[data-id="cheese"]:focus-within .art, .cast-item[data-id="cheese"].is-tapped .art { animation: cast-tip 0.6s ease; transform-origin: bottom right; }
.cast-item[data-id="apple"]:hover .art, .cast-item[data-id="apple"]:focus-within .art, .cast-item[data-id="apple"].is-tapped .art { animation: cast-roll 0.6s ease; }
.cast-item[data-id="carrot"]:hover .art, .cast-item[data-id="carrot"]:focus-within .art, .cast-item[data-id="carrot"].is-tapped .art { animation: cast-pop 0.6s ease; }
.cast-item[data-id="pasta"]:hover .art, .cast-item[data-id="pasta"]:focus-within .art, .cast-item[data-id="pasta"].is-tapped .art { animation: cast-rattle 0.6s ease; }
.cast-item[data-id="yoghurt"]:hover .art, .cast-item[data-id="yoghurt"]:focus-within .art, .cast-item[data-id="yoghurt"].is-tapped .art { animation: cast-squish 0.6s ease; }
.cast-item[data-id="broccoli"]:hover .art, .cast-item[data-id="broccoli"]:focus-within .art, .cast-item[data-id="broccoli"].is-tapped .art { animation: cast-sway 0.6s ease; }
.cast-item[data-id="peas"]:hover .art, .cast-item[data-id="peas"]:focus-within .art, .cast-item[data-id="peas"].is-tapped .art { animation: cast-shiver 0.6s ease; }
.cast-item[data-id="toilet-paper"]:hover .art, .cast-item[data-id="toilet-paper"]:focus-within .art, .cast-item[data-id="toilet-paper"].is-tapped .art { animation: cast-unroll 0.6s ease; }
.cast-item[data-id="butter"]:hover .art, .cast-item[data-id="butter"]:focus-within .art, .cast-item[data-id="butter"].is-tapped .art { animation: cast-melt 0.6s ease; }
.cast-item[data-id="mystery"]:hover .art, .cast-item[data-id="mystery"]:focus-within .art, .cast-item[data-id="mystery"].is-tapped .art { animation: cast-peekshake 0.6s ease; }

/* ---- final cta ---- */
.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.final-cta-mochi {
  animation: cta-hop 2.4s ease-in-out infinite;
}

@keyframes cta-hop {
  0%, 100% { transform: translateY(0) scaleY(1); }
  45% { transform: translateY(-10px) scaleY(1); }
  55% { transform: translateY(0) scaleY(0.92); }
  65% { transform: translateY(0) scaleY(1); }
}

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

.final-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.final-cta h2 {
  max-width: 20ch;
}

.final-cta-copy p {
  max-width: 42ch;
}

/* ---- footer ---- */
.site-footer {
  text-align: center;
  padding: 32px 16px 48px;
  color: var(--cocoa-soft);
  font-size: 14px;
}

/* ---- reveal animation ---- */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal.js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- responsive ---- */
@media (min-width: 640px) {
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .bubble-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 72px;
  }
  .use-it-inner {
    grid-template-columns: auto 1fr;
    text-align: left;
  }
  .use-it-note {
    text-align: left;
  }
}

@media (min-width: 960px) {
  .mochi-stage {
    min-height: 480px;
    padding: 80px 40px;
  }
  .mochi-jobs {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    pointer-events: none;
  }
  .job-card {
    position: absolute;
    width: 220px;
    pointer-events: auto;
  }
  .job-card-1 { top: 8%; left: 4%; transform: rotate(-3deg); }
  .job-card-2 { top: 10%; right: 4%; transform: rotate(3deg); }
  .job-card-3 { bottom: 10%; left: 8%; transform: rotate(2deg); }
  .job-card-4 { bottom: 8%; right: 8%; transform: rotate(-2deg); }
}

/* ---- privacy / legal page ---- */
.nav-brand-link {
  color: inherit;
  text-decoration: none;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  color: var(--cocoa);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.legal-mochi {
  margin-bottom: 8px;
}

.legal h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 12px;
}

.legal h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.375rem;
  margin: 40px 0 8px;
}

/* "The short version" reads as a highlighted card. */
.legal h2:first-of-type + p {
  background: var(--sage-soft);
  border-radius: 20px;
  padding: 20px 24px;
}

.legal p,
.legal ul {
  margin: 0 0 14px;
}

.legal ul {
  padding-left: 1.25em;
}

.legal li {
  margin-bottom: 6px;
}

.legal a,
.footer-links a {
  color: var(--tomato-deep, #B03A24);
  font-weight: 700;
}

.legal-back {
  margin-top: 40px;
}

.footer-links {
  margin: 8px 0 0;
}
