:root {
  --ink: #14242e;
  --body: #3b4a54;
  --muted: #566570;
  --paper: #ffffff;
  --tint: #f4f5f3;
  --line: #d9dddb;
  --accent: #1c5266;
  --accent-dark: #143d4c;
  --on-dark: #dfe7ea;
  --error: #a32020;
  --focus: #b8560b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  text-wrap: balance;
}

h1 { max-width: 18em; font-size: clamp(2.25rem, 5.2vw, 3.875rem); letter-spacing: -0.012em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
main:focus { outline: none; }

a { color: var(--accent); }

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

.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 0.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-height);
}

.wordmark {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav { margin-left: auto; }
.site-header nav ul { display: flex; gap: 1.75rem; }
.site-header nav a {
  color: var(--body);
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.3em; }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1.3 var(--sans);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--accent-dark); }
.button[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.button-small { padding: 0.55rem 1rem; font-size: 0.9375rem; }

/* Hero */
.hero { padding-block: clamp(4rem, 10vw, 8rem) clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
.lede { max-width: 43rem; margin-top: 1.75rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; }
.hero-action { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.5rem; }
.helper { color: var(--muted); font-size: 0.9375rem; }
.supporting {
  margin-top: 3rem;
  padding-top: 1.25rem;
  max-width: 43rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.prose { max-width: 42rem; }
.prose p + p { margin-top: 1.25rem; }

/* Features */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(3rem, 7vw, 6rem);
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}
.feature:last-child { padding-bottom: 0; }

/* Product screenshots */
.shot { grid-column: 1 / -1; min-width: 0; margin: 0.75rem 0 0; }
.shot-hero { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(20 36 46 / 6%), 0 8px 24px rgb(20 36 46 / 7%);
}
.shot figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; }
.shot-zoomable { cursor: zoom-in; }
.shot-zoom {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0.875rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--paper);
  color: var(--accent);
  font: 600 0.9375rem/1.3 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.shot-zoom:hover { background: var(--accent); color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Screenshot lightbox */
html.lightbox-open { overflow: hidden; }
.lightbox {
  width: min(100vw - 1rem, 90rem);
  max-width: none;
  max-height: calc(100dvh - 1rem);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--body);
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgb(14 26 34 / 82%); }
.lightbox-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.lightbox-title { color: var(--ink); font-size: 0.875rem; line-height: 1.35; }
.lightbox-close {
  flex: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.875rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font: 600 0.9375rem/1.3 var(--sans);
  cursor: pointer;
}
.lightbox-close:hover { background: var(--accent-dark); }
.lightbox-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.lightbox-scroll:focus-visible { outline-offset: -3px; }
.lightbox-scroll img { display: block; width: max(100%, 1080px); max-width: 1440px; height: auto; }

.eyebrow { margin-bottom: 0.625rem; color: var(--accent); font-size: 0.875rem; font-weight: 600; }
.benefit { margin-top: 0.875rem; }

.ticks { max-width: 42rem; }
.ticks li { position: relative; padding-left: 1.375rem; }
.ticks li + li { margin-top: 0.75rem; }
.ticks li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}

/* Roles */
.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(3rem, 7vw, 6rem);
  margin: 0;
}
.role { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.role dt { color: var(--ink); font-weight: 600; }
.role dd { margin: 0.375rem 0 0; }

/* Social proof */
.proof { padding-block: 2.5rem; border-block: 1px solid var(--line); text-align: center; }
.proof p { color: var(--ink); font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.625rem); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 1.125rem 2.25rem 1.125rem 0;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  top: 0.95rem;
  right: 0.25rem;
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.4;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq details p { max-width: 40rem; padding-bottom: 1.5rem; }

/* Final CTA and form */
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-dark :focus-visible { outline-color: #f2a65a; }
.demo-body { margin-top: 1.25rem; }

.form-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 4px;
  background: var(--paper);
  color: var(--body);
}
.form-panel :focus-visible { outline-color: var(--focus); }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.field[data-field="message"] { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.3rem; color: var(--ink); font-size: 0.9375rem; font-weight: 600; }

.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #76838b;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-error { margin-top: 0.3rem; color: var(--error); font-size: 0.875rem; }

.form-summary {
  margin-bottom: 1.5rem;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--error);
  background: #fbefef;
  color: var(--ink);
  font-size: 0.9375rem;
}
.form-summary:focus { outline: none; }
.form-summary ul { margin-top: 0.25rem; }
.form-summary a { color: var(--error); }

.form-success { border-left: 4px solid var(--accent); color: var(--ink); font-size: 1.125rem; }
.form-success:focus { outline: none; }

/* Honeypot: off-screen for people, present for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding-block: 3rem; background: #0e1a22; color: #c3ced3; font-size: 0.9375rem; }
.site-footer .wordmark { display: block; margin-bottom: 0.625rem; color: #fff; }
.site-footer p:last-child { max-width: 46rem; }

.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 0.875rem; }
  .site-header nav { order: 3; width: 100%; margin-left: 0; }
  .site-header nav ul { justify-content: space-between; gap: 1rem; }
  .split, .feature, .roles { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 2.5rem, 72rem); }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-action .button, .form-panel .button { width: 100%; }
  .wordmark { font-size: 1rem; }
  .header-inner { gap: 0.375rem 0.75rem; padding-block: 0.625rem; }
  .site-header .wordmark { font-size: clamp(0.875rem, 4.1vw, 1rem); }
  .site-header nav a { font-size: 0.875rem; }
  .button-small { padding: 0.55rem 0.625rem; font-size: 0.8125rem; }
}

@media (max-width: 374px) {
  .header-inner { width: calc(100% - 1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header nav, .button, .skip-link, .shot-zoom { display: none; }
  .site-header { position: static; }
}
