/* ==========================================================
   Nonna's Kitchen — landing page styles
   Palette from Carmela's photos: majolica blue (the sea, her blouse,
   the painted tiles), lemon yellow, tomato red for the buy button only,
   shutter green, on a pale "sea mist" blue page. Book cover stays cream.
   Approved 2026-11-21 (brand/brand-board.html); sea mist page on trial.
   ========================================================== */

:root {
  --paper: #EEF3F8;      /* sea mist: page background (on trial; the old warm cream is #FBF5EA) */
  --paper-2: #E1EAF3;    /* tinted sections */
  --card: #FFFFFF;
  --cream: #FBF5EA;      /* the book cover */
  --ink: #2B2420;
  --ink-soft: #4E4843;
  --muted: #6F7780;
  --line: #D2DCE7;
  --deep: #1E4D7B;       /* majolica blue */
  --deep-2: #143456;     /* night blue */
  --btn: #B8472F;        /* tomato: buy buttons */
  --btn-dark: #8E341F;
  --red: #B8472F;
  --green: #2E5E4E;      /* shutter green: checks */
  --lemon: #F2C744;
  --lemon-dark: #D9A920;
  --dash: #A9BCD0;       /* dashed borders */

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 52, 86, .06), 0 8px 24px rgba(20, 52, 86, .08);
  --shadow-lg: 0 2px 4px rgba(20, 52, 86, .06), 0 24px 48px rgba(20, 52, 86, .14);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 760px; }

.section { padding: 88px 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--deep); color: #f3ede2; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 42px); }
.section-head p { color: var(--ink-soft); font-size: 18px; }
.section--dark .section-head p { color: #c9d6e6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 14px;
}
.eyebrow .hi { font-family: var(--hand); font-weight: 700; letter-spacing: 0; font-size: 25px; text-transform: none; color: var(--btn); }
.section--dark .eyebrow { color: var(--lemon); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--btn);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  padding: 18px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--btn-dark), 0 10px 24px rgba(184, 64, 42, .28);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: #C4513A; transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--btn-dark), 0 4px 10px rgba(184, 64, 42, .25); }
.btn:focus-visible { outline: 3px solid var(--deep); outline-offset: 4px; }
.btn--block { width: 100%; }
.btn--small { padding: 11px 20px; font-size: 15px; box-shadow: 0 4px 0 var(--btn-dark); }
.btn--ghost { background: transparent; color: var(--btn-dark); border: 2px solid var(--btn); box-shadow: none; }
.btn--ghost:hover { background: #f9ece6; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-note {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 14px; color: var(--ink-soft);
}
.cta-note span { display: inline-flex; align-items: center; gap: 6px; }
.cta-note svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------- Announcement + header ---------- */

.announce {
  background: var(--deep-2);
  color: #f3ede2;
  text-align: center;
  font-size: 14px;
  padding: 9px 16px;
  letter-spacing: .02em;
}
.announce strong { color: var(--lemon); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238, 243, 248, .92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px;
}
/* the lemon seal (same drawing as assets/img/favicon.svg) */
.seal { width: 38px; height: 38px; flex: none; display: block; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  /* soft sun behind the book */
  content: ""; position: absolute; right: -120px; top: 40px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 199, 68, .26), rgba(242, 199, 68, 0) 68%);
  pointer-events: none;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 0 48px; align-items: center; position: relative;
  grid-template-areas: "copy visual" "checks visual" "buy visual";
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-checks { grid-area: checks; }
.hero-buy { grid-area: buy; align-self: start; }
.hero-visual { grid-area: visual; }

.proof-pill {
  display: flex; width: fit-content; align-items: center; gap: 10px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px 6px 6px;
  font-size: 14px; color: var(--ink-soft); margin-bottom: 22px;
}
.proof-pill img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.proof-pill strong { color: var(--ink); }

.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--deep); }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 560px; margin-bottom: 24px; }

