/* Datapad plugins site. Plain CSS, no build step.
   One dark shell for every page: Datapad navy, a glow behind the hero and frosted glass panels.
   A page's theme (body[data-theme]) changes only its accent, and a plugin card can have its own.
   Tones: sections are plain (the page itself), tint (a faint glow in the accent) or dark (a deeper, flat navy).
   All motion stops under prefers-reduced-motion; without scroll-driven animations everything is simply there. */

/* IBM Plex Sans and Mono, SIL Open Font License 1.1: see /fonts/IBM-Plex-OFL.txt. */
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}

:root {
  --navy: #030423;
  --navy-deep: #02031a;
  --purple: #6d04ae;
  --head: #ffffff;
  --body: #b8c2d6;
  --line: rgba(255, 255, 255, 0.12);
  --code-text: #e7eaf3;
  --code-comment: #8b93ad;

  /* Glass: a sheen at the top, a white film and a light navy one, so the scene shows through
     and text on it still passes over the brightest glow and the dimmed mountains. The rim catches the light at the top and left. */
  --glass: linear-gradient(rgba(255, 255, 255, 0.06), transparent 40%), linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)), rgba(3, 4, 35, 0.35);
  --glass-solid: #0d1035;
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-edge-hover: rgba(255, 255, 255, 0.26);
  --glass-rim: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.12) rgba(255, 255, 255, 0.08) rgba(255, 255, 255, 0.18);
  --glass-blur: blur(24px) saturate(160%);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --radius: 16px;
  --radius-small: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 20px;
  --gap: 16px;
  --band: 48px;
  --head-gap: 24px;
  color-scheme: dark;
}
@media (min-width: 720px) {
  :root { --gutter: 32px; --gap: 24px; --band: 72px; --head-gap: 32px; }
}

/* Theme colours: the accent, the accent on navy, and the main button.
   The button is the accent with a white label where that passes and stands out from the navy;
   otherwise (Datapad's purple fades into its own glow) it is the light accent with a navy label. */
[data-theme="datapad"] {
  --accent: #6d04ae; --accent-dark: #c9a2f5; --btn-bg: var(--accent-dark); --btn-ink: var(--navy);
}
[data-theme="campaigncanvas"] {
  --accent: #3f8fd9; --accent-dark: #7fb6ec; --btn-bg: var(--accent-dark); --btn-ink: var(--navy);
}
[data-theme="storecanvas"] {
  --accent: #f2b544; --accent-dark: #f2b544; --btn-bg: var(--accent-dark); --btn-ink: var(--navy);
}
[data-theme="foundwell"] {
  --accent: #2f6df6; --accent-dark: #8fb0ff; --btn-bg: var(--accent); --btn-ink: #ffffff;
}
[data-theme="autotranslate"] {
  --accent: #0e7a61; --accent-dark: #5fd3b1; --btn-bg: var(--accent); --btn-ink: #ffffff;
}
[data-theme] { --btn-hover: color-mix(in srgb, var(--btn-bg) 88%, white); }
[data-theme="foundwell"], [data-theme="autotranslate"] { --btn-hover: color-mix(in srgb, var(--btn-bg) 88%, black); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--navy); }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: break-word;
  color: var(--body);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* The hero's glow reaches past the page's sides; clip it there and nowhere else. */
main { flex: 1 0 auto; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 12px;
  color: var(--head);
  font-weight: 500;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 1.1rem + 2.2vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 1rem + 1vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
h4, h5, h6 { font-size: 16px; line-height: 1.5; }
p, ul, ol, dl, figure, pre { margin: 0 0 16px; }
p { text-wrap: pretty; }
strong, b { font-weight: 500; }
a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 200ms, text-decoration-color 200ms;
}
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
code, pre { font-family: var(--mono); font-size: 14px; line-height: 1.55; }
::selection { background: var(--accent-dark); color: var(--navy); }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 30;
  padding: 10px 16px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass-solid);
  color: var(--head);
}
.skip:focus { top: 12px; }

