:root {
  --bg: #fafbf9;
  --surface: #ffffff;
  --soft: #edf2eb;
  --border: #dfe5dc;
  --text: #25352c;
  --muted: #5f6c60;
  --green: #3d5946;
  --green-dark: #2f4636;
  --fact: #43946a;
  --fact-bg: #e6f3ec;
  --fact-text: #1f6a44;
  --review: #d59b24;
  --review-bg: #fbf1dc;
  --review-text: #7a5410;
  --radius: 8px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--fact);
  outline-offset: 3px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.1rem; }
p, ul, ol, dl { margin: 0 0 1em; }
p, li, dd { max-width: var(--measure); }
small, .muted { color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--soft); padding: 0.05em 0.35em; border-radius: 4px; }

.wrap { width: min(100% - 40px, 980px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius);
}
.skip:focus { left: 16px; z-index: 10; }

/* header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 28px; height: 28px; display: block; }
.brand b { font-weight: 650; }
.brand span { color: var(--muted); font-size: 0.95rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.95rem; }
.site-nav a { text-decoration: none; padding: 4px 0; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* sections */
main > section, main > .hero { padding: 56px 0; }
main > section + section { border-top: 1px solid var(--border); }
section.soft { background: var(--soft); border-top: 1px solid var(--border); }
section.soft + section { border-top: 1px solid var(--border); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem;
  color: var(--muted); font-weight: 600; margin: 0 0 10px;
}
.lede { font-size: 1.15rem; color: var(--muted); }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 14px; }
.hero .promise { font-size: 1.2rem; max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.availability { font-size: 0.95rem; color: var(--muted); border-left: 3px solid var(--border); padding-left: 12px; max-width: 48ch; }

/* buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.3;
  border: 1px solid transparent;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }

/* popup example */
.popup {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(37, 53, 44, 0.05), 0 8px 24px rgba(37, 53, 44, 0.06);
  font-size: 0.86rem;
}
.popup-fig { margin: 0; max-width: 400px; width: 100%; justify-self: end; }
.popup-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.popup-head img { width: 28px; height: 28px; }
.popup-head b { display: block; font-size: 0.95rem; }
.popup-head small { font-size: 0.78rem; }
.popup-head .right { margin-left: auto; color: var(--muted); font-size: 0.8rem; }
.popup-tabs { display: flex; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.popup-tabs span { padding: 10px 0; color: var(--muted); }
.popup-tabs .on { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); }
.popup-body { padding: 14px 16px 16px; }
.popup-body h3 { font-size: 0.95rem; margin: 0 0 10px; }
.ready { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.ready b { display: block; font-size: 0.92rem; }
.ready .meta { color: var(--muted); font-size: 0.8rem; margin: 2px 0 8px; }
.note-review { background: var(--review-bg); color: var(--review-text); border-radius: 6px; padding: 6px 9px; font-size: 0.8rem; margin-bottom: 10px; }
.mock-btn {
  display: block; text-align: center; background: var(--green); color: #fff; border-radius: 6px;
  padding: 9px; font-weight: 600; font-size: 0.86rem;
}
.popup-foot { border-top: 1px solid var(--border); padding: 9px 16px; font-size: 0.75rem; color: var(--muted); }
figcaption.cap { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff;
  font-weight: 650; font-size: 0.9rem; margin-bottom: 10px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: 0.98rem; }

/* filled form example */
.form-example { list-style: none; padding: 0; margin: 28px 0 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); max-width: 640px; }
.form-example li { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 0.92rem; }
.form-example li:first-child { border-top: 0; }
.form-example .q { color: var(--muted); font-size: 0.86rem; }
.form-example .a { padding: 4px 8px; border-radius: 5px; border: 1px solid var(--border); min-height: 1.6em; }
.form-example .fact .a { background: var(--fact-bg); border-color: #bfdccb; }
.form-example .review .a { background: var(--review-bg); border-color: #ebd49c; }
.form-example .a:empty::after { content: ""; }
.tag { font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.fact .tag { color: var(--fact-text); }
.review .tag { color: var(--review-text); }
.manual .tag { color: var(--muted); }
.form-example + p { margin-top: 12px; }

/* features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; margin: 0; }
.features div { }
.features dt { font-weight: 650; margin-bottom: 4px; }
.features dd { margin: 0; font-size: 0.97rem; color: var(--muted); }

/* lists */
.checklist { padding-left: 1.2em; }
.checklist li { margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }

/* faq */
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* docs pages (support, privacy, history) */
.doc { padding: 48px 0 64px; }
.doc h1 { margin-bottom: 8px; }
.doc h2 { margin-top: 40px; font-size: 1.35rem; }
.doc h3 { margin-top: 24px; }
.doc .contents { font-size: 0.95rem; padding-left: 1.2em; columns: 2; column-gap: 32px; max-width: 48ch; }
.doc .contents li { break-inside: avoid; }
.callout { background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; max-width: var(--measure); }
.callout p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0 0 1em; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); }
th { font-weight: 650; }
.history-list { list-style: none; padding: 0; margin: 0; }
.history-list > li { border-top: 1px solid var(--border); padding: 22px 0; display: grid; grid-template-columns: 180px 1fr; gap: 8px 24px; }
.history-list > li:last-child { border-bottom: 1px solid var(--border); }
.history-list h2 { font-size: 1.15rem; margin: 0 0 2px; }
.history-list .when { color: var(--muted); font-size: 0.9rem; }
.history-list .status { display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); margin-top: 6px; }
.history-list ul { padding-left: 1.2em; margin: 8px 0 0; font-size: 0.95rem; }
.history-list ul li { margin-bottom: 4px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer p { margin: 6px 0 0; max-width: 46ch; }

@media (max-width: 840px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .popup-fig { justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .features, .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  main > section, main > .hero { padding: 40px 0; }
  .doc .contents { columns: 1; }
  .form-example li { grid-template-columns: 1fr; gap: 4px; }
  .form-example .tag { justify-self: start; }
  .history-list > li { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
