/* ==========================================================
   Emiko's Kitchen — landing page styles
   Palette is taken from Emiko's videos: washi-paper cream,
   indigo noren curtains, persimmon sweaters, wood shelves.
   ========================================================== */

:root {
  --paper: #f7f1e6;
  --paper-2: #efe6d6;
  --card: #fffaf2;
  --ink: #2a2420;
  --ink-soft: #5d534b;
  --muted: #8a7e72;
  --line: #e2d6c3;
  --indigo: #2d3e5e;
  --indigo-deep: #1f2c45;
  --persimmon: #c4542b;
  --persimmon-dark: #a8431f;
  --matcha: #6f7d4a;
  --wood: #a5774c;
  --hanko: #b8352a;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(42, 36, 32, .06), 0 8px 24px rgba(42, 36, 32, .08);
  --shadow-lg: 0 2px 4px rgba(42, 36, 32, .06), 0 24px 48px rgba(42, 36, 32, .14);

  --serif: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --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: 700;
  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--indigo { background: var(--indigo); color: #f3ede2; }
.section--indigo h2, .section--indigo 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--indigo .section-head p { color: #c9cfdc; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--persimmon);
  margin-bottom: 14px;
}
.eyebrow .jp { font-family: var(--serif); letter-spacing: .08em; font-size: 15px; text-transform: none; }
.section--indigo .eyebrow { color: #f0a47e; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--persimmon);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  padding: 18px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--persimmon-dark), 0 10px 24px rgba(196, 84, 43, .28);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: #cf5d33; transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--persimmon-dark), 0 4px 10px rgba(196, 84, 43, .25); }
.btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 4px; }
.btn--block { width: 100%; }
.btn--small { padding: 11px 20px; font-size: 15px; box-shadow: 0 4px 0 var(--persimmon-dark); }
.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(--matcha); flex: none; }

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

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

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 241, 230, .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-weight: 700; font-size: 20px;
}
.hanko {
  display: inline-grid; place-items: center;
  width: 30px; height: 46px;
  border: 2px solid var(--hanko);
  border-radius: 6px;
  color: var(--hanko);
  font-family: var(--serif);
  font-size: 12px; font-weight: 800; line-height: 1.05;
  writing-mode: vertical-rl; /* stamps read top-to-bottom */
  transform: rotate(-5deg);
  background: rgba(184, 53, 42, .05);
}

.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(196, 84, 43, .14), rgba(196, 84, 43, 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" "buy visual";
}
.hero-copy { grid-area: copy; align-self: end; }
.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: normal; color: var(--persimmon); }
.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(--matcha) 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: 800; line-height: 1; }
.price .was { font-size: 22px; color: var(--muted); text-decoration: line-through; }
.price .save {
  background: var(--hanko); color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px;
}