/* Glass: the header, the panels, the frame around screenshots, the list of questions, the code's buttons and the secondary button. */
.site-header, .card, .plugin, .pricing, .facts, .figure, .hero__media, .btn--second, .code__copy,
.area:has(> .cell--faqItem):not(:has(> .cell:not(.cell--faqItem))) {
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.card, .plugin, .pricing, .facts, .figure, .hero__media,
.area:has(> .cell--faqItem):not(:has(> .cell:not(.cell--faqItem))) {
  border-color: var(--glass-rim);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .card, .plugin, .pricing, .facts, .figure, .hero__media, .btn--second, .code__copy, .code,
  .area:has(> .cell--faqItem):not(:has(> .cell:not(.cell--faqItem))) {
    background: var(--glass-solid);
  }
}

/* Header: glass that stays on top from 720px, darker than the panels so it reads over a light screenshot. */
.site-header {
  position: relative;
  z-index: 20;
  border-width: 0 0 1px;
  background: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)), rgba(3, 4, 35, 0.82);
}
@media (min-width: 720px) {
  .site-header { position: sticky; top: 0; }
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: inline-flex; }
.brand img { width: 112px; height: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 -10px; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 200ms, border-color 200ms;
}
.site-nav a:hover { color: var(--head); }
.site-nav a[aria-current="page"] { color: var(--head); border-bottom-color: var(--accent-dark); }

/* Shared bits */
.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.lead { max-width: 62ch; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 200ms, border-color 200ms, box-shadow 200ms, translate 200ms var(--ease);
}
/* The main button's light edge and glow keep it apart from the navy and from the glow behind it. */
.btn--main {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -10px var(--accent-dark);
}
.btn--main:hover { background: var(--btn-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 32px -8px var(--accent-dark); translate: 0 -1px; }
.btn--second { border-color: rgba(255, 255, 255, 0.22); color: var(--head); }
.btn--second:hover { border-color: rgba(255, 255, 255, 0.45); translate: 0 -1px; }

.more { font-size: 15px; font-weight: 500; line-height: 1.2; }

/* Hero: centred over the glow; a screenshot below the text, in a glass frame. */
.hero { position: relative; isolation: isolate; padding: 72px 0 48px; text-align: center; }
.hero__inner { display: grid; gap: 48px; }
.hero__text { max-width: 860px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
}
.hero__title { margin-bottom: 20px; font-size: clamp(40px, 1rem + 3.6vw, 64px); font-weight: 400; line-height: 1.05; letter-spacing: -0.035em; }
.hero .lead { max-width: 58ch; margin-inline: auto; font-size: 18px; line-height: 1.45; }
.hero .lead:last-of-type { margin-bottom: 0; }
.hero .buttons { justify-content: center; margin-top: 32px; }
.hero__media { width: 100%; max-width: 980px; margin: 0 auto; padding: 10px; text-align: left; }
.hero__media img { width: 100%; border-radius: 8px; }
@media (min-width: 720px) {
  .hero { padding: 120px 0 72px; }
}

/* The atmosphere, behind the hero and a little past it, so the first section's panels sit in its light:
   a Datapad purple field from the top, a light source low on the right in the page's accent, and two dark dunes. */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -120px -15% -280px;
  pointer-events: none;
}
.hero::before {
  background:
    radial-gradient(60% 30% at 74% 66%, color-mix(in srgb, var(--accent-dark) 24%, transparent), transparent 100%),
    radial-gradient(80% 60% at 50% 0%, rgba(109, 4, 174, 0.35), transparent 100%);
  animation: drift 36s ease-in-out infinite alternate;
}
.hero::after {
  background:
    radial-gradient(45% 16% at 20% 74%, rgba(2, 3, 26, 0.9), transparent 100%),
    radial-gradient(40% 14% at 64% 82%, rgba(2, 3, 26, 0.75), transparent 100%);
  animation: dunes 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-3%, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(3%, -2%, 0) scale(1.06); opacity: 1; }
}
@keyframes dunes {
  from { transform: translate3d(2%, 0, 0); }
  to { transform: translate3d(-2%, 1%, 0); }
}

/* Mountain backdrop: a photo in layers under the text, from back to front sky, far, mid, ridge and foreground;
   under 960px one flat still. The glow sits above the sky and below the mountains. The foreground fades to
   the navy itself; a short gradient at the bottom makes sure no edge shows. */
