/* css/fonts.css */
/* Self-hosted Google Fonts (variable woff2, latin + latin-ext), so no third-party request blocks

   the first paint. Inter and Plus Jakarta Sans: weights 400–700 in one file each. Kavoon: the

   home demo's font picker. Regenerate with the same families if a weight or font is added. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  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: 'Kavoon';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/kavoon-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;
}

@font-face {
  font-family: 'Kavoon';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/kavoon-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-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;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-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;
}

/* css/components/page-loader.css */
/* Full-screen loader: three dots bouncing in a staggered wave while alternating between the
   two brand colours (green #90A733, blue-grey #8DAEB5). Shown until the first screen is ready
   (js/components/page-loader.js), then faded out. Only transform animates for the motion;
   the colour change is on three small dots. */
html.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #f4f4f4;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader__dots {
  --dot: 22px;
  --loader-duration: 2.4s;

  display: flex;
  align-items: center;
  gap: calc(var(--dot) * 0.8);
}

.page-loader__dots span {
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: #90a733;
  animation:
    loader-bounce calc(var(--loader-duration) / 3) cubic-bezier(0.45, 0, 0.55, 1) infinite,
    loader-colour var(--loader-duration) linear infinite;
}

/* Each dot trails the previous one, so both the wave and the colour change travel along. */
.page-loader__dots span:nth-child(2) {
  animation-delay: -0.66s, -2.2s;
}

.page-loader__dots span:nth-child(3) {
  animation-delay: -0.53s, -2s;
}

@keyframes loader-bounce {
  0%, 100% { transform: translateY(calc(var(--dot) * 0.7)); }
  50% { transform: translateY(calc(var(--dot) * -0.7)); }
}

