@import url("/fonts/fonts.css");

:root {
  --ink: #18232c;
  --text: #23303a;
  --muted: #3d4b56;
  --soft: #5d6b75;
  --line: #dde5ea;
  --mist: #eef3f6;
  --blue: #126f99;
  --blue-dark: #0b4f6e;
  --blue-pale: #e3f1f8;
  --signal: #c4351b;
  --night: #18232c;
  --head: "Barlow", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: #fff; color: var(--text); font: 18px/1.6 var(--body); }
img, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-weight: 700; letter-spacing: -0.015em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.2vw, 36px); }
h3 { font-weight: 600; font-size: 22px; line-height: 1.25; }
h4 { font-weight: 600; font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.lede { font-size: 20px; color: var(--muted); max-width: 36em; }
.muted { color: var(--soft); }
.small { font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 6px; border: 0;
  font: 600 17px/1.2 var(--head); text-decoration: none; cursor: pointer; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--blue); padding-left: 8px; padding-right: 8px; }
.btn-quiet:hover { background: transparent; color: var(--blue-dark); text-decoration: underline; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: var(--blue-pale); color: var(--blue-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; }
.logo img { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; font: 600 16px/1.2 var(--head); }
.nav a { color: var(--text); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.nav .btn { color: #fff; padding: 11px 18px; min-height: 44px; }
.nav .btn:hover { color: #fff; }
.menu { display: none; }
@media (max-width: 960px) {
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; font: 600 16px/1 var(--head); padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; min-height: 44px; }
  .menu summary::-webkit-details-marker { display: none; }
  .nav { display: none; }
  .menu[open] + .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .menu[open] + .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu[open] + .nav a[aria-current="page"] { box-shadow: none; }
  .menu[open] + .nav .btn { margin-top: 14px; border-bottom: 0; }
}

/* Home hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }
.stack { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
.stack img { width: 100%; display: block; }
.stack ol { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid #c9d6de; display: flex; flex-direction: column;
  justify-content: space-between; font: 500 15px/1.3 var(--head); color: var(--soft); }
.stack ol li:first-child { color: var(--signal); font-weight: 700; }
.stack ol li:first-child span { display: block; font-weight: 500; }
.hero-caption { margin: 18px 0 0; font-size: 15px; color: var(--soft); }

/* Bands and grids */
.band { padding: 72px 0; }
.band-mist { background: var(--mist); }
.band-rule { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { max-width: 24em; }
.band-intro { margin: 0 0 36px; color: var(--muted); max-width: 40em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.grid-3 p, .grid-2 p { color: var(--muted); }
.case img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 4px; }
.case figcaption { margin-top: 12px; font: 600 19px/1.3 var(--head); color: var(--ink); }
.quote { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; max-width: 900px; margin: 0 auto; }
.quote img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.quote blockquote { margin: 0; flex: 1 1 420px; }
.quote blockquote p { font: 500 clamp(21px, 2.4vw, 26px)/1.35 var(--head); color: var(--ink); margin-bottom: 18px; }
.quote footer { font-size: 16px; color: var(--soft); }
.logos { display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; margin-top: 8px; }
.logos img { height: 44px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: 0.85; }
.logos-label { font: 600 16px var(--head); color: var(--soft); margin: 28px 0 12px; }
.cta { background: var(--blue); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; color: var(--blue-pale); }
.cta > .wrap > div { flex: 1 1 480px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head a { font: 600 17px var(--head); }

/* Page header for inner pages */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.06; max-width: 18em; }
.page-head .lede { margin: 0; }
.crumbs { font-size: 15px; color: var(--soft); margin-bottom: 14px; }
.crumbs a { color: var(--soft); }

/* Feature lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 50% 100%); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split img { width: 100%; display: block; border-radius: 4px; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.flow > div { padding: 28px; background: #fff; }
.flow > div + div { border-left: 1px solid var(--line); }
.flow h3 { margin-bottom: 6px; }
.flow .flow-step { font: 600 15px var(--head); color: var(--blue); margin: 0 0 8px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare > div { border: 1px solid var(--line); border-radius: 6px; padding: 28px; background: #fff; }
.compare > div:last-child { border-color: var(--blue); box-shadow: inset 0 4px 0 var(--blue); }
.product { padding: 48px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product .meta { font-size: 16px; color: var(--soft); }
.docs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.docs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.docs strong { font: 600 19px var(--head); color: var(--ink); }

/* Custom sections added through the Bildz editor */
.bildz-content-section { padding: 56px 0; border-top: 1px solid var(--line); color: var(--section-text-color, inherit); }
.bildz-content-image-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.bildz-content-image-text img { width: 100%; border-radius: 4px; display: block; }
.bildz-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 20px 0; }
.bildz-content-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 12px; }
.bildz-content-section .eyebrow { font: 700 clamp(28px, 3.2vw, 36px)/1.15 var(--head); color: var(--ink); }

/* Articles and archive */
.article-head { padding: 56px 0 28px; }
.article-head h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.article-meta { font-size: 16px; color: var(--soft); }
.article-meta a { color: var(--soft); }
.prose { padding-bottom: 56px; }
.prose > * { max-width: 760px; }
.prose img { display: block; margin: 8px 0; border-radius: 3px; }
.prose p img { display: inline-block; margin: 4px 0; }
.prose figure { margin: 28px 0; }
.prose figcaption { font-size: 15px; color: var(--soft); margin-top: 8px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--blue); color: var(--muted); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; margin: 24px 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; margin: 24px 0; font-size: 16px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li > p { margin: 0 0 0.4em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.tags a { display: inline-block; font-size: 15px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); }
.tags a:hover { border-color: var(--blue); color: var(--blue); }
.notice { background: var(--mist); border-left: 4px solid var(--blue); padding: 16px 20px; margin: 0 0 28px; max-width: 760px; }
.notice p { margin: 0; }
.comments { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 760px; }
.comments article { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comments .who { font-weight: 600; color: var(--ink); }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px 0 64px; border-top: 1px solid var(--line); }
.post-nav a { font: 600 17px/1.3 var(--head); max-width: 45%; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.card .thumb { display: block; margin-bottom: 14px; }
.card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 4px; background: var(--mist); }
.card .date { margin: 0 0 6px; font-size: 15px; color: var(--soft); }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue); text-decoration: underline; }
.card p { font-size: 17px; color: var(--muted); margin: 0; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list .date { flex: 0 0 170px; color: var(--soft); font-size: 15px; padding-top: 3px; }
.list a { flex: 1 1 320px; font: 600 20px/1.3 var(--head); color: var(--ink); text-decoration: none; }
.list a:hover { color: var(--blue); text-decoration: underline; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.pager a, .pager span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font: 600 16px var(--head); }
.pager span[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--mist); color: var(--text); text-decoration: none; font-size: 16px; }
.chips a:hover, .chips a[aria-current="page"] { background: var(--blue); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; padding: 56px 0 72px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 18px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; font: 400 17px/1.4 var(--body); padding: 12px 14px;
  border: 1px solid #9fb0bb; border-radius: 6px; min-height: 48px; color: var(--text); background: #fff; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .optional { font-weight: 400; color: var(--soft); }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .cf-turnstile { margin: 4px 0 18px; }
.form-status { margin: 14px 0 0; min-height: 1.6em; }
.form-done { background: var(--mist); border-left: 4px solid var(--blue); padding: 20px; }
.contact-aside { background: var(--mist); border-radius: 6px; padding: 28px; align-self: start; }
.contact-aside h2 { font-size: 24px; }
.contact-aside ul { list-style: none; padding: 0; margin: 0; }
.contact-aside li { margin-bottom: 10px; }

/* Footer */
.site-footer { background: var(--night); color: #c5d0d7; font-size: 16px; }
.site-footer a { color: #e3ebf0; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 56px 0 40px; }
.foot-grid h2 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-logo { background: #fff; display: inline-flex; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.foot-logo img { height: 24px; width: auto; display: block; }
.foot-base { border-top: 1px solid #2e3c47; padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 15px; }
.foot-base nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* 404 */
.not-found { padding: 96px 0; }

@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid, .grid-3, .grid-2, .split, .compare, .pricing, .cards, .contact-grid, .bildz-content-image-text, .bildz-content-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { padding: 56px 0; }
  .post-nav a { max-width: 100%; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .stack { grid-template-columns: minmax(0, 1fr); }
  .stack ol { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; border-left: 0; border-top: 2px solid #c9d6de; padding: 10px 0 0; }
  .list .date { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Product imagery: logos and examples stay modest beside the copy */
.product > img, .product > div > img { max-width: 380px; justify-self: center; }
