/* ==========================================================================
   QGIS2VectorTiles website: shared styles for every page.
   Sections: tokens · base · layout · header · buttons · hero · compare ·
   features · pipeline · gallery · use cases · CTA · footer · dialogs ·
   changelog · styling guide · motion.
   ========================================================================== */

/* Inter (SIL Open Font License, fonts/OFL.txt): one variable file per
   character set covers every weight. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-latin.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #09090b;
  --bg-raised: #0f1012;
  --surface: #131417;
  --surface-2: #1a1b1f;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);

  --text: #f4f5f2;
  --text-2: #a9aea7;      /* 8:1 on --bg */
  --text-3: #80867e;      /* 5:1 on --bg */

  --brand: #98b023;
  --brand-hi: #b6d334;
  --brand-ink: #0b0d04;   /* text on brand */
  --brand-soft: rgba(152, 176, 35, 0.12);
  --brand-line: rgba(152, 176, 35, 0.35);
  --fill: #121316;        /* solid fill for pills and chips over the backdrop */
  --fill-hover: #18191c;

  --ok: #8fd14f;
  --warn: #f2c14e;
  --no: #f07167;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, 'Liberation Mono', monospace;

  --radius-s: 8px;
  --radius: 10px;
  --radius-l: 14px;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
  --shadow-brand: 0 0 0 1px var(--brand-line);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;
  --section-y: clamp(72px, 9vw, 120px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--brand-ink); }

:focus-visible {
  outline: 2px solid var(--brand-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.link {
  color: var(--brand-hi);
  text-decoration: underline;
  text-decoration-color: var(--brand-line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: currentColor; }

code, .mono { font-family: var(--mono); font-size: 0.9em; }

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 680px; margin-bottom: clamp(20px, 4.4vh, 56px); }
.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px 64px;
  max-width: none;
}
.section-head.split .lead { margin-top: 0; padding-bottom: 4px; }
@media (max-width: 860px) {
  .section-head.split { grid-template-columns: 1fr; }
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(10px, 1.8vh, 16px);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-hi);
}

.h1, .h2 { text-wrap: balance; }
.lead { text-wrap: pretty; }
.h1 {
  font-size: clamp(34px, min(6vw, 8vh), 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.h2 {
  font-size: clamp(27px, min(3.8vw, 5.4vh), 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: 18px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.lead {
  margin-top: clamp(10px, 2vh, 20px);
  font-size: clamp(15.5px, min(1.6vw, 2.5vh), 20px);
  line-height: 1.6;
  color: var(--text-2);
}
.text-brand { color: var(--brand-hi); }
.text-gradient { color: var(--brand-hi); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  /* Solid, not a backdrop blur: a blur is redrawn on every scrolled frame. */
  background: rgba(9, 9, 11, 0.96);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }
.brand-name { display: inline; }
.brand-name span { color: var(--brand-hi); }

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  padding: 7px 12px;
  border-radius: var(--radius-s);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a { white-space: nowrap; }
@media (max-width: 1180px) { .nav a { padding-inline: 9px; font-size: 14px; } }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-s);
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.icon-btn svg { width: 19px; height: 19px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.6px;
  margin: auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.is-open .menu-toggle span { background: transparent; }
.is-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav, .header-actions { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 4px;
    padding: 16px var(--gutter) 28px;
    background: rgba(9, 9, 11, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .is-open .mobile-menu { transform: none; opacity: 1; visibility: visible; }
  .mobile-menu a:not(.btn) {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-2);
  }
  .mobile-menu a[aria-current="page"] { color: var(--text); }
  .mobile-menu .btn { margin-top: 16px; }
  .mobile-menu .mobile-icons { display: flex; gap: 8px; margin-top: 12px; }
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.3s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--radius-s); }
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.btn-primary:hover { background: var(--brand-hi); }
.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.04); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg::before {          /* contour lines */
  content: '';
  position: absolute;
  inset: -10% -5% 0;
  background: url('contours.svg') center / cover no-repeat;
  opacity: 0.19;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 60% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 60% 35%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  top: -260px;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(152, 176, 35, 0.09), transparent);
  pointer-events: none;
}
/* The other sections: alternating backgrounds and the hero's faint
   contours, each placed differently. */
.slide:nth-of-type(even):not(.hero) { background: var(--bg-raised); }
.slide:not(.hero) { isolation: isolate; }
.slide:not(.hero)::before, .hero-bg::before { will-change: transform; transform: translateZ(0); }
.slide:not(.hero)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('contours.svg') var(--contours-at, 30% 40%) / cover no-repeat;
  opacity: 0.19;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at var(--glow-at, 80% 30%), #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 70% at var(--glow-at, 80% 30%), #000 15%, transparent 75%);
  pointer-events: none;
}
#features { --contours-at: 85% 20%; --glow-at: 85% 25%; }
#how-it-works { --contours-at: 10% 80%; --glow-at: 15% 70%; }
#demos { --contours-at: 90% 90%; --glow-at: 85% 75%; }
#use-cases { --contours-at: 15% 10%; --glow-at: 15% 25%; }
#get-started { --contours-at: 70% 30%; --glow-at: 70% 30%; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  column-gap: clamp(40px, 6vw, 80px);
}
.hero-inner .works-with { grid-column: 1 / -1; }
.hero-copy .h1 { margin-top: clamp(12px, 2.4vh, 22px); }
.hero-copy .lead { max-width: 520px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--fill);
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.2s, background-color 0.2s;
}
.pill:hover { border-color: var(--brand-line); background: var(--fill-hover); }
.pill b {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
}
.pill svg { width: 14px; height: 14px; }
/* An upcoming release: outlined rather than filled. */
.pill b.soon {
  background: transparent;
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand-line);
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .pill .more { display: none; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 3.4vh, 32px); }

