:root {
  --blue: #2196f3;
  --blue-deep: #1565c0;
  --blue-accent: #42a5f5;
  --blue-soft: #e3f2fd;
  --canvas: #f5faff;
  --canvas-mid: #e8f3fc;
  --surface: #ffffff;
  --ink: #0d2137;
  --muted: #5c7a99;
  --line: #d6e4f0;
  --shadow: 0 12px 32px rgba(33, 150, 243, 0.12);
  --radius: 24px;
  --header-h: 72px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --blue: #64b5f6;
  --blue-deep: #90caf9;
  --blue-accent: #42a5f5;
  --blue-soft: #153556;
  --canvas: #081a2b;
  --canvas-mid: #0a1f33;
  --surface: #0f2740;
  --ink: #f5faff;
  --muted: #94b4d4;
  --line: #1a3f66;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(66, 165, 245, 0.18), transparent 55%),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas-mid) 55%, var(--canvas) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-inner,
.footer-inner {
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.header-actions {
  gap: 8px;
}

button {
  font: inherit;
  cursor: pointer;
}

.theme-toggle,
.toc-toggle {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.toc-toggle {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding: 32px 0 72px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toc-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.toc a:hover,
.toc a[aria-current="true"] {
  background: var(--blue-soft);
  color: var(--ink);
}

.hero {
  padding: 8px 0 8px;
}

.brand-kicker {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0;
  max-width: 42rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 40px;
  padding: 0;
  list-style: none;
}

.promise-grid li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.promise-icon {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.promise-grid strong,
.promise-grid span {
  display: block;
}

.promise-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  margin: 0 0 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 800;
}

section p,
section ul {
  margin: 0 0 12px;
}

section p:last-child,
section ul:last-child {
  margin-bottom: 0;
}

section ul {
  padding-left: 1.15rem;
}

section li {
  margin: 0 0 8px;
}

section li:last-child {
  margin-bottom: 0;
}

.contact-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.contact-link:hover {
  background: var(--blue-deep);
  color: #fff;
}

.fine-print {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .toc-toggle {
    display: inline-flex;
    align-items: center;
  }

  .layout {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .toc {
    display: none;
    position: static;
    max-height: none;
    margin-bottom: 8px;
  }

  .toc.is-open {
    display: block;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .toc,
  .header-actions,
  .skip-link,
  .theme-toggle,
  .contact-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .layout {
    display: block;
    width: auto;
  }

  section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
