:root {
  --ink: #1d2a26;
  --muted: #5b6b66;
  --line: #d9e0dc;
  --paper: #fbfaf6;
  --card: #ffffff;
  --brand: #1f5c4a;
  --brand-dark: #174637;
  --tint: #e9f2ee;
  --warn-bg: #fff6e0;
  --warn-line: #e6c36a;
  --ok-bg: #e6f4ec;
  --ok-line: #7fbf9c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
[hidden] { display: none !important; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -.01em; max-width: 18em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.08rem; margin-top: 1.6em; }

.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 18px; font-size: .95rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero { padding: 56px 0 44px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.points { padding-left: 1.1em; max-width: 42em; }
.points li { margin: .45em 0; }

.button {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--brand); color: #fff; border: 2px solid var(--brand);
  padding: 10px 18px; border-radius: 8px; text-decoration: none; margin: 4px 6px 4px 0;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button.ghost { background: transparent; color: var(--brand); }
.button.ghost:hover { background: var(--tint); }
.button:disabled, .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.button:focus-visible, .link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #f0b429; outline-offset: 2px;
}
.link { font: inherit; color: var(--brand); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

.tool { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.step { padding: 8px 0 28px; }
.step + .step { border-top: 1px solid var(--line); padding-top: 32px; }
.num {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .95rem; margin-right: 8px; vertical-align: 2px;
}
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  border: 2px dashed #a9bbb3; border-radius: 12px; padding: 30px 16px; background: var(--paper); cursor: pointer;
}
.drop.over { border-color: var(--brand); background: var(--tint); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { outline: 3px solid #f0b429; outline-offset: 2px; }
.drop-main { font-weight: 700; color: var(--brand); font-size: 1.1rem; }
.drop-sub, .quiet, .hint { color: var(--muted); font-size: .92rem; }
.hint { font-weight: 400; }
.status { min-height: 1.4em; font-weight: 600; }
.status.error { color: #a12b2b; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; }
.grid label { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; font-weight: 600; }
.grid .wide { grid-column: 1 / -1; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid #b8c4bf; border-radius: 6px; padding: 8px 10px; width: 100%;
}
textarea { resize: vertical; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.stat { background: var(--tint); border-radius: 10px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.45rem; }
.stat span { color: var(--muted); font-size: .88rem; }

.banner, .notice { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
.banner.ok { border-color: var(--ok-line); background: var(--ok-bg); }
.notice summary { cursor: pointer; font-weight: 600; }
.notice ul { margin: .6em 0 0; padding-left: 1.2em; font-size: .93rem; max-height: 15em; overflow: auto; }

.letter {
  border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  padding: clamp(18px, 5vw, 46px); max-width: 720px; font-size: .95rem; overflow-x: auto;
}
.letter .head { font-weight: 700; font-size: 1.25rem; }
.letter .sub { color: var(--muted); font-size: .82rem; border-bottom: 1px solid #999; padding-bottom: 8px; margin-bottom: 18px; }
.letter .addr { margin: 14px 0 18px; }
.letter .addr div { line-height: 1.35; }
.letter table { border-collapse: collapse; margin: 4px 0 12px; font-size: .9rem; }
.letter th, .letter td { text-align: left; padding: 5px 14px 5px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.letter th { border-bottom-color: #777; }
.letter .r { text-align: right; }
.letter .totals { margin: 0 0 14px; max-width: 470px; }
.letter .totals div { display: flex; justify-content: space-between; gap: 20px; padding: 2px 4px; }
.letter .strong { font-weight: 700; }
.letter .sign { margin-top: 34px; }
.letter .note { font-style: italic; font-size: .88rem; }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }
.download-free, .download-paid { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--paper); }
.download-paid { border-color: var(--brand); }
.downloads .quiet { margin: 6px 0 0; }

.pricing, .faq { padding: 52px 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.plan.featured { border: 2px solid var(--brand); }
.plan h3 { margin-top: 0; }
.price { font-size: 2rem; font-weight: 700; margin: 0 0 .3em; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 1.1em; }

.faq { background: var(--card); border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: #33423d; margin: .6em 0 .2em; }

.site-footer { padding: 30px 0 46px; font-size: .92rem; border-top: 1px solid var(--line); }
.disclaimer { color: #33423d; max-width: 52em; }
.siblings a { margin-right: 14px; white-space: nowrap; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 34px 0 28px; }
  nav { gap: 14px; }
}
