/* bioinframed.com
   Brand: red #D25342 and blue #287FC2, blended (see bioinframed-brand/README.md); Sora.
   The page bands carry Harmony's landing background: the two colours in a wide
   ellipse, with a faint raster of dots on top. Surfaces are light and solid, a
   coloured left edge where something belongs to one of the two colours. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #D25342;
  --blue: #287FC2;
  --red-ink: #B4402F;   /* red text on white, AA contrast */
  --blue-ink: #1E68A3;  /* blue text and links on white, AA contrast */
  --red-tint: #F8F1EF;
  --blue-tint: #EAF2F9;
  --ink: #1F2328;
  --ink-soft: #4A535C;
  --muted: #69737D;
  --line: #E3E7EB;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --dark: #252525;

  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow: 0 12px 32px -12px rgba(16, 24, 40, 0.22);
  --shadow-lg: 0 24px 56px -20px rgba(16, 24, 40, 0.35);

  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.25rem;
  --section-y: clamp(3.5rem, 8vw, 6rem);
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-ink); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--red-ink); }
strong, b { font-weight: 650; }
code { font-family: var(--mono); font-size: 0.9em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--blue) 22%, white); }

.container { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 50rem; margin-inline: auto; }
.container.narrow { max-width: calc(50rem + 2 * var(--gutter)); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--ink); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.t-blue { color: var(--blue-ink); }
.t-red { color: var(--red-ink); }

/* ------------------------------------------------------------------ brand background (Harmony's) */

.brand-bg {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--blue);
  background: radial-gradient(ellipse 60% 170% at 4% 50%, var(--red) 0%, var(--red) 42%, var(--blue) 100%, var(--blue) 200%);
}
.brand-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1.2px, transparent 1.7px) 0 0 / 26px 26px;
  pointer-events: none;
}
@media (max-width: 47.99rem) {
  .brand-bg { background: radial-gradient(ellipse 140% 70% at 50% 0%, var(--red) 0%, var(--red) 40%, var(--blue) 100%, var(--blue) 200%); }
}
.brand-bg a:not(.btn) { color: #fff; }
.brand-bg a:not(.btn):hover { color: #fff; text-decoration-thickness: 0.14em; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.7rem 1.35rem;
  font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.18s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--blue) 70%, transparent); }
.btn--primary:hover { background: var(--blue-ink); color: #fff; }
.btn--light { background: #fff; color: var(--blue-ink); box-shadow: var(--shadow); }
.btn--light:hover { color: var(--red-ink); box-shadow: var(--shadow-lg); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.06); }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.btn--sm { min-height: 2.4rem; padding: 0.45rem 1.05rem; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(16, 24, 40, 0.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: auto; height: 2.1rem; }

.site-nav ul { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) {
  position: relative; display: block; padding: 0.5rem 0.8rem;
  color: var(--ink-soft); font-size: 0.93rem; font-weight: 550; text-decoration: none; border-radius: var(--radius-sm);
}
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--bg); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--blue-ink); }
.site-nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.2rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}
.site-nav li:last-child { margin-left: 0.5rem; }

.nav-toggle {
  display: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 59.99rem) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .site-nav a:not(.btn) { padding: 0.8rem 0.75rem; font-size: 1rem; }
  .site-nav a[aria-current="page"]:not(.btn) { background: var(--blue-tint); }
  .site-nav a[aria-current="page"]:not(.btn)::after { display: none; }
  .site-nav li:last-child { margin: 0.75rem 0 0; }
  .site-nav li:last-child .btn { width: 100%; min-height: 3rem; font-size: 1rem; }
}

/* ------------------------------------------------------------------ heroes */