/* Brand colours only: green #90A733 and blue-grey #8DAEB5, with quick (~80ms) switches. */
@keyframes loader-colour {
  0%, 45% { background: #90a733; }
  50%, 95% { background: #8daeb5; }
  100% { background: #90a733; }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__dots span {
    animation: loader-colour var(--loader-duration) linear infinite;
  }
}

/* css/styles.css */
:root {
  --color-bg: #ffffff;
  --color-text: #12111d;
  --color-muted: #5b6470;
  --color-primary: #90a733;
  --color-primary-contrast: #ffffff;
  --color-border: #e5e7eb;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Titles: Plus Jakarta Sans (Google Fonts, loaded in each page's <head>). */
  --font-display: "Plus Jakarta Sans", var(--font-sans);
  /* Page side padding: 40px desktop, 32px tablet, 16px phone. Content is capped at 1320px. */
  --gutter: 40px;
  --container: calc(1320px + 2 * var(--gutter));
  --radius: 10px;
  --header-h: 80px;
  /* Height-fitted desktop sections never lay out shorter than this (keep in sync with
     MIN_HEIGHT in js/components/viewport-fit.js). */
  --fit-min-height: 600px;
}

@media (max-width: 1199px) {
  :root {
    --header-h: 64px;
    --gutter: 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  /* Decorative glows sit partly off-screen; never let them cause horizontal scroll. */
  overflow-x: clip;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Green title accent (Figma: linear, #A0BF22 at 55% → #3C4A07 at 100%).
   box-decoration-break gives each line of a wrapped accent the full gradient. */
.text-gradient {
  background: linear-gradient(90deg, #a0bf22 55%, #3c4a07 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.btn-primary {
  --btn-bg: #90a733;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--btn-bg);
  /* Inner shadows cover the full shape, including under the stroke, like Figma.
     White glow listed first so it paints on top of the dark shadow. */
  box-shadow:
    inset 0 2px 8px -2px rgba(255, 255, 255, 0.56),
    inset 0 0 8px -2px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}

/* Figma's inside gradient stroke: a 1px ring drawn on top of the fill and shadows. */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.12));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-primary:active {
  filter: brightness(0.96);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--btn-bg);
  outline-offset: 2px;
}

/* css/components/reveal.css */
/* In-view reveal animations (js/components/reveal.js).
   - data-reveal="<variant>" on an element: it animates once, the first time it scrolls into
     view. Optional fixed delay: style="--reveal-delay: 120ms".
   - data-reveal-children="<variant>" on a list: each child gets that variant, and children
     revealed together are staggered automatically. Add data-reveal-together to reveal the
     whole list as soon as any child is in view (horizontal rows).
   The hidden start state only applies under html.js (inline script in <head>), so without JS
   everything is simply visible. Keyframe animations (not transitions) are used so a reveal
   never overrides an element's own hover / state transitions; when one ends, the element is
   back to its normal styles. Only opacity / transform / filter animate.

   Variants:
     blur     filter blur(20px)                → none   (headings, short text)
     up       translateY(100px)                → none   (large visuals)
     fade-up  opacity 0 + translateY(40px)     → none   (cards, paragraphs, rows) */
.js [data-reveal="blur"]:not(.is-revealed) {
  filter: blur(20px);
}

.js [data-reveal="up"]:not(.is-revealed) {
  transform: translateY(100px);
}

.js [data-reveal="fade-up"]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(40px);
}

.js [data-reveal].is-revealed {
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: var(--reveal-delay, 0s);
  animation-fill-mode: backwards;
}

.js [data-reveal="blur"].is-revealed {
  animation-name: reveal-blur;
}

.js [data-reveal="up"].is-revealed {
  animation-name: reveal-up;
}

.js [data-reveal="fade-up"].is-revealed {
  animation-name: reveal-fade-up;
}

@keyframes reveal-blur {
  from { filter: blur(20px); }
}

@keyframes reveal-up {
  from { transform: translateY(100px); }
}

@keyframes reveal-fade-up {
  from { opacity: 0; transform: translateY(40px); }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal]:not(.is-revealed) {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .js [data-reveal].is-revealed {
    animation: none;
  }
}

/* css/components/header.css */
/* The header is its own dark bar, whatever the top of the page looks like. On pages with a dark
   hero under it (<site-header transparent>), the bar only appears once scrolling starts. */
site-header {
  --color-text: #ffffff;
  --color-muted: #c4c4cc;
  --color-border: rgba(255, 255, 255, 0.08);

  display: block;
  color: var(--color-text);
  position: sticky;
  top: 0;
  z-index: 50;
  /* Reserve height before the component renders to avoid layout shift. */
  min-height: var(--header-h);
}

.site-header {
  background: rgba(18, 17, 29, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.2s ease, backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease;
}

.site-header--transparent:not(.is-scrolled, .is-open) {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.site-header__logo img {
  height: 38px;
  width: auto;
}

.site-header__menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  gap: 24px;
}

/* Centered on the page (not between logo and actions), as in the design. */
.site-header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 45px;
}

.site-header__link,
.site-header__demo {
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-header__link {
  color: var(--color-muted);
}

.site-header__link:hover,
.site-header__link[aria-current="page"] {
  color: var(--color-text);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__demo {
  color: var(--color-text);
  font-weight: 500;
}

.site-header__demo:hover {
  color: var(--color-muted);
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.is-open .site-header__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.is-open .site-header__toggle span:nth-child(2) {
  opacity: 0;
}

.is-open .site-header__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1199px) {
  .site-header__logo img {
    height: 34px;
  }

  .site-header__toggle {
    display: flex;
  }

  /* Drawer: always rendered so it can animate. Closed = clipped to nothing above its top
     edge + invisible (visibility also removes it from keyboard / screen readers once the
     close transition ends). Opening unrolls it downward, then the items rise in one by
     one (--i, set per item by site-header.js); closing is a quicker reverse. */
  .site-header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px var(--gutter) 24px;
    /* Opaque, no backdrop-filter: nested inside the header's own backdrop-filter, a second
       one renders the page through the drawer in Chrome. */
    background: #12111d;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition:
      clip-path 0.3s cubic-bezier(0.4, 0, 1, 1),
      visibility 0s linear 0.3s;
  }

  .is-open .site-header__menu {
    clip-path: inset(0 0 -60px 0); /* negative bottom keeps the shadow visible */
    visibility: visible;
    transition:
      clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  .site-header__menu .site-header__link,
  .site-header__menu .site-header__demo,
  .site-header__menu .btn-primary {
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.15s ease,
      transform 0.15s ease;
  }

  .is-open .site-header__menu .site-header__link,
  .is-open .site-header__menu .site-header__demo,
  .is-open .site-header__menu .btn-primary {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.35s ease calc(0.12s + var(--i, 0) * 0.04s),
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) calc(0.12s + var(--i, 0) * 0.04s),
      color 0.15s ease;
  }

  .site-header__nav {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header__link {
    padding-block: 12px;
    font-size: 16px;
  }

  .site-header__actions {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-header__demo {
    padding-block: 10px;
    text-align: center;
  }
}

@media (max-width: 1199px) and (prefers-reduced-motion: reduce) {
  .site-header__menu,
  .is-open .site-header__menu {
    clip-path: none;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  .is-open .site-header__menu {
    opacity: 1;
    transition: opacity 0.2s ease, visibility 0s;
  }

  .site-header__menu .site-header__link,
  .site-header__menu .site-header__demo,
  .site-header__menu .btn-primary {
    transform: none;
  }
}

/* css/sections/docs.css */
/* Help Center (/docs): home (hero + search, start here, category cards, popular, videos),
   category and search pages (menu + list), and the article page from the design (menu,
   article, "On this page"; the article body reuses .post-content from blog-post.css).
   The page leaves room at the bottom for the footer's overlapping CTA banner. */
.docs-page {
  padding-bottom: calc(120px + var(--cta-overlap));
}

/* ---- Hero + search (home) ---------------------------------------------------------------- */
.docs-hero {
  padding: 72px 0 56px;
  background: radial-gradient(60% 120% at 50% 0%, #f3f7e6 0%, rgba(243, 247, 230, 0) 70%);
  text-align: center;
}

.docs-hero__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
}

.docs-hero__text {
  margin: 0 auto 28px;
  max-width: 620px;
  color: #5b6470;
  font-size: 15px;
  line-height: 22px;
}

.docs-search {
  position: relative;
  display: flex;
  gap: 8px;
  margin: 0 auto;
  max-width: 600px;
  padding: 6px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(18, 17, 29, 0.06);
}

.docs-search:focus-within {
  border-color: #90a733;
}

.docs-search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 18px;
  height: 18px;
  color: #8a8a8a;
  transform: translateY(-50%);
  pointer-events: none;
}

.docs-search input {
  flex: 1;
  min-width: 0;
  padding: 0 12px 0 40px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
}

.docs-search input:focus {
  outline: none;
}

.docs-search button {
  flex: none;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #90a733;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.docs-search button:hover {
  filter: brightness(1.06);
}

/* Search-as-you-type dropdown (js/components/docs-search.js) */
.docs-search {
  z-index: 20;
}

.docs-search.is-loading .docs-search__icon {
  animation: docs-search-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes docs-search-pulse {
  to {
    color: #90a733;
  }
}

.docs-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(440px, 60vh);
  margin: 0;
  padding: 6px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(18, 17, 29, 0.12);
  list-style: none;
  overflow-y: auto;
  text-align: left;
}

.docs-suggest__option a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
}

.docs-suggest__option[aria-selected="true"] a,
.docs-suggest__option a:hover {
  background: #f3f7e6;
}

.docs-suggest__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.docs-suggest__category {
  align-self: start;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #5b6470;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}

.docs-suggest__summary {
  grid-column: 1 / -1;
  color: #5b6470;
  font-size: 12.5px;
  line-height: 18px;
}

.docs-suggest mark {
  border-radius: 2px;
  background: #e4efbf;
  color: inherit;
}

.docs-suggest__empty {
  padding: 12px;
  color: #5b6470;
  font-size: 14px;
}

.docs-suggest__all {
  margin-top: 4px;
  border-top: 1px solid #f0f0f0;
}

.docs-suggest__all a {
  display: block;
  margin-top: 4px;
  color: #6f8a1f;
  font-size: 13px;
  font-weight: 500;
}

/* ---- Home sections ------------------------------------------------------------------------- */
.docs-home {
  padding-top: 24px;
}

.docs-section {
  margin-top: 56px;
}

.docs-section__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.docs-start,
.docs-cats,
.docs-popular,
.docs-videos {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-start {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.docs-start__card {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.docs-start__card:hover {
  border-color: #c9d98a;
  box-shadow: 0 8px 24px rgba(18, 17, 29, 0.06);
}

.docs-start__step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #eef4d8;
  color: #6f8a1f;
  font-size: 13px;
  font-weight: 600;
}

.docs-start__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.docs-start__summary {
  color: #5b6470;
  font-size: 13px;
  line-height: 19px;
}

/* Category cards */
.docs-cats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-cat {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #ffffff;
  transition: box-shadow 0.15s ease;
}

.docs-cat:hover {
  box-shadow: 0 8px 24px rgba(18, 17, 29, 0.06);
}

.docs-cat__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin-bottom: 14px;
}

.docs-cat__icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.docs-cat__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.docs-cat__name a {
  color: inherit;
  text-decoration: none;
}

.docs-cat__name a:hover {
  color: #6f8a1f;
}

.docs-cat__count {
  color: #8a8a8a;
  font-size: 13px;
}

.docs-cat__docs {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
}

.docs-cat__docs a {
  color: #3a3a44;
  text-decoration: none;
}

.docs-cat__docs a:hover {
  color: #6f8a1f;
}

.docs-cat__all {
  margin-top: auto;
  color: #6f8a1f;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* Popular */
.docs-popular {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.docs-popular a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f7f7f8;
  color: var(--color-text);
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.docs-popular a:hover {
  background: #eef4d8;
}

.docs-popular__cat {
  flex: none;
  color: #8a8a8a;
  font-size: 12px;
}

/* Videos */
.docs-videos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.docs-video-card {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.docs-video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #12111d;
  overflow: hidden;
}

.docs-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.docs-video-card:hover .docs-video-card__thumb img {
  transform: scale(1.03);
}

.docs-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(18, 17, 29, 0.75);
  transform: translate(-50%, -50%);
}

.docs-video-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #ffffff;
  transform: translate(-50%, -50%);
}

.docs-video-card__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
}

/* ---- Support banner ------------------------------------------------------------------------ */
.docs-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 56px;
  padding: 28px 32px;
  border-radius: 14px;
  background: #f3f7e6;
}

.docs-support__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.docs-support__text {
  margin: 0;
  color: #5b6470;
  font-size: 14px;
}

/* ---- Menu + article layout (menu | article | "On this page") ----------------------------
   Same proportions as the blog post (blog-post.css): the wide container, the article takes
   the rest of the row, the "On this page" box is the blog's grey panel. */
.docs-page {
  --container: calc(1240px + 2 * var(--gutter));
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 260px;
  align-items: start;
  gap: 48px;
  padding-top: 48px;
}

.docs-layout--two {
  grid-template-columns: 250px minmax(0, 1fr);
}

.docs-side,
.docs-toc-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}

/* "On this page": the blog's panel (.post-toc-panel, blog-post.css) — grey box, title outside
   the scrolling list on desktop, collapsible <summary> on phones. The column is as tall as the
   screen so the panel can scroll inside itself. */
@media (min-width: 900px) {
  .docs-toc-side {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .docs-toc-side > .post-aside {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .docs-toc-side .post-toc-panel {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 200px;
    border-radius: 12px;
    background: #f5f5f6;
    overflow: hidden;
  }

  .docs-toc-side .post-toc-panel__title {
    display: block;
    flex: none;
    margin: 0;
    padding: 16px 16px 10px;
    font-size: 14px;
    font-weight: 600;
  }

  .docs-toc-side .post-toc-box {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 16px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .docs-toc-side .post-toc {
    margin-bottom: 0;
  }
}

/* The panel title is for desktop; phones use the collapsible <summary> (blog-post.css). */

.docs-toc-side .post-toc-box > summary::-webkit-details-marker {
  display: none;
}

/* Left menu: one collapsible group per category. */
.docs-nav__group {
  margin-bottom: 4px;
}

.docs-nav__group > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.docs-nav__group > summary::-webkit-details-marker {
  display: none;
}

.docs-nav__group > summary::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.docs-nav__group[open] > summary::before {
  transform: rotate(45deg);
}

.docs-nav__group ul {
  margin: 0 0 8px;
  padding: 0 0 0 14px;
  list-style: none;
}

.docs-nav__group a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: #5b6470;
  font-size: 13.5px;
  line-height: 19px;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.docs-nav__group a:hover {
  color: var(--color-text);
}

.docs-nav__group a[aria-current="page"] {
  background: #f3f7e6;
  color: #6f8a1f;
  font-weight: 500;
}

/* Article header */
.docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: #5b6470;
  font-size: 13px;
}

.docs-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.docs-breadcrumb a:hover {
  color: var(--color-text);
}

.docs-breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.docs-breadcrumb [aria-current] {
  color: #7d9a2c;
}

/* Title and lead as on the blog post hero (.post-title from blog-post.css carries the type). */
.docs-title {
  margin: 0 0 12px;
}

.docs-meta {
  margin: 0 0 20px;
  color: #8a8a8a;
  font-size: 14px;
}

.docs-lead {
  margin: 0 0 32px;
  max-width: 640px;
  color: #5b6470;
  font-size: 17px;
  line-height: 28px;
}

.docs-cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.docs-cat-header .docs-cat__icon {
  grid-row: auto;
  width: 48px;
  height: 48px;
}

/* Article body extras (base typography: .post-content) */
.docs-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid #ececec;
}

.doc-callout {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 4px solid #90a733;
  border-radius: 8px;
  background: #f5f9e8;
  font-size: 14px;
  line-height: 22px;
}

.doc-callout p {
  margin: 0;
}

.doc-callout__label {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.doc-callout--note {
  border-left-color: #3b82f6;
  background: #eef4ff;
}

.doc-callout--warning {
  border-left-color: #f59e0b;
  background: #fff7e6;
}

.doc-video {
  margin: 28px 0;
}

.doc-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #12111d;
  overflow: hidden;
}

.doc-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.doc-video video {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: #12111d;
}

.doc-video figcaption {
  margin-top: 8px;
  color: #8a8a8a;
  font-size: 13px;
  text-align: center;
}

/* Was this helpful? */
.docs-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px solid #ececec;
  border-radius: 10px;
}

.docs-feedback__question,
.docs-feedback__thanks {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.docs-feedback__buttons {
  display: flex;
  gap: 8px;
}

.docs-feedback button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.docs-feedback button:hover {
  border-color: #90a733;
  background: #f5f9e8;
}

.docs-feedback.is-done .docs-feedback__question,
.docs-feedback.is-done .docs-feedback__buttons {
  display: none;
}

/* Related + previous / next */
.docs-related {
  margin-top: 36px;
}

.docs-related__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.docs-related ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-related a {
  color: #2f6fde;
  font-size: 14px;
  text-underline-offset: 2px;
}

.docs-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.docs-pager__link {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.docs-pager__link:hover {
  border-color: #90a733;
}

.docs-pager__link--prev::before,
.docs-pager__link--next::before {
  display: none;
}

.docs-pager__link--next {
  grid-column: 2;
  text-align: right;
}

.docs-pager__label {
  color: #8a8a8a;
  font-size: 12px;
}

.docs-pager__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.docs-pager__link--prev .docs-pager__label::before {
  content: "‹ ";
}

.docs-pager__link--next .docs-pager__label::after {
  content: " ›";
}

/* Article rows (category + search pages) */
.docs-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.docs-list__item {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.docs-list__item:hover {
  border-color: #c9d98a;
  box-shadow: 0 6px 20px rgba(18, 17, 29, 0.05);
}

.docs-list__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.docs-list__category {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #5b6470;
  font-size: 12px;
}

.docs-list__summary {
  color: #5b6470;
  font-size: 14px;
  line-height: 21px;
}

.docs-main .docs-search {
  margin: 0 0 20px;
  max-width: none;
  box-shadow: none;
}

.docs-empty {
  padding: 24px;
  border-radius: 10px;
  background: #f7f7f8;
  font-size: 14px;
}

.docs-empty__title {
  margin: 0 0 6px;
  font-weight: 600;
}

/* ---- Smaller screens ---------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .docs-cats,
  .docs-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .docs-layout .docs-side {
    grid-row: span 2;
  }

  /* "On this page" moves above the article. */
  .docs-toc-side {
    position: static;
    grid-column: 2;
    grid-row: 1;
    max-height: none;
  }

  .docs-layout .docs-main {
    grid-column: 2;
  }
}

@media (max-width: 899px) {
  .docs-hero__title {
    font-size: 34px;
  }

  .docs-layout,
  .docs-layout--two {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .docs-toc-side,
  .docs-layout .docs-main,
  .docs-layout .docs-side {
    grid-column: auto;
    grid-row: auto;
  }

  .docs-toc-side {
    order: -1;
  }

  /* The category menu goes below the article ("browse more"). */
  .docs-side {
    position: static;
    order: 1;
    max-height: none;
    padding-top: 24px;
    border-top: 1px solid #ececec;
  }

  .docs-toc-side .post-toc-box {
    padding: 14px 18px;
    border: 1px solid #ececec;
    border-radius: 10px;
  }

  .docs-title {
    font-size: 26px;
    line-height: 34px;
  }
}

@media (max-width: 640px) {
  .docs-cats,
  .docs-videos,
  .docs-popular {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-pager__link--next {
    grid-column: auto;
  }

  .docs-support {
    padding: 22px;
  }
}

/* ---- Language menu (docs/_lang.blade.php): a <details> dropdown, in the hero and above the side menu. */
.docs-lang {
  position: relative;
  display: inline-block;
  font-size: 14px;
}
.docs-lang > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  background: #fff;
  color: #333;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.docs-lang > summary::-webkit-details-marker { display: none; }
.docs-lang > summary::after { content: "▾"; font-size: 11px; color: #777; }
.docs-lang > summary svg { width: 16px; height: 16px; }
.docs-lang[open] > summary { border-color: #bbb; }
.docs-lang ul {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  columns: 2;
  column-gap: 4px;
}
.docs-lang li { break-inside: avoid; }
.docs-lang a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}
.docs-lang a:hover { background: #f3f4f6; }
.docs-lang a[aria-current="true"] { font-weight: 600; color: var(--color-primary, #6b8e23); }
.docs-hero__lang { margin-top: 16px; }
.docs-hero__lang .docs-lang ul { left: 50%; transform: translateX(-50%); }
.docs-side .docs-lang { display: block; margin-bottom: 14px; }
.docs-side .docs-lang > summary { width: 100%; justify-content: space-between; border-radius: 10px; }

/* "Not translated yet" / machine-translation notes on an article. */
.docs-notice {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff4d6;
  color: #7a5a00;
  font-size: 14px;
  line-height: 20px;
}
.docs-notice--soft { background: #f3f4f6; color: #555; }
.docs-notice a { color: inherit; font-weight: 600; }

/* "In short:" callout (CalloutBlock type short) at the top of troubleshooting articles. */
.doc-callout--short {
  border-left-color: #1f2937;
  background: #f3f4f6;
}
.doc-callout--short .doc-callout__label { color: #1f2937; }

/* css/sections/footer.css */
/* Footer: green CTA banner overlapping the section above, then the dark link footer. */
:root {
  --cta-overlap: 220px;
}

@media (max-width: 640px) {
  :root {
    --cta-overlap: 140px;
  }
}

.site-footer {
  --color-text: #ffffff;
  --color-muted: #c4c4cc;

  /* flow-root stops the CTA's negative margin collapsing through the footer. */
  display: flow-root;
  padding-bottom: 40px;
  background: #120d21;
  color: var(--color-text);
}

/* CTA banner: pulled up so it straddles the white section and the dark footer. */
.footer-cta {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--cta-overlap));
  padding: 50px 32px 66px;
  border-radius: 16px;
  background:
    radial-gradient(45% 80% at 8% 60%, rgba(78, 102, 20, 0.55), transparent 70%),
    radial-gradient(40% 70% at 95% 20%, rgba(96, 124, 24, 0.5), transparent 70%),
    linear-gradient(90deg, #7e9c32, #86a53c 50%, #7a972f);
  overflow: hidden;
  text-align: center;
}

.footer-cta__title {
  margin: 0 auto 10px;
  max-width: 620px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 56px;
}

.footer-cta__text {
  margin: 0 auto 32px;
  max-width: 600px;
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.footer-cta__trial {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  color: #12111d;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.footer-cta__trial:hover {
  background: #eef2e0;
}

.footer-cta__demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.footer-cta__demo svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

.footer-cta__demo:hover svg {
  transform: translate(2px, -2px);
}

/* Link columns */
.footer-main {
  display: grid;
  /* Figma at 1320px: brand 433, link columns 117 / 117 / 172, subscribe 321 (40px gaps). */
  grid-template-columns: minmax(0, 433fr) minmax(0, 117fr) minmax(0, 117fr) minmax(0, 172fr) minmax(0, 321fr);
  gap: 40px;
  padding-block: 88px 40px;
}

.footer-brand img {
  width: auto;
  height: 43px;
  margin-bottom: 24px;
}

.footer-brand p {
  margin: 0 0 24px;
  max-width: 360px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #262235;
  color: #ffffff;
  transition: background-color 0.15s ease;
}

.footer-social a:hover {
  background: #3a3550;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-nav h2,
.footer-subscribe h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Rows exactly 20px tall (Figma: 36px between links), not the body's 1.6 line-height. */
.footer-nav li {
  font-size: 14px;
  line-height: 20px;
}

.footer-nav a {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-subscribe p {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 24px;
}

.footer-subscribe__form {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #1c1829;
}

.footer-subscribe__form input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
}

.footer-subscribe__form input::placeholder {
  color: #9a98a6;
}

.footer-subscribe__form input:focus {
  outline: none;
}

.footer-subscribe__form:focus-within {
  border-color: #90a733;
}

.footer-subscribe__form button {
  flex: none;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  background: #90a733;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.footer-subscribe__form button:hover {
  filter: brightness(1.06);
}

.footer-subscribe__form button:disabled {
  cursor: progress;
  opacity: 0.7;
}

/* Shown under the form without taking up layout space (keeps Figma's 40px above the divider).
   Always the last (wide) column: the "More pages" column is only rendered once its links are set. */
.footer-subscribe {
  position: relative;
  grid-column: 5;
}

.footer-subscribe__status {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 8px 0 0;
  color: #c9dd7a;
  font-size: 13px;
}

.footer-subscribe__status.is-error {
  color: #ff9b9b;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 20px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1099px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 48px;
  }

  .footer-brand,
  .footer-subscribe {
    grid-column: 1 / -1;
  }

  .footer-subscribe {
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .footer-cta {
    padding: 48px 20px;
  }

  .footer-cta__title {
    font-size: 28px;
    line-height: 36px;
  }

  .footer-cta__text {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
    padding-block: 64px 40px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