.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px;
}
.price .now { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1; }
.price .was { font-size: 22px; color: var(--muted); text-decoration: line-through; }
.price .save {
  background: var(--lemon); color: var(--ink); font-size: 13px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}

/* 3D book mockup, built from the real cover's design.
   Everything inside is sized in cqw (% of the book's width), so changing .book's width scales it all. */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.hero-visual::before {
  /* soft paper circle behind the book */
  content: ""; position: absolute; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%;
  background: var(--paper-2);
}

.book {
  position: relative; z-index: 2; width: 300px; aspect-ratio: 3 / 4;
  container-type: inline-size;
  transform: perspective(1400px) rotateY(-16deg) rotateX(3deg);
  filter: drop-shadow(30px 36px 34px rgba(42, 36, 32, .30));
}
.book__cover {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 4px 10px 10px 4px;
  background: var(--majolica); background-size: 15cqw 15cqw;
  padding: 4cqw 4cqw 4cqw 6.5cqw;
}
.book__cover::before {
  /* spine shading */
  content: ""; position: absolute; z-index: 4; left: 0; top: 0; bottom: 0; width: 5cqw;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 80%);
}
.book__pages {
  position: absolute; top: 6px; bottom: 6px; right: -12px; width: 14px;
  background: repeating-linear-gradient(90deg, #fbf8f1 0 2px, #e6dccb 2px 3px);
  border-radius: 0 4px 4px 0;
}
.book__panel {
  height: 100%; background: var(--cream); border: .7cqw solid var(--deep);
  border-radius: 1cqw 3cqw 3cqw 1cqw;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 7cqw 5cqw 4.5cqw;
}
.book__brand { font: 800 3.5cqw/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--deep); }
.book__title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 13.5cqw; line-height: .98; color: var(--ink); margin-top: 3cqw; }
.book__rule { width: 14cqw; height: 1cqw; border-radius: 1cqw; background: var(--lemon); margin: 3.5cqw auto; flex: none; }
.book__sub { font-size: 3.5cqw; line-height: 1.3; color: var(--ink-soft); max-width: 62cqw; }
.book__photo {
  width: 35cqw; aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex: none;
  margin: 4cqw 0 3.5cqw; border: 1.3cqw solid #fff; box-shadow: 0 0 0 .6cqw var(--deep);
}
.book__count { background: var(--lemon); color: var(--ink); font: 800 3.3cqw/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 2.2cqw 3.6cqw; border-radius: 999px; }
.book__sign { margin-top: auto; font-family: var(--hand); font-weight: 700; font-size: 7cqw; line-height: 1; color: var(--btn); }

.hero-badge {
  position: absolute; z-index: 3; right: 4px; top: 26px;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--lemon); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: 13px; line-height: 1.2;
  transform: rotate(10deg); box-shadow: var(--shadow);
  border: 3px dashed rgba(43,36,32,.35); outline: 4px solid var(--lemon);
}
.hero-badge b { display: block; font-family: var(--serif); font-size: 26px; }

/* ---------- Marquee strip ---------- */