.hero--backdrop { min-height: clamp(560px, 100svh, 720px); }
.hero--backdrop::before, .hero--backdrop::after { z-index: -2; }
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0, #000 86%, transparent 100%);
  mask-image: linear-gradient(#000 0, #000 86%, transparent 100%);
}
.hero__layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.hero__layer--sky { z-index: -4; object-position: center 30%; }
.hero__layer:not(.hero__layer--sky) { display: none; }
/* On a phone the text runs over the still's bright horizon: a navy film keeps it readable. */
.hero__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: rgba(3, 4, 35, 0.6);
}
@media (min-width: 960px) {
  .hero--backdrop { min-height: clamp(640px, 100svh, 880px); padding-top: 88px; }
  .hero--backdrop + .band { margin-top: -64px; }
  .hero__backdrop::before { content: none; }
  .hero__layer:not(.hero__layer--sky) { display: block; }
  /* The sky is 12px wider on each side, so its drift never shows an edge. */
  .hero__layer--sky { left: -12px; width: calc(100% + 24px); object-position: 50% 72%; }
  .hero__layer--far, .hero__layer--mid { object-position: 50% 72%; }
  .hero__layer--ridge { object-position: 50% 80%; }
  .hero__layer--foreground { object-position: 50% 88%; }
}

/* Parallax, then a pinned backdrop: over the first 880px of scrolling the photo rises more slowly than the page,
   the nearest layer the most, and comes to rest with the mountains in the lower middle of the screen. There it stays
   while the rest of the page scrolls over it, dimmed to 42% within the first 120px so text and glass read over it.
   The box is fixed at the hero's height. Each layer is sized as object-fit: cover would in that box, but whole, so it can
   rise without its bottom showing; under the foreground's own fade it carries the navy down. The sky also drifts sideways.
   Without scroll-driven animations, or with reduced motion, the photo stays in the hero and simply stands still. */
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero__backdrop {
      --h: clamp(640px, 100svh, 880px);
      position: fixed;
      bottom: auto;
      height: var(--h);
      animation: hero-dim linear both;
      animation-timeline: scroll(root);
      animation-range: 0px 120px;
    }
    .hero__layer {
      --w: max(100%, var(--h) * 8 / 7);
      inset: 0 auto auto;
      left: calc((100% - var(--w)) / 2);
      width: var(--w);
      height: auto;
      /* A margin's percentage is of the width: this is (box height - image height) times the layer's object-position. */
      margin-top: calc(var(--y) * (var(--h) - var(--w) * 7 / 8));
      animation: hero-rise cubic-bezier(0.33, 1, 0.68, 1) both;
      animation-timeline: scroll(root);
      animation-range: 0px 880px;
    }
    .hero__layer--sky {
      --w: max(100% + 24px, var(--h) * 8 / 7);
      --y: 0.72;
      --rise: 0.05;
      animation: hero-rise cubic-bezier(0.33, 1, 0.68, 1) both, hero-sky 48s ease-in-out infinite alternate;
      animation-timeline: scroll(root), auto;
      animation-range: 0px 880px, normal;
    }
    .hero__layer--far { --y: 0.72; --rise: 0.08; }
    .hero__layer--mid { --y: 0.72; --rise: 0.11; }
    .hero__layer--ridge { --y: 0.8; --rise: 0.14; }
    .hero__layer--foreground {
      --y: 0.88;
      --rise: 0.17;
      /* The colour the foreground's fade ends in, so the two meet without a line. */
      padding-bottom: var(--h);
      background: linear-gradient(#020323, #020323) bottom / 100% var(--h) no-repeat;
    }
    /* The footer isn't positioned, so it would paint under the hero and its pinned photo. */
    body:has(.hero__backdrop) .site-footer { position: relative; }
  }
}
@keyframes hero-rise {
  to { translate: 0 calc(var(--rise) * var(--h) * -1); }
}
@keyframes hero-dim {
  to { opacity: 0.42; }
}
@keyframes hero-sky {
  from { transform: translateX(-12px); }
  to { transform: translateX(12px); }
}

