/* ZEST PUZZLE 2.1 look (Sweet/Salty): Poppins, white paper, ink, flat peach and blush fields,
   pill buttons, no glass, gradients or shadows. Colors follow the app's asset catalog
   (ZEST/Assets.xcassets, PR egohead/ZEST#232). Loaded last on every /zest/ page. */

@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/poppins-regular.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/poppins-medium.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/poppins-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/poppins-bold.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/fonts/poppins-extrabold.woff2') format('woff2'); }

/* ---------- tokens ---------- */
body.zest-page, body.guide-zest {
  --z-paper: #FFFFFF; --z-ink: #1A1A1A; --z-muted: #565656; --z-line: #1A1A1A1F;
  --z-peach: #FF9975; --z-blush: #FFD6D6; --z-violet: #5B57F0; --z-sage: #B9C79A; --z-mint: #0E7A4C;
  --z-tile: #F4F4F4; --z-on-peach: #1A1A1A;
  /* products.css variables */
  --paper: var(--z-paper); --ink: var(--z-ink); --muted: var(--z-muted); --accent: var(--z-violet);
  --line: var(--z-line); --wash: var(--z-tile); --card: var(--z-tile); --on-accent: #FFFFFF;
  --nav: #FFFFFF; --text: var(--z-ink);
  --heading: 'Poppins', system-ui, sans-serif; --radius: 30px; --button-radius: 999px;
  /* growth-pages.css variables */
  --g-bg: var(--z-paper); --g-card: var(--z-tile); --g-ink: var(--z-ink); --g-muted: var(--z-muted);
  --g-accent: var(--z-ink); --g-line: var(--z-line);
  color-scheme: light dark;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--z-paper); color: var(--z-ink);
}
@media (prefers-color-scheme: dark) {
  body.zest-page, body.guide-zest {
    --z-paper: #121212; --z-ink: #F5F5F5; --z-muted: #B3B3B3; --z-line: #F5F5F526;
    --z-peach: #E8825F; --z-blush: #4A2C2C; --z-violet: #8F8CFF; --z-sage: #3E4A33; --z-mint: #1DB975;
    --z-tile: #1E1E1E; --nav: #121212;
  }
}

/* ---------- type ---------- */
.zest-page h1, .zest-page h2, .zest-page h3, .zest-page .section-title, .zest-page .product-logo,
.zest-page .step > span, .zest-page .zest-puzzle-heading > span:first-child, .zest-page .zest-mobile-download strong,
.guide-zest h1, .guide-zest h2, .guide-zest h3, .guide-zest blockquote {
  font-family: 'Poppins', system-ui, sans-serif; letter-spacing: -0.02em;
}
.zest-page h1, .guide-zest h1 { font-weight: 800; }
.zest-page h2, .zest-page h3, .zest-page .section-title, .guide-zest h2, .guide-zest h3 { font-weight: 700; }
.zest-page .eyebrow, .guide-zest .eyebrow { color: var(--z-ink); font-weight: 600; letter-spacing: 0.08em; }
.zest-page .product-hero h1, .zest-page .section-title { letter-spacing: -0.025em; }
.zest-page a.inline-link, .zest-page .faq a, .zest-page .document a:not(.download):not(.compact-download),
.guide-zest main a:not(.guide-cta):not(.guide-card) { color: var(--z-violet); }

/* ---------- header ---------- */
.zest-page .product-header { background: var(--nav); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--z-line); }
.zest-page .zest-studio-return img, .zest-page footer img[src*="egohead-logo-white"] { content: url('/assets/egohead-logo.svg?v=folded-e-1'); }
.zest-page .zest-studio-back-label { border-left-color: var(--z-line); }
.zest-page .product-logo { gap: 12px; }
.zest-page .product-logo .zest-wordmark { display: block; width: 116px; height: auto; border-radius: 0; }
.zest-page .product-logo .maker { color: var(--z-muted); }
@media (prefers-color-scheme: dark) {
  .zest-page .zest-studio-return img, .zest-page footer img[src*="egohead-logo-white"] { content: url('/assets/egohead-logo-white.svg?v=folded-e-1'); }
}

/* ---------- buttons: pills ---------- */
.zest-page .compact-download, .zest-page .download:not(.app-store-badge), .zest-page .puzzle-shuffle,
.zest-page .zest-mobile-download .compact-download, .guide-zest .guide-cta {
  background: var(--z-ink); color: var(--z-paper); border: 0; border-radius: 999px; font-weight: 600;
}
.zest-page .compact-download:hover, .guide-zest .guide-cta:hover { background: var(--z-ink); opacity: 0.86; }
.zest-page .zest-landing-puzzle .puzzle-tools .puzzle-shuffle { background: var(--z-ink); color: var(--z-paper); }
.zest-page .zest-secondary { border-bottom-color: var(--z-ink); font-weight: 600; }

