:root {
  --page: #f6f5f2;
  --surface: #ffffff;
  --border: #e3e0d9;
  --text: #1f1d1a;
  --muted: #6b6760;
  --accent: #2457c5;
  --accent-hover: #1d4aab;
  --accent-weak: #e8eefb;
  --highlight: #ffd400;
  --text-on-accent: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #151618;
    --surface: #1e2023;
    --border: #33363b;
    --text: #ecebe8;
    --muted: #a19e98;
    --accent: #7aa2ff;
    --accent-hover: #93b4ff;
    --accent-weak: #1f2a45;
    --text-on-accent: #0f1115;
    color-scheme: dark;
  }
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0;
  max-width: 62ch;
}

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

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

::selection {
  background: var(--highlight);
  color: #1f1d1a;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.block {
  scroll-margin-top: 80px;
}

.hero {
  padding-top: 80px;
}

.block + .block {
  margin-top: 112px;
}

main {
  padding-bottom: 112px;
}

.center {
  text-align: center;
}

.center p,
.center h1 {
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: var(--page);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
}

.brand img {
  display: block;
  width: 28px;
  height: 28px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 4px;
}

.header-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.header-links a:hover {
  color: var(--text);
}

.header-bar .btn {
  margin-left: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: none;
}

.hero h1 {
  max-width: 16em;
  margin-bottom: 20px;
}

.hero .lead {
  margin-bottom: 28px;
}

.fine {
  margin-top: 16px;
  max-width: none;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.center .actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.btn svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

a.btn-primary,
a.btn-primary:visited {
  background: var(--accent);
  color: var(--text-on-accent);
}

a.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text-on-accent);
}

a.btn-secondary,
a.btn-secondary:visited {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

a.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

a.btn-small {
  height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.06);
}

.shot picture,
.diagram picture {
  display: block;
}

.shot img,
.diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shot {
  max-width: 960px;
  margin: 48px auto 0;
  text-align: left;
}

.search-band {
  text-align: center;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.search-arrow {
  color: var(--muted);
  flex: none;
}

.search-band p {
  margin: 18px auto 0;
}

kbd {
  display: inline-block;
  vertical-align: middle;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.found {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--highlight);
  color: #1f1d1a;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85em;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-weak);
  color: var(--accent);
}

.icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.feature-grid h3 {
  margin: 16px 0 8px;
}

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 7fr 5fr;
}

.split-reverse .shot {
  order: -1;
}

.split .eyebrow {
  margin-top: 0;
}

.shortcuts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.shortcuts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.shortcuts li:last-child {
  border-bottom: 1px solid var(--border);
}

.split-copy p + p {
  margin-top: 12px;
}

.diagram {
  margin-top: 32px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.faq {
  margin-top: 28px;
}

.faq details + details {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  content: "";
}

.mark {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
}

.mark::before,
.mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}

.mark::before {
  width: 14px;
  height: 2px;
  left: 0;
  top: 6px;
}

.mark::after {
  width: 2px;
  height: 14px;
  left: 6px;
  top: 0;
}

.faq details[open] .mark::after {
  display: none;
}

.faq details p {
  margin: 0 0 16px;
}

.closing {
  background: var(--accent-weak);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 72px 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.closing h2 {
  margin-bottom: 16px;
}

.closing p {
  margin-bottom: 28px;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a:hover,
.footer .brand:hover {
  color: var(--text);
}

.legal {
  margin-left: auto;
}

@media (max-width: 860px) {
  .feature-grid,
  .steps,
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }

  .split-reverse .shot {
    order: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 40px;
  }

  .block + .block {
    margin-top: 64px;
  }

  main {
    padding-bottom: 64px;
  }

  .header-links {
    display: none;
  }

  .closing {
    padding: 48px 20px;
  }

  .legal {
    margin-left: 0;
    flex-basis: 100%;
  }
}
