:root {
  --paper: #f7f2e8;
  --card: #fffdf8;
  --ink: #2a2723;
  --muted: #6b645a;
  --line: #e3d9c6;
  --accent: #b9562a;      /* persimmon */
  --accent-ink: #ffffff;
  --moss: #5d6b4a;
  --radius: 14px;
  --serif: "Noto Serif", Georgia, serif;
  --sans: "Noto Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1a17;
    --card: #25221e;
    --ink: #eee7da;
    --muted: #a69e91;
    --line: #38332c;
    --accent: #e0885a;
    --accent-ink: #1c1a17;
    --moss: #a3b38b;
  }
}
:root[data-theme="dark"] {
  --paper: #1c1a17;
  --card: #25221e;
  --ink: #eee7da;
  --muted: #a69e91;
  --line: #38332c;
  --accent: #e0885a;
  --accent-ink: #1c1a17;
  --moss: #a3b38b;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
nav a { margin-left: 16px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

.hero { padding: 32px 0 24px; text-align: center; }
.hero .enso { width: 140px; margin: 0 auto 20px; color: var(--ink); opacity: .9; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.4; }
h1 { font-size: clamp(28px, 6vw, 40px); margin: 0 0 12px; }
h2 { font-size: 24px; margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 24px 0 8px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 auto 24px; max-width: 32em; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.verse {
  font-family: var(--serif);
  font-size: 19px;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 16px 0;
}
.verse cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); margin-top: 6px; }

form.signup, form.checkout { display: grid; gap: 12px; text-align: left; }
form.signup label.field span, form.checkout label.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
input[type="email"], input[type="text"], select {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
#payment-method, #agreement { border-radius: 10px; overflow: hidden; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.6; }
.check input { margin-top: 4px; }
.btn {
  display: inline-block; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 10px; padding: 14px 20px; text-align: center; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
.btn.block { width: 100%; }
.form-msg { font-size: 14px; min-height: 1.5em; margin: 0; }
.form-msg.error { color: #c0392b; }
.form-msg.ok { color: var(--moss); }

ul.plain { padding-left: 1.2em; }
ul.plain li { margin: 6px 0; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted);
}
.notice {
  font-size: 15px; color: var(--muted);
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}

table.days { width: 100%; border-collapse: collapse; font-size: 15px; }
table.days th, table.days td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.days th { color: var(--muted); font-weight: 500; white-space: nowrap; }

.price { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.price s { font-size: 18px; color: var(--muted); font-weight: 400; margin-right: 8px; }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 500; }

footer.site {
  margin-top: 64px; padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.7;
}
footer.site a { color: var(--muted); }

.hidden { display: none !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Mobile ---------- */
/* Inputs at 16px or larger so iPhone doesn't zoom in */
input, select, textarea { font-size: max(16px, 1em); }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
a, button { -webkit-tap-highlight-color: transparent; }
textarea {
  width: 100%; font: inherit; padding: 12px 14px; min-height: 140px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); line-height: 1.6;
}
textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Sticky buy bar at the bottom (product pages) */
.buybar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 32px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
}
.buybar .buybar-price { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.2; }
.buybar .buybar-price small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); }
.buybar .btn { flex: 0 0 auto; padding-left: 24px; padding-right: 24px; }

/* Keep the pay button pinned too */
.paybar {
  position: sticky; bottom: 0; z-index: 20;
  margin: 0 -20px -24px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
}

/* In-app browser notice (Instagram etc.) */
.inapp {
  font-size: 14px; color: var(--ink); background: var(--card);
  border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0;
}
.inapp p { margin: 0 0 10px; }
.inapp button { font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); background: none; border: 1px solid var(--accent); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }

/* Product sample card */
.sample {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: left;
}
.sample .tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sample h3 { margin: 6px 0 10px; }
.sample .say { font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 14px 0 0; }
ol.steps { padding-left: 1.3em; margin: 10px 0 0; }
ol.steps li { margin: 6px 0; }

.offer { border: 2px solid var(--accent); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  nav a { margin-left: 12px; font-size: 14px; }
  .card { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .paybar { margin: 0 -16px -20px; padding-left: 16px; padding-right: 16px; }
}