/* ---------- hero: peach field with a highlighted word ---------- */
.zest-page .product-hero > div:first-child {
  background: var(--z-peach); color: var(--z-on-peach); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
}
.zest-page .product-hero > div:first-child .eyebrow,
.zest-page .product-hero > div:first-child .lead,
.zest-page .product-hero > div:first-child .offer,
.zest-page .product-hero > div:first-child .zest-hero-offer strong { color: var(--z-on-peach); }
.zest-page .product-hero > div:first-child .zest-secondary { color: var(--z-on-peach); border-bottom-color: var(--z-on-peach); }
/* The second line is the outer span after <br>; motion.js wraps each word in .word-mask spans inside it. */
.zest-page .product-hero h1 > span:not(.word-mask) { display: inline-block; background: #FFFFFF; color: #1A1A1A; padding: 0.02em 0.2em 0.06em; margin-top: 0.12em; }
.zest-page .product-hero h1 .word-mask, .zest-page .product-hero h1 .scroll-word { background: none; color: inherit; }

/* ---------- puzzle card: blush field, flat board ---------- */
.zest-page .zest-landing-puzzle, .zest-page .zest-landing-puzzle.zest-playable {
  background: var(--z-blush); border: 0; border-radius: var(--radius);
}
.zest-page .zest-puzzle-heading > span:first-child { font-weight: 700; }
.zest-page .zest-puzzle-heading > span:last-child { color: var(--z-ink); font-weight: 600; }
.zest-page .zest-playable.zest-landing-puzzle .playable-board { box-shadow: none; border-color: var(--z-paper); border-radius: 18px; }
.zest-page .zest-landing-puzzle .puzzle-tools p, .zest-page .zest-landing-puzzle .puzzle-tools .puzzle-status { color: var(--z-ink); }

/* ---------- sections and cards: flat tiles ---------- */
.zest-page .zest-context-download, .zest-page .zest-offer-card, .zest-page .feature, .zest-page .support-card,
.zest-page .document .notice { background: var(--z-tile); border: 0; box-shadow: none; }
.zest-page .zest-context-download .eyebrow, .zest-page .zest-start .eyebrow, .zest-page .zest-gallery-heading .eyebrow,
.zest-page .feature > span, .zest-page .step > span { color: var(--z-ink); }
.zest-page .step > span { font-weight: 800; }
.zest-page .final-cta { background: var(--z-peach); color: var(--z-on-peach); }
.zest-page .final-cta .offer, .zest-page .final-cta .eyebrow { color: var(--z-on-peach); }
.zest-page .showcase { background: transparent; color: var(--z-ink); }
.zest-page .showcase p:not(.eyebrow) { color: var(--z-muted); }
.zest-page .landing-showcase, .zest-page .gallery img { border-radius: 24px; }
.zest-page .feature-note { border-left: 0; border-radius: var(--radius); background: var(--z-blush); }
.zest-page .proof-strip span::before { color: var(--z-peach); }
.zest-page .faq summary::after, .zest-page .zest-device-details summary::after { color: var(--z-ink); }
.zest-page .document p, .zest-page .document li { color: var(--z-ink); }
.zest-page ::selection, .guide-zest ::selection { background: var(--z-peach); color: #1A1A1A; }
.zest-page a:focus-visible, .zest-page summary:focus-visible, .zest-page button:focus-visible,
.guide-zest a:focus-visible, .guide-zest summary:focus-visible { outline: 3px solid var(--z-violet); outline-offset: 4px; }

/* ---------- mobile download bar ---------- */
@media (max-width: 700px) {
  .zest-page .zest-mobile-download { background: var(--z-paper); border: 1px solid var(--z-line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .zest-page .zest-mobile-download > img { border-radius: 10px; }
}

/* ---------- guides and articles ---------- */
.guide-zest .guide-header { border-bottom-color: var(--z-line); }
.guide-zest .guide-studio img { filter: none; }
@media (prefers-color-scheme: dark) { .guide-zest .guide-studio img { filter: brightness(0) invert(1); } }
.guide-zest .guide-card, .guide-zest .reflection, .guide-zest figure { background: var(--z-tile); border: 0; }
.guide-zest .guide-card:nth-child(3n+1) { background: var(--z-blush); }
.guide-zest .guide-cta { color: var(--z-paper); }
.guide-zest .guide-steps li::marker { color: var(--z-ink); }

/* App gallery on the landing page: flat peach stage like the store screens. */
.zest-page .personal-zest .app-showcase::before { content: none; }
/* Gallery screens keep the real 2.1 screenshot ratio (1206 × 2622), like the ZEST card on the studio page. */
.zest-page .landing-showcase .app-showcase img.showcase-screen { height: 84%; width: auto; aspect-ratio: 1206 / 2622; top: 8%; object-fit: cover; }
@media (max-width: 600px) { .zest-page .landing-showcase .app-showcase img.showcase-screen { height: 82%; top: 9%; } }

/* ---------- flow: puzzle, recipe, shopping, cooking ---------- */
.zest-page .zest-flow-steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.zest-page .zest-flow-step { display: flex; flex-direction: column; gap: 10px; }
.zest-page .zest-flow-step figure { margin: 0 0 8px; padding: 22px 18px 0; border-radius: var(--radius); background: var(--z-blush); overflow: hidden; aspect-ratio: 4 / 5; display: flex; align-items: flex-start; justify-content: center; }
.zest-page .zest-flow-recipe figure { background: var(--z-sage); }
.zest-page .zest-flow-shopping figure { background: var(--z-tile); }
.zest-page .zest-flow-cook figure { background: var(--z-peach); }
.zest-page .zest-flow-step figure img { box-sizing: content-box; width: 78%; height: auto; aspect-ratio: 517 / 1124; border: 6px solid #1A1A1A; border-bottom: 0; border-radius: 28px 28px 0 0; background: #FFFFFF; display: block; }
.zest-page .zest-flow-step > span { font-family: 'Poppins', system-ui, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 0.06em; color: var(--z-ink); }
.zest-page .zest-flow-step h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.zest-page .zest-flow-step p { margin: 0; color: var(--z-muted); line-height: 1.6; }
@media (max-width: 960px) { .zest-page .zest-flow-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }
@media (max-width: 560px) {
  .zest-page .zest-flow-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-top: 34px; padding-bottom: 8px; scrollbar-width: none; }
  .zest-page .zest-flow-steps::-webkit-scrollbar { display: none; }
  .zest-page .zest-flow-step { scroll-snap-align: start; }
}

/* ---------- three recipes ---------- */
.zest-page .zest-recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.zest-page .zest-recipe { background: var(--z-tile); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.zest-page .zest-recipe-photo { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--z-tile); }
.zest-page .zest-recipe-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Puzzle assembly: 3 x 3 tiles of the photo slide from shuffled cells into place. */
.zest-page .zest-recipe-tiles { position: absolute; inset: 0; pointer-events: none; }
.zest-page .zest-recipe-tiles span { position: absolute; width: 33.3334%; height: 33.3334%; background-repeat: no-repeat; box-shadow: inset 0 0 0 1.5px var(--z-tile); transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease; }
.zest-page .zest-recipe-tiles.is-done span { box-shadow: inset 0 0 0 0 var(--z-tile); }
.zest-page .zest-recipe > div { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.zest-page .zest-recipe-meta { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--z-muted); }
.zest-page .zest-recipe h3 { margin: 0; font-size: 23px; line-height: 1.2; }
.zest-page .zest-recipe p[data-recipe-text] { margin: 0; color: var(--z-muted); line-height: 1.6; }
.zest-page .zest-recipe-link { margin-top: auto; padding-top: 8px; color: var(--z-violet); font-weight: 600; }
.zest-page .zest-recipes-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }
.zest-page .zest-recipes-more { font: inherit; font-weight: 600; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--z-ink); background: transparent; color: var(--z-ink); cursor: pointer; }
.zest-page .zest-recipes-more:hover { background: var(--z-ink); color: var(--z-paper); }
.zest-page .zest-recipes-more[hidden] { display: none; }
@media (max-width: 860px) {
  .zest-page .zest-recipe-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
  .zest-page .zest-recipe { flex-direction: row; }
  .zest-page .zest-recipe-photo { width: 38%; flex: none; aspect-ratio: auto; min-height: 170px; }
  .zest-page .zest-recipe > div { padding: 18px 20px; }
}
@media (max-width: 520px) {
  .zest-page .zest-recipe { flex-direction: column; }
  .zest-page .zest-recipe-photo { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
}

/* ---------- kitchen ranks: a quiet row from Kitchen Porter to Chef Légendaire ---------- */
.zest-page .zest-ranks { padding-top: 48px; padding-bottom: 48px; }
.zest-page .zest-ranks .section-title { font-size: clamp(26px, 3vw, 34px); }
.zest-page .zest-ranks .section-intro { font-size: 16px; }
.zest-page .zest-rank-ladder { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; }
.zest-page .zest-rank { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--z-line); }
.zest-page .zest-rank img { grid-row: span 3; width: 48px; height: 48px; border-radius: 12px; display: block; }
.zest-page .zest-rank h3 { margin: 0; font-size: 15px; line-height: 1.25; font-weight: 600; }
.zest-page .zest-rank-need { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--z-muted); }
.zest-page .zest-rank-stars { font-size: 12px; letter-spacing: 0.1em; color: var(--z-muted); }
.zest-page .zest-rank > p:last-child { display: none; }
.zest-page .zest-rank.is-you { border-top-color: var(--z-violet); border-top-width: 2px; }
.zest-page .zest-rank.is-you h3::after { content: 'You'; margin-left: 6px; vertical-align: 2px; background: var(--z-violet); color: #FFFFFF; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.zest-page .zest-rank-you { margin: 20px 0 0; font-size: 15px; color: var(--z-muted); }
.zest-page .zest-rank-unlock { display: inline-block; margin-top: 6px; color: var(--z-ink); font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--z-violet); }
@media (max-width: 900px) {
  .zest-page .zest-rank-ladder { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .zest-page .zest-rank:nth-child(n) { margin-top: 0; padding: 10px 0; }
  .zest-page .zest-rank img { width: 40px; height: 40px; border-radius: 10px; }
  .zest-page .zest-rank { grid-template-columns: 40px 1fr auto; }
  .zest-page .zest-rank-stars { grid-column: 3; grid-row: 1 / span 2; }
}