.strip {
  background: var(--deep); color: #f3ede2; overflow: hidden;
  border-top: 1px solid var(--deep-2); border-bottom: 1px solid var(--deep-2);
}
.strip__track {
  display: flex; gap: 40px; padding: 16px 0; width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 18px; white-space: nowrap;
}
.strip__track span { display: inline-flex; align-items: center; gap: 40px; }
.strip__track span::after { content: "●"; color: var(--lemon); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* ---------- Look inside: animated page carousel ----------
   assets/script.js sets each page's position (--x, --z, --ry, --s, --o) around the active page.
   While the stage has .is-stacked, the pages wait as a pile; removing it deals them out. */

.peek { overflow: hidden; }
.peek__stage {
  --pw: 270px;                                   /* page width; height follows the PDF's page shape */
  position: relative; height: calc(var(--pw) * 2.167 + 24px);
  perspective: 1400px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  outline: none; cursor: grab;
}
.peek__stage:active { cursor: grabbing; }
.peek__page {
  position: absolute; left: 50%; top: 0; margin: 0; width: var(--pw); aspect-ratio: 640 / 1387;
  border-radius: 18px; overflow: hidden; background: var(--card);
  box-shadow: 0 2px 6px rgba(42, 36, 32, .10), 0 22px 44px rgba(42, 36, 32, .22);
  transform: translateX(-50%) translateX(var(--x, 0)) translateZ(var(--z, 0)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  opacity: var(--o, 1); filter: brightness(var(--b, 1));
  transition: transform .75s cubic-bezier(.34, 1.56, .64, 1), opacity .5s ease, filter .5s ease;
  transition-delay: var(--delay, 0ms);
}
.peek__page img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.peek__page:not(.is-active) { cursor: pointer; }

/* the pile the pages are dealt from */
.peek__stage.is-stacked .peek__page {
  transform: translateX(-50%) translateY(90px) rotate(var(--tilt, 0deg)) scale(.82);
  opacity: 0;
}

/* a quick shine across the page that lands in the middle */
.peek__page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
}
.peek__page.is-shining::after { animation: peek-shine 1s ease .35s; }
@keyframes peek-shine { to { transform: translateX(120%); } }

.peek__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.peek__caption { margin: 0; min-width: 0; flex: 0 1 460px; text-align: center; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); }
.peek__arrow {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease;
}
.peek__arrow:hover { background: #fff; transform: scale(1.06); }
.peek__arrow:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .peek__page { transition: transform .3s ease, opacity .3s ease, filter .3s ease; transition-delay: 0ms; }
  .peek__page.is-shining::after { animation: none; }
}

/* ---------- Problem / story ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(28px, 4vw, 40px); }
.split .big { font-size: 19px; color: var(--ink-soft); }

.photo-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.2; background: var(--paper-2);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
/* taller frame for stills taken from the vertical videos (face at the top, dish at the bottom) */
.photo-frame--tall { aspect-ratio: 9 / 14; width: 100%; max-width: 420px; margin: 0 auto; }
.photo-frame figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(255, 255, 255, .94); border-radius: 10px; padding: 10px 14px;
  font-size: 14px; color: var(--ink-soft);
}
.photo-frame figcaption strong { color: var(--ink); font-family: var(--serif); }

.pain-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.pain-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; display: flex; gap: 14px; align-items: flex-start;
}
.pain-list li::before { content: "✕"; color: var(--red); font-weight: 700; flex: none; }

.signature { font-family: var(--hand); font-weight: 700; font-size: 36px; line-height: 1.1; color: var(--btn); margin-top: 8px; }
.signature small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); }

