/* Guest / marketing landing — uses cook tokens from app.css */

.cook-home {
  margin: -0.25rem -0.5rem 0;
  color: var(--ink);
}

.cook-home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 36rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
  overflow: hidden;
  border-radius: 0 0 1.25rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(41, 37, 36, 0.15) 0%, rgba(41, 37, 36, 0.72) 100%),
    linear-gradient(120deg, #9a3412 0%, #c2410c 45%, #78716c 100%);
  color: #fffdf8;
}

.cook-home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cook-home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  animation: cook-home-fade 1.1s ease both;
}

.cook-home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  animation: cook-home-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cook-home-title {
  margin: 0.85rem 0 0.55rem;
  font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 650;
  line-height: 1.15;
  color: #fffdf8;
}

.cook-home-lede {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255, 253, 248, 0.9);
}

.cook-home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cook-home-cta .btn-outline-secondary {
  border-color: rgba(255, 253, 248, 0.55);
  color: #fffdf8;
  background: transparent;
}

.cook-home-cta .btn-outline-secondary:hover {
  background: rgba(255, 253, 248, 0.12);
  border-color: #fffdf8;
  color: #fffdf8;
}

.cook-home-section,
.cook-home-close {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.cook-home-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cook-home-section h2,
.cook-home-close h2 {
  margin: 0 0 0.55rem;
  font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 650;
}

.cook-home-intro,
.cook-home-close p {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.55;
}

.cook-home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.cook-home-step {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.cook-home-step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #fffdf8;
  border: 1px solid var(--line);
}

.cook-home-step h3 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.cook-home-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.cook-home-close {
  border-top: 1px solid var(--line);
  padding-bottom: 1rem;
}

.cook-home-close .cook-home-cta .btn-outline-secondary {
  border-color: var(--line);
  color: var(--ink);
}

@keyframes cook-home-fade {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 0.45; transform: scale(1); }
}

@keyframes cook-home-rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .cook-home-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cook-home-step {
    display: grid;
    grid-template-columns: 4.75rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    row-gap: 0.25rem;
    align-items: start;
  }

  .cook-home-step img {
    grid-row: 1 / span 2;
    width: 4.75rem;
    height: 4.75rem;
    max-height: none;
    aspect-ratio: 1;
    object-fit: cover;
  }

  .cook-home-step h3 {
    margin: 0;
    font-size: 1rem;
  }

  .cook-home-step p {
    font-size: 0.9rem;
  }
}