/* Four facts in two columns, and the button that opens the panel of
   supported settings under them, as wide as they are together. */
.hero-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  max-width: 520px;
  margin-top: clamp(14px, 3vh, 30px);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.hero-tag svg { width: 17px; height: 17px; flex: none; color: var(--brand); }
.hero-tag-more {
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding: 9px 12px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--brand-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  text-align: left;
  white-space: normal;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  animation: beckon 2.4s var(--ease) 1.4s 3;
}
.hero-tag-more > span { flex: 1; }
.hero-tag-more:hover, .hero-tag-more[aria-expanded="true"] { border-color: var(--brand); background: rgba(152, 176, 35, 0.2); }
.hero-tag-more .caret { width: 16px; height: 16px; color: var(--text-2); transition: transform 0.25s var(--ease); }
.hero-tag-more[aria-expanded="true"] .caret { transform: rotate(180deg); }
/* Desktop: the text column's items end at its right edge: the two
   buttons share their row, the intro, facts and settings bar take the
   full width; from 1280 px the six facts are three columns by two rows. */
@media (min-width: 1025px) {
  .hero-copy .lead { max-width: none; }
  .hero-copy .hero-actions .btn { flex: 1 1 0; }
  .hero-tags { max-width: none; }
}
@media (min-width: 1280px) {
  .hero-tags { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px 10px; }
  .hero-tag { font-size: 14px; gap: 8px; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  .hero .h1 { font-size: clamp(34px, min(5.2vw, 7.4vh), 72px); }
  .hero .lead { font-size: 16px; }
  .hero-tags { gap: 6px 16px; }
  .hero-tag { font-size: 14px; }
  .hero-tag-more { font-size: 13px; }
  .pill .more { display: none; }
}
@keyframes beckon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(152, 176, 35, 0); }
  40% { box-shadow: 0 0 0 5px rgba(152, 176, 35, 0.18); }
}

/* The live demo: what was converted, how, and the real web map of the
   published export, grouped on one quiet card. */
.live-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  /* A soft white tint over the dark page (no backdrop blur, which would be
     redrawn on every scrolled frame). */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.07)), var(--bg);
}
.live-facts { display: grid; gap: 7px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.live-facts li { display: flex; align-items: flex-start; gap: 10px; }
.live-facts svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--brand-hi); }
.live-facts b { font-weight: 500; color: var(--text); }
.live-map {
  position: relative;
  aspect-ratio: 1315 / 1089;
  background: var(--surface-2);
  overflow: hidden;
}
.live-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.live-map.is-loaded iframe { opacity: 1; }
.live-map.is-active iframe { pointer-events: auto; }
.live-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  color: var(--text-3);
}
.live-map.is-loaded .live-loading { display: none; }
/* Until clicked the map ignores the pointer, so wheel and swipe move the
   page; the button says how to use it. */
.live-activate {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transform: translateX(-50%);
  transition: opacity 0.2s, border-color 0.2s;
}
.live-activate:hover { border-color: var(--brand); }
.live-activate svg { flex: none; width: 16px; height: 16px; color: var(--brand-hi); }
.live-map.is-active .live-activate { opacity: 0; pointer-events: none; }
.window-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-hi);
  white-space: nowrap;
}
.window-link svg { width: 13px; height: 13px; }
.window-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Desktop: the card is exactly as tall as the text column beside it; the
   map takes the height left under the facts. */
@media (min-width: 961px) {
  .hero-inner { align-items: stretch; }
  .hero-copy { align-self: center; }
  .hero .live-demo {
    width: 100%;
    max-width: calc((100vh - var(--header-h) - 300px) * 1.25 + 34px);
    max-width: calc((100dvh - var(--header-h) - 300px) * 1.25 + 34px);
    min-width: 340px;
    justify-self: center;
    align-self: stretch;
  }
  .hero .live-demo .window { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .hero .live-map { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero .live-demo { margin-top: clamp(40px, 6vw, 80px); }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-tags { margin-inline: auto; text-align: left; }
}

/* --- Compare slider (hero) ---------------------------------------------- */
.window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span {
  margin-inline: auto;
  font-size: 12.5px;
  color: var(--text-3);
}

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1315 / 1089;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--brand-hi);
  pointer-events: none;
}
.compare-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--brand-hi);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6d334' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 3 12 9 18'/%3E%3Cpolyline points='15 6 21 12 15 18'/%3E%3C/svg%3E") center / 22px no-repeat,
    rgba(9, 9, 11, 0.88);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare-range:focus-visible + .compare-handle::after { outline: 2px solid #fff; outline-offset: 3px; }
.compare-label {
  position: absolute;
  bottom: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  pointer-events: none;
}
.compare-label.left { left: 14px; }
.compare-label.right { right: 14px; color: var(--brand-hi); }

/* --- Logos strip -------------------------------------------------------- */
.works-with {
  margin-top: clamp(20px, 4.6vh, 64px);
  text-align: center;
}
.works-with p {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.works-with ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: clamp(10px, 2vh, 20px);
}
.works-with a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--fill);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.works-with a:hover { border-color: var(--line-strong); color: var(--text); }
.works-with img {
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: var(--radius-s);
  background: #fff;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
}
.works-with a:hover img { filter: none; opacity: 1; }

