/* The blog's own stylesheet. The landing page is a design-tool export with its
   styles inlined per element; these pages are hand-written, so the shared
   language lives here as tokens taken from that export's palette. */

/* Inter, the same variable subset the landing page already ships and every
   visitor has cached by the time they reach a post. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/font-dad0daea.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #101614;
  --body: #35423e;
  --muted: #616e6a;
  --soft: #4a5854;
  --line: #e6e9e5;
  --line-2: #dfe3df;
  --tint: #f9faf8;
  --tint-2: #f6f7f5;
  --teal: #0f6b5c;
  --teal-dark: #1d5b4e;
  --deep: #294540;
  --mint: #4fc0a8;
  --mint-tint: #eef5f2;
  --mint-tint-2: #dff0eb;
  --amber: #9c6210;
  --amber-tint: #fdf6ea;
  --radius: 14px;
  --measure: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }

/* ---------------------------------------------------------------- chrome -- */

header.site {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
header.site .spacer { flex: 1; }
.brand, .foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -.01em;
}
.mark { display: flex; }
.wordmark { color: var(--ink); }
.wordmark span { font-weight: 450; color: var(--soft); }
.wordmark b { font-weight: 750; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { color: var(--teal); font-weight: 550; }

/* The hamburger and the in-menu sign-in exist only on narrow screens. Both are
   hidden here rather than in the media query so that a browser which never
   matches it cannot show them. */
.nav-toggle, .nav-signin { display: none; }
.nav-toggle {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--teal); color: var(--teal); }
.nav-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-toggle svg { width: 19px; height: 19px; display: block; margin: 0 auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

.cta, .ghost {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.cta { background: var(--teal); color: #fff; }
.cta:hover { background: var(--teal-dark); color: #fff; }
.ghost { border: 1px solid var(--line-2); color: var(--soft); }
.ghost:hover { border-color: var(--teal); color: var(--teal); }

footer.site {
  margin-top: 72px;
  background: var(--ink);
  color: #a9bdb8;
  font-size: 13.5px;
}
footer.site .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}
footer.site .wordmark { color: #dbe8e4; }
footer.site .wordmark span { color: #a9bdb8; }
footer.site p { margin: 0; flex: 1 1 240px; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: #7d968e; text-decoration: none; }
footer.site a:hover { color: var(--mint); }
footer.site small { flex-basis: 100%; color: #7d968e; }

/* ------------------------------------------------------------------ post -- */

main { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

article { max-width: var(--measure); margin: 0 auto; padding: 40px 0 0; }

.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs span { padding: 0 4px; }

.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--teal);
  font-weight: 650;
  margin: 0;
}

h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 680;
  color: var(--ink);
  margin: 12px 0 0;
  text-wrap: balance;
}

.dek {
  font-size: 19px;
  line-height: 1.6;
  color: var(--soft);
  margin: 16px 0 0;
  text-wrap: pretty;
}

.byline { font-size: 13.5px; color: var(--muted); margin: 20px 0 0; }
.byline span { padding: 0 4px; color: var(--line-2); }

figure.cover { margin: 30px 0 8px; }
figure.cover img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
figcaption a { color: var(--muted); }

article h2 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 660;
  color: var(--ink);
  margin: 48px 0 0;
  text-wrap: balance;
}
article h3 {
  font-size: 19.5px;
  line-height: 1.35;
  font-weight: 640;
  color: var(--ink);
  margin: 34px 0 0;
}
article h2 + p, article h3 + p { margin-top: 12px; }
article p { margin: 18px 0 0; text-wrap: pretty; }
article ul, article ol { margin: 18px 0 0; padding-left: 22px; }
article li { margin: 8px 0; }
article li::marker { color: var(--mint); }
article ol li::marker { color: var(--teal); font-weight: 600; }
article strong { color: var(--ink); font-weight: 620; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--mint-tint);
  color: var(--teal-dark);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

blockquote {
  margin: 26px 0 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--mint);
  color: var(--soft);
  font-size: 18px;
}
blockquote p { margin: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0 0; }

/* ---------------------------------------------------------------- tables -- */
/* Wide tables scroll inside their own box; the page body never does. */

.table-wrap { overflow-x: auto; margin: 26px 0 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 520px; }
caption {
  caption-side: bottom;
  text-align: left;
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--tint-2);
  color: var(--ink);
  font-weight: 620;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--tint); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.good { color: var(--teal); font-weight: 600; }
.bad { color: #b4472e; font-weight: 600; }

/* --------------------------------------------------------------- figures -- */

figure.chart {
  margin: 30px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}
figure.chart svg { width: 100%; height: auto; display: block; }
figure.chart figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
/* build_blog.py wraps every chart in this. The SVGs carry a 700-unit viewBox
   with ~12px labels inside; scaled to a 335px phone those labels land near 5px
   and stop being readable. Below the breakpoint the chart keeps a legible
   minimum width and scrolls sideways inside its own box instead, the same
   bargain the tables make. */
.chart-scroll { overflow-x: auto; }

.callout {
  margin: 30px 0 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--mint-tint);
  border: 1px solid #cfe6dd;
  font-size: 15.5px;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 10px; }
.callout .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 650;
  color: var(--teal);
  margin-bottom: 6px;
}
.callout.warn { background: var(--amber-tint); border-color: #f0dfc0; }
.callout.warn .label { color: var(--amber); }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint-tint-2);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 26px 0 0; }
.steps > li { position: relative; padding: 0 0 0 46px; margin: 0 0 26px; }
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  display: grid;
  place-items: center;
}
.steps > li > strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

