/* Spindrift Labs — Direction B (Drift) refined
 * Calm-tech: cool whites + the misty blues from the dot-cluster logo.
 * Shared across home, legal, and docs pages.
 */

:root {
  /* Tunable via Tweaks panel */
  --c-bg:        #f4f6f8;
  --c-bg-2:      #eaf0f5;
  --c-surface:   #ffffff;
  --c-ink:       #0f1620;
  --c-ink-soft:  #3a4a5a;
  --c-mute:      #4a5969;
  --c-line:      rgba(15, 22, 32, 0.07);
  --c-line-2:    rgba(15, 22, 32, 0.12);
  --c-accent:    #2c4866;     /* deep slate-blue from the logo */
  --c-accent-2:  #4b6e91;
  --c-accent-3:  #8aa7c0;
  --c-accent-4:  #b8b09a;     /* warm tail of the gradient */
  --c-link:      #2c4866;

  --f-body:      "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:      "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad-x:       max(28px, min(6vw, 80px));
  --max-w:       1240px;

  --radius-lg:   18px;
  --radius-md:   12px;
  --radius-sm:   8px;
}

[data-theme="dark"] {
  --c-bg:        #0a1018;
  --c-bg-2:      #111a25;
  --c-surface:   #131e2c;
  --c-ink:       #e6edf3;
  --c-ink-soft:  #b6c2cf;
  --c-mute:      #8a99a8;
  --c-line:      rgba(230, 237, 243, 0.08);
  --c-line-2:    rgba(230, 237, 243, 0.18);
  --c-accent:    #8aa7c0;
  --c-accent-2:  #6a8aa8;
  --c-accent-3:  #4b6e91;
  --c-accent-4:  #b8b09a;
  --c-link:      #aac3da;
}

[data-density="compact"] {
  --pad-x:       max(20px, min(4vw, 56px));
}

/* ─── Reset & base ─────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main { flex: 1; }

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

a { color: var(--c-link); }
a:focus-visible {
  outline: 2px solid var(--c-accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--c-accent-3); color: var(--c-ink); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-2);
}

.mono {
  font-family: var(--f-mono);
  font-feature-settings: normal;
}

/* ─── Header ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 80%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.wordmark img { height: 22px; width: auto; }
[data-theme="dark"] .wordmark img { filter: brightness(1.4) saturate(0.9); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a {
  font-size: 13.5px;
  color: var(--c-mute);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--c-ink); }
.site-header .btn-primary {
  background: var(--c-accent-2);
  color: #ffffff;
}

.btn {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line-2);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--c-ink) 5%, transparent); }
.btn-light {
  background: var(--c-bg);
  color: var(--c-ink);
}

/* ─── Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 56px;
}

.hero .container { position: relative; }

.hero-motif {
  position: absolute;
  pointer-events: none;
  top: -120px;
  right: calc(var(--pad-x) * -0.5);
  width: 760px;
  max-width: 60vw;
  opacity: 0.65;
  -webkit-mask-image: radial-gradient(circle at 30% 50%, black 25%, transparent 75%);
          mask-image: radial-gradient(circle at 30% 50%, black 25%, transparent 75%);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(-2deg); }
  to   { transform: translate(-12px, 14px) rotate(2deg); }
}
[data-theme="dark"] .hero-motif {
  opacity: 0.45;
  filter: brightness(1.1);
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: color-mix(in srgb, var(--c-accent-2) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-accent-2) 22%, transparent);
  border-radius: 999px;
  margin-bottom: 28px;
  animation: rise 0.8s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.product-pill .dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent-2), var(--c-accent-3));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-ink) 8%, transparent);
}
.product-pill .name { font-size: 13px; font-weight: 500; color: var(--c-ink); }
.product-pill .sub  {
  font-size: 12px; color: var(--c-mute);
  padding-left: 10px; margin-left: 2px;
  border-left: 1px solid var(--c-line-2);
}

.hero h1 {
  font-size: clamp(44px, 7.2vw, 92px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
  animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 .gradient {
  background: linear-gradient(110deg, var(--c-accent) 0%, var(--c-accent-2) 35%, var(--c-accent-3) 65%, var(--c-accent-4) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 400;
}

.hero-intro {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--c-ink-soft);
  max-width: 540px;
  margin: 28px 0 32px;
  text-wrap: pretty;
  animation: rise 0.9s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  animation: rise 0.9s 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-cta .btn-primary { padding: 13px 22px; font-size: 14.5px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
  font-size: 13px;
  color: var(--c-mute);
  animation: rise 0.9s 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent-2);
  font-style: normal;
}
.hero-meta span:nth-child(2) i { background: var(--c-accent-3); }
.hero-meta span:nth-child(3) i { background: var(--c-accent-4); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-motif { animation: none; }
  .product-pill, .hero h1, .hero-intro, .hero-cta, .hero-meta {
    animation: none;
  }
}

/* ─── Screenshot frame ───────────────────────────────── */