/* --- Feature grid ------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vh, 16px);
}
.feature {
  position: relative;
  padding: clamp(16px, 2.6vh, 28px) clamp(18px, 1.8vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s;
}
.feature:hover { border-color: var(--line-strong); }
.feature-icon {
  display: grid;
  place-items: center;
  width: clamp(36px, 5vh, 44px);
  height: clamp(36px, 5vh, 44px);
  margin-bottom: clamp(10px, 2.2vh, 20px);
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-hi);
}
.feature-icon svg { width: 21px; height: 21px; }
.feature p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

/* --- Pipeline ----------------------------------------------------------- */
.slide-inner.pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-content: center;
  align-items: stretch;
  column-gap: clamp(20px, 3vw, 40px);
}
.pipeline .section-head { grid-column: 1 / -1; }
.pipeline-main { display: flex; flex-direction: column; }
.pipeline-main .steps, .pipeline-side .tree { flex: 1; display: flex; flex-direction: column; }
.pipeline-main .step, .pipeline-side .tree-row { flex: 1 0 auto; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(11px, 2vh, 18px) 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.panel-head .mono { text-transform: none; letter-spacing: 0; color: var(--brand-hi); }

.steps { position: relative; padding: 8px 10px; }
.steps::before {               /* connecting rail */
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 40px;
  width: 1px;
  background: linear-gradient(to bottom, var(--brand-line), var(--line) 60%, transparent);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  padding: clamp(6px, 1.1vh, 12px) 16px clamp(6px, 1.1vh, 12px) 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.step:hover { background: rgba(255, 255, 255, 0.035); border-color: var(--line); }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-raised);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.step:hover .step-num { border-color: var(--brand); color: var(--brand-hi); }
.step.core .step-num { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.step-text { min-width: 0; }
.step-title { display: block; font-family: var(--mono); font-size: 14.5px; font-weight: 500; color: var(--text); }
.step-desc { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }
@media (min-width: 1100px) {
  .step-text { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: baseline; gap: 16px; }
  .step-desc { margin-top: 0; font-size: 13.5px; }
}
.step-go {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform 0.25s var(--ease), color 0.2s;
}
.step:hover .step-go { color: var(--brand-hi); transform: translateX(3px); }
.steps-note { padding: 0 24px 20px; font-size: 13.5px; color: var(--text-3); }

.tree { padding: 8px 10px; }
.pipeline-side .panel { display: flex; flex-direction: column; }
.tree-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: clamp(6px, 1.1vh, 12px) 12px;
  border-radius: var(--radius-s);
  transition: background-color 0.2s;
}
.tree-row:hover { background: rgba(255, 255, 255, 0.035); }
.tree-row + .tree-row { border-top: 1px dashed var(--line); }
.tree-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-hi);
}
.tree-icon svg { width: 17px; height: 17px; }
.tree-name { font-size: 15px; font-weight: 500; }
.tree-ext {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.pipeline-side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; }
.callout {
  display: flex;
  gap: 14px;
  padding: clamp(14px, 2.4vh, 20px) 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14.5px;
  color: var(--text-2);
}
.callout svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--brand-hi); }
.callout strong { color: var(--text); font-weight: 500; }

@media (max-width: 960px) {
  .slide-inner.pipeline { grid-template-columns: 1fr; }
  .pipeline-side { margin-top: 16px; }
}

/* --- Gallery ------------------------------------------------------------ */
/* The featured demo fills the left column; three compact demos stack on
   the right. The grid's height follows the window, so it fits one screen. */
