/* Ay Papi Recipes · stylesheet
   Brand tokens: Clients/Ay Papi/ay-papi-brand-tokens.css (copied verbatim below).
   Layout and rhythm adapted from the Sauz web kit: pill buttons at 12px radius,
   framed cream panels, checkerboard dividers, one saturated product panel,
   dashed feature card, dark footer. Mobile first. */

:root {
  --ay-papi-salsa-red: #dd1f19;
  --ay-papi-chili-deep-red: #a62c1a;
  --ay-papi-ocean-teal: #0f4a52;
  --ay-papi-sunset-orange: #e87135;
  --ay-papi-citrus-green: #859032;
  --ay-papi-citrus-pulp: #c7c786;
  --ay-papi-warm-cream: #f8ecdf;
  --ay-papi-ink-black: #010101;
  --ay-papi-clean-white: #fdfdfd;

  /* role aliases */
  --red: var(--ay-papi-salsa-red);
  --red-deep: var(--ay-papi-chili-deep-red);
  --teal: var(--ay-papi-ocean-teal);
  --orange: var(--ay-papi-sunset-orange);
  --green: var(--ay-papi-citrus-green);
  --pulp: var(--ay-papi-citrus-pulp);
  --cream: var(--ay-papi-warm-cream);
  --ink: var(--ay-papi-ink-black);
  --white: var(--ay-papi-clean-white);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius-btn: 12px;
  --radius-card: 20px;
  --container: 1344px;
  --gutter: 20px;
  --section-y: 72px;

  --dur-short: .2s;
  --dur-long: .5s;
  --ease-out: cubic-bezier(0, 0, .3, 1);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --section-y: 96px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --section-y: 120px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px;
  transition: top var(--dur-short);
}
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(34px, 6.4vw, 64px);
  text-wrap: balance;
}
.display--sm { font-size: clamp(28px, 4.6vw, 44px); }
.display em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.08em;
  color: var(--red);
}
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(40px, 8vw, 84px);
  text-wrap: balance;
}
h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.1em;
  color: var(--pulp);
  text-shadow: 0 2px 24px rgba(1, 1, 1, .45);
}
h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.nowrap { white-space: nowrap; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--pulp); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--radius-btn);
  font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short), color var(--dur-short), box-shadow var(--dur-short);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-deep); }
.btn--secondary { background: var(--teal); color: var(--white); }
.btn--secondary:hover { background: var(--ink); }
.btn--light { background: var(--cream); color: var(--red); }
.btn--light:hover { background: var(--white); }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 19px; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

.link-arrow {
  font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "\2192"; transition: transform var(--dur-short); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: var(--white); }

/* ---------- announcement ---------- */
.announce {
  background: var(--orange); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-align: center;
  padding: 10px var(--gutter);
}
.announce p { display: inline-flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; }
.announce__chili { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--cream); display: inline-block; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(1, 1, 1, .08);
}
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.header__logo img { height: 56px; width: auto; }
.nav { display: none; gap: 32px; font-weight: 700; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color var(--dur-short); }
.nav a:hover { border-color: var(--red); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur-short), opacity var(--dur-short); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav.is-open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid rgba(1, 1, 1, .08);
  padding: 8px var(--gutter) 16px;
}
.nav.is-open a { padding: 14px 0; border-bottom: 1px solid rgba(1, 1, 1, .08); font-size: 18px; }
.nav.is-open a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .header__row { min-height: 88px; }
  .header__logo img { height: 68px; }
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(78svh, 680px); display: flex; align-items: flex-end;
  color: var(--white);
  background: var(--ink);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 45%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(1, 1, 1, .2) 0%, rgba(1, 1, 1, .05) 22%, rgba(1, 1, 1, .55) 55%, rgba(1, 1, 1, .84) 100%),
    linear-gradient(90deg, rgba(1, 1, 1, .5) 0%, rgba(1, 1, 1, 0) 70%);
}
.hero__content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 48px; max-width: 900px; margin-left: 0; }
.hero__sub { font-size: clamp(17px, 2.2vw, 22px); line-height: 1.4; max-width: 34ch; margin-top: 20px; color: rgba(253, 253, 253, .92); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 30px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pulp); }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