.hero { overflow: hidden; }
.hero__inner { position: relative; }
.hero--home .hero__inner { padding-block: clamp(4.5rem, 12vw, 8.5rem) clamp(7rem, 14vw, 10rem); }
.hero--page .hero__inner { padding-block: clamp(3rem, 8vw, 5.25rem); }
.hero--page:has(+ .section--overlap) .hero__inner { padding-bottom: clamp(5.5rem, 10vw, 7.5rem); }
.hero h1 { max-width: 20ch; margin-bottom: 0.4em; }
.hero__title { font-size: clamp(2.2rem, 5.8vw, 4.1rem); max-width: 17ch; }
.hero__lead { max-width: 44rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; color: rgba(255, 255, 255, 0.92); }
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__brand { display: flex; align-items: center; gap: 1rem; }
.hero__brand img { width: clamp(3.25rem, 7.5vw, 4.5rem); height: auto; filter: drop-shadow(0 10px 18px rgba(16, 24, 40, 0.25)); }
.hero--404 .hero__inner { padding-bottom: clamp(5rem, 12vw, 9rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1.25rem; padding: 0.35rem 0.85rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
}

/* the wordmark in running text, as in the logo: Bio · in · Framed */
.wm { white-space: nowrap; }
.wm b { font-weight: 750; }
.wm__in { font-weight: 400; margin-inline: 0.06em; opacity: 0.9; }

/* ------------------------------------------------------------------ sections */

.section { padding-block: var(--section-y); }
.section--tint {
  position: relative;
  background:
    radial-gradient(circle, rgba(40, 127, 194, 0.09) 1.2px, transparent 1.7px) 0 0 / 26px 26px,
    var(--bg);
}
.section--overlap { padding-top: 0; }
.section:not(.section--tint) + .section--cta { padding-top: 0; }
.section--overlap > .container { margin-top: clamp(-6.5rem, -9vw, -4rem); position: relative; z-index: 2; }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }
.section__title { position: relative; }
.section__title--spaced { margin-top: 3.5rem; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.65; color: var(--ink-soft); }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.more-link { margin-top: 1.5rem; }
.more-link a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; }

/* ------------------------------------------------------------------ cards */

.card {
  position: relative; display: block;
  padding: clamp(1.4rem, 3vw, 2rem);
  color: inherit; text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
a.card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
a.card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
.card h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }
.card p { color: var(--ink-soft); }
.card__kicker { margin: 0 0 1rem; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-ink); }
.card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem; font-weight: 600; font-size: 0.95rem; color: var(--blue-ink); }
.card__more .icon { transition: transform 0.18s ease; }
a.card:hover .card__more .icon { transform: translateX(4px); }
.card--plain { box-shadow: none; }

.icon-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 3rem; height: 3rem; border-radius: 0.85rem; color: #fff;
  background: linear-gradient(135deg, var(--red) 15%, var(--blue) 85%);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--blue) 80%, transparent);
}
.icon-tile .icon { width: 1.5rem; height: 1.5rem; }
.icon-tile--sm { width: 2.6rem; height: 2.6rem; border-radius: 0.75rem; }
.icon-tile--sm .icon { width: 1.3rem; height: 1.3rem; }
.icon-tile--lg { width: 6rem; height: 6rem; border-radius: 22%; }
.icon-tile--lg .icon { width: 2.75rem; height: 2.75rem; stroke-width: 1.5; }
.icon-tile--blue { background: var(--blue); }
.icon-tile--red { background: var(--red); }

/* ------------------------------------------------------------------ home */