.slide-inner.gallery {
  --gap: clamp(10px, 1.6vh, 16px);
  --gallery-h: clamp(320px, calc(100vh - var(--header-h) - 250px), 620px);
  --gallery-h: clamp(320px, calc(100dvh - var(--header-h) - 250px), 620px);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  grid-template-rows: auto repeat(3, calc((var(--gallery-h) - 2 * var(--gap)) / 3));
  align-content: center;
  gap: var(--gap);
}
.gallery .section-head { grid-column: 1 / -1; margin-bottom: calc(clamp(20px, 4.4vh, 56px) - var(--gap)); }
.demo {
  position: relative;
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s;
}
.demo:hover { border-color: var(--brand-line); }
.demo-media, .demo-body, .demo .h3, .demo-desc { display: block; }
.demo-media {
  position: relative;
  min-height: 0;
  background: #000;
  overflow: hidden;
}
.demo-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0.9;
  transition: transform 0.8s var(--ease), opacity 0.3s;
}
.demo:hover .demo-media video { opacity: 1; }
.play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(40px, 6vh, 58px);
  height: clamp(40px, 6vh, 58px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(7, 8, 10, 0.7);
  color: #fff;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.play svg { width: 40%; height: 40%; margin-left: 8%; }
.demo:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.demo-body {
  align-self: center;
  padding: clamp(12px, 2vh, 22px) clamp(14px, 1.6vw, 22px);
}
.demo .h3 { font-size: clamp(15.5px, 2.1vh, 18px); }
.demo-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.demo.featured {
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.demo.featured .demo-media { position: relative; flex: 1 1 auto; min-height: 0; }
.demo.featured .demo-media::after {
  content: '';
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 8, 10, 0.96) 0%, rgba(7, 8, 10, 0.55) 30%, transparent 58%);
  pointer-events: none;
}
.demo.featured .play { width: clamp(52px, 8vh, 72px); height: clamp(52px, 8vh, 72px); }
.demo.featured .demo-body { position: relative; z-index: 1; align-self: stretch; padding: clamp(18px, 3vh, 32px); }
.demo.featured .h3 { font-size: clamp(20px, 3vh, 28px); letter-spacing: -0.02em; }
.demo.featured .demo-desc { max-width: 520px; font-size: 15px; -webkit-line-clamp: 2; line-clamp: 2; }
.demo-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-hi);
}
@media (max-width: 960px) {
  .slide-inner.gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .demo.featured { grid-row: auto; }
  .demo.featured .demo-media { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .demo.featured .demo-media::after { display: none; }
  .demo.featured .demo-body { padding: 18px 20px 22px; }
  .demo:not(.featured) { min-height: 120px; }
}
@media (max-width: 520px) {
  .demo:not(.featured) { grid-template-columns: 1fr; }
  .demo:not(.featured) .demo-media { aspect-ratio: 16 / 9; }
}

/* --- Use cases ---------------------------------------------------------- */
.slide-inner.usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: 16px; }
.usecases .section-head { grid-column: 1 / -1; margin-bottom: calc(clamp(20px, 4.4vh, 56px) - 16px); }
.usecase {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3.4vh, 34px) clamp(20px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.usecase-num { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--brand-hi); }
.usecase .h3 { margin-top: clamp(8px, 1.8vh, 18px); font-size: clamp(19px, 2.8vh, 22px); }
.usecase > p { margin-top: 12px; font-size: 15px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: clamp(14px, 3vh, 28px); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--fill);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s;
}
a.chip:hover { border-color: var(--line-strong); background: var(--fill-hover); }
.chip img, .chip .chip-glyph {
  width: 42px;
  height: 42px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
}
.chip .chip-glyph { display: grid; place-items: center; padding: 0; background: var(--brand-soft); color: var(--brand-hi); }
.chip .chip-glyph svg { width: 21px; height: 21px; }
.usecase-note { margin-top: auto; padding-top: clamp(12px, 2.4vh, 20px); font-size: 13.5px; color: var(--text-3); }
/* Desktop: the cards' parts line up across the three cards (number,
   title, text, brand chips, note), each card taking five rows of the
   section's grid. */
@media (min-width: 1025px) {
  .usecase { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .usecase-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* Brand chips: boxes of one width, centered under the card's text, two
   per row (a lone last one centered), or one per row when stacked. */
.usecase .chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin: clamp(16px, 3vh, 26px) auto 0;
  padding-top: 0;
}
.usecase .chip {
  min-width: 0;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.usecase .chip img, .usecase .chip .chip-glyph { flex: none; width: 34px; height: 34px; }
.usecase .chips.stacked .chip, .usecase .chip:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 5px);
}
@media (max-width: 960px) { .slide-inner.usecases { grid-template-columns: 1fr; } }

