:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #1d2422;
  --muted: #5d6763;
  --line: #e2ded3;
  --brand: #1f5f4a;
  --brand-ink: #f6f3ea;
  --brand-soft: #e3efe9;
  --action: #b4471f;
  --action-soft: #fbeae2;
  --ok: #2d7a4f;
  --ok-soft: #e4f3ea;
  --info: #2f5d8a;
  --info-soft: #e5eef7;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141917; --surface: #1c2320; --ink: #e8ebe7; --muted: #a2aca7; --line: #2e3833;
    --brand: #6fbf9c; --brand-ink: #10221b; --brand-soft: #1f3129;
    --action: #f0946d; --action-soft: #3a241b; --ok: #79c99a; --ok-soft: #1d3326;
    --info: #8fb7e0; --info-soft: #1d2a37;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.2em 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); font-size: .92rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; color: var(--brand); margin: 0; }

/* header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-size: .95rem; }
.nav nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav nav a:hover { color: var(--brand); }
.site-footer { margin-top: 64px; padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer a { color: var(--muted); }

/* hero & cards */
.hero { padding: 56px 0 32px; }
.hero h1 { max-width: 760px; margin-top: .3em; }
.hero .lead { max-width: 680px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card h2 { font-size: 1.2rem; margin-top: 0; }
.card p { color: var(--muted); margin: 0 0 8px; }
.link-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.more { color: var(--brand); font-weight: 600; font-size: .95rem; }
.list { display: grid; gap: 12px; margin: 24px 0; }
.band { margin-top: 40px; background: var(--brand-soft); border-radius: var(--radius); padding: 8px 24px 24px; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin: 10px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }

/* buttons */
.btn { display: inline-block; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 11px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 6px 14px; font-size: .88rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* forms */
.form fieldset { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 14px; }
.form legend { font-weight: 600; padding: 0 4px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.choice input { margin-top: 6px; accent-color: var(--brand); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 600; margin-bottom: 4px; }
.field em { font-weight: 400; color: var(--muted); }
input[type=text], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* results */
.results h3 { margin-top: 28px; }
.summary-line { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border-radius: 999px; padding: 3px 12px; font-size: .88rem; font-weight: 600; }
.pill.action { background: var(--action-soft); color: var(--action); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.info { background: var(--info-soft); color: var(--info); }
.item { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.item h4 { margin: 0 0 4px; }
.item p { margin: 0 0 6px; }
.item a { font-size: .9rem; }
.item.action { border-left-color: var(--action); }
.item.ok { border-left-color: var(--ok); }
.item.info { border-left-color: var(--info); }
.notice, .warn { background: var(--action-soft); color: var(--ink); border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.next { margin: 24px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* letter output */
.output-wrap { margin-top: 24px; }
.output-actions { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 8px; }
.letter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  white-space: pre-wrap; font-family: Georgia, "Times New Roman", serif; min-height: 120px; }
.letter:focus { outline: 2px solid var(--brand); }


.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose li { margin: 6px 0; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.faq[open] summary { color: var(--brand); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding: 8px 16px; }
  .nav nav { gap: 12px; }
  .hero { padding-top: 32px; }
  .letter { padding: 18px; }
}
@media print {
  .site-header, .site-footer, form, .btn, hr, .muted, .lead, .output-wrap ~ h2 { display: none !important; }
  .letter { border: 0; padding: 0; }
  body { background: #fff; color: #000; }
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 24px 0 40px; align-items: start; }
.plan.featured { border: 2px solid var(--brand); }
.price { font-size: 2.2rem; font-weight: 700; color: var(--ink) !important; margin: 0 0 8px !important; }
.price span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan .ticks { margin: 12px 0 18px; }
.plan .muted { margin-top: 10px; }
