/* ============================================================
   My/Mochi - landing page styles.
   Layout + component styles built on the design tokens
   (tokens/*.css, imported via styles.css).
   ============================================================ */

body { background: var(--bg-page); }

.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: var(--container-narrow); }

/* ---------------------------------------------------------------
   Hero - the signature Sunset Gradient, centered single column
   --------------------------------------------------------------- */
.hero {
  background: var(--gradient-sunset);
  color: var(--white);
}
.hero__inner {
  text-align: center;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}
.hero__logo {
  display: block;
  /* Cropped wordmark: height = real logo size (mid: not tiny, not hero-swallowing) */
  height: clamp(88px, 14vw, 120px);
  width: auto;
  max-width: min(88vw, 380px);
  margin: 0 auto var(--space-6);
}
.hero__kicker {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.hero__title {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: var(--tracking-display);
  margin: var(--space-5) 0 0;
}
.hero__lead {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.92);
  max-width: 30rem;
  margin: var(--space-5) auto 0;
}

/* ---- Retailers ------------------------------------------------- */
.retailers { margin-top: var(--space-9); }
.retailers__label {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
}
.retailers__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 44rem;
  margin: 0 auto;
}
.retailer-card {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 88px;
  min-width: 0;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-bounce),
              box-shadow var(--dur-base) var(--ease-bounce);
}
a.retailer-card {
  text-decoration: none;
  color: inherit;
}
a.retailer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
a.retailer-card:focus-visible {
  outline: 3px solid var(--magenta-500);
  outline-offset: 3px;
}
.retailer-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  object-position: center;
}

/* ---------------------------------------------------------------
   What is mochi? - photo + explainer
   --------------------------------------------------------------- */
.about {
  background: var(--white);
  padding: var(--section-y) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: var(--space-9);
  align-items: start;
}
.about__media picture {
  display: block;
  width: 100%;
  max-width: 400px;
}
.about__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}
.about__eyebrow { color: var(--magenta-500); }
.about__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--ink);
  margin-top: var(--space-2);
}
.about__lead {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  max-width: none;
  margin-top: var(--space-4);
}
.about__lead a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.about__points {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.about__points li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: var(--space-4);
  border-left: 4px solid var(--magenta-500);
}
.about__points strong {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.05rem;
  color: var(--ink);
}
.about__points .mm-eyebrow { color: var(--text-muted); }

/* ---------------------------------------------------------------
   Flavors - warm paper band, 3-up card grid
   --------------------------------------------------------------- */
.flavors {
  background: var(--bg-page-warm);
  padding: var(--section-y) 0;
}
.section-head {
  text-align: center;
  margin-bottom: var(--space-7);
}
.section-head__eyebrow { color: var(--magenta-500); }
.section-head__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--ink);
  margin-top: var(--space-2);
}

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.flavor-card {
  display: block;
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-bounce),
              box-shadow var(--dur-base) var(--ease-bounce);
}
a.flavor-card {
  text-decoration: none;
  color: inherit;
}
.flavor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
a.flavor-card:focus-visible {
  outline: 3px solid var(--purple-500);
  outline-offset: 3px;
}
.flavor-card__well {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}
.flavor-card__well picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88%;
  max-height: 90%;
}
.flavor-card__well img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.flavor-card__cal {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.7rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}
.flavor-card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-family: var(--font-body);
  font-weight: var(--fw-extrabold);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--white);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
}
.flavor-card__badge--soldout {
  color: var(--ink-500);
}
.flavor-card__body { padding: 1.25rem 1.4rem 1.4rem; }
.flavor-card__name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.4rem;
  color: var(--ink);
}
.flavor-card__sub {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.footer {
  background: var(--purple-900);
  color: var(--white);
}
.footer__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
.footer__logo {
  display: block;
  height: 48px;
  width: auto;
}
.footer__meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 0.82rem;
}
.footer__legal { color: rgba(255, 255, 255, 0.6); }
.footer__credit { color: rgba(255, 255, 255, 0.45); }
.footer__credit a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.footer__credit a:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ---------------------------------------------------------------
   Responsive - stack to a single column on small screens
   --------------------------------------------------------------- */
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .about__media { order: -1; }
  .about__copy { text-align: center; }
  .about__lead { margin-left: auto; margin-right: auto; }
  .about__points { justify-items: center; }
  .about__points li { border-left: 0; padding-left: 0; align-items: center; }
  .flavor-grid { grid-template-columns: 1fr; max-width: 24rem; margin: 0 auto; }
  .retailers__logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 20rem;
  }
  .retailer-card { height: 80px; }
  .retailer-card img { max-height: 40px; }
  .footer__row { flex-direction: column; text-align: center; }
  .footer__meta { margin-left: 0; text-align: center; align-items: center; }
}