/* --- CTA ---------------------------------------------------------------- */
.cta {
  position: relative;
  padding: clamp(28px, 6vh, 88px) clamp(24px, 6vw, 80px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(152, 176, 35, 0.08), transparent 70%),
    var(--surface);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta .h2 { max-width: 760px; margin-inline: auto; }
.cta .lead { max-width: 560px; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }
.cta-rate { margin-top: clamp(14px, 3vh, 26px); font-size: 14.5px; color: var(--text-2); }
.stars { display: inline-flex; gap: 2px; vertical-align: -3px; margin-right: 8px; color: var(--brand-hi); }
.stars svg { width: 15px; height: 15px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { padding: clamp(24px, 5vh, 64px) 0 clamp(16px, 3vh, 40px); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer-grid p { margin-top: 14px; max-width: 320px; font-size: 14.5px; color: var(--text-2); }
.footer-col h2 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-col a { display: block; padding: 3px 0; font-size: 14.5px; color: var(--text-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(16px, 4vh, 48px);
  padding-top: clamp(12px, 2.4vh, 24px);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-3);
}
.footer-bottom a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* --- Dialogs ------------------------------------------------------------ */
dialog {
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
dialog::backdrop {
  background: rgba(3, 4, 5, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
dialog[open] { animation: pop 0.3s var(--ease); }
dialog[open]::backdrop { animation: fade 0.3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } }

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(7, 8, 10, 0.7);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.dialog-close:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.dialog-close svg { width: 18px; height: 18px; }

.module-dialog { width: min(560px, calc(100vw - 32px)); }
.info-dialog .feature-icon { margin-bottom: 16px; }
.info-dialog .h3 { margin-top: 4px; font-size: 21px; }
.info-dialog .dialog-inner > p { margin-top: 10px; color: var(--text-2); }
.info-dialog .usecase-note { font-size: 14px; color: var(--text-3); }
.module-dialog .dialog-inner { padding: 32px; }
.module-dialog .mono { color: var(--brand-hi); font-size: 13px; }
.module-dialog h2 { margin-top: 8px; font-family: var(--mono); font-size: 22px; letter-spacing: -0.01em; }
.module-dialog ul { display: grid; gap: 12px; margin: 22px 0 28px; }
.module-dialog li { position: relative; padding-left: 26px; color: var(--text-2); }
.module-dialog li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}

.video-dialog { width: min(1200px, calc(100vw - 32px)); background: #000; }
.video-dialog video { width: 100%; max-height: calc(100vh - 64px); background: #000; }

/* --- Sub-page hero ------------------------------------------------------ */
.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(28px, 6vh, 64px)) 0 clamp(24px, 4.6vh, 48px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-bg::before { -webkit-mask-image: radial-gradient(ellipse 60% 80% at 75% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 75% 20%, #000 10%, transparent 70%); }
.page-hero .lead { max-width: 620px; }
.page-hero { box-sizing: border-box; min-height: calc(var(--header-h) + 300px); }
@media (max-width: 760px) { .page-hero { min-height: calc(var(--header-h) + 270px); } }
.page-hero .h1 { font-size: clamp(34px, min(5vw, 7vh), 60px); }

/* --- Changelog ---------------------------------------------------------- */
.changelog {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(24px, 4.6vh, 56px) var(--section-y);
}
.versions {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.versions h2 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.versions ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.versions a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-left: -1px;
  padding: 5px 12px;
  border-left: 2px solid transparent;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-3);
  transition: color 0.2s, border-color 0.2s;
}
.versions a small { font-family: var(--font); font-size: 12px; color: var(--text-3); }
.versions a:hover { color: var(--text); }
.versions a.is-active { color: var(--brand-hi); border-left-color: var(--brand); }

.timeline { position: relative; display: grid; gap: 20px; }
.release {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.release.latest { border-color: var(--brand-line); }
.release-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.release-meta h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.release-meta time { font-size: 14px; color: var(--text-3); }
.tag {
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--brand);
  color: var(--brand-ink);
}
.tag.muted { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }
.release ul { display: grid; gap: 12px; }
.release li { position: relative; padding-left: 22px; color: var(--text-2); }
.release li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
}
.release li strong { color: var(--text); font-weight: 500; }
@media (max-width: 900px) {
  .changelog { grid-template-columns: 1fr; }
  .versions { display: none; }
  .release { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .release-meta { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
  .release-meta .tag { margin-top: 0; }
}

/* --- Styling guide ------------------------------------------------------ */
.guide { padding-block: clamp(20px, 4vh, 48px) var(--section-y); }
.toolbar {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: rgba(15, 16, 18, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.search { position: relative; flex: 1 1 260px; }
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.segmented button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
.result-count { padding: 0 8px; font-size: 13.5px; color: var(--text-3); white-space: nowrap; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -8px 0 28px; font-size: 13.5px; color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

.category { margin-bottom: 40px; }
.category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.category-head h2 { font-size: 22px; font-weight: 550; letter-spacing: -0.02em; }
.category-head span { font-size: 13.5px; color: var(--text-3); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
@media (min-width: 761px) {
  table { table-layout: fixed; }
  th:nth-child(1) { width: 19%; }
  th:nth-child(2) { width: 21%; }
  th:nth-child(3) { width: 15%; }
  th:nth-child(4) { width: 12%; }
  th { white-space: nowrap; }
}
th {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  color: var(--text-3);
}
td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 0.2s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
td.prop { color: var(--text); font-weight: 500; }
.code {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand-hi);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.code.na { color: var(--text-3); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.yes { color: var(--ok); background: rgba(143, 209, 79, 0.1); }
.status.partial { color: var(--warn); background: rgba(242, 193, 78, 0.1); }
.status.no { color: var(--no); background: rgba(240, 113, 103, 0.1); }
.dd { font-size: 13.5px; }
.dd.yes { color: var(--text); }
.empty, .notice {
  padding: 40px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
  text-align: center;
  color: var(--text-2);
}
.notice.error { border-color: rgba(240, 113, 103, 0.4); color: var(--no); text-align: left; }
.notice code { color: var(--text); }
.skeleton {
  height: 220px;
  border-radius: var(--radius-l);
  background: linear-gradient(100deg, var(--bg-raised) 30%, var(--surface) 50%, var(--bg-raised) 70%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 760px) {
  .toolbar { position: static; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 0 6px; font-size: 13px; white-space: nowrap; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tbody tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  td { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 6px 0; border: 0; }
  td::before { content: attr(data-label); font-size: 12.5px; font-weight: 500; color: var(--text-3); }
}

/* --- "Complex projects" panel (home hero) ------------------------------- */
/* A popover in the top layer; home.js places it under its button. Phones
   show it as a sheet below the header. Without popover support it is a
   fixed panel shown with .is-open. */
.complex-panel {
  position: fixed;
  inset: auto;
  margin: 0;
  display: none;
  flex-direction: column;
  width: min(460px, calc(100vw - 24px));
  max-height: min(600px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.complex-panel:popover-open, .complex-panel.is-open { display: flex; animation: pop 0.22s var(--ease); }
.complex-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.complex-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.complex-sub { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.complex-search { position: relative; display: block; margin-top: 12px; }
.complex-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.complex-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.complex-search input::placeholder { color: var(--text-3); }
.complex-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.complex-list, .complex-results { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.complex-list button, .complex-item, .complex-hits a {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.complex-list button { cursor: pointer; transition: background-color 0.15s; }
.complex-list button:hover, .complex-hits a:hover { background: rgba(255, 255, 255, 0.04); }
.complex-list b, .complex-hits b { font-size: 14px; font-weight: 600; color: var(--text); }
.complex-list li + li, .complex-hits li + li { border-top: 1px solid var(--line); }
.hit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.hit-head .status { flex: none; padding: 1px 8px; font-size: 11.5px; }
.hit-head b { min-width: 0; }
.complex-group + .complex-group { margin-top: 6px; }
.complex-cat {
  position: sticky;
  top: -6px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 6px;
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-hi);
}
.complex-count { font-family: var(--mono); letter-spacing: 0; color: var(--text-3); }
.hit-notes {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.complex-empty, .complex-more { padding: 14px 12px; font-size: 13.5px; color: var(--text-3); }
.complex-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-hi);
  transition: background-color 0.15s;
}
.complex-foot:hover { background: rgba(255, 255, 255, 0.03); }
.complex-foot svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .complex-panel {
    top: calc(var(--header-h) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - var(--header-h) - 20px);
    max-height: calc(100dvh - var(--header-h) - 20px);
  }
}

/* --- Back to top -------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(12, 14, 17, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, border-color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--brand); }
.to-top svg { width: 20px; height: 20px; }

/* --- Home: one screen per section --------------------------------------- */
/* Native scroll snapping: one wheel step, swipe or Page Down moves one
   screen. On desktop each section fills one screen. On phones and tablets
   each section is split into .screen blocks that each fit one screen, so a
   swipe always lands on whole, uncropped content. Very short windows keep
   the natural flow with gentle snapping. */
.snap-page { scroll-padding-top: 0; }
.snap-page .site-header { position: fixed; left: 0; right: 0; }
/* clip, not hidden: a hidden overflow would make the hero its own scroll
   container and swallow the snap points of its screens. */
.snap-page .hero { margin-top: 0; overflow: visible; overflow: clip; }
.slide { position: relative; scroll-snap-align: start; }
.slide + .slide { border-top: 1px solid var(--line); }
.slide-inner { display: flex; flex-direction: column; justify-content: center; }
.screen { display: contents; }
/* Phone-only parts: headings for follow-on screens and the tap hint. */
.screen-head, .tap-hint { display: none; }

@media (min-width: 1025px) and (min-height: 540px) {
  .snap-page { scroll-snap-type: y mandatory; }
  .slide {
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: var(--header-h);
  }
  .slide > .slide-inner { flex: 1; padding-block: clamp(14px, 3.4vh, 48px); }
  .snap-page .hero { padding: var(--header-h) 0 0; }
  .slide-end > .slide-inner { padding-bottom: clamp(14px, 3vh, 40px); }
}
@media (min-width: 1025px) and (min-height: 540px) and (max-height: 780px) {
  .callout { display: none; }
}
/* Short screens (laptops, 150% scaling): slimmer header, icon beside the
   feature title, compact footer, so every section still fits one screen. */
@media (min-width: 1025px) and (min-height: 540px) and (max-height: 760px) {
  :root { --header-h: 58px; }
  .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: center; column-gap: 12px; padding-block: 12px; }
  .feature-icon { margin-bottom: 0; width: 34px; height: 34px; }
  .feature p { grid-column: 1 / -1; align-self: start; margin-top: 8px; font-size: 13.5px; line-height: 1.5; }
  .slide-inner.gallery { --gallery-h: clamp(260px, calc(100dvh - var(--header-h) - 215px), 620px); }
  .footer-grid p { display: none; }
  .footer-col { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
  .footer-col h2 { flex-basis: 100%; margin-bottom: 4px; }
  .slide-inner.pipeline { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .step { padding-block: 4px; }
  .step-num { width: 24px; height: 24px; font-size: 11.5px; }
  .step-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tree-row { padding-block: 4px; }
  .tree-icon { width: 26px; height: 26px; }
  .section-head.split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 8px 40px; }
  .works-with a { padding: 4px 14px 4px 4px; font-size: 15px; }
  .works-with img { width: 32px; height: 32px; padding: 4px; }
}
@media (min-width: 1025px) and (min-height: 540px) and (max-height: 600px) {
  .feature { padding-block: 12px; }
  .feature p { margin-top: 6px; }
  .features { gap: 8px; }
  .cta { padding-block: 22px; }
  .works-with { margin-top: 10px; }
  .works-with ul { margin-top: 6px; }
  .works-with img { width: 28px; height: 28px; padding: 3px; }
  .site-footer { padding-top: 16px; }
  .footer-bottom { margin-top: 10px; padding-top: 8px; }
  .usecase-note { display: none; }
  .usecase > p { font-size: 14px; }
  .feature { padding-block: 10px; }
  .feature p { margin-top: 4px; font-size: 13px; line-height: 1.4; }
  #features .lead { font-size: 14.5px; }
}
@media (max-height: 479px), (min-width: 1025px) and (max-height: 539px) {
  .snap-page { scroll-snap-type: y proximity; }
  .slide { padding-block: var(--section-y); }
  .snap-page .hero { padding: calc(var(--header-h) + 36px) 0 48px; }
  .slide-end { padding-bottom: 0; }
  .slide-inner.gallery { --gallery-h: 480px; }
}

/* Phones and tablets: every .screen is exactly one screen tall and is a
   snap stop. Each screen starts with its section heading at the same height.

   The page scrolls inside <body>, fixed below the header, not the document
   itself. Mobile browsers hide their address bar only when the document
   scrolls, and that changes the visible height mid-scroll, so a screen
   sized for one height showed the next section's title at the bottom when
   scrolling down. With the bar never hiding, the height stays the box's.
   The box is shorter than the window by the header on purpose: Chrome lets
   a scroller that fills the whole window act as the page, bar hiding and
   all. */
@media (max-width: 1024px) and (min-height: 480px) {
  :root {
    --header-h: 60px;
    --screen: calc(100svh - var(--header-h));
    --screen: calc(100dvh - var(--header-h));
  }
  html.snap-page { height: 100%; overflow: hidden; }
  .snap-page body {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
  }
  .slide { scroll-snap-align: none; }
  .snap-page .hero { padding: 0; }
  .slide > .slide-inner,
  .hero-inner { display: block; }
  .screen,
  .slide-end > .slide-inner,
  .slide-end > .site-footer {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: var(--screen);
    padding-block: clamp(14px, 3svh, 32px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .screen { justify-content: flex-start; }
  .hero .screen:first-child { justify-content: center; }
  .screen > .section-head { margin-bottom: 4px; }
  .screen-head { display: block; }
  .section-head.split { gap: 10px; }
  .section-head.split .lead { padding-bottom: 0; }


  /* The map fills the card's width and whatever height the screen has
     left under the heading and facts. */
  .hero .live-demo { flex: 1 1 auto; min-height: 0; margin-top: 0; width: 100%; max-width: 640px; margin-inline: auto; padding: 12px; gap: 12px; }
  .hero .live-demo .window { flex: 1 1 auto; display: flex; flex-direction: column; width: 100%; min-height: 0; }
  .hero .live-map { flex: 1 1 auto; aspect-ratio: auto; min-height: 220px; }
  .live-facts { gap: 5px; font-size: 13px; }
  .hero .screen-head .lead, .hero .window-bar span { display: none; }
  .hero .works-with { margin-top: 4px; }
  .works-with ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .works-with li { display: flex; }
  .works-with a {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 7px 4px 6px;
    border-radius: var(--radius);
    font-size: 12.5px;
  }
  .works-with img { width: 32px; height: 32px; padding: 4px; }
  .hero-copy, .hero-copy .h1, .hero-copy .lead { margin-inline: auto; }
  .hero-copy { text-align: center; max-width: 640px; }
  .hero-actions { justify-content: center; }
  .hero-tags { max-width: 460px; margin-inline: auto; text-align: left; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 460px; margin-inline: auto; }
  .hero-tag-more { padding: 10px 14px; font-size: 14px; }

  /* features: icon and title tiles; a tap opens the full text */
  .features { flex: 1 1 auto; max-height: 440px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
  .feature { display: flex; align-items: center; gap: 10px; padding: 11px 12px; cursor: pointer; }
  .feature-icon { flex: none; width: 34px; height: 34px; margin-bottom: 0; border-radius: 10px; }
  .feature-icon svg { width: 18px; height: 18px; }
  .feature .h3 { font-size: 14.5px; line-height: 1.25; }
  .feature p { display: none; }
  .tap-hint { display: block; margin-top: -4px; font-size: 13px; color: var(--text-3); text-align: center; }

  .pipeline-side { margin-top: 0; }
  .pipeline-main, .pipeline-side { flex: 1 1 auto; max-height: 560px; }
  .step { padding-block: 5px; }
  .step-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
  .tree-row { padding-block: 8px; }

  .demo:not(.featured) { grid-template-columns: 40% minmax(0, 1fr); min-height: 0; height: clamp(84px, calc((var(--screen) - 250px) / 3), 170px); }
  .demo:not(.featured) .demo-media { aspect-ratio: auto; }
  .demo:not(.featured) .demo-body { padding: 10px 14px; }
  .demo.featured { flex: 1 1 auto; max-height: 520px; }
  .demo.featured .demo-media { flex: 1 1 auto; min-height: 150px; aspect-ratio: auto; }
  .demo.featured .demo-desc { -webkit-line-clamp: 2; line-clamp: 2; }
  .demo .h3 { font-size: 16px; }
  .demo-desc { font-size: 13.5px; -webkit-line-clamp: 2; line-clamp: 2; }

  /* use cases: title and brand chips; a tap opens the full text */
  .usecase {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    align-content: center;
    column-gap: 10px;
    flex: 1 1 auto;
    max-height: 170px;
    padding: 12px 14px;
    cursor: pointer;
  }
  .usecase::after {
    content: '';
    grid-row: 1;
    grid-column: 3;
    width: 18px;
    height: 18px;
    background: currentColor;
    color: var(--text-3);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .usecase .h3 { margin-top: 0; font-size: 17px; }
  .usecase > p, .usecase .usecase-note { display: none; }
  .usecase .chips { grid-column: 1 / -1; gap: 6px; margin-top: 0; padding-top: 10px; }
  .usecase .chip { gap: 7px; padding: 4px 11px 4px 4px; font-size: 13.5px; }
  .usecase .chip img, .usecase .chip .chip-glyph { width: 28px; height: 28px; padding: 3px; }
  .usecase .chip .chip-glyph svg { width: 15px; height: 15px; }

  .slide-end { padding-bottom: 0; }
  .cta { padding: 32px 22px; }
  .slide-end > .site-footer { justify-content: center; }
  .footer-grid { gap: 22px 16px; }
  .footer-col { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; grid-column: 1 / -1; }
  .footer-col h2 { flex-basis: 100%; margin-bottom: 2px; }
  .footer-bottom { margin-top: 24px; flex-direction: column; gap: 4px; }
}
/* Shorter phones: drop the secondary lines so each screen still fits. */
@media (max-width: 1024px) and (min-height: 480px) and (max-height: 780px) {
  .hero .works-with { display: none; }
  .step-desc, .footer-grid p, .demo.featured .demo-tag, .callout { display: none; }
  .step { padding-block: 4px; }
  .pipeline-main .steps { padding-block: 4px; }
}
@media (max-width: 1024px) and (min-height: 480px) and (max-height: 640px) {
  .hero .works-with { display: none; }
  .usecases .section-head .lead { display: none; }
  #use-cases .screen { gap: 8px; }
  .usecase { padding-block: 8px; }
  .usecase .h3 { font-size: 15.5px; }
  .usecase .chips { gap: 5px; padding-top: 7px; }
  .usecase .chip { padding: 2px 8px 2px 2px; font-size: 12.5px; }
  .usecase .chip img, .usecase .chip .chip-glyph { width: 24px; height: 24px; padding: 2px; }
  .pipeline .lead, .gallery .lead { display: none; }
  .hero-tags { gap: 6px 20px; }
  .hero-tag { font-size: 14px; }
  .hero-actions .btn-ghost { display: none; }
  .tree-row { padding-block: 5px; }
}
@media (max-width: 1024px) and (min-height: 480px) and (max-height: 560px) {
  .screen, .slide-end > .slide-inner, .slide-end > .site-footer { gap: 8px; padding-block: 8px; }
  .h2 { font-size: 24px; }
  .panel-head { padding-block: 9px; }
  .step-num { width: 26px; height: 26px; font-size: 11.5px; }
  .tree-row { padding-block: 3px; }
  .tree-icon { width: 26px; height: 26px; }
  .callout { padding-block: 12px; font-size: 14px; }
  .demo.featured .demo-media { aspect-ratio: 2 / 1; }
  .demo.featured .demo-body { padding: 14px 18px 16px; }
  .screen > .section-head .lead { font-size: 14px; line-height: 1.5; }
  .feature { padding-block: 8px; }
  .feature-icon { width: 30px; height: 30px; }
  .usecase { padding-block: 9px; }
  .usecase .chips { padding-top: 7px; }
}

.dots {
  position: fixed;
  right: clamp(8px, 1.6vw, 24px);
  top: 50%;
  z-index: 90;
  display: grid;
  gap: 4px;
  transform: translateY(-50%);
}
.dots a {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}
.dots a::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.dots a:hover::before { background: var(--text-2); }
.dots a.is-active::before { background: var(--brand); transform: scale(1.3); }
.dots a::after {
  content: attr(data-label);
  position: absolute;
  right: 30px;
  top: 50%;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(12, 14, 17, 0.92);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity 0.2s, transform 0.2s var(--ease);
  pointer-events: none;
}
.dots a:hover::after, .dots a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1024px), (max-height: 539px) { .dots { display: none; } }

/* --- Motion ------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html, .snap-page body { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Medium phones: the compact use-case chips of short phones, so the
   screen fits. */
@media (max-width: 1024px) and (min-height: 641px) and (max-height: 700px) {
  .usecase { padding-block: 9px; }
  .usecase .chips { gap: 5px; padding-top: 8px; }
  .usecase .chip { padding: 2px 9px 2px 2px; font-size: 13px; }
  .usecase .chip img, .usecase .chip .chip-glyph { width: 26px; height: 26px; padding: 2px; }
}