/* 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: linear-gradient(180deg, #f6efe2 0%, #efe4d1 100%);
  padding: 7cqw 7cqw 0 9cqw;
}
.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,.2), 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__brand {
  display: flex; align-items: center; gap: 2.4cqw;
  font-family: var(--serif); font-size: 4.2cqw; font-weight: 700; color: var(--ink);
}
.book__brand .hanko { width: 5.6cqw; height: 8.6cqw; border-width: .5cqw; border-radius: 1.2cqw; font-size: 2.3cqw; }
.book__jp { font-family: var(--serif); font-size: 4.6cqw; color: var(--hanko); letter-spacing: .15em; margin-top: 8cqw; }
.book__title {
  position: relative; z-index: 3;
  font-family: var(--serif); font-size: 13cqw; font-weight: 800; line-height: 1.02; color: var(--ink);
  margin-top: 1.5cqw;
}
.book__sun {
  position: absolute; z-index: 0; right: -12cqw; top: 58cqw;
  width: 54cqw; aspect-ratio: 1; border-radius: 50%; background: var(--persimmon);
}
.book__photo {
  position: absolute; z-index: 2; right: 8cqw; bottom: 25cqw;
  width: 38cqw; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 1.6cqw solid #fbf6ec; box-shadow: 0 2cqw 4cqw rgba(42, 36, 32, .25);
}
.book__count {
  position: absolute; z-index: 2; left: 9cqw; bottom: 35cqw;
  width: 20cqw; aspect-ratio: 1; border-radius: 50%; border: .5cqw dashed var(--hanko);
  display: grid; place-content: center; text-align: center; color: var(--hanko);
  font-size: 2.2cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1;
}
.book__count b { display: block; font-family: var(--serif); font-size: 7.5cqw; letter-spacing: 0; }
.book__waves {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 24%;
  background: var(--indigo) var(--seigaiha); background-size: 13cqw 6.5cqw;
  border-top: .8cqw solid var(--persimmon);
  display: grid; place-items: end center; padding-bottom: 4cqw;
}
.book__waves span { color: #f3ede2; font-family: var(--serif); font-size: 3.4cqw; letter-spacing: .32em; }

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

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

.strip {
  background: var(--indigo); color: #f3ede2; overflow: hidden;
  border-top: 1px solid var(--indigo-deep); border-bottom: 1px solid var(--indigo-deep);
}
.strip__track {
  display: flex; gap: 40px; padding: 16px 0; width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--serif); font-size: 17px; white-space: nowrap;
}
.strip__track span { display: inline-flex; align-items: center; gap: 40px; }
.strip__track span::after { content: "●"; color: var(--persimmon); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { 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; }
.photo-frame figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(255, 250, 242, .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(--hanko); font-weight: 700; flex: none; }

.signature { font-family: var(--serif); font-size: 24px; color: var(--indigo); 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 .kanji { font-family: var(--serif); font-size: 34px; color: #f6b48f; line-height: 1; margin-bottom: 10px; }
.principle .romaji { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #aab3c6; margin-bottom: 12px; }
.principle h3 { font-size: 20px; }
.principle p { font-size: 15px; color: #d3d8e3; 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: 700; color: var(--persimmon); letter-spacing: .12em; }
.chapter .jp { position: absolute; right: 18px; top: 14px; font-family: var(--serif); font-size: 30px; color: var(--line); }
.chapter h3 { font-size: 21px; margin-top: 6px; }
.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(--wood); 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(--hanko); 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(--persimmon); 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(--indigo); color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.tip {
  background: #fdf1e9; border-left: 4px solid var(--persimmon); 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(--matcha); margin-top: 12px; }
.page-stamp {
  position: absolute; right: 22px; top: 22px; transform: rotate(8deg);
  border: 2px solid var(--hanko); color: var(--hanko); 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(--matcha); 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(--indigo); color: var(--indigo);
  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(--indigo);
}
.offer__head {
  background: var(--indigo); color: #fff; text-align: center; padding: 22px 24px;
  background-image: var(--seigaiha); background-size: 40px 20px;
}
.offer__head h3 { color: #fff; font-size: 26px; margin: 0; }
.offer__head p { margin: 4px 0 0; color: #c9cfdc; 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(--matcha); 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: 800; 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(--persimmon); 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(--ink); color: #cfc6ba; padding: 56px 0 120px; font-size: 14px; }
.site-footer .logo { color: #fff; }
.site-footer .hanko { border-color: #e06a5c; color: #e06a5c; }
.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: #f3ede2; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; color: #9d9388; 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, 250, 242, .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(--persimmon-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(--indigo); 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(--matcha); }
.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(--hanko); color: #fff; font-size: 12px; font-weight: 700; 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(--persimmon); }

.bump {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  background: #fffdf6; border: 2px dashed var(--wood); 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(--persimmon); }
.bump.is-checked { border-style: solid; border-color: var(--matcha); 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(--wood); background: #fff;
  display: grid; place-items: center; transition: background .15s ease, border-color .15s ease;
}
.bump input:checked + .bump__box {
  background: var(--matcha) 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(--matcha);
}
.bump input:focus-visible + .bump__box { outline: 3px solid var(--indigo); outline-offset: 2px; }
.bump__body { display: grid; gap: 4px; }
.bump__title { font-size: 16px; }
.bump__title b { color: var(--persimmon-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; }

.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(--matcha); 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(--wood); 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(--indigo); 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-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(--matcha); }

.ty-offer {
  margin-top: 24px; background: #fffdf6; border: 2px solid var(--persimmon); 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(--hanko); 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; }
.ty-offer .bump__price s { display: block; font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--muted); }
.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 ---------- */

:root {
  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M0 20a20 20 0 0 1 40 0M6 20a14 14 0 0 1 28 0M12 20a8 8 0 0 1 16 0M-20 10a20 20 0 0 1 40 0M-14 10a14 14 0 0 1 28 0M-8 10a8 8 0 0 1 16 0M20 10a20 20 0 0 1 40 0M26 10a14 14 0 0 1 28 0M32 10a8 8 0 0 1 16 0'/%3E%3C/g%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" "visual" "buy"; 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: 28px 0 56px; }
  .hero .wrap { gap: 24px; }
  .hero-visual { min-height: 360px; }
  .hero-visual::before { width: 320px; }
  .book { width: 230px; }
  .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; }
  .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: 12px; }
  .co-pay { padding: 16px; margin: 0 -4px; }
  .ty-card { padding: 32px 20px; }
  .ty-offer { padding: 24px 16px 18px; }
  .ty-pay { padding: 14px; }
}