/* On load the hero's text rises in, one line after the other. */
.hero__text > *, .hero__media { animation: rise 700ms var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: 80ms; }
.hero__text > :nth-child(3) { animation-delay: 160ms; }
.hero__text > :nth-child(n + 4) { animation-delay: 240ms; }
.hero__media { animation-delay: 320ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

/* Bands: sections, splits and the call to action. Each is positioned so it paints over the hero's glow;
   a plain band lets the glow through, a tint or dark band covers it so the two never stack. */
.band { position: relative; padding: var(--band) 0; color: var(--body); scroll-margin-top: 88px; }
.tone-plain + .tone-plain { border-top: 1px solid var(--line); }
.tone-tint {
  background:
    radial-gradient(55% 35% at 85% 60%, color-mix(in srgb, var(--accent-dark) 10%, transparent), transparent 100%),
    radial-gradient(50% 32% at 10% 36%, rgba(109, 4, 174, 0.16), transparent 100%),
    var(--navy);
}
.tone-dark { border-block: 1px solid var(--line); background: var(--navy-deep); }
.band__head { max-width: 720px; margin-bottom: var(--head-gap); }
.band__head > :last-child { margin-bottom: 0; }

/* The grid of an area: 12 columns. */
.area { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.area + .area { margin-top: var(--gap); }
.cell { grid-column: span 12; min-width: 0; }
.cell > :last-child { margin-bottom: 0; }
.cell--card, .cell--pluginCard, .cell--pricingCard { align-self: stretch; }
@media (min-width: 720px) {
  .span-3, .span-4, .span-6 { grid-column: span 6; }
}
@media (min-width: 960px) {
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-8 { grid-column: span 8; }
}

/* Two columns: one under 900px, text before a figure or code; side by side from 900px, a screenshot's column wider. */
.split__body { display: grid; gap: 32px; }
.split__body .area + .area { margin-top: 0; }
.split__body > .area:has(.cell--image, .cell--codeSnippet) { order: 1; }
@media (min-width: 900px) {
  .split__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
  .split__body > .area:has(.cell--image, .cell--codeSnippet) { order: 0; }
  .split__body:has(> .area--right .cell--image) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split__body:has(> .area--left .cell--image) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

.cta__inner { display: grid; gap: 8px 48px; align-items: center; }
.cta__text > :last-child { margin-bottom: 0; }
.cta__text p { max-width: 62ch; }
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .cta .buttons { margin-top: 0; }
}

/* Text */
.prose { max-width: 62ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose strong { color: var(--head); }
.prose code {
  padding: 0.1em 0.45em;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.06);
  color: var(--head);
  font-size: 0.92em;
}
.prose blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 2px solid var(--accent-dark); }

/* Image: a light screenshot in a glass frame. */
.figure { padding: 10px; }
.figure img { width: 100%; border-radius: 8px; }
.figure figcaption { padding: 10px 6px 2px; font-size: 14px; line-height: 1.45; }

/* Panels: they lift a little and their edge brightens on hover. */
.card, .plugin, .pricing, .facts { padding: 24px; }
.card, .plugin, .pricing { display: flex; flex-direction: column; height: 100%; }
.card, .plugin, .pricing {
  transition: border-color 200ms, box-shadow 200ms, translate 250ms var(--ease);
}
.card:hover, .card:focus-within, .pricing:hover, .pricing:focus-within { border-color: var(--glass-edge-hover); translate: 0 -2px; }
.card .eyebrow { margin-bottom: 8px; }
.card__title { font-size: 20px; }
.card > p:last-of-type { margin-bottom: 20px; }
.card .more { margin-top: auto; align-self: flex-start; }

/* Plugin card: a glowing top edge in the plugin's own accent, its price and link at the bottom. */
.plugin { position: relative; color: var(--body); }
.plugin::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-dark);
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--accent-dark) 70%, transparent);
}
.plugin:hover, .plugin:focus-within {
  border-color: var(--glass-edge-hover);
  box-shadow: var(--glass-shadow), 0 0 48px -12px color-mix(in srgb, var(--accent-dark) 45%, transparent);
  translate: 0 -2px;
}
.plugin__head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
/* Logos are drawn for a light ground, so they sit on a light tile. */
.plugin__logo {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: var(--radius-small);
  background: #f3f5f9;
  object-fit: contain;
}
.plugin__monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
}
.plugin__name { margin: 0; font-size: 22px; line-height: 1.25; }
.plugin__tagline { margin: 2px 0 0; color: var(--accent-dark); font-size: 15px; font-weight: 500; line-height: 1.3; }
.plugin__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.plugin__price { margin: 0; color: var(--head); font-family: var(--mono); font-size: 14px; line-height: 1.55; }

