/* Alternative hero treatment. Layout and product content are shared with White. */
body[data-hero-theme="purple"] {
  /* Sampled from the app's idle input: ink composited over brandPurple. */
  --input-purple: #5a4d7e;
  /* A light tint of the brand-purple hue, richer than translucent white. */
  --hero-accent: #cabde8;
}

[data-hero-theme="purple"] .concept-bar {
  display: none;
}

[data-hero-theme="purple"] .hero-header,
[data-hero-theme="purple"] .hero-band {
  background: var(--purple);
  color: #fff;
}

[data-hero-theme="purple"] .hero-header .brand img {
  filter: brightness(0) invert(1);
}

[data-hero-theme="purple"] .hero-header nav {
  color: #ffffffe6;
}

[data-hero-theme="purple"] .hero-header .nav-cta svg {
  display: none;
}

[data-hero-theme="purple"] .bold-copy h1 {
  color: #fff;
  font-size: clamp(60px, 6.4vw, 92px);
}

[data-hero-theme="purple"] .bold-copy .eyebrow {
  color: #ffffffbf;
}

[data-hero-theme="purple"] .bold-copy .intro {
  color: #ffffffe6;
}

[data-hero-theme="purple"] .bold-hero .store-button,
[data-hero-theme="purple"] .hero-header .nav-cta {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: #fff;
  transition: background-color .2s, border-color .2s;
}

[data-hero-theme="purple"] .bold-hero .store-button:hover,
[data-hero-theme="purple"] .hero-header .nav-cta:hover {
  background: color-mix(in srgb, var(--purple-dark) 75%, var(--ink));
  border-color: color-mix(in srgb, var(--purple-dark) 75%, var(--ink));
  color: #fff;
  opacity: 1;
  transform: none;
  text-decoration: none;
}

[data-hero-theme="purple"] .hero-header :focus-visible,
[data-hero-theme="purple"] .hero-band :focus-visible {
  outline-color: #fff;
}

[data-hero-theme="purple"] .hero-food {
  pointer-events: none;
}

.hero-food-art {
  width: 100%;
  transform-origin: 50% 67.5%;
}

.sandwich-stack {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-food[data-layers-ready] > .sandwich-stack {
  visibility: visible;
}

.hero-food[data-layers-ready] > .hero-food-art {
  visibility: hidden;
}

.sandwich-layer {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: fill;
  transform-origin: 50% 70%;
  transform: skewX(var(--rest-skew, 0deg));
  pointer-events: none;
}

.sandwich-bun-base { display: block; width: 100%; height: 100%; }
.hero-food[data-expressions-ready] .sandwich-bun-base { visibility: hidden; }
.sandwich-face-sprite {
  position: absolute;
  inset: 0;
  background-size: 500% 100%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-food[data-dancing] .sandwich-face-sprite { background-position: 50% 0%; }

/* Fitted to the original artwork's square, including the perspective of each piece. */
.sandwich-layer--bottom-bun { left: 17.966%; top: 48.276%; width: 67.538%; height: 39.269%; rotate: -2.845deg; --rest-skew: 12.204deg; }
.sandwich-layer--chicken { left: 10.870%; top: 45.765%; width: 77.291%; height: 32.984%; rotate: -1.935deg; --rest-skew: 2.362deg; }
.sandwich-layer--tomato-left { left: 15.532%; top: 36.229%; width: 42.985%; height: 26.623%; rotate: -11.994deg; --rest-skew: -11.989deg; }
.sandwich-layer--tomato-right { left: 38.334%; top: 46.461%; width: 41.168%; height: 22.068%; rotate: 6.587deg; --rest-skew: -10.892deg; }
.sandwich-layer--lettuce { left: 9.369%; top: 30.921%; width: 80.813%; height: 34.924%; rotate: 1.587deg; --rest-skew: 1.071deg; }
.sandwich-layer--top-bun { left: 15.189%; top: 13.087%; width: 70.958%; height: 44.411%; rotate: -0.415deg; --rest-skew: 0.015deg; }

.hero-food-hit {
  position: absolute;
  /* The visible sandwich occupies x:10–90%, y:14–88% of its source image. */
  inset: 14% 10% 12%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
}

.hero-food-hit:focus-visible {
  outline: 2px solid var(--hero-accent);
  outline-offset: 4px;
}

[data-hero-theme="purple"] .ticker {
  background: var(--input-purple);
  color: #fff;
}

[data-hero-theme="purple"] .ticker-items > span + span {
  border-left-width: 2px;
}

[data-hero-theme="purple"] .ticker-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  fill: currentColor;
  color: var(--hero-accent);
}

[data-hero-theme="purple"] .faq {
  border-top: 0;
  /* The feature section and FAQ margin already add 140px above this content.
     Split the existing 332px of surrounding space into two 166px gaps. */
  padding-block: 26px 166px;
}

[data-hero-theme="purple"] .download-food {
  scale: 1.15;
}

[data-hero-theme="purple"] .download h2 .meal-phrase {
  white-space: nowrap;
}

[data-hero-theme="purple"] .company-footer .brand img {
  opacity: .6;
}

@media (max-width: 800px) {
  [data-hero-theme="purple"] .bold-copy h1 {
    font-size: clamp(60px, 11.5vw, 92px);
  }
}

@media (max-width: 580px) {
  [data-hero-theme="purple"] .tile-text h2 br {
    display: none;
  }

  body[data-hero-theme="purple"] .download h2 {
    text-wrap: wrap;
  }

  [data-hero-theme="purple"] .download h2 .meal-phrase {
    white-space: normal;
  }

  [data-hero-theme="purple"] .tile-text {
    padding-block: 24px 32px;
  }

  [data-hero-theme="purple"] .faq {
    /* Preserve the mobile total: 60px + 28px + 16px = 104px on each side. */
    padding-block: 16px 104px;
  }

  [data-hero-theme="purple"] .download-food {
    margin-block: 8px;
  }
}

@media (max-width: 390px) {
  [data-hero-theme="purple"] .download .store-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  [data-hero-theme="purple"] .download .store-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

/* Small phones, including the narrow 320px layout. */
@media (max-width: 360px) {
  [data-hero-theme="purple"] .bold-tile h2,
  [data-hero-theme="purple"] .faq h2 {
    font-size: 36px;
  }

  [data-hero-theme="purple"] .bold-tile h3 {
    font-size: 30px;
  }

  body[data-hero-theme="purple"] .download h2 {
    font-size: 28px;
  }
}