.shot {
  padding: 24px 0 80px;
}
.shot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg-2) 100%);
  padding: 24px;
  box-shadow:
    0 50px 100px -50px color-mix(in srgb, var(--c-accent) 40%, transparent),
    0 1px 0 color-mix(in srgb, white 100%, transparent) inset,
    0 0 0 1px var(--c-line);
  animation: rise 1s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
[data-theme="dark"] .shot-frame {
  box-shadow:
    0 50px 100px -50px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 1px var(--c-line);
}
.shot-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}
.shot-chrome .dots {
  display: flex; gap: 6px;
}
.shot-chrome .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: color-mix(in srgb, var(--c-ink) 12%, transparent);
}
.shot-chrome .url {
  flex: 1;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--c-mute);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 6px 12px;
}
.shot-img {
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 var(--c-line);
  width: 100%;
}

/* ─── Features ───────────────────────────────────────── */

.features {
  padding: 80px 0;
  border-top: 1px solid var(--c-line);
}
.features-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}
.features-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 12px 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat {
  position: relative;
  padding: 28px 26px 32px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--c-accent-2) 30%, transparent);
  box-shadow: 0 20px 40px -30px color-mix(in srgb, var(--c-accent) 40%, transparent);
}
.feat .tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-accent-2);
  margin-bottom: 18px;
}
.feat h3 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--c-ink);
  text-wrap: balance;
}
.feat p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-mute);
  margin: 0;
  text-wrap: pretty;
}
.feat .glyph {
  position: absolute;
  top: 24px; right: 24px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent-2);
  opacity: 0.4;
}
.feat:nth-child(2) .glyph { background: var(--c-accent-3); }
.feat:nth-child(3) .glyph { background: var(--c-accent-4); }

/* ─── Marketplace block ──────────────────────────────── */

.cta-band {
  padding: 32px 0 80px;
}
.cta-card {
  background: linear-gradient(135deg, #0f1620 0%, #1c2a3a 60%, #2c4866 100%);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  color: #dfe6ed;
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--c-accent) 60%, transparent);
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.cta-card .motif {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 380px;
  opacity: 0.18;
  filter: saturate(0.4) brightness(1.6);
  pointer-events: none;
}
.cta-card .body { position: relative; max-width: 600px; }
.cta-card .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #8aa7c0;
  margin-bottom: 14px;
}
.cta-card h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #ffffff;
  text-wrap: balance;
}
.cta-card p {
  font-size: 15px;
  color: #aebccb;
  margin: 0 0 26px;
  line-height: 1.55;
}

/* ─── Two-column lists ───────────────────────────────── */

.cols {
  padding: 72px 0;
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.cols .eyebrow { margin-bottom: 22px; display: block; }

.list-clean {
  margin: 0; padding: 0;
  list-style: none;
}
.list-clean li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15.5px;
  color: var(--c-ink);
  line-height: 1.5;
  align-items: baseline;
}
.list-clean li .n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-accent-3);
}

.dl-clean { margin: 0; }
.dl-clean .row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: baseline;
}
.dl-clean dt { font-size: 13px; color: var(--c-mute); }
.dl-clean dd {
  margin: 0;
  font-size: 13.5px;
  font-family: var(--f-mono);
}
.dl-clean dd a {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--c-accent) 35%, transparent);
  padding-bottom: 1px;
  transition: border-color 0.15s, color 0.15s;
}
.dl-clean dd a:hover {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
}

/* ─── Footer ─────────────────────────────────────────── */

.site-footer {
  padding: 52px 0 36px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-2);
  margin-top: auto;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.site-footer .brand .wordmark {
  margin-bottom: 12px;
}
.site-footer .brand p {
  font-size: 13.5px;
  color: var(--c-mute);
  margin: 0;
  max-width: 340px;
  line-height: 1.55;
}
.site-footer .nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, auto));
  gap: 48px;
}
.site-footer .nav-grid h4 {
  font-size: 11px;
  color: var(--c-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 500;
}
.site-footer .nav-grid a {
  display: block;
  font-size: 13.5px;
  color: var(--c-ink);
  text-decoration: none;
  margin-bottom: 6px;
}
.site-footer .nav-grid a:hover { color: var(--c-accent); }

.site-footer .bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--c-mute);
  font-family: var(--f-mono);
}