/* Pricing; the highlighted one has an edge and a glow in the accent, no badge. */
.pricing--main {
  border-color: var(--accent-dark);
  box-shadow: var(--glass-shadow), 0 0 56px -16px color-mix(in srgb, var(--accent-dark) 55%, transparent);
}
.pricing--main:hover, .pricing--main:focus-within { border-color: var(--accent-dark); }
.pricing__name { font-size: 20px; }
.pricing__price { margin-bottom: 12px; }
.pricing__amount { color: var(--head); font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.pricing__period { font-size: 14px; line-height: 1.45; }
.pricing__includes { margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.pricing__includes li { position: relative; padding-left: 26px; }
.pricing__includes li + li { margin-top: 8px; }
.pricing__includes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(-45deg);
}
.pricing .buttons { margin-top: auto; padding-top: 24px; }
.pricing .btn { flex: 1 1 100%; justify-content: center; }
.pricing__note { margin: 16px 0 0; font-size: 14px; line-height: 1.45; }

/* Code: darker than the glass, a glass bar with the label and site.js's copy button, then the code. */
.code {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  background: rgba(2, 3, 26, 0.8);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.code:has(.code__label)::before {
  content: "";
  grid-area: 1 / 1 / 2 / 3;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}
.code__label {
  grid-area: 1 / 1;
  align-self: center;
  padding: 10px 16px;
  color: var(--body);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
}
.code pre {
  grid-area: 2 / 1 / 3 / 3;
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: var(--code-text);
  tab-size: 4;
}
.code .c { color: var(--code-comment); }
.code .s { color: var(--accent-dark); }
.code__copy {
  grid-area: 1 / 2;
  align-self: center;
  height: 30px;
  margin: 6px 8px 6px 0;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--head);
  font: 500 13px/1 var(--sans);
  cursor: pointer;
  transition: border-color 200ms;
}
.code__copy:hover { border-color: rgba(255, 255, 255, 0.45); }

/* Questions: an area holding only questions is one glass list; elsewhere they are rows between hairlines. */
.area:has(> .cell--faqItem):not(:has(> .cell:not(.cell--faqItem))) { gap: 0; padding: 0 24px; }
.area:has(> .cell--faqItem):not(:has(> .cell:not(.cell--faqItem))) .faq { border: 0; }
.area:has(> .cell--faqItem):not(:has(> .cell:not(.cell--faqItem))) .cell + .cell { margin-top: 0; }
.area:has(> .cell--faqItem):not(:has(> .cell:not(.cell--faqItem))) .cell + .cell .faq { border-top: 1px solid var(--line); }
.cell--faqItem + .cell--faqItem { margin-top: calc(-1 * var(--gap)); }
.faq { border-bottom: 1px solid var(--line); }
.cell--faqItem:first-child .faq, .cell:not(.cell--faqItem) + .cell--faqItem .faq { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--head);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 200ms;
}
.faq summary:hover { color: var(--accent-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent-dark);
  font-family: var(--mono);
}
.faq[open] summary::after { content: "\2212"; }
.faq__answer { max-width: 65ch; padding-bottom: 8px; }

/* Facts: label and value rows */
.facts__title { font-size: 20px; }
.facts dl { margin: 0; }
.facts__row { display: grid; gap: 2px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts__row:last-child { padding-bottom: 0; }
.facts dt { color: var(--head); font-size: 14px; font-weight: 500; line-height: 1.45; }
.facts dd { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.55; }
@media (min-width: 720px) {
  .facts__row { grid-template-columns: 200px minmax(0, 1fr); }
}

/* Footer: darker than the page, never in the page's accent. */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--navy-deep); color: var(--body); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.site-footer__brand img { width: 112px; height: auto; }
.site-footer__name { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--head); }
.site-footer :focus-visible { outline-color: var(--head); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Panels rise in as they scroll into view. Only where the browser drives this from the scroll position;
   anywhere else they are simply there. */
@supports (animation-timeline: view()) {
  .card, .plugin, .pricing, .facts, .figure, .code,
  .area:has(> .cell--faqItem):not(:has(> .cell:not(.cell--faqItem))) {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(24px); }
  }
}

/* No motion at all for those who ask for less. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
