/* Sketch4Home: one stylesheet for the whole site. Mobile first. */

/* ---------- tokens (DESIGN-SPEC §2) ---------- */
:root {
  --ink: #111111;
  --text-2: #3D3A36;
  --text-3: #5C5853;
  --surface: #F5F3EF;
  --line: #E6E2DB;
  --red: #D12B29;
  --red-dark: #B3261E;
  --brand-red: #E8312F;
  --green: #1F7A3E;
  --highlight: #FFE58A;
  --paper: #FBF6EC;
  --paper-grid: #ECE4D4;

  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: Kalam, 'Comic Sans MS', cursive;
  --font-logo: Montserrat, 'Arial Black', sans-serif;

  --radius-card: 18px;
  --shadow: 0 10px 30px rgba(17, 17, 17, .08);
  --shadow-img: 0 10px 24px rgba(17, 17, 17, .12);
  --section-y: 56px;
  --gutter: 16px;
  --header-h: 68px;
}
@media (min-width: 480px) { :root { --gutter: 24px; } }
@media (min-width: 768px) { :root { --section-y: 88px; --header-h: 73px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  overflow-wrap: break-word;
}
@media (min-width: 400px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:hover { color: var(--red); }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.ink :focus-visible, .final-cta :focus-visible, .upsell :focus-visible { outline-color: #FFFFFF; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- layout ---------- */
.container { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.container-mid { max-width: 1040px; }
.section { padding-block: var(--section-y); }
.surface { background: var(--surface); }
.ink { background: var(--ink); color: #FFFFFF; }
.center { text-align: center; }

.h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.015em; }
.section-lead { margin-top: 10px; color: var(--text-2); max-width: 640px; }
.eyebrow {
  font: 800 13px/1.4 var(--font-body); letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
/* Kalam headings: paper bands only */
.hand-title { font: 700 clamp(30px, 3.6vw, 42px)/1.2 var(--font-hand); letter-spacing: 0; }

/* One card style for the whole site */
.card {
  background: #FFFFFF; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow);
}

.icon { flex: none; }

/* ---------- badges, tags ---------- */
.badge {
  display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 700; line-height: 1.4;
  padding: 4px 12px; border-radius: 999px;
}
.badge-yellow { background: var(--highlight); color: var(--ink); }
.badge-red { background: var(--red); color: #FFFFFF; }
.tag {
  display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); color: var(--text-2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 24px; border: 2px solid transparent; border-radius: 14px;
  font: 700 17px/1.2 var(--font-body); text-align: center; text-decoration: none; cursor: pointer;
  text-wrap: balance;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--red); color: #FFFFFF; min-height: 60px; font-size: 18px; }
.btn-primary:hover { background: var(--red-dark); color: #FFFFFF; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: #FFFFFF; }
.btn-white { background: #FFFFFF; color: var(--ink); min-height: 60px; font-size: 18px; box-shadow: 4px 4px 0 var(--ink); }
.btn-white:hover { color: var(--ink); background: var(--surface); }
.btn-compact {
  min-height: 44px; padding: 8px 16px; border-radius: 10px; font-size: 15px;
  background: var(--ink); color: #FFFFFF; white-space: nowrap;
}
.btn-compact:hover { background: var(--red); color: #FFFFFF; }

/* "Coming soon": no checkout link yet */
.btn.is-soon { cursor: not-allowed; }
.btn-primary.is-soon, .btn-compact.is-soon { background: var(--text-3); }
.btn-secondary.is-soon { border-style: dashed; color: var(--text-3); border-color: var(--text-3); background: transparent; }
.btn-white.is-soon { color: var(--text-3); background: #FFFFFF; }

/* The lock sits inline with the first word, so it stays with the text when the line wraps. */
.trust-line { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--text-3); text-align: center; }
.trust-line .icon { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.trust-line.on-red { color: #FFFFFF; text-align: inherit; }
/* Under every Buy button that goes to Gumroad. */
.sale-terms { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--text-3); text-align: center; }
.sale-terms a { color: inherit; text-decoration: underline; padding-block: 12px; margin-block: -12px; }
.sale-terms.on-red { color: #FFFFFF; text-align: inherit; }
.compare-card .sale-terms { margin-top: -4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.wordmark { font: 900 15px/1 var(--font-logo); letter-spacing: .14em; color: var(--ink); white-space: nowrap; }
.wordmark span { color: var(--brand-red); }
.brand:hover .wordmark { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-desktop { display: none; }
.nav-desktop a, .nav-panel a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 10px;
}
.nav-mobile summary {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; list-style: none; user-select: none;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--surface); }
.nav-panel {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
  display: flex; flex-direction: column; padding: 8px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
/* Product pages carry a Buy button in the header; on small phones the
   logo badge alone stands in for the wordmark so nothing overlaps. */
@media (max-width: 439px) {
  .has-buybar .brand .wordmark { display: none; }
}
@media (max-width: 379px) {
  .wordmark { font-size: 13px; letter-spacing: .1em; }
  .brand img { width: 36px; height: 36px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .nav-mobile summary { padding: 0 10px; }
  .btn-compact { padding: 8px 12px; }
}
@media (min-width: 768px) {
  .brand img { width: 44px; height: 44px; }
  .wordmark { font-size: 18px; }
  .header-actions { gap: 12px; }
}
@media (min-width: 900px) {
  .nav-desktop { display: flex; gap: 4px; white-space: nowrap; }
  .nav-mobile { display: none; }
}

/* ---------- product hero (Design B) ---------- */
.hero { padding: 24px 0 var(--section-y); }
.hero-headline {
  font: 800 clamp(24px, 3.1vw, 40px)/1.15 var(--font-head); letter-spacing: -.02em; max-width: 1100px;
}
.hero-grid { display: grid; gap: 32px; margin-top: 20px; }
/* Below 960px the image leads (as on the pin), then the headline, then the buy box. */
@media (max-width: 959px) {
  .hero > .container { display: flex; flex-direction: column; }
  .hero-grid { display: contents; }
  .gallery { order: 1; }
  .hero-headline { order: 2; margin-top: 28px; }
  .buybox { order: 3; margin-top: 20px; }
}
.gallery { min-width: 0; }
.gallery-main {
  display: flex; justify-content: center; background: var(--surface); border-radius: 22px; padding: 20px;
}
.gallery-main img {
  width: auto; max-width: min(100%, 440px); max-height: 50vh;
  border-radius: 6px; box-shadow: 0 18px 40px rgba(17, 17, 17, .16);
}
.thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumb {
  min-height: 44px; padding: 5px; border: 2px solid transparent; border-radius: 12px;
  background: var(--surface); cursor: pointer;
}
.thumb:hover { border-color: var(--line); }
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.thumb-img { width: 100%; height: 72px; object-fit: cover; object-position: top; border-radius: 8px; }

.buybox { min-width: 0; }
.breadcrumb { font-size: 14px; color: var(--text-3); margin-bottom: 10px; }
/* Padding gives the small link a 44px tap area without moving the text. */
.breadcrumb a { display: inline-block; padding: 13px 6px; margin: -13px -6px; color: var(--text-3); }
.buybox-title { margin-top: 14px; font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.02em; }
.buybox-sub { margin-top: 14px; font-size: 18px; color: var(--text-2); }
.price-row { margin-top: 22px; display: flex; align-items: baseline; gap: 12px; }
/* Prices are red on light backgrounds, white on dark ones. */
.price { font: 800 44px/1 var(--font-head); color: var(--red); }
.price-note { font-size: 15px; color: var(--text-3); }
.price-row { flex-wrap: wrap; }
.price-compare { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.meta-price { color: var(--red); font-weight: 700; }
.is-best .meta-price { color: #FFFFFF; }
/* Launch pricing: the regular price struck out in grey, then the launch price.
   On dark or red backgrounds and inside buttons the struck price takes the text colour. */
.was { color: var(--text-3); font-weight: 500; text-decoration-thickness: 2px; }
/* Keeps their visually hidden text inside scrolling card rows. */
.was, .now { position: relative; }
.pair { white-space: nowrap; }
.price-row .was, .compare-price .was { font: 700 26px/1 var(--font-head); }
.ink .was, .upsell .was, .shop-complete .was, .is-best .was { color: var(--line); }
.ink .card .was { color: var(--text-3); }
.btn .was, .final-cta .was { color: inherit; }
.launch-label {
  display: inline-block; align-self: flex-start; margin-top: 10px; font-size: 13px; font-weight: 700; line-height: 1.4;
  padding: 4px 12px; border-radius: 999px; background: var(--highlight); color: var(--ink);
}
.guide-body .launch-label, .shop-body .launch-label, .compare-card .launch-label { margin-top: 0; }
.center.launch-label { display: table; margin: -20px auto 24px; }
.final-text .launch-label { margin: -14px 0 24px; }
.upsell .launch-label { margin: 0 0 14px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--green); margin-top: 3px; stroke-width: 3; }
.buybox .checks { margin-top: 20px; }
.buybox-actions { margin-top: 26px; }
.upsell-link { margin-top: 12px; font-size: 16px; }
.trust-tiles {
  margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  font-size: 13px; line-height: 1.35; color: var(--text-2); text-align: center;
}
.trust-tiles li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--surface); border-radius: 12px; padding: 12px 6px;
}
.trust-tiles .icon { color: var(--ink); }
.trust-tiles strong { display: block; color: var(--ink); }

@media (min-width: 768px) {
  .gallery-main { padding: 36px; }
  .gallery-main img { max-height: none; }
  .thumbs { gap: 12px; margin-top: 14px; }
  .thumb { padding: 6px; }
  .thumb-img { height: 110px; }
  .trust-tiles { gap: 10px; }
  .trust-tiles li { padding: 14px 10px; }
}
@media (min-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 32px; }
  .buybox { position: sticky; top: 96px; }
}

/* ---------- home hero ---------- */
.home-hero { padding: 32px 0 var(--section-y); overflow: hidden; }
.home-hero-grid { display: grid; gap: 40px; align-items: center; }
.home-title { font-weight: 800; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.025em; }
.home-sub { margin-top: 18px; font-size: 18px; color: var(--text-2); max-width: 560px; }
.home-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.home-ctas .btn { flex: 1 1 220px; }
.trust-line.align-start { text-align: left; }
.home-hero-cover { display: flex; justify-content: center; padding: 16px 0; order: -1; }
@media (max-width: 899px) { .taped { width: min(62%, 300px); } }
/* Cover with two strips of tape (CSS only), as in Design A */
.taped { position: relative; width: min(78%, 400px); transform: rotate(2deg); }
.taped img { border-radius: 6px; box-shadow: 0 24px 50px rgba(17, 17, 17, .22); }
.taped::before, .taped::after {
  content: ''; position: absolute; top: -14px; z-index: 1; width: 34%; height: 30px;
  background: rgba(255, 229, 138, .85); box-shadow: 0 1px 2px rgba(17, 17, 17, .08);
}
.taped::before { left: 8%; transform: rotate(-6deg); }
.taped::after { right: 8%; transform: rotate(5deg); }
@media (min-width: 900px) {
  .home-hero { padding-top: 56px; }
  .home-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
  .home-hero-cover { order: 0; }
  .home-ctas .btn { flex: 0 1 auto; }
}

/* ---------- home: shop by room ---------- */
.shop-grid { margin-top: 32px; display: grid; gap: 16px; }
.shop-card {
  height: 100%; display: flex; gap: 16px; align-items: flex-start; padding: 16px;
  text-decoration: none; transition: border-color .15s;
}
.shop-card:hover { color: var(--ink); border-color: var(--ink); }
.shop-cover { flex: none; width: 96px; }
.shop-cover img { width: 100%; border-radius: 4px; box-shadow: var(--shadow-img); }
.shop-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shop-title { font: 800 18px/1.25 var(--font-head); }
.shop-blurb { font-size: 15px; color: var(--text-2); }
.shop-meta { font-size: 15px; font-weight: 600; }
@media (min-width: 600px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  /* 7 cards: 4 + 3, with the last row centred */
  .shop-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .shop-grid > li { flex: 0 0 calc((100% - 60px) / 4); }
  .shop-card { flex-direction: column; align-items: stretch; padding: 20px; }
  .shop-card .shop-cover { width: 100%; padding: 4px 24px 8px; }
}
.shop-complete {
  margin-top: 20px; display: flex; flex-direction: column; gap: 20px; align-items: center;
  padding: 28px 24px; border-radius: var(--radius-card); background: var(--ink); color: #FFFFFF;
  text-decoration: none; border: 2px solid var(--ink); transition: border-color .15s;
}
.shop-complete:hover { color: #FFFFFF; border-color: var(--red); }
.shop-complete .shop-cover { width: 160px; transform: rotate(-3deg); }
.shop-complete .shop-title { font-size: 24px; }
.shop-complete .shop-blurb { color: var(--line); }
.shop-complete .guide-link { color: #FFFFFF; }
.shop-value { margin: 4px 0; font: 800 32px/1 var(--font-head); }
.shop-value .was { font-size: 22px; font-weight: 700; }
@media (min-width: 768px) {
  .shop-complete { flex-direction: row; gap: 40px; padding: 32px 40px; }
  .shop-complete .shop-cover { width: 200px; }
}
.shop-complete :focus-visible, .shop-complete:focus-visible { outline-color: var(--red); }
.shop-topics-title { margin-top: 48px; }
.shop-seasonal { margin: 0 0 48px; background: #FFFFFF; color: var(--ink); }
.shop-seasonal:hover { color: var(--ink); }
.shop-seasonal .shop-blurb { color: var(--text-2); }
.shop-seasonal .guide-link { color: var(--red); }
.shop-seasonal .shop-value { color: var(--red); }

/* ---------- paper band: problem + peek inside (Design A) ---------- */
.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.problem { text-align: center; max-width: 1000px; margin-inline: auto; }
.problem-title { font: 700 clamp(28px, 4vw, 46px)/1.25 var(--font-hand); letter-spacing: 0; }
.wavy {
  color: var(--red); text-decoration: underline wavy var(--red) 2px; text-underline-offset: 8px;
  text-decoration-skip-ink: none;
}
.problem-text { margin: 24px auto 0; max-width: 680px; font-size: 18px; color: var(--text-2); }

.peek { margin-top: calc(var(--section-y) + 8px); }
.peek .h2 { margin-bottom: 40px; }
.peek-rows { display: flex; flex-direction: column; gap: 48px; }
.peek-row { display: grid; gap: 20px; align-items: center; }
.peek-label { font: 400 22px/1.3 var(--font-hand); color: var(--red); }
.peek-title { margin: 4px 0 10px; font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.peek-text > p:not([class]) { color: var(--text-2); }
.key-chip {
  display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 16px;
  padding: 8px 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px;
  font-size: 14px; line-height: 1.45; color: var(--text-2);
}
.key-chip .icon { color: var(--red); margin-top: 0; }
.key-chip strong { color: var(--ink); }
.peek-images { display: grid; gap: 14px; }
.peek-images img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-img); background: #FFFFFF; }
.peek-images.is-single { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) {
  .peek-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 900px) {
  .peek-rows { gap: 64px; }
  .peek-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
  .peek-row.is-flipped { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .peek-row.is-flipped .peek-text { order: 2; }
}
.mid-cta { margin-top: 56px; display: flex; flex-direction: column; align-items: center; }
.mid-cta .btn { width: 100%; max-width: 440px; }

/* ---------- benefits (Design B) ---------- */
.benefits .h2 { margin-bottom: 36px; max-width: 680px; }
.benefits-grid { display: grid; gap: 32px 40px; }
.benefit .icon { color: var(--red); }
.benefit h3 { margin: 10px 0 6px; font-family: var(--font-body); font-weight: 700; font-size: 20px; letter-spacing: 0; }
.benefit p { color: var(--text-2); }
@media (min-width: 600px) { .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .benefits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; } }

/* ---------- steps + stats (surface band) ---------- */
.steps { margin-top: 36px; display: grid; gap: 16px; }
.step { padding: 24px; }
.step-num { display: block; font: 800 48px/1 var(--font-head); color: var(--red); }
.step h3 { margin: 14px 0 8px; font-weight: 700; font-size: 22px; }
.step p { color: var(--text-2); }
/* White strip; the 1px gaps over the --line background draw the dividers. */
.stats {
  margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow);
}
.stat { display: flex; flex-direction: column-reverse; gap: 4px; background: #FFFFFF; padding: 20px; }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat dd { margin: 0; font: 800 clamp(30px, 3.4vw, 40px)/1.1 var(--font-head); color: var(--ink); }
.stat dt { font: 600 12px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step { padding: 28px; }
  .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .stat { padding: 24px 28px; }
  .stat:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- flip through a few pages (paper band) ---------- */
.flip-row {
  margin-top: 36px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px;
  margin-inline: calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter);
}
/* relative: keeps the visually-hidden label inside the scroll row (no page overflow) */
.flip-page { position: relative; scroll-snap-align: start; text-align: center; }
.flip-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 8px;
}
.flip-btn img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-img); background: #FFFFFF; transition: transform .2s; }
.flip-caption { margin-top: 14px; font: 700 20px/1.3 var(--font-hand); color: var(--ink); }
@media (min-width: 768px) {
  .flip-row {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
  .flip-page:nth-child(1) .flip-btn img { transform: rotate(-1.5deg); }
  .flip-page:nth-child(3) .flip-btn img { transform: rotate(1.5deg); }
  .flip-btn:hover img { transform: scale(1.02); }
}
.flip-row + .mid-cta { margin-top: 40px; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 760px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(17, 17, 17, .78); }
.lightbox-inner { position: relative; }
.lightbox img { width: auto; max-width: 100%; max-height: 88vh; margin-inline: auto; border-radius: 8px; background: #FFFFFF; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow); cursor: pointer;
}
.lightbox-close:hover { color: var(--red); }
@media (max-width: 520px) { .lightbox-close { top: 8px; right: 8px; } }

/* /complete/ chapters grid */
.chapter-grid { margin-top: 32px; display: grid; gap: 12px; }
.chapter-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.chapter-name { font-weight: 700; line-height: 1.3; }
.chapter-count { font-size: 15px; color: var(--text-2); }
.chapter-total { justify-content: center; background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chapter-total .chapter-name { font: 800 22px/1.2 var(--font-head); }
@media (min-width: 640px) { .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .chapter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- compare / upgrade (Design B dark) ---------- */
.ink .h2 { margin-bottom: 32px; }
.compare-grid { display: grid; gap: 20px; }
.compare-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px;
}
.compare-card.is-best { box-shadow: inset 0 0 0 4px var(--red); }
.compare-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 22px; letter-spacing: 0; line-height: 1.25; }
.compare-price { font: 800 44px/1 var(--font-head); color: var(--red); }
.compare-card .checks { color: var(--text-2); margin-bottom: 8px; }
.compare-card .btn { margin-top: auto; }
@media (min-width: 768px) {
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .compare-card { padding: 32px; }
}

/* /complete/ value block */
.value-note { max-width: 680px; margin: -12px auto 28px; text-align: center; color: var(--line); }
.value-card { max-width: 560px; margin-inline: auto; padding: 24px; }
.value-list { margin-bottom: 20px; }
.value-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.value-each { color: var(--text-3); white-space: nowrap; }
.value-list a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
.value-sum { font-weight: 600; }
.value-total { font-weight: 700; font-size: 18px; border-bottom: 0 !important; }
.value-total strong { color: var(--red); font: 800 28px/1 var(--font-head); }

/* ---------- made for you if you're… (paper band, Design A cards) ---------- */
.audience { margin-top: var(--section-y); }
.audience-grid { margin-top: 32px; display: grid; gap: 20px; }
.audience-card {
  background: #FFFFFF; border: 2px solid var(--ink); border-radius: var(--radius-card);
  box-shadow: 5px 5px 0 var(--ink); padding: 24px;
}
.audience-card h3 { margin-bottom: 8px; font-weight: 800; font-size: 22px; }
.audience-card p { color: var(--text-2); }
@media (min-width: 900px) {
  .audience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .audience-card { padding: 28px; }
}

/* ---------- upsell card for the complete book (paper band) ---------- */
.upsell {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  background: var(--ink); color: #FFFFFF; border-radius: 28px; padding: 40px 24px; text-align: center;
}
.upsell-cover { width: 180px; flex: none; transform: rotate(-3deg); }
.upsell-cover img { border-radius: 6px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.upsell-line { font: 400 24px/1.3 var(--font-hand); color: var(--highlight); }
.upsell .h2 { margin: 4px 0 14px; color: #FFFFFF; }
.upsell-text > p:not(.upsell-line) { margin-bottom: 24px; color: var(--line); }
.upsell .btn { width: 100%; padding-inline: 16px; }
@media (min-width: 768px) {
  .upsell { flex-direction: row; gap: 48px; padding: 48px; text-align: left; }
  .upsell-cover { width: 240px; }
  .upsell .btn { width: auto; padding-inline: 28px; }
}

/* ---------- reviews (paper band; only rendered when real reviews exist) ---------- */
.reviews-grid { margin-top: 32px; display: grid; gap: 20px; }
.review { margin: 0; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.review blockquote { margin: 0; font-size: 18px; }
.review figcaption { color: var(--text-3); }
.review figcaption strong { color: var(--ink); }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.faq .h2 { margin-bottom: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list p a { color: var(--red); font-weight: 600; padding-block: 12px; margin-block: -12px; overflow-wrap: anywhere; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; font-weight: 700; font-size: 18px; line-height: 1.35;
  cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 999px; background: var(--surface); color: var(--red); font: 600 24px/1 var(--font-body);
}
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list details p { padding: 0 48px 20px 0; color: var(--text-2); }

/* ---------- final CTA (Design A red band) ---------- */
.final-cta { background: var(--red); color: #FFFFFF; text-align: center; }
.final-inner { padding-block: var(--section-y); display: flex; justify-content: center; align-items: center; gap: 56px; }
.final-text { max-width: 640px; }
.final-text p:not(.trust-line):not(.sale-terms) { margin: 14px 0 28px; font-size: 19px; }
.final-cover { display: none; }
@media (min-width: 900px) {
  .final-cta { text-align: left; }
  .final-cover { display: block; flex: none; width: 200px; transform: rotate(-3deg); }
  .final-cover img { border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
}

/* ---------- guide cards ---------- */
.more-guides .h2 { margin-bottom: 28px; }
.guide-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.guide-card {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--ink);
  border: 2px solid transparent; transition: border-color .15s;
}
.guide-card:hover { color: var(--ink); border-color: var(--ink); }
.guide-card.is-best { background: var(--ink); color: #FFFFFF; }
.guide-card.is-best:hover { color: #FFFFFF; border-color: var(--red); }
.guide-cover { display: flex; justify-content: center; padding: 20px 20px 0; }
.guide-cover img { width: 100%; max-width: 160px; border-radius: 4px; box-shadow: var(--shadow-img); }
.guide-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 20px; }
.guide-name { font: 800 20px/1.2 var(--font-head); }
.guide-meta { font-size: 15px; color: var(--text-2); }
.is-best .guide-meta { color: var(--line); }
.guide-link { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); }
.is-best .guide-link { color: #FFFFFF; }
.guide-card .badge { margin-bottom: 4px; }
@media (min-width: 900px) {
  .guide-row {
    grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible;
    margin-inline: 0; padding-inline: 0; padding-bottom: 0; gap: 20px;
  }
  .guide-card.is-best { grid-column: span 2; flex-direction: row; align-items: center; }
  .guide-card.is-best .guide-cover { padding: 20px; width: 45%; }
  .guide-card.is-best .guide-name { font-size: 26px; }
}

/* ---------- text pages (about, contact, legal) and 404 ---------- */
.prose { max-width: 760px; }
.prose h1 { font-weight: 800; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 24px; }
.prose h2 { font-weight: 800; font-size: 24px; margin: 36px 0 10px; }
.prose p { color: var(--text-2); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; color: var(--text-2); }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--ink); }
.prose .updated { font-size: 14px; color: var(--text-3); }
.prose-cta { margin-top: 28px; }
.prose li a, .prose p a:not(.btn) { overflow-wrap: anywhere; }
/* Inline links: padding widens the tap area to 44px without changing the line spacing. */
.prose p a:not(.btn) { color: var(--red); font-weight: 600; padding-block: 12px; margin-block: -12px; }
.not-found h1.hand-title { font-weight: 700; font-size: clamp(32px, 4.4vw, 46px); }
.not-found .btn { margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.footer-inner { padding-block: 40px; display: grid; gap: 20px; }
.footer-brand p { margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-2); }
.footer-disclaimer { max-width: 720px; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { margin-left: 0; justify-content: flex-end; }
  .footer-disclaimer, .footer-copy { grid-column: 1 / -1; }
}

/* ---------- sticky mobile buy bar ---------- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #FFFFFF; box-shadow: 0 -6px 24px rgba(17, 17, 17, .12);
  transform: translateY(110%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.buybar.is-visible { transform: none; visibility: visible; transition: transform .25s ease; }
.buybar-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.buybar-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-price { font-size: 14px; color: var(--text-3); }
.buybar-now { color: var(--red); font-weight: 700; }
.buybar .btn { min-height: 48px; font-size: 16px; padding: 8px 20px; flex: none; }
body.has-buybar { padding-bottom: 76px; }
@media (min-width: 768px) {
  .buybar { display: none; }
  body.has-buybar { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
