/* ==========================================================================
   Cookify — Hero (intro text + featured product card + slide-to-call CTA)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-heading);
  padding: 36px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero * {
  box-sizing: border-box;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(640px, 100%);
  margin: 44px auto 0;
}

.hero__content-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-ivory);
}
.hero__badge span {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.hero__heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__heading em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__subtext {
  margin: 0;
  max-width: 440px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(23, 20, 15, 0.72);
}

/* ============================ Featured product =========================== */

.featured-product {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  margin: 0 auto;
}

.featured-product__tag {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: rgba(245, 241, 232, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.featured-product__loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.featured-product__card {
  display: flex;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -32px rgba(23, 20, 15, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-product__card[hidden] {
  display: none;
}
.featured-product__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 70px -30px rgba(23, 20, 15, 0.35);
}

.featured-product__media {
  position: relative;
  width: 46%;
  flex-shrink: 0;
  background: var(--color-card-c);
}
.featured-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-product__ribbon {
  position: absolute;
  top: 22px;
  left: -42px;
  width: 180px;
  transform: rotate(-40deg);
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 0;
  box-shadow: 0 6px 14px -6px rgba(23, 20, 15, 0.4);
}

.featured-product__info {
  flex: 1 1 auto;
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 12px;
}

.featured-product__eyebrow {
  display: inline-flex;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 145, 77, 0.15);
  color: #c96428;
  font-size: 11.5px;
  font-weight: 600;
}

.featured-product__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.32;
  color: var(--color-ink);
}

.featured-product__price {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-ink);
}

.featured-product__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-ivory);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  transition: filter 0.15s ease;
}
.featured-product__card:hover .featured-product__cta {
  filter: brightness(0.94);
}

/* ============================ Slide-to-call CTA =========================== */

.hero__slide-cta {
  position: relative;
  z-index: 1;
  width: min(320px, 90vw);
  height: 54px;
  margin: 36px auto 0;
  border-radius: var(--radius-pill);
  background: var(--color-card-a);
  overflow: hidden;
  user-select: none;
  outline: none;
}
.hero__slide-cta:focus-visible {
  box-shadow: 0 0 0 2px var(--color-accent);
}
.hero__slide-cta.is-complete { opacity: 0.85; }
.hero__slide-cta.is-settling { transition: background-color .25s ease; }

.hero__slide-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px 0 58px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: color .15s ease;
}

.hero__slide-handle {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 8px 16px -8px rgba(23, 20, 15, 0.5);
  will-change: transform;
}
.hero__slide-handle:active {
  cursor: grabbing;
}

/* ================================== Stats ================================= */

.hero__stats {
  position: relative;
  z-index: 1;
  margin-top: 52px;
  display: flex;
  gap: 0;
}
.hero__stat {
  width: 190px;
  text-align: center;
  border-left: 1px solid var(--color-border);
}
.hero__stat:first-child {
  border-left: none;
}
.hero__stat-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
  height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.hero__stat-value--sm {
  font-size: 18px;
  padding-top: 5px;
}
.hero__stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

@media (max-width: 749px) {
  .hero {
    padding: 56px 16px 48px;
  }
  .hero__content { margin-top: 32px; }
  .hero__heading { font-size: 24px; }
  .hero__subtext { font-size: 13px; }

  .featured-product__tag { font-size: 10.5px; padding: 7px 14px; margin-bottom: 12px; }

  /* Keep the same side-by-side (image left, info right) layout as desktop
     — just scaled down — instead of stacking, so the card reads the same
     way on a phone as it does on a big screen. */
  .featured-product__card { border-radius: var(--radius-md); }
  .featured-product__media { width: 42%; }
  .featured-product__ribbon { top: 12px; left: -34px; width: 130px; font-size: 9px; padding: 4px 0; }
  .featured-product__info { padding: 16px 12px; gap: 6px; }
  .featured-product__eyebrow { padding: 3px 9px; font-size: 9px; }
  .featured-product__title { font-size: 14px; line-height: 1.28; }
  .featured-product__price { font-size: 16px; }
  .featured-product__cta { padding: 8px 14px; font-size: 11px; gap: 5px; margin-top: 4px; }
  .featured-product__cta svg { width: 12px; height: 12px; }

  .hero__slide-cta { height: 48px; margin-top: 28px; }
  .hero__slide-handle { width: 38px; height: 38px; }

  .hero__stats {
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 36px;
    width: 100%;
  }
  .hero__stat {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 3px;
  }
  .hero__stat-value {
    font-size: 15px;
    height: 20px;
  }
  .hero__stat-value--sm {
    font-size: 9.5px;
    line-height: 1.15;
    padding-top: 4px;
    white-space: normal;
  }
  .hero__stat-label {
    font-size: 8px;
    line-height: 1.25;
    margin-top: 3px;
  }
}