@media (min-width: 720px) {
  .hero { min-height: min(86svh, 800px); }
  .hero__content { padding-top: 160px; padding-bottom: 72px; }
}
@media (min-width: 1024px) {
  .hero { min-height: min(92svh, 860px); }
  .hero__content { padding-bottom: 96px; }
}

/* ---------- framed value panel ---------- */
.frame-panel { padding: var(--section-y) 0 0; }
.frame {
  position: relative;
  border: 3px solid var(--red);
  border-radius: 6px;
  padding: 56px 20px 40px;
  text-align: center;
  background: var(--cream);
}
.frame__mark {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); border: 4px solid var(--cream);
  box-shadow: 0 0 0 3px var(--red);
}
.frame__lede { max-width: 56ch; margin: 18px auto 0; font-size: 17px; color: rgba(1, 1, 1, .78); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.pills li {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 16px; border: 1.5px solid var(--ink); border-radius: 999px;
}
@media (min-width: 720px) {
  .frame { padding: 72px 48px 56px; }
  .pills { gap: 12px; }
  .pills li { padding: 12px 22px; font-size: 13px; }
}
.frame-panel + .checker { margin-top: var(--section-y); }

/* ---------- checkerboard divider (Sauz signature, in brand colors) ---------- */
.checker {
  height: 24px;
  background: repeating-conic-gradient(var(--red) 0 25%, var(--cream) 0 50%) 0 0 / 24px 24px;
}
.checker--teal { background: repeating-conic-gradient(var(--teal) 0 25%, var(--cream) 0 50%) 0 0 / 24px 24px; }

/* ---------- section heads ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head--left { text-align: left; margin: 0 0 32px; }
.section-head__lede { margin-top: 18px; font-size: 18px; }
.section-head--light { color: var(--white); }
.section-head--light .section-head__lede { color: rgba(253, 253, 253, .82); }

/* ---------- product showcase (teal panel) ---------- */
.products { background: var(--teal); color: var(--white); padding: var(--section-y) 0; }
.product-grid { display: grid; gap: 24px; }
.product {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius-card); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 48px -24px rgba(1, 1, 1, .5);
  transition: transform var(--dur-long) var(--ease-out), box-shadow var(--dur-long);
}
.product:hover { transform: translateY(-4px); box-shadow: 0 32px 56px -24px rgba(1, 1, 1, .6); }
.product__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.product__media picture, .product__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.product__media img { object-fit: cover; object-position: 50% 55%; transition: transform 1.2s var(--ease-out); }
.product[data-product="aguachile"] .product__media img { object-position: 32% 50%; }
.product:hover .product__media img { transform: scale(1.04); }
.product__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--cream); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px;
}
.product__body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product__tag { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.product__name { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.product__desc { color: rgba(1, 1, 1, .78); }
.checklist { display: grid; gap: 8px; margin-top: 4px; }
.checklist li { position: relative; padding-left: 26px; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--green);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23000'/%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23000'/%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checklist--two { grid-template-columns: 1fr; }
.product__buy {
  margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(1, 1, 1, .1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price__amount { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.price__note { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(1, 1, 1, .6); margin-top: 6px; }
.products__foot { text-align: center; margin-top: 32px; font-size: 14px; color: rgba(253, 253, 253, .8); }

@media (min-width: 720px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .product__body { padding: 28px 28px 30px; }
  .checklist--two { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
}
@media (min-width: 1024px) {
  .product-grid { gap: 40px; max-width: 1150px; margin: 0 auto; }
}

/* ---------- story ---------- */
.story { padding: var(--section-y) 0; }
.story__grid { display: grid; gap: 40px; align-items: center; }
.story__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.story__video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius-card); background: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(1, 1, 1, .5);
}
.story__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-card); box-shadow: 0 24px 48px -24px rgba(1, 1, 1, .5); }
.story__text { max-width: 60ch; }
.story__text > p { margin-top: 20px; color: rgba(1, 1, 1, .8); }
.story__text .btn { margin-top: 28px; }
.quote { margin-top: 26px; padding-left: 20px; border-left: 3px solid var(--red); }
.quote p { font-family: var(--font-accent); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; color: var(--teal); }
.quote footer { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }

@media (min-width: 900px) {
  .story__grid { grid-template-columns: 5fr 6fr; gap: 64px; }
  .story__media { grid-template-columns: 3fr 2fr; gap: 20px; }
  .story__photo { margin-bottom: 40px; }
}

/* ---------- what's inside (dashed card) ---------- */
.inside { padding: 0 0 var(--section-y); }
.dashed-card {
  border: 2px dashed var(--red); border-radius: 6px;
  background: var(--white); padding: 12px;
  display: grid; gap: 20px;
}
.dashed-card__media { border-radius: 4px; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; }
.dashed-card__video { width: 100%; height: 100%; object-fit: cover; }
.dashed-card__body { padding: 12px 10px 16px; }
.dashed-card__lede { margin-top: 14px; color: rgba(1, 1, 1, .78); }
.dashed-card .checklist { margin-top: 22px; }
.dashed-card__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.dashed-card__note { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(1, 1, 1, .62); }

@media (min-width: 900px) {
  .dashed-card { grid-template-columns: 4fr 8fr; gap: 40px; padding: 20px; max-width: 1150px; margin: 0 auto; align-items: center; }
  .dashed-card__media { aspect-ratio: 3 / 4; align-self: stretch; }
  .dashed-card__body { padding: 28px 24px 28px 0; }
}

/* ---------- audience (citrus pulp panel) ---------- */
.audience { background: var(--pulp); padding: var(--section-y) 0; }
.audience__grid { display: grid; gap: 18px; }
.card {
  background: var(--cream); border-radius: var(--radius-card); padding: 28px 24px 30px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 12px 30px -20px rgba(1, 1, 1, .35);
}
.card__num { font-family: var(--font-accent); font-style: italic; font-size: 34px; line-height: 1; color: var(--red); }
.card h3 { font-size: 22px; }
.card p { color: rgba(1, 1, 1, .78); }
@media (min-width: 720px) {
  .audience__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- faq ---------- */
.faq { padding: var(--section-y) 0; }
.faq__inner { display: grid; gap: 24px; }
.faq__list { border-top: 1px solid rgba(1, 1, 1, .14); }
.faq__item { border-bottom: 1px solid rgba(1, 1, 1, .14); }
.faq__item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: inline-grid; place-items: center; border: 1.5px solid var(--ink);
  font-weight: 500; transition: transform var(--dur-short), background-color var(--dur-short), color var(--dur-short);
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: var(--white); }
.faq__item p { padding: 0 0 22px; max-width: 64ch; color: rgba(1, 1, 1, .8); }
@media (min-width: 900px) {
  .faq__inner { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
}

/* ---------- final cta band ---------- */
.cta-band { background: var(--red); color: var(--white); padding: var(--section-y) 0; text-align: center; }
.cta-band__inner { max-width: 820px; }
.cta-band__lede { margin-top: 18px; font-size: 18px; color: rgba(253, 253, 253, .9); }
.cta-band__buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; align-items: stretch; }
@media (min-width: 720px) {
  .cta-band__buttons { flex-direction: row; justify-content: center; gap: 16px; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(253, 253, 253, .82); padding: 56px 0 28px; }
.footer__grid { display: grid; gap: 36px; }
.footer__brand img { height: 64px; width: auto; }
.footer__brand p { margin-top: 16px; max-width: 34ch; }
.footer__nav { display: grid; gap: 12px; font-weight: 700; }
.footer__nav a { text-decoration: none; color: var(--white); }
.footer__nav a:hover { color: var(--pulp); }
.footer__note { font-size: 14px; max-width: 36ch; }
.footer__bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(253, 253, 253, .14); font-size: 13px; }
@media (min-width: 720px) {
  .footer { padding: 80px 0 32px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; }
}

/* ---------- checkout notice modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 1, 1, .6); }
.modal__panel {
  position: relative; width: min(100%, 460px);
  background: var(--cream); border-radius: var(--radius-card); padding: 32px 28px 28px;
  box-shadow: 0 32px 64px -24px rgba(1, 1, 1, .7);
  display: grid; gap: 14px;
}
.modal__panel .btn { justify-self: start; margin-top: 6px; }
.modal__title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; font-size: 26px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: rgba(1, 1, 1, .08); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product, .product__media img { transition: none; }
}
