:root {
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink: #252a24;
  --muted: #66705f;
  --line: #e7e0d2;
  --sage: #7a8b6f;
  --sage-dark: #55684c;
  --sage-deep: #43523c;
  --sage-pale: #eef1e9;
  --shadow: 0 1px 2px rgba(37, 42, 36, .06), 0 12px 32px rgba(37, 42, 36, .07);
  --shadow-hover: 0 2px 4px rgba(37, 42, 36, .08), 0 20px 44px rgba(37, 42, 36, .12);
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage-dark); }
a:hover { color: var(--sage-deep); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand-tag {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--sage-dark); }
.nav-pill {
  background: var(--sage-pale);
  color: var(--sage-deep) !important;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

main { max-width: 1120px; margin: 0 auto; padding: 0 24px 72px; }

/* Hero */
.hero { padding: 56px 0 36px; max-width: 760px; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.chip span { color: var(--sage-dark); font-weight: 700; margin-right: 4px; }

.section-title {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -.01em;
  margin: 28px 0 4px;
}
.section-sub { color: var(--muted); margin: 0 0 20px; }

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #cfd6c2; color: var(--ink); }
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #f3efe6;
  border-bottom: 1px solid var(--line);
}
.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  margin: 18px 20px 6px;
}
.card .price {
  font-weight: 700;
  font-size: 17px;
  margin: 0 20px 6px;
  color: var(--ink);
}
.card .tag {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* How it works */
.assurance { margin-top: 64px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--sage);
}
.step h3 { font-family: var(--serif); font-size: 19px; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Product page */
.product {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 52px;
  align-items: start;
  padding-top: 40px;
}
.crumb { margin: 0 0 14px; font-size: 14.5px; }
.crumb a { text-decoration: none; font-weight: 500; }
.product-info h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 12px;
}
.price.big { font-size: 26px; font-weight: 700; margin: 0 0 20px; }
.product-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product-gallery img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.product-gallery img:first-child { grid-column: 1 / -1; }
.desc h3 { font-family: var(--serif); font-size: 19px; margin: 24px 0 6px; }
.desc ul { padding-left: 20px; }
.desc li { margin-bottom: 4px; }
.buy-box {
  margin-top: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.buy-box form { margin: 0; }
button, .button {
  display: inline-block;
  width: 100%;
  background: var(--sage-deep);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 20px rgba(67, 82, 60, .25);
  transition: background .15s ease, transform .15s ease;
}
button:hover, .button:hover { background: var(--sage-dark); color: #fff; transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0); }
.fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Prose pages (terms, privacy, thanks, errors) */
.prose { max-width: 740px; padding-top: 44px; }
.prose h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 20px;
}
.prose h2 { font-family: var(--serif); font-size: 23px; margin: 32px 0 8px; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p { color: #3d443a; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #f3efe6; }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 360px; }
.footer-brand .brand-name { font-size: 20px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 500; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--sage-dark); }
.footer-note {
  width: 100%;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.footer-note a { color: var(--muted); }

@media (max-width: 820px) {
  .header-inner { padding: 12px 18px; }
  .brand-tag { display: none; }
  .nav-pill { display: none; }
  .site-nav { gap: 16px; }
  main { padding: 0 18px 56px; }
  .hero { padding-top: 36px; }
  .steps { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .product-info { order: -1; }
  .footer-inner { padding: 28px 18px 32px; }
}

/* ---- v2: cart, trust, polish ---- */
.announcement {
  background: var(--sage-deep);
  color: #fff;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 16px;
  letter-spacing: .01em;
}
.cart-btn {
  display: none;
  width: auto;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14.5px;
  box-shadow: none;
}
.cart-btn.is-ready { display: inline-flex; }
.cart-btn:hover { background: var(--sage-deep); transform: none; }
.cart-count {
  background: var(--sage);
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 5px;
}
.hero-trust { font-size: 14.5px; color: var(--muted); margin: 18px 0 0; }

/* Cards (v2 structure: media + body + actions) */
.card { padding: 0; }
.card-media { display: block; }
.card-media img { border-radius: 0; }
.card-body { padding: 0 20px 20px; }
.card-body h3 { margin: 18px 0 6px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--sage-dark); }
.card .price { margin: 0 0 6px; }
.card .tag { margin: 0 0 8px; }
.card-meta { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.card-actions { display: flex; align-items: center; gap: 14px; }
.btn-add {
  width: auto;
  padding: 11px 18px;
  font-size: 15px;
  box-shadow: none;
}
.btn-add.disabled { background: #d8d2c4; color: #666; cursor: default; box-shadow: none; }
.card-view { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }

/* Product page: secondary add, badges, trust box */
.product-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.product-badges span {
  background: var(--sage-pale);
  color: var(--sage-deep);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.buy-now-form { margin: 0 0 12px; }
.btn-secondary {
  width: 100%;
  background: var(--paper);
  color: var(--sage-deep);
  border: 1.5px solid var(--sage-dark);
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: none;
}
.btn-secondary:hover { background: var(--sage-pale); color: var(--sage-deep); transform: none; }
.trust-box {
  margin-top: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.trust-box h3 { font-family: var(--serif); font-size: 19px; margin: 0 0 10px; }
.trust-box ul { margin: 0; padding-left: 20px; }
.trust-box li { font-size: 15px; color: #3d443a; margin-bottom: 6px; }

/* FAQ */
.faq { max-width: 760px; margin-top: 64px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary { font-weight: 650; cursor: pointer; }
.faq summary:hover { color: var(--sage-dark); }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }

/* Footer trust */
.footer-trust { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

/* Success: multi-download list */
.download-list { list-style: none; padding: 0; margin: 24px 0; }
.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.download-item span { font-weight: 550; }
.button.small { width: auto; padding: 10px 20px; font-size: 15px; box-shadow: none; }

/* Cart drawer */
body.cart-open { overflow: hidden; }
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(37, 42, 36, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 40;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(430px, 94vw);
  background: var(--cream);
  box-shadow: -20px 0 50px rgba(37, 42, 36, .25);
  transform: translateX(102%);
  transition: transform .25s ease;
  z-index: 50;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { font-family: var(--serif); font-size: 24px; margin: 0; }
.cart-close {
  width: auto; background: transparent; color: var(--ink);
  font-size: 30px; line-height: 1; padding: 4px 10px; box-shadow: none;
}
.cart-close:hover { background: var(--sage-pale); color: var(--ink); transform: none; }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty { padding: 18px 22px 0; }
.cart-item {
  display: flex; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; margin-bottom: 12px;
}
.cart-thumb { width: 58px; height: 72px; object-fit: cover; object-position: top; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.cart-item-info span { font-size: 13.5px; color: var(--muted); }
.cart-remove {
  width: auto; background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 600; padding: 6px 8px; box-shadow: none;
}
.cart-remove:hover { background: transparent; color: #a52a2a; transform: none; }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; background: var(--paper); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 10px; }
.cart-foot form { margin: 12px 0; }
.cart-foot .btn-secondary { margin-top: 0; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---- v2.1: never crop a card preview again ---- */
/* Square previews (weekly planner) were being cover-cropped into a
   portrait box, cutting "Weekly" to "eekly". Contain shows the whole
   preview, whatever its shape; the beige mat fills the rest. */
.card-media { background: #f3efe6; }
.card-media img, .card img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #f3efe6;
  padding: 14px;
}
.cart-thumb { aspect-ratio: auto; padding: 0; }
