/* Tidyfield Donor Sync website. System fonts, no external requests. */
:root {
  --ink: #1b2733;
  --primary: #0e5e6f;
  --primary-dark: #0a4855;
  --primary-soft: #e3f0f2;
  --accent: #e9a23b;
  --accent-soft: #fdf3e2;
  --surface: #f5f7f8;
  --border: #dde3e8;
  --muted: #5a6b78;
  --success: #1e7d4f;
  --danger: #b42318;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 39, 51, 0.06), 0 8px 24px rgba(27, 39, 51, 0.08);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 0.05em 0.35em; }
kbd { background: #fff; box-shadow: inset 0 -1px 0 var(--border); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.96); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.logo img { width: 30px; height: 30px; }
.logo small { display: block; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; line-height: 1; }
.logo span { line-height: 1.1; }
.nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 1rem; line-height: 1.2; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-small { padding: 8px 14px; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 8px; }

/* Hero */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--surface), #fff); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.hero .note { font-size: 0.92rem; color: var(--muted); }
.shot { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.hero .shot { margin-top: 36px; }
figure { margin: 0; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

/* Sections */
section.band { padding: 64px 0; }
section.band.alt { background: var(--surface); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split.reverse { grid-template-columns: 7fr 5fr; } .split.reverse > :first-child { order: 2; } }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success); transform: rotate(-45deg); }
.callout { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.2em; }
.callout.warn { border-left-color: var(--accent); background: var(--accent-soft); }
.callout p:last-child { margin-bottom: 0; }
.sidebar-shot { max-width: 320px; margin: 0 auto; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 820px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: #fff; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--ink); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }

/* Docs */
.doc { display: grid; gap: 40px; grid-template-columns: 1fr; padding: 40px 0 64px; }
@media (min-width: 900px) { .doc { grid-template-columns: 240px 1fr; } }
.doc-nav { font-size: 0.95rem; }
.doc-nav ul { list-style: none; padding: 0; margin: 0; position: sticky; top: 84px; }
.doc-nav a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.doc-nav a:hover { background: var(--surface); }
.doc-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.prose code { overflow-wrap: anywhere; }
.prose th { background: var(--surface); }
.page { padding: 48px 0 64px; }
.page-head { padding: 48px 0 8px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 720px; }
details.faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0 28px; font-size: 0.93rem; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: 28px; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  section.band { padding: 44px 0; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .nav { order: 3; width: 100%; gap: 12px; flex-wrap: nowrap; overflow-x: auto; }
  .nav a { font-size: 0.88rem; white-space: nowrap; }
}
@media print { .site-header, .site-footer, .doc-nav { display: none; } }
