:root {
  --bg: #f7f3ec;
  --paper: #fffdf9;
  --ink: #17212b;
  --muted: #5a6470;
  --line: #e3dccf;
  --accent: #1d6b57;
  --accent-dark: #145244;
  --accent-soft: #e3efe9;
  --warm: #c8693a;
  --warm-soft: #f6e6dc;
  --radius: 14px;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--accent-dark); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.top { padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }

/* Hero */
.hero { padding: 36px 0 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm); background: var(--warm-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6.4vw, 64px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 22px; max-width: 16ch; }
.sub { font-size: clamp(18px, 2.3vw, 21px); color: #2d3946; max-width: 38em; margin: 0 0 30px; }

/* Form */
.signup { display: flex; gap: 10px; max-width: 540px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 260px; min-width: 0; font: inherit; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.signup input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 15px 22px; background: var(--accent); color: #fff; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; text-align: center; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: #fff; }
.micro { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.err { color: #a2361b; font-size: 14px; margin: 8px 0 0; }
.err:empty { display: none; }
@media (max-width: 520px) { .signup .btn { width: 100%; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 22px; }
.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pains li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 52px; position: relative; font-size: 18px; }
.pains li::before { content: ''; position: absolute; left: 20px; top: 24px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--warm); }

.cols { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.lead-text { color: #2d3946; font-size: 18px; margin: 0 0 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Example card */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 32px -18px rgba(23,33,43,0.25); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.row { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-top: 1px dashed var(--line); }
.row:first-of-type { border-top: 0; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.row-title { font-weight: 600; }
.row-meta { color: var(--muted); font-size: 15px; margin-top: 2px; }
.row-meta b { color: var(--accent-dark); font-weight: 600; }
.card-foot { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.step p { margin: 0; }

/* Quotes */
.quotes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
blockquote { margin: 0; background: var(--paper); border-left: 3px solid var(--warm); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; }
blockquote p { font-family: var(--serif); font-size: 19px; line-height: 1.4; margin: 0 0 10px; }
blockquote cite { font-style: normal; font-size: 14px; color: var(--muted); }

.note { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.avatar { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.note p { margin: 0; }
.stat { font-size: 15px; color: var(--muted); margin-top: 18px; }

.final { text-align: left; }
.final h2 { max-width: 18ch; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

/* Step-two dialog */
.overlay { position: fixed; inset: 0; background: rgba(23,33,43,0.55); display: none; align-items: flex-end; justify-content: center; z-index: 50; }
.overlay.open { display: flex; }
@media (min-width: 640px) { .overlay { align-items: center; } }
.sheet { background: var(--paper); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 26px 22px 28px; }
@media (min-width: 640px) { .sheet { border-radius: 20px; padding: 32px; } }
.sheet h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; line-height: 1.2; }
.sheet .muted { color: var(--muted); margin: 0 0 20px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; }
.chips input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.field { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.stack { display: grid; gap: 10px; }
.price-box { background: var(--accent-soft); border-radius: var(--radius); padding: 18px; margin: 4px 0 18px; }
.price-box p { margin: 0 0 14px; }
.hidden { display: none !important; }
.close { float: right; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 0 0 10px; }

/* Home chooser */
.choices { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.choice:hover { border-color: var(--accent); }
.choice b { display: block; font-family: var(--serif); font-size: 21px; margin-bottom: 4px; }
.choice span { color: var(--muted); }

.legal h2 { font-size: 24px; margin-top: 32px; }
.legal p, .legal li { color: #2d3946; }