/* ---------- Principles ---------- */

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principle {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 28px 22px;
}
.principle .word { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 28px; color: var(--lemon); line-height: 1.1; margin-bottom: 8px; }
.principle .meaning { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #b9c8da; margin-bottom: 12px; }
.principle h3 { font-size: 20px; }
.principle p { font-size: 15px; color: #d5e0ec; margin: 0; }

/* ---------- Chapters ---------- */

.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chapter {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.chapter:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chapter .num { font-size: 13px; font-weight: 800; color: var(--deep); letter-spacing: .12em; }
.chapter .itw { display: block; margin-top: 10px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 25px; line-height: 1.1; color: var(--deep); }
.chapter h3 { font-family: var(--sans); font-weight: 800; font-size: 18px; margin-top: 4px; }
.chapter p { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.chapter .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chapter .tags span { font-size: 12px; background: var(--paper-2); border-radius: 999px; padding: 3px 10px; color: var(--ink-soft); }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.extra {
  display: flex; gap: 16px; align-items: flex-start;
  background: transparent; border: 1.5px dashed var(--dash); border-radius: var(--radius); padding: 20px 22px;
}
.extra .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; font-size: 22px; }
.extra h4 { font-size: 17px; margin-bottom: 4px; }
.extra p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Sample recipe page ---------- */

.recipe-page {
  background: #fffdf8; border-radius: 6px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1.25fr; overflow: hidden;
  border: 1px solid var(--line); max-width: 980px; margin: 0 auto;
  position: relative;
}
.recipe-page__side { background: var(--paper-2); padding: 36px 32px; border-right: 1px solid var(--line); }
.recipe-page__main { padding: 36px 40px; }
.recipe-page .jp-title { font-family: var(--serif); color: var(--red); font-size: 15px; letter-spacing: .14em; }
.recipe-page h3 { font-size: 30px; margin: 4px 0 8px; }
.recipe-page .intro { font-size: 15px; color: var(--ink-soft); font-style: italic; }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 22px; }
.meta div { background: var(--card); border-radius: 10px; padding: 10px; text-align: center; border: 1px solid var(--line); }
.meta b { display: block; font-family: var(--serif); font-size: 18px; }
.meta small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.recipe-page h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--btn); margin: 0 0 10px; }
.ingredients { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.ingredients li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.ingredients li span:last-child { color: var(--ink-soft); text-align: right; }
.steps { padding: 0; margin: 0 0 20px; list-style: none; counter-reset: step; font-size: 15px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--deep); color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.tip {
  background: #f9ece6; border-left: 4px solid var(--btn); border-radius: 0 10px 10px 0;
  padding: 14px 16px; font-size: 15px;
}
.tip strong { font-family: var(--serif); }
.tip--why { background: #eef0e4; border-left-color: var(--green); margin-top: 12px; }
/* the book's "Get ready" line, shown above the steps */
.tip--ready { background: var(--paper-2); border-left-color: var(--lemon-dark); margin-bottom: 22px; }
/* the book's red-outlined labels ("From the videos", "No wheat") */
.recipe-labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.recipe-labels span {
  border: 1px solid var(--btn); color: var(--btn); border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.recipe-labels .is-video { background: var(--btn); color: #fff; }
.page-stamp {
  position: absolute; right: 22px; top: 22px; transform: rotate(8deg);
  border: 2px solid var(--red); color: var(--red); border-radius: 8px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,253,248,.85);
}

/* ---------- Swaps ---------- */

.swaps { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.swap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
.swap .from { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(184,53,42,.5); }
.swap .to { font-weight: 700; }
.swap .to small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.swap .arrow-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }

/* ---------- Audience ---------- */


/* ---------- Reviews ---------- */

.reviews { columns: 3 280px; column-gap: 20px; }
.review {
  break-inside: avoid; margin: 0 0 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.review img { border-radius: 10px; margin-bottom: 12px; }
.review .stars { color: #d99a1e; letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-size: 15px; }
.review .who { font-size: 14px; color: var(--muted); }
.review .who strong { color: var(--ink); }

/* ---------- Steps ---------- */

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: how; }
.how-step { text-align: center; padding: 10px 18px; }
.how-step .circle {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--deep); color: var(--deep);
  display: grid; place-items: center; font-family: var(--serif); font-size: 26px; font-weight: 800;
}
.how-step h3 { font-size: 20px; }
.how-step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Offer ---------- */

.offer {
  max-width: 620px; margin: 0 auto; background: var(--card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  border: 2px solid var(--deep);
}
.offer__head {
  background: var(--deep); color: #fff; text-align: center; padding: 22px 24px;
  background-image: var(--tile-faint); background-size: 44px 44px;
}
.offer__head h3 { color: #fff; font-size: 26px; margin: 0; }
.offer__head p { margin: 4px 0 0; color: #d5e0ec; font-size: 15px; }
.offer__body { padding: 30px 32px 34px; }
.offer__items { list-style: none; padding: 0; margin: 0 0 24px; }
.offer__items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.offer__items li span:first-child { display: flex; gap: 10px; }
.offer__items li span:first-child::before { content: "✓"; color: var(--green); font-weight: 800; }
.offer__items .val { color: var(--muted); white-space: nowrap; }
.offer__total { text-align: center; margin-bottom: 22px; }
.offer__total .was { color: var(--muted); text-decoration: line-through; font-size: 20px; }
.offer__total .now { font-family: var(--serif); font-size: 58px; font-weight: 700; line-height: 1.05; }
.offer__total .note { font-size: 14px; color: var(--ink-soft); }
.offer .cta-note { justify-content: center; margin-top: 16px; }
.pay-logos { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pay-logos span {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; background: #fff;
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-family: var(--serif); font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 26px; font-weight: 400; color: var(--btn); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 6px; }

/* ---------- Final CTA ---------- */

.final { text-align: center; }
.final img {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 22px;
  border: 5px solid var(--card); box-shadow: var(--shadow);
}
.final h2 { font-size: clamp(30px, 4.6vw, 46px); max-width: 720px; margin-left: auto; margin-right: auto; }
.final p { max-width: 600px; margin: 0 auto 28px; color: var(--ink-soft); font-size: 18px; }
.final .cta-row { align-items: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--deep-2); color: #c9d6e6; padding: 56px 0 120px; font-size: 14px; }
.site-footer .logo { color: #fff; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: #fbf5ea; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; color: #9fb2c8; font-size: 13px; line-height: 1.6; }
.disclaimer p { margin-bottom: .8em; }

/* ---------- Sticky mobile/desktop CTA bar ---------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(42, 36, 32, .10);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; }
.sticky-cta .info { line-height: 1.25; }
.sticky-cta .info strong { font-family: var(--serif); font-size: 16px; display: block; }
.sticky-cta .info span { font-size: 14px; color: var(--ink-soft); }
.sticky-cta .info s { color: var(--muted); }
.sticky-cta .btn { padding: 13px 22px; font-size: 16px; box-shadow: 0 4px 0 var(--btn-dark); white-space: nowrap; }

/* Room for Netlify's free-plan badge (fixed bottom-right, 64px tall); class set in assets/script.js */
body.has-nl-badge { padding-bottom: 64px; }
body.has-nl-badge .sticky-cta { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

/* ---------- Legal pages ---------- */

.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.legal h2 { font-size: 24px; margin-top: 2em; }
.legal h3 { font-size: 19px; margin-top: 1.4em; font-family: var(--sans); }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: .5em; }
.legal .callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--deep); border-radius: 0 12px 12px 0; padding: 18px 20px; margin: 24px 0; }
.legal .callout p:last-child { margin: 0; }
.legal-footer { padding-bottom: 56px; }
mark.todo { background: #ffe58a; color: var(--ink); padding: 0 4px; border-radius: 3px; }

/* ---------- Checkout page ---------- */

.secure-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--green); }
.secure-badge svg { width: 18px; height: 18px; }

.co { padding: 40px 0 80px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.co-back { display: inline-block; font-size: 14px; color: var(--ink-soft); text-decoration: none; margin-bottom: 20px; }
.co-back:hover { color: var(--ink); }

.co-product { display: flex; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.book--mini {
  flex: none; width: 72px; transform: none;
  filter: drop-shadow(0 8px 10px rgba(42, 36, 32, .25));
}
.book--mini .book__pages { display: none; }
.co-product__info h1 { font-size: 22px; margin-bottom: 4px; }
.co-product__info p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.co-product__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.co-product__price strong { font-family: var(--serif); font-size: 26px; }
.co-product__price s { color: var(--muted); }
.co-product__price .save { background: var(--lemon); color: var(--ink); font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 5px; text-transform: uppercase; letter-spacing: .05em; }

.co-h { font-size: 20px; margin: 32px 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-h small { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--btn); }

.bump {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: start;
  background: #fffdf6; border: 2px dashed var(--dash); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.bump:hover { border-color: var(--btn); }
.bump.is-checked { border-style: solid; border-color: var(--green); background: #f4f6ec; }
.bump input { position: absolute; opacity: 0; pointer-events: none; }
.bump__box {
  width: 24px; height: 24px; margin-top: 2px; border-radius: 6px; border: 2px solid var(--dash); background: #fff;
  display: grid; place-items: center; transition: background .15s ease, border-color .15s ease;
}
.bump input:checked + .bump__box {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--green);
}
.bump input:focus-visible + .bump__box { outline: 3px solid var(--deep); outline-offset: 2px; }
.bump__body { display: grid; gap: 4px; }
.bump__title { font-size: 16px; }
.bump__title b { color: var(--btn-dark); }
.bump__text { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.bump__price { font-family: var(--serif); font-weight: 800; font-size: 20px; color: var(--ink); white-space: nowrap; }
/* Seasonal ("limited") add-ons: only for editions with a real end date in ADDONS[].limited */
.bump--limited { border-color: var(--red); background: #fff8f2; }
.bump--limited.is-checked { border-color: var(--green); background: #f4f6ec; }
.bump__flag {
  display: inline-block; vertical-align: 2px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
}
.bump__note { font-size: 13px; font-weight: 700; color: var(--red); }

/* Small CSS book cover for each add-on (color, mark and title come from ADDONS in checkout.js) */
.addon-cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  width: 58px; aspect-ratio: 3 / 4; padding: 6px 6px 0 9px; border-radius: 2px 5px 5px 2px;
  background: var(--c, var(--deep)); color: #fff7ec;
  box-shadow: 0 6px 12px rgba(42, 36, 32, .22), inset 4px 0 5px -3px rgba(0, 0, 0, .35);
}
.addon-cover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: rgba(0, 0, 0, .18) var(--tile-faint); background-size: 12px 12px;
}
.addon-cover__mark { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 12px; line-height: 1; color: var(--lemon); }
.addon-cover__title { position: relative; z-index: 1; font-family: var(--serif); font-weight: 800; font-size: 8.5px; line-height: 1.1; margin-bottom: 26%; }

.co-lines { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.co-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.co-total { display: flex; justify-content: space-between; padding: 14px 0 4px; font-family: var(--serif); font-weight: 800; font-size: 24px; }
.co-tax { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.co-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.co-trust li { display: flex; gap: 10px; }
.co-trust li::before { content: "✓"; color: var(--green); font-weight: 800; }

.co-pay { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; }
.co-pay__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--deep); margin-bottom: 14px; }
.co-pay__mount { min-height: 420px; }
.co-loading, .co-notice {
  display: grid; place-items: center; text-align: center; min-height: 420px; padding: 24px;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 15px;
}
.co-notice { color: var(--ink-soft); background: var(--paper); }
.co-fine { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; line-height: 1.55; }
.co-fine a { color: var(--ink-soft); }

/* ---------- Thank-you page ---------- */

.ty { padding: 56px 0 96px; }
.ty-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 44px 40px; text-align: center; }
.ty-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 5px solid var(--paper); box-shadow: var(--shadow); }
.ty-card h1 { font-size: clamp(30px, 5vw, 42px); }
.ty-lede { font-size: 18px; color: var(--ink-soft); max-width: 520px; margin: 0 auto 28px; }
.ty-download { font-size: 18px; padding: 16px 30px; }
.ty-download-note { font-size: 14px; color: var(--muted); max-width: 420px; margin: 14px auto 0; }
.ty-steps { text-align: left; max-width: 520px; margin: 0 auto 24px; padding: 0; list-style: none; counter-reset: ty; display: grid; gap: 16px; }
.ty-steps li { counter-increment: ty; position: relative; padding-left: 44px; color: var(--ink-soft); }
.ty-steps li strong { color: var(--ink); }
.ty-steps li::before {
  content: counter(ty); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--deep); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.ty-help { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.ty-next { margin-top: 24px; }
.ty-next h2 { font-size: 26px; margin-bottom: 22px; }
.ty-review { margin-top: 24px; }
.ty-review h2 { font-size: 26px; margin-bottom: 12px; }
.ty-review .ty-help { margin: 14px 0 0; }

.ty-added {
  background: #eef2e3; border: 1px solid #cfd8b5; color: var(--ink); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 20px; text-align: center; font-size: 15px;
}
.ty-added strong { color: var(--green); }

.ty-offer {
  margin-top: 24px; background: #fffdf6; border: 2px solid var(--btn); border-radius: var(--radius-lg);
  padding: 32px 32px 24px; box-shadow: var(--shadow);
}
.ty-offer__head { text-align: center; margin-bottom: 22px; }
.ty-offer__tag {
  display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.ty-offer__head h2 { font-size: clamp(24px, 4vw, 32px); }
.ty-offer__head p { color: var(--ink-soft); margin: 0; }
.ty-offer .bump__price { text-align: right; line-height: 1.2; color: var(--btn-dark); }
.ty-offer .bump__price s { display: block; font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--muted); }
.ty-offer .bump__price small {
  display: block; margin-top: 4px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--green);
}
/* The thank-you offer's countdown: a real deadline set in checkout.js (SETTINGS.offerMinutes) */
.ty-offer__timer {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: -8px 0 22px;
  padding: 12px 16px; border-radius: var(--radius); background: #fbe9e1; border: 1px solid #f0c9b8;
  color: var(--red); font-weight: 700; font-size: 15px;
}
.ty-offer__timer svg { width: 20px; height: 20px; flex: none; }
.ty-offer__timer b { font-family: var(--serif); font-size: 22px; font-variant-numeric: tabular-nums; min-width: 64px; }
.ty-offer.is-ended { border-color: var(--line); box-shadow: none; }
.ty-offer.is-ended .ty-offer__timer { background: var(--paper-2); border-color: var(--line); color: var(--muted); margin-bottom: 0; }
.ty-offer.is-ended .ty-offer__head { display: none; }
.ty-downloads { display: grid; justify-items: center; gap: 10px; margin-top: 20px; }
.ty-downloads:empty { display: none; }
.ty-downloads .btn { width: 100%; max-width: 360px; padding: 14px 18px; font-size: 16px; }
.ty-pay { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 8px; }
.ty-skip { display: block; text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

[hidden] { display: none !important; }

/* ---------- Pattern tokens ---------- */
/* --majolica: the painted tile (blue petals, lemon center, green corners) on cream, for the book cover.
   --tile-faint: the same flower in faint white on a transparent ground, for dark blue areas. */
:root {
  --majolica: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23FBF5EA'/%3E%3Cpath d='M0 0h64v64H0z' fill='none' stroke='%231E4D7B' stroke-opacity='.18'/%3E%3Cg fill='%231E4D7B' fill-opacity='.85'%3E%3Cellipse cx='32' cy='20' rx='5' ry='10'/%3E%3Cellipse cx='32' cy='44' rx='5' ry='10'/%3E%3Cellipse cx='20' cy='32' rx='10' ry='5'/%3E%3Cellipse cx='44' cy='32' rx='10' ry='5'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='5' fill='%23F2C744'/%3E%3Cg fill='%232E5E4E' fill-opacity='.7'%3E%3Cpath d='M0 0q8 0 8 8q-8 0-8-8z'/%3E%3Cpath d='M64 0q-8 0-8 8q8 0 8-8z'/%3E%3Cpath d='M0 64q8 0 8-8q-8 0-8 8z'/%3E%3Cpath d='M64 64q-8 0-8-8q8 0 8 8z'/%3E%3C/g%3E%3C/svg%3E");
  --tile-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='%23ffffff' fill-opacity='.12'%3E%3Cellipse cx='32' cy='20' rx='5' ry='10'/%3E%3Cellipse cx='32' cy='44' rx='5' ry='10'/%3E%3Cellipse cx='20' cy='32' rx='10' ry='5'/%3E%3Cellipse cx='44' cy='32' rx='10' ry='5'/%3E%3Cpath d='M0 0q8 0 8 8q-8 0-8-8zM64 0q-8 0-8 8q8 0 8-8zM0 64q8 0 8-8q-8 0-8 8zM64 64q-8 0-8-8q8 0 8 8z'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='4' fill='%23F2C744' fill-opacity='.35'/%3E%3C/svg%3E");
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse > :first-child { order: 0; }
  .hero .wrap { grid-template-areas: "copy" "buy" "visual" "checks"; gap: 32px; }
  .hero-visual { min-height: 440px; }
  .book { width: 270px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .chapters, .extras { grid-template-columns: repeat(2, 1fr); }
  .recipe-page { grid-template-columns: 1fr; }
  .co-grid { grid-template-columns: 1fr; gap: 28px; }
  .co-pay { position: static; }
  .recipe-page__side { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 24px 0 56px; }
  .hero .wrap { gap: 22px; }
  .logo { font-size: 19px; gap: 9px; white-space: nowrap; }
  .seal { width: 32px; height: 32px; }
  .btn--small { white-space: nowrap; padding: 10px 16px; font-size: 14px; }
  .proof-pill { margin-bottom: 16px; }
  .hero h1 { font-size: 31px; margin-bottom: 14px; }
  .hero .lede { font-size: 17px; margin-bottom: 0; }
  /* keep "$14.99  $24.99  40% OFF" on one row so the button stays on the first phone screen */
  .price { gap: 6px 10px; }
  .price .now { font-size: 38px; }
  .price .was { font-size: 20px; }
  .price .save { font-size: 12px; padding: 5px 8px; }
  .hero-visual { min-height: 360px; }
  .hero-visual::before { width: 320px; }
  .book { width: 230px; }
  .peek__stage { --pw: 210px; }
  .peek__caption { font-size: 16px; }
  .announce .hide-sm { display: none; }
  .hero-badge { width: 88px; height: 88px; font-size: 11px; right: 2%; }
  .hero-badge b { font-size: 20px; }
  .cta-row .btn { width: 100%; }
  .principles, .chapters, .extras, .how { grid-template-columns: 1fr; }
  .recipe-page__side, .recipe-page__main { padding: 26px 20px; }
  .page-stamp { right: 12px; top: 12px; }
  .recipe-page .jp-title { padding-right: 118px; } /* keeps the Japanese title clear of the "Free sample" stamp */
  .swap { grid-template-columns: 1fr; gap: 8px; text-align: left; padding: 16px 18px; }
  .swap .arrow-ico { width: 30px; height: 30px; transform: rotate(90deg); }
  .offer__body { padding: 24px 20px 28px; }
  .offer__total .now { font-size: 50px; }
  .sticky-cta .info strong { font-size: 14px; }
  .sticky-cta .btn { padding: 12px 18px; font-size: 15px; }
  .announce { font-size: 13px; }
  .co { padding: 24px 0 56px; }
  .co-product { padding: 14px; gap: 14px; }
  .book--mini { width: 60px; }
  .co-product__info h1 { font-size: 18px; }
  .bump { padding: 14px; gap: 6px 12px; grid-template-columns: auto auto 1fr; }
  .bump__price { grid-column: 3; }
  .ty-offer .bump__price { text-align: left; }
  .ty-offer .bump__price s, .ty-offer .bump__price small { display: inline; margin: 0 6px 0 0; }
  .ty-offer .bump__price small { margin-left: 8px; } /* keeps "$5" and "44% off" apart */
  .addon-cover { width: 48px; }
  .co-pay { padding: 16px; margin: 0 -4px; }
  .ty-card { padding: 32px 20px; }
  .ty-offer { padding: 24px 16px 18px; }
  .ty-pay { padding: 14px; }
}
