:root {
  --ink: #1b2421;
  --body: #333d39;
  --muted: #5f6964;
  --line: #e3dfd5;
  --control: #c4c8c0;
  --paper: #faf8f3;
  --card: #fffefb;
  --brand: #1c5241;
  --brand-dark: #153f32;
  --tint: #eff4f0;
  --warn-bg: #fbf6e8;
  --warn-line: #e2d3a6;
  --ok-bg: #edf5f0;
  --ok-line: #a9cdb9;
  --radius: 8px;
  --radius-sm: 6px;
  --control-h: 40px;
  --section: 48px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.5 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.25; font-weight: 650; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.25rem); letter-spacing: -.015em; max-width: 20em; }
h2 { font-size: 1.3rem; letter-spacing: -.005em; }
h3 { font-size: 1rem; margin-top: 1.75em; }

.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: 12px; padding-bottom: 12px; }
.brand { font-weight: 650; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 20px; font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

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

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-h);
  font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  padding: 8px 16px; border-radius: var(--radius-sm); text-decoration: none; margin: 4px 6px 4px 0;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button.ghost { background: #fff; color: var(--ink); border-color: var(--control); }
.button.ghost:hover { background: var(--tint); border-color: var(--brand); }
.button:disabled, .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.button:focus-visible, .link:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand); 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: var(--section) 0; }
.step { padding: 0 0 32px; }
.step + .step { border-top: 1px solid var(--line); padding-top: 32px; }
.step:last-child { padding-bottom: 0; }
.num {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%;
  border: 1px solid var(--brand); background: transparent; color: var(--brand);
  font-size: .8125rem; font-weight: 600; margin-right: 10px; vertical-align: 3px;
}
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  border: 1px dashed #a9b5ad; border-radius: var(--radius); padding: 28px 20px; background: var(--tint); cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--brand); }
.drop.over { background: #e4eee8; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.drop-main { font-weight: 600; color: var(--brand); font-size: 1rem; }
.drop-sub, .quiet, .hint { color: var(--muted); font-size: .875rem; }
.hint { font-weight: 400; }
.status { min-height: 1.4em; font-size: .9375rem; font-weight: 600; }
.status.error { color: #9b2c2c; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 18px; }
.grid label { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 600; }
.grid .wide { grid-column: 1 / -1; }
input, select, textarea {
  font: inherit; font-size: .9375rem; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid var(--control); border-radius: var(--radius-sm); padding: 8px 10px; width: 100%;
}
input, select { height: var(--control-h); }
textarea { resize: vertical; line-height: 1.45; }
input[type="checkbox"] { width: 18px; height: 18px; flex: none; padding: 0; margin: 0; accent-color: var(--brand); }
.grid label.check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; cursor: pointer; }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; box-shadow: none; }
input:hover, select:hover, textarea:hover { border-color: #a3aaa2; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(28, 82, 65, .22);
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 8px 0 18px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: #fff; padding: 12px 16px; }
.stat b { display: block; font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .8125rem; }

.banner, .notice { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; font-size: .9375rem; }
.banner.ok { border-color: var(--ok-line); background: var(--ok-bg); }
.notice summary { cursor: pointer; font-weight: 600; }
.passlink { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 10px 16px; margin: 0 0 24px; }
.passlink p { color: var(--body); font-size: .875rem; margin: .6em 0; }
.passlink-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.passlink-row input { flex: 1 1 260px; font-size: .875rem; }
.passlink-row .button { margin: 0; }
.passlink .quiet { min-height: 1.3em; margin: .4em 0 0; }
.notice ul { margin: .6em 0 0; padding-left: 1.2em; font-size: .875rem; max-height: 15em; overflow: auto; }

.letter {
  border: 1px solid var(--control); background: #fff;
  padding: clamp(18px, 5vw, 46px); max-width: 720px; font-size: .9375rem; overflow-x: auto;
}
.letter .head { font-weight: 700; font-size: 1.2rem; }
.letter .sub { color: var(--muted); font-size: .8125rem; 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: .875rem; }
.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: .875rem; }

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

.pricing, .faq { padding: var(--section) 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.plan.featured { border-top: 3px solid var(--brand); padding-top: 18px; }
.plan h3 { margin-top: 0; }
.price { font-size: 1.75rem; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .4em; font-variant-numeric: tabular-nums; }
.price span { font-size: .9375rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan ul { padding-left: 1.1em; margin: .75em 0; font-size: .9375rem; }
.plan li { margin: .3em 0; }

.faq { background: var(--card); border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: .9375rem; }
details p { color: var(--body); font-size: .9375rem; margin: .6em 0 .3em; }

.doc { background: var(--card); border-bottom: 1px solid var(--line); padding: var(--section) 0; }
.doc h2 { margin-top: 2em; }
.doc h3 { margin-top: 1.5em; }
.doc p, .doc li { color: var(--body); }
.doc li { margin: .35em 0; }
.doc ul, .doc ol { padding-left: 1.3em; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius); background: var(--paper); padding: 14px 18px; margin: 24px 0; }
.callout p { margin: .4em 0; }
.template { position: relative; border: 1px solid var(--control); border-radius: var(--radius); background: #fff; margin: 12px 0 8px; }
.template pre { margin: 0; padding: 20px; font: inherit; font-size: .9375rem; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.template .copy { position: absolute; top: 10px; right: 10px; margin: 0; min-height: 32px; padding: 4px 12px; font-size: .8125rem; }

.site-footer { padding: 28px 0 36px; font-size: .8125rem; border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 .6em; }
.disclaimer { color: var(--body); max-width: 56em; }
.siblings a { margin-right: 14px; white-space: nowrap; }

@media (max-width: 640px) {
  :root { --section: 32px; }
  .hero { padding: var(--section) 0 28px; }
  nav { gap: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .step { padding-bottom: 24px; }
  .step + .step { padding-top: 24px; }
}