.key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.key-facts div { background: #fff; padding: 16px 18px; }
.key-facts b {
  display: block;
  font-size: 25px;
  letter-spacing: -.02em;
  color: var(--ink);
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}
.key-facts span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------- cta -- */

.cta-card {
  margin: 52px 0 0;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--deep);
  color: #cfe0da;
}
.cta-card h2 { margin: 0; color: #fff; font-size: 24px; letter-spacing: -.02em; }
.cta-card p { margin: 12px 0 0; font-size: 16px; }
.cta-card .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cta-card .ghost { border-color: #4d6a63; color: #cfe0da; }
.cta-card .ghost:hover { border-color: var(--mint); color: var(--mint); }
.cta-card small { display: block; margin-top: 14px; font-size: 12.5px; color: #93aca5; }

/* --------------------------------------------------------------- related -- */

.related { max-width: var(--measure); margin: 56px auto 0; }
.related h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 18px; font-weight: 620; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.rel { text-decoration: none; display: block; }
.rel img { border-radius: 10px; aspect-ratio: 8 / 5; object-fit: cover; margin-bottom: 10px; }
.rel .kicker { display: block; margin-bottom: 4px; }
.rel-title { color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.35; display: block; }
.rel:hover .rel-title { color: var(--teal); }

/* ------------------------------------------------------------ blog index -- */

.blog-hero { max-width: var(--measure); margin: 0 auto; padding: 56px 0 40px; }
.blog-hero h1 { margin-top: 12px; }
.blog-hero .dek { max-width: 620px; }

.lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  align-items: center;
  text-decoration: none;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}
.lead:hover { border-color: var(--mint); }
.lead img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.lead h2 { margin: 8px 0 0; font-size: 27px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); font-weight: 660; }
.lead p { margin: 12px 0 0; color: var(--soft); font-size: 15.5px; }
.meta { display: block; margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  margin: 26px 0 0;
}
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.card:hover { border-color: var(--mint); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.3; color: var(--ink); font-weight: 640; letter-spacing: -.01em; }
.card p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); flex: 1; }
main > .cta-card { max-width: var(--measure); margin: 56px auto 0; }

/* ----------------------------------------------------------------- small -- */

@media (max-width: 780px) {
  body { font-size: 16.5px; }
  main { padding: 0 20px; }

  /* Header collapses to: brand … [Book a demo] [☰], with the links in a panel
     underneath. Explicit order rather than source order, so the markup can stay
     in the order that reads correctly on a desktop and to a screen reader. */
  header.site { padding: 12px 20px; gap: 12px; flex-wrap: wrap; }
  .brand { order: 1; }
  header.site .spacer { order: 2; }
  header.site .cta { order: 3; }
  .nav-toggle { display: block; order: 4; }
  header.site .ghost { display: none; }
  .nav-signin { display: block; }

  .site-nav {
    order: 5;
    /* The negative margins bleed the panel to both edges, so the basis has to
       cover the header's own padding as well or the fill stops short on the
       right. */
    flex-basis: calc(100% + 40px);
    flex-direction: column;
    gap: 0;
    margin: 2px -20px -12px;
    padding: 0 20px 6px;
    border-top: 1px solid var(--line);
    background: var(--tint-2);
  }
  /* Collapsed only once the toggle can actually reopen it. Without scripting
     the panel stays open, which is worse-looking and still navigable. */
  html.js .site-nav { display: none; }
  html.js .site-nav.open { display: flex; }
  .site-nav a {
    padding: 13px 2px;
    font-size: 15.5px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: 0; }

  .lead { grid-template-columns: 1fr; }
  .cta-card { padding: 24px 20px; }
  figure.chart { padding: 14px; }
  figure.chart svg { min-width: 560px; }
  .rel-grid { gap: 24px; }
  h1 { letter-spacing: -.02em; }
  article { padding-top: 26px; }
  .blog-hero { padding: 34px 0 26px; }
  .lead { padding: 18px; }
  blockquote { padding-left: 16px; }
}

/* Anything that behaves like a button or a nav link needs a finger-sized
   target, not a mouse-sized one. */
@media (hover: none) {
  .site-nav a, .crumbs a, footer.site nav a { padding-block: 10px; }
  .cta, .ghost { padding: 11px 18px; }
}

@media print {
  header.site, footer.site, .cta-card, .related, .crumbs { display: none; }
  body { font-size: 11pt; }
}
