:root {
  --ink: #1d2433;
  --muted: #5b6578;
  --line: #e3e7ee;
  --bg: #ffffff;
  --soft: #f5f7fa;
  --accent: #2f6f5e;
  --accent-ink: #ffffff;
  --radius: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 20;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus { top: 10px; }

[id] { scroll-margin-top: 76px; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

header.top {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .96);
  z-index: 5;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
}

.nav nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav nav a:hover { color: var(--ink); }

.nav nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

button.btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}

button.btn.ghost { border: 1.5px solid var(--accent); }

.hero {
  padding-top: 64px;
  padding-bottom: 48px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 760px;
}

.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 700px;
  margin: 0 0 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

section.soft { background: var(--soft); }

h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 12px;
  line-height: 1.25;
}

.sub {
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

ul.clean {
  padding-left: 20px;
  margin: 0;
}

ul.clean li { margin: 6px 0; }

ol.steps { padding-left: 22px; }

ol.steps li { margin: 10px 0; }

.price {
  font-size: 34px;
  font-weight: 700;
  margin: 6px 0 2px;
}

.price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.tier { display: flex; flex-direction: column; }

.tier ul { flex: 1; }

.tier.featured { border: 2px solid var(--accent); }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

.compare {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: #fff;
  margin: 10px 0;
}

summary { cursor: pointer; font-weight: 600; }

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.boundary {
  font-size: 15px;
  color: var(--muted);
}

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

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 16px;
}

.foot-nav a {
  color: var(--muted);
  text-decoration: none;
}

.foot-nav a:hover { color: var(--accent); }

a.quiet {
  color: inherit;
  text-decoration: none;
}

a.quiet:hover {
  color: var(--accent);
  text-decoration: underline;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.eyebrow a { text-decoration: none; }

.eyebrow a:hover { text-decoration: underline; }

.callout {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin: 0 0 8px;
  max-width: 720px;
}

.callout p { margin: 0; }

.guide li { margin: 10px 0; }

.example {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 16px;
  background: var(--soft);
  max-width: 720px;
}

.example p { margin: 4px 0; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}

.sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 32px;
  max-width: 760px;
  overflow-wrap: break-word;
}

.sheet h3 {
  font-size: 18px;
  margin: 22px 0 6px;
}

.sheet p { margin: 0 0 8px; }

.doc-title {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  margin: 6px 0 8px;
}

.placeholder { color: var(--muted); }

dl.meta {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 6px 12px;
  margin: 16px 0;
}

dl.meta dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

dl.meta dd { margin: 0; }

.motion {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0 12px;
}

.motion p { margin: 4px 0; }

.sheet ol { margin: 0; padding-left: 1.3em; }

.sheet ol li { margin: 4px 0; }

.fine {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}

#n-notes { white-space: pre-wrap; }

a.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

a.tool-card:hover,
a.tool-card:focus-visible { border-color: var(--accent); }

a.tool-card h2 {
  font-size: 18px;
  margin: 0 0 6px;
  line-height: 1.3;
}

a.tool-card p { margin: 0 0 14px; }

a.tool-card .more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.generator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 48px;
}

.generator > * { min-width: 0; }

.preview-col { position: sticky; top: 76px; }

.form-card h2 { font-size: 22px; }

.field { margin: 0 0 14px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 6px;
}

.hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.form-card input,
.form-card select,
.form-card textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.form-card textarea {
  min-height: 148px;
  resize: vertical;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 4px;
}

.jumps a {
  font-weight: 600;
  text-decoration: none;
}

.jumps a:hover { text-decoration: underline; }

section.phase {
  border: none;
  padding: 8px 0 12px;
}

section.phase + section.phase {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 24px;
}

.phase .lede {
  color: var(--muted);
  margin: 0 0 8px;
  max-width: 42rem;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
}

.checks li { border-bottom: 1px solid var(--line); }

.checks label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 2px;
  cursor: pointer;
  font-weight: 400;
}

.checks input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.28rem;
  accent-color: var(--accent);
  flex: none;
}

.block { padding-bottom: 8px; }

@media (max-width: 800px) {
  .generator { grid-template-columns: 1fr; }
  .preview-col { position: static; }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 40px;
    padding-bottom: 32px;
  }
  section { padding: 40px 0; }
  .nav nav { gap: 12px; }
  .pair { grid-template-columns: 1fr; }
  dl.meta { grid-template-columns: 1fr; gap: 2px; }
  dl.meta dd { margin-bottom: 8px; }
  .sheet { padding: 20px 16px 24px; }
}

@media print {
  body.tool header.top,
  body.tool footer,
  body.tool .no-print {
    display: none !important;
  }

  body.tool {
    font-size: 12pt;
    background: #fff;
  }

  body.tool .wrap {
    max-width: none;
    padding: 0;
  }

  body.tool .sheet {
    border: none;
    max-width: none;
    padding: 0;
  }

  body.tool section,
  body.tool section.soft {
    border: none;
    background: #fff;
    padding: 0;
  }

  body.tool .preview-col { position: static; }

  body.tool a { text-decoration: none; }

  @page { margin: 0.7in; }
}