.home-services { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card--flagship { display: flex; flex-direction: column; overflow: hidden; }
.card--flagship::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.card--flagship .card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.card--flagship h3 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.card--flagship > p { font-size: 1.08rem; max-width: 30rem; }
.card--flagship .card__more { margin-top: 0.5rem; }
/* two screenshots peeking out of the card's bottom edge */
.card__preview {
  position: relative; flex: 1 0 13rem; min-height: 13rem;
  margin: 1.75rem calc(-1 * clamp(1.4rem, 3vw, 2rem)) calc(-1 * clamp(1.4rem, 3vw, 2rem));
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(40, 127, 194, 0.12) 1.2px, transparent 1.7px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--surface), var(--blue-tint));
  border-top: 1px solid var(--line);
}
.card__preview img {
  position: absolute; top: 1.75rem; width: min(46%, 17rem);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transition: transform 0.35s ease;
}
.card__preview img:first-child { left: 8%; transform: rotate(-3deg); }
.card__preview img:last-child { right: 8%; top: 2.75rem; transform: rotate(3deg); }
a.card--flagship:hover .card__preview img:first-child { transform: rotate(-4deg) translateY(-6px); }
a.card--flagship:hover .card__preview img:last-child { transform: rotate(4deg) translateY(-6px); }
.card__logo { width: 3.5rem; height: 3.5rem; border-radius: 22%; }
.card__kicker--outside { margin: 0 0 0.75rem 0.25rem; }
.home-services__rest { display: flex; flex-direction: column; }
.home-services__grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; flex: 1; }
.card--service { display: grid; grid-template-columns: auto 1fr auto; column-gap: 1rem; align-items: start; align-content: center; }
.card--service .icon-tile { grid-row: span 2; }
.card--service h3 { margin: 0.1rem 0 0.2rem; }
.card--service p { grid-column: 2; font-size: 0.95rem; }
.card--service .card__more { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; color: var(--muted); }
a.card--service:hover .card__more { color: var(--blue-ink); }
.page-home .card__kicker--outside { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
@media (min-width: 60rem) {
  .home-services { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .card--flagship { min-height: 100%; }
  .card--flagship { padding-top: calc(clamp(1.4rem, 3vw, 2rem) + 0.25rem); }
}
@media (max-width: 59.99rem) {
  .page-home .card__kicker--outside { color: var(--red-ink); text-shadow: none; margin-top: 1rem; }
}

.home-peer { display: grid; gap: 2rem; align-items: center; }
.home-peer__text { color: var(--ink-soft); font-size: 1.08rem; }
.more-link-inline { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-weight: 600; text-decoration: none; }
.quote--feature { box-shadow: var(--shadow); }
.quote--feature blockquote p { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--ink); }
@media (min-width: 60rem) { .home-peer { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }

/* ------------------------------------------------------------------ about */

.founder { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin: 0 auto 3rem; max-width: 60rem; }
.founder__photo { margin: 0; justify-self: center; text-align: center; }
.founder__photo img { width: min(16rem, 60vw); filter: drop-shadow(0 16px 28px rgba(16, 24, 40, 0.18)); }
.founder__photo figcaption { margin-top: 0.75rem; display: flex; flex-direction: column; line-height: 1.4; }
.founder__photo figcaption span { color: var(--muted); font-size: 0.9rem; }
.founder__hello { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 650; color: var(--ink) !important; line-height: 1.35; }
.founder__intro p { font-size: 1.08rem; }
@media (min-width: 48rem) { .founder { grid-template-columns: auto 1fr; } }

.principles { display: grid; gap: 1.25rem; max-width: 60rem; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
.principle {
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.25rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.principle h3 { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.9rem; font-size: clamp(1.2rem, 2vw, 1.4rem); }
.principle__n {
  display: inline-grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem;
  font-size: 1rem; color: #fff; border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--red) 15%, var(--blue) 85%);
}

/* call to action band */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: clamp(2rem, 5vw, 3.25rem); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.cta h2 { margin: 0; max-width: 30ch; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.cta p { margin: 0.5rem 0 0; color: rgba(255, 255, 255, 0.9); max-width: 46rem; }
.cta .cta__text { margin: 0 0 0.75rem; font-size: 1.05rem; }

/* ------------------------------------------------------------------ services */

.pill-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.pill-nav a {
  padding: 0.45rem 1rem; font-size: 0.9rem; font-weight: 600; text-decoration: none;
  color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
}
.pill-nav a:hover { color: var(--blue-ink); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.service-list { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.service {
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.service__art img { width: 6rem; border-radius: 22%; }
.service h2 { margin-bottom: 0.3rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.service h2 a { color: inherit; text-decoration: none; }
.service h2 a:hover { color: var(--blue-ink); }
.service__tagline { font-weight: 600; color: var(--blue-ink); }
.service p:not(.service__tagline) { color: var(--ink-soft); max-width: 48rem; }
@media (min-width: 48rem) {
  .service { grid-template-columns: 8rem 1fr; gap: 2.5rem; }
  .service__art { justify-self: center; }
}

/* ------------------------------------------------------------------ Harmony */

.split { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }
.panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.panel--red { border-left-color: var(--red); }
.panel h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.panel h3 { font-size: 1.4rem; margin-top: 1rem; }
.panel p { color: var(--ink-soft); }
.panel--lg { padding: clamp(1.6rem, 3.5vw, 2.5rem); }

.carousel { position: relative; }
.carousel__controls { display: flex; justify-content: flex-end; gap: 0.5rem; margin: -3.75rem 0 1rem; }
.carousel__btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 50%;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.carousel__btn:hover:not([disabled]) { color: #fff; background: var(--blue); border-color: var(--blue); }
.carousel__btn[disabled] { opacity: 0.4; cursor: default; }
.carousel__btn .icon { width: 1.25rem; height: 1.25rem; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 19rem); gap: 1.25rem;
  margin: 0 calc(-1 * var(--gutter)); padding: 0.5rem var(--gutter) 1.25rem;
  list-style: none; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.carousel__track:focus-visible { outline-offset: -3px; }
.carousel__slide { scroll-snap-align: start; }
.carousel__slide figure { margin: 0; }
.carousel__slide img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line); }
.carousel__slide figcaption { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.9rem; font-weight: 600; font-size: 0.95rem; }
.carousel__step {
  display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem;
  font-size: 0.8rem; color: #fff; border-radius: 50%; background: var(--ink);
}
@media (max-width: 47.99rem) { .carousel__controls { margin-top: 0; } }

.features { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.feature {
  padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.feature h3 { margin: 1rem 0 0.4rem; font-size: 1.02rem; }
.feature p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); line-height: 1.6; }

.qa-group { display: grid; gap: 0.75rem; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.qa[open] { box-shadow: var(--shadow-sm); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem; font-weight: 650; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--blue-ink); }
.qa__icon { width: 1.3rem; height: 1.3rem; color: var(--blue); transition: transform 0.2s ease; }
.qa[open] .qa__icon { transform: rotate(45deg); }
.qa__body { padding: 0 1.35rem 1.35rem; color: var(--ink-soft); }
.qa__body p { margin-bottom: 0.75em; }
.qa__list { display: grid; gap: 1rem; margin: 0; }
.qa__list > div { padding-left: 1rem; border-left: 3px solid var(--blue-tint); }
.qa__list dt { font-weight: 650; color: var(--ink); margin-bottom: 0.25rem; }
.qa__list dd { margin: 0; }

.api { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.api > * { min-width: 0; } /* the carousel inside must not widen the column */
.api__langs { display: grid; gap: 0.6rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.api__langs li {
  display: grid; grid-template-columns: 4.5rem auto 1fr; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm);
}
.api__langs li:nth-child(2) { border-left-color: var(--red); }
.api__langs li:nth-child(3) { border-left-color: var(--ink-soft); }
.api__langs code { font-size: 0.88rem; color: var(--blue-ink); }
.api__langs span { justify-self: end; font-size: 0.85rem; color: var(--muted); text-align: right; }
@media (max-width: 29.99rem) {
  .api__langs li { grid-template-columns: 4rem 1fr; }
  .api__langs span { grid-column: 2; justify-self: start; text-align: left; }
}
.api__fns-title { margin: 0 0 0.6rem; font-size: 0.92rem; font-weight: 600; color: var(--ink) !important; }
.api__fns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.api__fns code {
  padding: 0.35rem 0.7rem; font-size: 0.88rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.api__text p:not(.lead) { color: var(--ink-soft); }
.api__slides .carousel__controls { margin-top: 0; }
@media (min-width: 64rem) {
  .api { grid-template-columns: 1fr 1.15fr; }
  .api__slides { min-width: 0; }
  .api__slides .carousel__track { margin-right: 0; padding-right: 0; grid-auto-columns: 17rem; }
}

.license-wrap { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0.25rem var(--gutter) 0.5rem; }
.license { width: 100%; max-width: 52rem; min-width: 20rem; margin: 0 auto; border-collapse: separate; border-spacing: 0; font-size: 0.97rem; }
.license th, .license td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.license tbody th { text-align: left; font-weight: 600; }
.license thead th { padding-block: 1.25rem; border-bottom: 0; }
.license thead td { border-bottom: 0; }
.license__plan { font-size: 1.3rem; font-weight: 700; }
.license__full { background: var(--blue-tint); }
.license thead .license__full { border-radius: var(--radius) var(--radius) 0 0; color: var(--blue-ink); }
.license tbody tr:last-child .license__full { border-radius: 0 0 var(--radius) var(--radius); }
.license tbody tr:last-child > * { border-bottom: 0; }
.license__group th { padding-bottom: 0.3rem; border-bottom: 0; }
.license__group td { border-bottom: 0; }
.license__sub th { padding-left: 2rem; font-weight: 450; color: var(--ink-soft); }
.license__sub > * { padding-block: 0.45rem; border-bottom: 0; }
.license tr.license__sub:has(+ tr:not(.license__sub)) > * { border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; }
.license sup { margin-left: 0.15rem; color: var(--muted); font-weight: 500; }
.mark { display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; vertical-align: middle; }
.mark .icon { width: 1rem; height: 1rem; stroke-width: 2.4; }
.mark--yes { color: #fff; background: var(--blue); }
.mark--no { color: var(--red-ink); background: var(--red-tint); }
.license-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem;
  max-width: 52rem; margin: 2rem auto 0; text-align: center;
}
.license-cta p { flex: 1 1 22rem; margin: 0; color: var(--ink-soft); }
@media (max-width: 35.99rem) {
  .license { font-size: 0.88rem; }
  .license th, .license td { padding: 0.65rem 0.45rem; }
  .license__sub th { padding-left: 1rem; }
  .license__plan { font-size: 1.1rem; }
}
.footnotes { max-width: 52rem; margin: 2.5rem auto 0; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.footnotes li + li { margin-top: 0.6rem; }
.footnotes sup { margin-right: 0.3rem; font-weight: 600; }

/* ------------------------------------------------------------------ testimonials */

.quotes { columns: 1; column-gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.quotes > li { break-inside: avoid; margin-bottom: 1.25rem; }
@media (min-width: 48rem) { .quotes { columns: 2; } }
@media (min-width: 72rem) { .quotes { columns: 3; } }
.quote {
  position: relative; margin: 0; padding: 1.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.quote__mark { width: 2rem; height: 2rem; margin-bottom: 0.75rem; color: var(--red); stroke-width: 1.25; fill: color-mix(in srgb, var(--red) 15%, transparent); }
.quote blockquote { margin: 0; }
.quote blockquote p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.7; }
.quote figcaption { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); line-height: 1.35; }
.quote figcaption > span:last-child { display: flex; flex-direction: column; }
.quote figcaption > span:last-child span { font-size: 0.86rem; color: var(--muted); }
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem;
  font-weight: 650; font-size: 0.9rem; color: #fff; border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 15%, var(--blue) 85%);
}

/* ------------------------------------------------------------------ contact */

.contact { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 60rem) { .contact { grid-template-columns: 1.5fr 1fr; } }
.contact__form { box-shadow: var(--shadow); }
.contact__form h2, .contact__details h2 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.contact__details { display: grid; gap: 1.25rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 600; }
.req { color: var(--red-ink); }
.field input, .field textarea {
  display: block; width: 100%; padding: 0.75rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--red); background: var(--red-tint); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0.5rem 0 1.25rem; min-height: 65px; }
.contact__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.contact__privacy { margin: 0; font-size: 0.85rem; color: var(--muted); }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 0.9rem 1.1rem; color: #1D5E3A; background: #EAF6EF; border-radius: var(--radius-sm); }
.form-status.is-error { padding: 0.9rem 1.1rem; color: var(--red-ink); background: var(--red-tint); border-radius: var(--radius-sm); }
.details { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.details li { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--ink-soft); line-height: 1.55; }
.details .icon { margin-top: 0.1rem; color: var(--blue); }

/* ------------------------------------------------------------------ legal */

.legal h2 { margin-top: 2.25rem; font-size: 1.35rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.5rem; font-size: 1.08rem; }
.legal ul, .legal ol { padding-left: 1.25rem; color: var(--ink-soft); }
.legal li + li { margin-top: 0.25rem; }

/* ------------------------------------------------------------------ footer */

.site-footer { padding-top: clamp(3rem, 6vw, 4.5rem); color: rgba(255, 255, 255, 0.72); background: var(--dark); font-size: 0.93rem; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer__grid { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.site-footer__brand img { width: 11rem; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 20rem; }
.site-footer__title { margin-bottom: 0.9rem; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.site-footer__social { display: flex; gap: 0.5rem; margin-top: 1.25rem !important; }
.site-footer__social li + li { margin-top: 0; }
.site-footer__social a {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  background: rgba(255, 255, 255, 0.08); border-radius: 50%; transition: background-color 0.15s ease;
}
.site-footer__social a:hover { background: var(--blue); }
.site-footer__social .icon { width: 1.15rem; height: 1.15rem; }
.site-footer__address { line-height: 1.75; }
.site-footer__base { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }
.site-footer__base p { margin: 0; }

/* ------------------------------------------------------------------ print */

@media print {
  .site-header, .site-footer, .carousel__controls, .hero__actions, .cta .btn { display: none !important; }
  .brand-bg { color: var(--ink); background: none !important; }
  .brand-bg::before { display: none; }
  .section { padding-block: 1.5rem; }
}
