:root {
  color-scheme: light dark;
  --ink: #101318;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --muted: #5e6670;
  --line: #d9ddd9;
  --teal: #087e78;
  --teal-dark: #075e5a;
  --coral: #dd5c4b;
  --focus: #126eae;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

a { color: var(--teal-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--coral); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.9rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.nav {
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.nav-links { display: flex; gap: 1.15rem; }
.nav-links a { color: var(--ink); font-weight: 650; text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--teal-dark); text-decoration: underline; }

.band { border-bottom: 1px solid var(--line); }
.band-dark { background: var(--ink); color: #fff; }
.band-teal { background: #d9efeb; }

.container { max-width: var(--max); margin: 0 auto; padding: 3rem 1.25rem; }
.container.narrow { max-width: 820px; }

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--coral);
  font-size: 0.79rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: 0; }
h1 { max-width: 820px; margin: 0; font-size: clamp(2.3rem, 7vw, 4.5rem); }
h2 { margin: 2.8rem 0 0.75rem; font-size: 1.75rem; }
h3 { margin: 1.7rem 0 0.45rem; font-size: 1.18rem; }
.lead { max-width: 760px; margin: 1rem 0 0; font-size: 1.18rem; color: #d7dcdf; }
.sublead { max-width: 760px; font-size: 1.12rem; color: var(--muted); }
.updated { color: var(--muted); font-size: 0.94rem; }

.summary-grid, .support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.summary-item, .support-item { background: var(--surface); padding: 1.35rem; }
.summary-item strong, .support-item strong { display: block; margin-bottom: 0.3rem; }
.summary-item p, .support-item p { margin: 0; color: var(--muted); }

.callout {
  margin: 2rem 0;
  padding: 1.15rem 1.3rem;
  border-left: 4px solid var(--teal);
  background: #e6f3f0;
}
.callout strong { display: block; }

.toc {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.toc strong { display: block; margin-bottom: 0.45rem; }
.toc ul { columns: 2; margin: 0; padding-left: 1.2rem; }

ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.4rem; }

.action-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid var(--teal-dark);
  border-radius: 6px;
  background: var(--teal-dark);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--teal-dark); }
.button:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 750; }
details p, details ul { max-width: 780px; }

form { margin-top: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 700; }
label span { display: block; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #aab1b5;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.72rem;
  font: inherit;
}
textarea { min-height: 180px; resize: vertical; }
.full { grid-column: 1 / -1; }
.checkbox { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 500; }
.checkbox input { width: 20px; min-height: 20px; margin-top: 0.25rem; }
.hint { color: var(--muted); font-size: 0.92rem; }
.hidden { position: absolute; left: -9999px; }
button.button { cursor: pointer; font: inherit; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.footer-inner p { margin: 0; }

@media (max-width: 760px) {
  .nav { align-items: flex-start; }
  .nav-links { flex-direction: column; gap: 0.25rem; text-align: right; }
  .container { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .summary-grid, .support-grid, .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .toc ul { columns: 1; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f5f5;
    --paper: #0f1216;
    --surface: #171b20;
    --muted: #b3bbc2;
    --line: #343b41;
    --teal: #56d4c8;
    --teal-dark: #6fddd2;
    --coral: #ff7a67;
  }
  .band-dark { background: #080a0d; }
  .band-teal, .callout { background: #12302e; }
  .button { color: #081312; background: var(--teal-dark); }
  .button.secondary { color: var(--teal-dark); background: transparent; }
}