/* ─── Inner pages (legal + docs) ─────────────────────── */

.page {
  padding: 72px 0 96px;
  max-width: 920px;
  position: relative;
}

.page-motif {
  position: absolute;
  pointer-events: none;
  top: -20px;
  right: -140px;
  width: 340px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle at 30% 50%, black 25%, transparent 75%);
          mask-image: radial-gradient(circle at 30% 50%, black 25%, transparent 75%);
  animation: drift 24s ease-in-out infinite alternate;
}
[data-theme="dark"] .page-motif {
  opacity: 0.3;
  filter: brightness(1.1);
}
.page-back {
  font-size: 13px;
  color: var(--c-mute);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.page-back:hover { color: var(--c-ink); }

.page-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
  min-height: 150px;
}
.page-header h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 10px;
  text-wrap: balance;
}
.page-meta {
  font-size: 13px;
  color: var(--c-mute);
  font-family: var(--f-mono);
  margin: 0;
}

.page-body { font-size: 16px; }
.page-body section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: 32px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}
.page-body section:last-child { border-bottom: none; }
.page-body section > h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin: 4px 0 0;
  position: sticky;
  top: 84px;
}
.page-body .content > * + * { margin-top: 16px; }
.page-body .content h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 24px 0 4px;
  color: var(--c-ink);
}
.page-body .content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin: 0;
  text-wrap: pretty;
}
.page-body .content ul,
.page-body .content ol {
  margin: 0;
  padding-left: 22px;
  color: var(--c-ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}
.page-body .content li + li { margin-top: 4px; }
.page-body .content a {
  color: var(--c-link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--c-link) 35%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.page-body .content a:hover {
  text-decoration-color: var(--c-link);
}
.page-body .content strong { color: var(--c-ink); font-weight: 600; }
.page-body .content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 8px 0;
}
.page-body .content th,
.page-body .content td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  vertical-align: top;
}
.page-body .content th {
  background: var(--c-bg-2);
  color: var(--c-ink);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Docs index list */
.docs-list {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.docs-list a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-surface);
  text-decoration: none;
  color: var(--c-ink);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.docs-list a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--c-accent-2) 35%, transparent);
  box-shadow: 0 14px 30px -22px color-mix(in srgb, var(--c-accent) 50%, transparent);
}
.docs-list .num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-accent-3);
}
.docs-list strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
}
.docs-list span.desc {
  font-size: 13.5px;
  color: var(--c-mute);
}
.docs-list .arrow {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-mute);
}

/* ─── Centred support section (homepage) ─────────────── */

.support-centred {
  padding: 72px 0;
  border-top: 1px solid var(--c-line);
}
.support-centred .eyebrow {
  display: block;
  margin-bottom: 22px;
}
.support-centred .dl-clean {
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Docs page navigation ────────────────────────────── */

.docs-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--c-line);
  gap: 16px;
}
.docs-page-nav a {
  font-size: 13px;
  color: var(--c-mute);
  text-decoration: none;
  font-family: var(--f-mono);
  transition: color 0.15s;
  white-space: nowrap;
}
.docs-page-nav a:hover { color: var(--c-ink); }
.docs-page-nav-next { margin-left: auto; }

.doc-img {
  width: 100%;
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius-sm);
  margin: 12px 0 24px;
  display: block;
}

/* ─── Tweaks panel container helpers ─────────────────── */

.tweaks-toggle-tip {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--c-ink);
  color: var(--c-bg);
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.tweaks-toggle-tip.show { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 900px) {
  .site-header nav { gap: 16px; }
  .site-header nav .btn { padding: 8px 14px; }
  .features-grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 32px; }
  .page-body section { grid-template-columns: 1fr; gap: 14px; }
  .page-body section > h2 { position: static; }
  .site-footer .top { grid-template-columns: 1fr; }
  .site-footer .nav-grid { grid-template-columns: repeat(2, 1fr); }
  .features-head { grid-template-columns: 1fr; align-items: start; }
  .cta-card .motif { width: 280px; right: -120px; bottom: -120px; }
}
@media (max-width: 600px) {
  .site-header nav span.nav-text { display: none; }
  .hero-meta { gap: 14px; flex-direction: column; }
  .hero-motif { opacity: 0.4; }
  .docs-list a { grid-template-columns: 1fr auto; }
  .docs-list .num { display: none; }
}
