:root {
  --ink: #2d2926;
  --paper: #fbf7ef;
  --cream: #f2e8d8;
  --clay: #a9563d;
  --clay-dark: #743622;
  --sage: #6e8064;
  --sage-light: #e4eadf;
  --gold: #d9aa55;
  --white: #fffdf8;
  --shadow: 0 20px 60px rgba(70, 44, 31, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
button, input { font: inherit; }
button { cursor: pointer; }
.topbar {
  padding: 10px 16px;
  color: white;
  background: var(--clay-dark);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(42px, 7vw, 74px); }
h2 { font-size: clamp(32px, 5vw, 50px); }
h3 { font-size: 26px; }
p { margin: 0 0 20px; }
.wrap { width: min(1120px, calc(100% - 36px)); margin: auto; }
.hero { overflow: hidden; padding: 64px 0 72px; background: radial-gradient(circle at 85% 5%, #edd0b9 0, transparent 31%), linear-gradient(135deg, #fffaf1, #f0e1ce); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--clay-dark); font-size: 13px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero p { max-width: 650px; font-size: 21px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; font-size: 15px; font-weight: 700; }
.trust-line span::before { content: "✓"; margin-right: 8px; color: var(--sage); }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 58px;
  padding: 14px 24px; border: 0; border-radius: 14px; font-weight: 800; text-decoration: none;
}
.primary { color: white; background: var(--clay); box-shadow: 0 10px 25px rgba(169, 86, 61, .25); }
.primary:hover { background: var(--clay-dark); transform: translateY(-1px); }
.secondary { color: var(--clay-dark); background: var(--cream); }
.book-scene { position: relative; display: grid; place-items: center; min-height: 480px; }
.book {
  position: relative; width: 290px; aspect-ratio: .72; padding: 34px 28px; color: #fff;
  background: linear-gradient(145deg, #974d38, #6f3326); border-radius: 8px 18px 18px 8px;
  box-shadow: -15px 18px 0 #d6b88d, var(--shadow); transform: rotate(3deg);
}
.book::before { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px 12px 12px 4px; }
.book-kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.book-title { display: block; margin-top: 48px; font-family: "Fraunces"; font-size: 39px; line-height: 1.05; }
.book-sub { display: block; margin-top: 26px; font-size: 16px; }
.yarn { position: absolute; width: 115px; height: 115px; border-radius: 50%; background: repeating-radial-gradient(ellipse at 30% 40%, #d9aa55 0 4px, #bc823a 5px 8px); box-shadow: var(--shadow); }
.yarn.one { right: 1%; bottom: 38px; }
.yarn.two { left: 0; top: 60px; width: 78px; height: 78px; background: repeating-radial-gradient(ellipse at 30% 40%, #8a9c7c 0 4px, #65745c 5px 8px); }
.stats { margin-top: -34px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 24px; text-align: center; border-right: 1px solid #eadfce; }
.stat:last-child { border: 0; }
.stat strong { display: block; color: var(--clay-dark); font-family: "Fraunces"; font-size: 31px; }
.section { padding: 88px 0; }
.section.alt { background: var(--cream); }
.section-title { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; background: var(--white); border: 1px solid #e8dccb; border-radius: 20px; }
.card .icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; background: var(--sage-light); border-radius: 50%; font-size: 22px; }
.inside { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.checklist { display: grid; gap: 14px; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: 0 0 28px; display: grid; place-items: center; height: 28px; color: white; background: var(--sage); border-radius: 50%; font-weight: 800; }
.sample-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sample { min-height: 150px; padding: 22px; border-radius: 18px; color: white; background: linear-gradient(145deg, var(--sage), #495946); }
.sample:nth-child(2) { background: linear-gradient(145deg, var(--clay), var(--clay-dark)); }
.sample:nth-child(3) { background: linear-gradient(145deg, #c28a43, #8f5d25); }
.sample:nth-child(4) { color: var(--ink); background: #f7eedc; border: 1px solid #e2d2b9; }
.offer { padding: 46px; border: 2px solid var(--clay); border-radius: 26px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.price { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 24px 0; }
.price s { color: #7c746d; }
.price strong { color: var(--clay-dark); font-family: "Fraunces"; font-size: 58px; line-height: 1; }
.price small { font-size: 14px; }
.guarantee { display: flex; gap: 22px; align-items: center; max-width: 700px; margin: 34px auto 0; padding: 22px; background: var(--sage-light); border-radius: 16px; text-align: left; }
.guarantee-badge { flex: 0 0 78px; display: grid; place-items: center; height: 78px; border: 3px solid var(--sage); border-radius: 50%; color: var(--sage); font-weight: 900; }
.faq { max-width: 780px; margin: auto; }
details { padding: 20px 0; border-bottom: 1px solid #d8cab6; }
summary { cursor: pointer; font-weight: 800; }
details p { padding-top: 14px; color: #554d47; }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 40px max(24px, calc((100% - 1120px)/2)); color: #eee3d7; background: #302824; font-size: 14px; }
.site-footer p { max-width: 620px; margin: 8px 0 0; }
.site-footer nav { display: flex; gap: 14px; }
.link-button, .text-action { padding: 0; border: 0; color: inherit; background: none; text-decoration: underline; }
.checkout-shell, .postoffer-shell { min-height: calc(100vh - 160px); padding: 48px 0 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 420px; gap: 34px; align-items: start; }
.panel { padding: 28px; border: 1px solid #e5dac8; border-radius: 20px; background: white; box-shadow: 0 12px 30px rgba(70,44,31,.08); }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { font-weight: 700; }
.field input { width: 100%; padding: 14px; border: 1px solid #bfb5a8; border-radius: 10px; }
.field input:focus { outline: 3px solid rgba(169,86,61,.18); border-color: var(--clay); }
.order-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #eee7dd; }
.order-row.total-row { margin-top: 6px; font-size: 1.08rem; color: var(--clay-dark); border-bottom-width: 2px; }
.bump { margin: 22px 0; padding: 18px; background: #fff7df; border: 2px dashed var(--gold); border-radius: 14px; }
.bump label { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.notice { margin-top: 16px; padding: 14px; border-radius: 10px; background: #f6efe4; font-size: 14px; }
.success-note { color: #38633a; background: #eaf4e8; }
.postoffer { max-width: 760px; margin: auto; text-align: center; }
.postoffer .panel { padding: 42px; }
.offer-list { display: grid; gap: 12px; max-width: 560px; margin: 26px auto; padding: 0; list-style: none; text-align: left; }
.offer-list li { display: flex; gap: 11px; padding: 12px 14px; border-radius: 12px; background: var(--sage-light); }
.offer-list li::before { content: "✓"; color: var(--sage); font-weight: 900; }
.button-stack { display: grid; gap: 14px; max-width: 500px; margin: 28px auto 0; }
.exit-overlay, .modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(31, 24, 20, .72); }
.exit-overlay[hidden], .modal[hidden] { display: none; }
.exit-card, .modal-card { position: relative; width: min(520px, 100%); padding: 36px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.close { position: absolute; top: 12px; right: 15px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #eee4d7; font-size: 28px; }
.exit-price { margin: 20px 0; }
.exit-price small { display: block; }
.exit-price strong { color: var(--clay-dark); font-family: "Fraunces"; font-size: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero { padding-top: 44px; }
  .hero-grid, .inside, .checkout-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 22px; }
  .book-scene { min-height: 410px; }
  .book { width: 245px; }
  .stats { margin-top: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid #eadfce; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .offer { padding: 30px 20px; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 24px, 1120px); }
  h1 { font-size: 41px; }
  .hero p { font-size: 18px; }
  .primary, .secondary { width: 100%; }
  .book-scene { min-height: 360px; }
  .book { width: 215px; }
  .book-title { font-size: 32px; }
  .yarn.one { width: 86px; height: 86px; }
  .stat { padding: 18px 10px; }
  .stat strong { font-size: 25px; }
  .sample-grid { grid-template-columns: 1fr; }
  .guarantee { align-items: flex-start; }
  .guarantee-badge { flex-basis: 62px; height: 62px; font-size: 14px; }
  .site-footer nav { flex-wrap: wrap; }
}

