/* Marketing site and docs. One external stylesheet: the CSP is style-src 'self' with no inline styles. */

:root {
  --bg: #f7f7fb;
  --bg-rgb: 247 247 251; /* --bg as channels, for the mosaic's fades (D114) */
  --surface: #ffffff;
  --surface-2: #f0f1f7;
  --text: #16181f;
  --muted: #555b6e;
  --border: #dfe1ea;
  --accent: #4f46e5;
  --accent-strong: #3f37c9;
  --accent-contrast: #ffffff;
  --accent-soft: #ecebfd;
  --ok: #15803d;
  --warn: #a16207;
  --down: #b91c1c;
  --code-bg: #f0f1f7;
  --draft-bg: #fff4d6;
  --draft-border: #e0a400;
  --draft-text: #4a3500;
  --shadow: 0 1px 2px rgb(16 18 24 / 6%), 0 8px 24px rgb(16 18 24 / 6%);
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101218;
    --bg-rgb: 16 18 24;
    --surface: #171a22;
    --surface-2: #1e222c;
    --text: #e9ebf2;
    --muted: #a3a9ba;
    --border: #2b303c;
    --accent: #8b85ff;
    --accent-strong: #a7a2ff;
    --accent-contrast: #0d0e14;
    --accent-soft: #24233f;
    --ok: #4ade80;
    --warn: #facc15;
    --down: #f87171;
    --code-bg: #1e222c;
    --draft-bg: #3a2e05;
    --draft-border: #c99400;
    --draft-text: #ffe9a8;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
}
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; }
.muted { color: var(--muted); }
.placeholder { background: var(--draft-bg); color: var(--draft-text); padding: 0 0.3em; border-radius: 4px; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.main-nav a.btn-primary { color: var(--accent-contrast); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-contrast); }
.btn-small { padding: 6px 14px; font-size: 0.95rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); vertical-align: middle; }

.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 16px; max-width: 18ch; }
.hero .lead { margin: 0 0 28px; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
figure { margin: 0; }
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.fine { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.section-alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card a.stretch { text-decoration: none; color: inherit; display: block; }
.card a.stretch:hover h3 { color: var(--accent); }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 0; }
/* Each step number sits on a glass tile with the favicon's shape (its 8/32 corner). White on #4f46e5 is 6.29:1. */
.steps li .card::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #5d55f0 0%, #4f46e5 50%, #3f37c9 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), inset 0 -1px 0 rgb(13 14 40 / 25%), 0 1px 2px rgb(27 24 80 / 25%);
  font-weight: 700;
  margin-bottom: 12px;
}
/* Dark: lavender tiles with dark numbers (6.33:1). */
@media (prefers-color-scheme: dark) {
  .steps li .card::before {
    background: linear-gradient(135deg, #a7a2ff 0%, #8b85ff 50%, #7d76f7 100%);
    color: #0d0e14;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), inset 0 -1px 0 rgb(0 0 0 / 25%);
  }
}

/* Illustrative chat mock */
.chat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 0.85rem; color: var(--muted); }
.chat-body { padding: 16px; display: grid; gap: 12px; }
.msg { max-width: 100%; overflow-wrap: anywhere; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; }
.msg p { margin: 0 0 8px; }
.msg p:last-child { margin: 0; }
.msg-user { justify-self: end; background: var(--accent); color: var(--accent-contrast); border-bottom-right-radius: 4px; }
.msg-ai { background: var(--surface-2); border-bottom-left-radius: 4px; }
.tool { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.mini-table { font-size: 0.85rem; margin: 6px 0 8px; }
.mini-table th, .mini-table td { padding: 5px 6px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.dot-down { background: var(--down); }
.up { color: var(--ok); font-weight: 600; }
.down { color: var(--down); font-weight: 600; }
.caption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* Demo CTA */
.demo { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 46rem; }

/* Pricing */
.billing-note { color: var(--muted); }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.plan { display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--accent); }
.plan h2 { font-size: 1.3rem; margin: 0 0 4px; }
.section-title { margin: 56px 0 0; }
.card p.price { color: var(--text); }
.price { font-size: 2.4rem; font-weight: 800; margin: 12px 0 0; letter-spacing: -0.02em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 1.1em; margin: 16px 0 20px; color: var(--muted); flex: 1; }
.plan li { margin: 4px 0; }
.compare-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { min-width: 640px; }
.compare th[scope="row"] { font-weight: 500; color: var(--muted); }
.compare thead th { background: var(--surface-2); }
/* Phones: all four plans fit side by side instead of hiding Pro and Agency behind a sideways scroll. */
@media (max-width: 640px) {
  .compare { min-width: 0; table-layout: fixed; font-size: 0.8rem; }
  .compare th, .compare td { padding: 8px 5px; overflow-wrap: break-word; hyphens: auto; }
  .compare th[scope="row"] { width: 34%; }
}

/* Docs */
.docs { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 900px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.docs-nav li a:hover { color: var(--text); background: var(--surface-2); }
.docs-nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.docs-nav-title { font-weight: 700; margin: 0 0 6px; }
.docs-nav-title a { color: var(--text); text-decoration: none; }
@media (max-width: 899px) {
  .docs-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-nav li a { border: 1px solid var(--border); padding: 3px 10px; font-size: 0.9rem; }
}
.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); }
.docs-pager a { text-decoration: none; display: grid; }
.docs-pager a.next { text-align: right; margin-left: auto; }

.prose { max-width: 48rem; min-width: 0; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 12px; }
.prose h2 { margin-top: 2.2em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.15rem; }
.prose table { display: block; overflow-x: auto; font-size: 0.95rem; }
.prose blockquote { margin: 1em 0; padding: 4px 16px; border-left: 4px solid var(--border); color: var(--muted); }
.prose li { margin: 4px 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.callout { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; margin: 1.2em 0; }
.callout p { margin: 0; }

.draft-banner {
  background: var(--draft-bg);
  border: 2px solid var(--draft-border);
  color: var(--draft-text);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}


/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 0; padding: 40px 0 24px; font-size: 0.95rem; }
.footer-inner { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li { margin: 4px 0; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 6px; }
.footer-title { font-weight: 700; margin: 0 0 6px; }
.footer-base { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.85rem; }

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .hero { padding: 44px 0 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Contact form (D080). Field borders use --muted so they keep 3:1 contrast against the page in both themes. */
.contact-form { display: grid; gap: 18px; max-width: 36rem; margin-top: 24px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--muted); border-radius: 8px; padding: 9px 12px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form .hint { margin: 0; font-size: 0.9rem; color: var(--muted); }
.contact-form button { justify-self: start; font: inherit; font-weight: 600; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Glass mosaic art (D114). art/mosaic.webp (1536×1024) is glass tiles laid in rings around an empty rounded square,
   with its whites mapped to pure white. It's drawn multiply-blended, so it can only darken: where it's white the page
   shows through unchanged. Dark mode draws its twin, art/mosaic-dark.webp (lightness inverted, hue kept), with screen,
   and the browser fetches only the active theme's file. The art fades through "covers" laid over it: gradients of the
   page's own color, eased (smoothstep), so the words always sit on the plain background. They are gradient
   backgrounds rather than masks: a gradient of the page color over the page color leaves every pixel exact, where a
   masked layer would round some a level off. All of it is CSS: no JavaScript, and nothing inline (style-src 'self'). */
.hero, .cta { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero::before, .hero::after, .hero figure::before, .hero-text::before, .cta::before, .cta::after, .cta .wrap::before {
  pointer-events: none;
}
.hero::before, .hero figure::before, .cta::before {
  -webkit-mask-image: var(--fade, none);
  mask-image: var(--fade, none);
}

/* Two columns: the empty square, plus 10px, holds the chat card and its caption at every width. The box is that target
   (the figure, 10px out on the left, right and top, and 7px below, which is 10px under the caption's last line), scaled
   by the image over the square (1536/482 across, 1024/474 down) around the square's center (1058, 476): with that
   center as the background position, `cover` takes the larger of the two fits. */
@media (min-width: 960px) {
  .hero figure { position: relative; }
  .hero figure::before {
    content: "";
    position: absolute;
    z-index: -2;
    left: calc(-169.502% - 43.9px);
    top: calc(-50.422% - 18.57px);
    width: calc(318.672% + 63.73px);
    height: calc(216.034% + 36.73px);
    background: url("/art/mosaic.webp") 68.880% 46.484% / cover no-repeat;
    mix-blend-mode: multiply;
  }
  /* Covers: in over the hero's top 56px, out over its bottom 70px, and a clearing around the words, which opens the
     mosaic like a C toward them. The clearing is the text column, 8px wider and 6px taller than its lines, with ramps
     of 70px on the left, 120px on the right (so the rings fade out behind the opaque card) and 40px down. */
  .hero::before, .hero::after, .hero-text::before { content: ""; position: absolute; z-index: -1; --fade: none; }
  .hero::before {
    left: 0;
    right: 0;
    top: 0;
    height: 56px;
    background: linear-gradient(to bottom, rgb(var(--bg-rgb)) 0px, rgb(var(--bg-rgb) / 95.7%) 7px, rgb(var(--bg-rgb) / 84.4%) 14px, rgb(var(--bg-rgb) / 68.4%) 21px, rgb(var(--bg-rgb) / 50%) 28px, rgb(var(--bg-rgb) / 31.6%) 35px, rgb(var(--bg-rgb) / 15.6%) 42px, rgb(var(--bg-rgb) / 4.3%) 49px, rgb(var(--bg-rgb) / 0%) 56px);
  }
  .hero::after {
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgb(var(--bg-rgb) / 0%) 0px, rgb(var(--bg-rgb) / 4.3%) 8.75px, rgb(var(--bg-rgb) / 15.6%) 17.5px, rgb(var(--bg-rgb) / 31.6%) 26.25px, rgb(var(--bg-rgb) / 50%) 35px, rgb(var(--bg-rgb) / 68.4%) 43.75px, rgb(var(--bg-rgb) / 84.4%) 52.5px, rgb(var(--bg-rgb) / 95.7%) 61.25px, rgb(var(--bg-rgb)) 70px);
  }
  .hero-text { position: relative; }
  .hero-text::before {
    left: -78px;
    right: -128px;
    top: -43px;
    bottom: -28px;
    background-image:
      linear-gradient(rgb(var(--bg-rgb)), rgb(var(--bg-rgb))),
      linear-gradient(to right, rgb(var(--bg-rgb) / 0%) 0px, rgb(var(--bg-rgb) / 4.3%) 8.75px, rgb(var(--bg-rgb) / 15.6%) 17.5px, rgb(var(--bg-rgb) / 31.6%) 26.25px, rgb(var(--bg-rgb) / 50%) 35px, rgb(var(--bg-rgb) / 68.4%) 43.75px, rgb(var(--bg-rgb) / 84.4%) 52.5px, rgb(var(--bg-rgb) / 95.7%) 61.25px, rgb(var(--bg-rgb)) 70px),
      linear-gradient(to left, rgb(var(--bg-rgb) / 0%) 0px, rgb(var(--bg-rgb) / 4.3%) 15px, rgb(var(--bg-rgb) / 15.6%) 30px, rgb(var(--bg-rgb) / 31.6%) 45px, rgb(var(--bg-rgb) / 50%) 60px, rgb(var(--bg-rgb) / 68.4%) 75px, rgb(var(--bg-rgb) / 84.4%) 90px, rgb(var(--bg-rgb) / 95.7%) 105px, rgb(var(--bg-rgb)) 120px),
      linear-gradient(to bottom, rgb(var(--bg-rgb) / 0%) 0px, rgb(var(--bg-rgb) / 4.3%) 5px, rgb(var(--bg-rgb) / 15.6%) 10px, rgb(var(--bg-rgb) / 31.6%) 15px, rgb(var(--bg-rgb) / 50%) 20px, rgb(var(--bg-rgb) / 68.4%) 25px, rgb(var(--bg-rgb) / 84.4%) 30px, rgb(var(--bg-rgb) / 95.7%) 35px, rgb(var(--bg-rgb)) 40px),
      linear-gradient(to top, rgb(var(--bg-rgb) / 0%) 0px, rgb(var(--bg-rgb) / 4.3%) 5px, rgb(var(--bg-rgb) / 15.6%) 10px, rgb(var(--bg-rgb) / 31.6%) 15px, rgb(var(--bg-rgb) / 50%) 20px, rgb(var(--bg-rgb) / 68.4%) 25px, rgb(var(--bg-rgb) / 84.4%) 30px, rgb(var(--bg-rgb) / 95.7%) 35px, rgb(var(--bg-rgb)) 40px),
      radial-gradient(70px 40px at 100% 100%, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb) / 95.7%) 12.5%, rgb(var(--bg-rgb) / 84.4%) 25%, rgb(var(--bg-rgb) / 68.4%) 37.5%, rgb(var(--bg-rgb) / 50%) 50%, rgb(var(--bg-rgb) / 31.6%) 62.5%, rgb(var(--bg-rgb) / 15.6%) 75%, rgb(var(--bg-rgb) / 4.3%) 87.5%, rgb(var(--bg-rgb) / 0%) 100%),
      radial-gradient(120px 40px at 0 100%, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb) / 95.7%) 12.5%, rgb(var(--bg-rgb) / 84.4%) 25%, rgb(var(--bg-rgb) / 68.4%) 37.5%, rgb(var(--bg-rgb) / 50%) 50%, rgb(var(--bg-rgb) / 31.6%) 62.5%, rgb(var(--bg-rgb) / 15.6%) 75%, rgb(var(--bg-rgb) / 4.3%) 87.5%, rgb(var(--bg-rgb) / 0%) 100%),
      radial-gradient(70px 40px at 100% 0, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb) / 95.7%) 12.5%, rgb(var(--bg-rgb) / 84.4%) 25%, rgb(var(--bg-rgb) / 68.4%) 37.5%, rgb(var(--bg-rgb) / 50%) 50%, rgb(var(--bg-rgb) / 31.6%) 62.5%, rgb(var(--bg-rgb) / 15.6%) 75%, rgb(var(--bg-rgb) / 4.3%) 87.5%, rgb(var(--bg-rgb) / 0%) 100%),
      radial-gradient(120px 40px at 0 0, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb) / 95.7%) 12.5%, rgb(var(--bg-rgb) / 84.4%) 25%, rgb(var(--bg-rgb) / 68.4%) 37.5%, rgb(var(--bg-rgb) / 50%) 50%, rgb(var(--bg-rgb) / 31.6%) 62.5%, rgb(var(--bg-rgb) / 15.6%) 75%, rgb(var(--bg-rgb) / 4.3%) 87.5%, rgb(var(--bg-rgb) / 0%) 100%);
    background-position: 70px 40px, 0 40px, 100% 40px, 70px 0, 70px 100%, 0 0, 100% 0, 0 100%, 100% 100%;
    background-size: calc(100% - 190px) calc(100% - 80px), 70px calc(100% - 80px), 120px calc(100% - 80px), calc(100% - 190px) 40px, calc(100% - 190px) 40px, 70px 40px, 120px 40px, 70px 40px, 120px 40px;
    background-repeat: no-repeat;
  }
}

/* One column (phones and tablets): the hero's top padding grows by 64px, and the rows above the empty square run
   across it like a lintel over the headline. The square's top sits 16px above the eyebrow's text and its center on the
   page's center, at a scale of min(0.95, (width + 44px) / 482), so on phones the square runs 22px past each side. The
   lintel fades in over 26px from the header and out within 10px under the innermost ring. */
@media (max-width: 959px) {
  .hero { padding-top: 136px; }
  .hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: 0;
    height: 133px;
    background-image: url("/art/mosaic.webp");
    background-repeat: no-repeat;
    background-size: min(1459.2px, (100vw + 44px) * 3.18672) auto;
    background-position: calc(50% - min(275.5px, (100vw + 44px) * 0.60166)) calc(123px - min(227.05px, (100vw + 44px) * 0.49585));
    mix-blend-mode: multiply;
    --fade: linear-gradient(to bottom, transparent 0px, rgb(0 0 0 / 4.3%) 3.25px, rgb(0 0 0 / 15.6%) 6.5px, rgb(0 0 0 / 31.6%) 9.75px, rgb(0 0 0 / 50%) 13px, rgb(0 0 0 / 68.4%) 16.25px, rgb(0 0 0 / 84.4%) 19.5px, rgb(0 0 0 / 95.7%) 22.75px, #000 26px, #000 calc(100% - 10px), rgb(0 0 0 / 95.7%) calc(100% - 8.75px), rgb(0 0 0 / 84.4%) calc(100% - 7.5px), rgb(0 0 0 / 68.4%) calc(100% - 6.25px), rgb(0 0 0 / 50%) calc(100% - 5px), rgb(0 0 0 / 31.6%) calc(100% - 3.75px), rgb(0 0 0 / 15.6%) calc(100% - 2.5px), rgb(0 0 0 / 4.3%) calc(100% - 1.25px), transparent 100%);
  }
}
@media (max-width: 480px) {
  .hero { padding-top: 108px; }
  .hero::before { height: 105px; background-position-y: calc(95px - min(227.05px, (100vw + 44px) * 0.49585)); }
}

/* "Bring all your projects together" stands on a floor of the rows under the empty square: the crop x 200–1536,
   y 690–1024 across the section, its top 60px above the buttons' foot (140px above the section's), so it keeps to the
   foot however the words wrap. It fades in over 66px from 14px under the crop's top, a clearing around the words and
   buttons (16px wider and 10px taller, with 90px and 26px ramps) keeps it off them, and it fades out over the
   section's last 26px. 90% strength. */
.cta::before {
  content: "";
  position: absolute;
  z-index: -2;
  right: 0;
  bottom: 140px;
  width: 114.97%;
  margin-bottom: -25%;
  aspect-ratio: 3 / 2;
  background: url("/art/mosaic.webp") 0 0 / 100% 100% no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.9;
  --fade: linear-gradient(to bottom, transparent calc(67.383% + 14px), rgb(0 0 0 / 4.3%) calc(67.383% + 22.25px), rgb(0 0 0 / 15.6%) calc(67.383% + 30.5px), rgb(0 0 0 / 31.6%) calc(67.383% + 38.75px), rgb(0 0 0 / 50%) calc(67.383% + 47px), rgb(0 0 0 / 68.4%) calc(67.383% + 55.25px), rgb(0 0 0 / 84.4%) calc(67.383% + 63.5px), rgb(0 0 0 / 95.7%) calc(67.383% + 71.75px), #000 calc(67.383% + 80px));
}
.cta::after, .cta .wrap::before { content: ""; position: absolute; z-index: -1; }
.cta::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: linear-gradient(to bottom, rgb(var(--bg-rgb) / 0%) 0px, rgb(var(--bg-rgb) / 4.3%) 3.25px, rgb(var(--bg-rgb) / 15.6%) 6.5px, rgb(var(--bg-rgb) / 31.6%) 9.75px, rgb(var(--bg-rgb) / 50%) 13px, rgb(var(--bg-rgb) / 68.4%) 16.25px, rgb(var(--bg-rgb) / 84.4%) 19.5px, rgb(var(--bg-rgb) / 95.7%) 22.75px, rgb(var(--bg-rgb)) 26px);
}
.cta .wrap { position: relative; }
.cta .wrap::before {
  left: -86px;
  right: -86px;
  top: -20px;
  bottom: -20px;
  background-image:
    linear-gradient(rgb(var(--bg-rgb)), rgb(var(--bg-rgb))),
    linear-gradient(to right, rgb(var(--bg-rgb) / 0%) 0px, rgb(var(--bg-rgb) / 4.3%) 11.25px, rgb(var(--bg-rgb) / 15.6%) 22.5px, rgb(var(--bg-rgb) / 31.6%) 33.75px, rgb(var(--bg-rgb) / 50%) 45px, rgb(var(--bg-rgb) / 68.4%) 56.25px, rgb(var(--bg-rgb) / 84.4%) 67.5px, rgb(var(--bg-rgb) / 95.7%) 78.75px, rgb(var(--bg-rgb)) 90px),
    linear-gradient(to left, rgb(var(--bg-rgb) / 0%) 0px, rgb(var(--bg-rgb) / 4.3%) 11.25px, rgb(var(--bg-rgb) / 15.6%) 22.5px, rgb(var(--bg-rgb) / 31.6%) 33.75px, rgb(var(--bg-rgb) / 50%) 45px, rgb(var(--bg-rgb) / 68.4%) 56.25px, rgb(var(--bg-rgb) / 84.4%) 67.5px, rgb(var(--bg-rgb) / 95.7%) 78.75px, rgb(var(--bg-rgb)) 90px),
    linear-gradient(to bottom, rgb(var(--bg-rgb) / 0%) 0px, rgb(var(--bg-rgb) / 4.3%) 3.25px, rgb(var(--bg-rgb) / 15.6%) 6.5px, rgb(var(--bg-rgb) / 31.6%) 9.75px, rgb(var(--bg-rgb) / 50%) 13px, rgb(var(--bg-rgb) / 68.4%) 16.25px, rgb(var(--bg-rgb) / 84.4%) 19.5px, rgb(var(--bg-rgb) / 95.7%) 22.75px, rgb(var(--bg-rgb)) 26px),
    linear-gradient(to top, rgb(var(--bg-rgb) / 0%) 0px, rgb(var(--bg-rgb) / 4.3%) 3.25px, rgb(var(--bg-rgb) / 15.6%) 6.5px, rgb(var(--bg-rgb) / 31.6%) 9.75px, rgb(var(--bg-rgb) / 50%) 13px, rgb(var(--bg-rgb) / 68.4%) 16.25px, rgb(var(--bg-rgb) / 84.4%) 19.5px, rgb(var(--bg-rgb) / 95.7%) 22.75px, rgb(var(--bg-rgb)) 26px),
    radial-gradient(90px 26px at 100% 100%, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb) / 95.7%) 12.5%, rgb(var(--bg-rgb) / 84.4%) 25%, rgb(var(--bg-rgb) / 68.4%) 37.5%, rgb(var(--bg-rgb) / 50%) 50%, rgb(var(--bg-rgb) / 31.6%) 62.5%, rgb(var(--bg-rgb) / 15.6%) 75%, rgb(var(--bg-rgb) / 4.3%) 87.5%, rgb(var(--bg-rgb) / 0%) 100%),
    radial-gradient(90px 26px at 0 100%, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb) / 95.7%) 12.5%, rgb(var(--bg-rgb) / 84.4%) 25%, rgb(var(--bg-rgb) / 68.4%) 37.5%, rgb(var(--bg-rgb) / 50%) 50%, rgb(var(--bg-rgb) / 31.6%) 62.5%, rgb(var(--bg-rgb) / 15.6%) 75%, rgb(var(--bg-rgb) / 4.3%) 87.5%, rgb(var(--bg-rgb) / 0%) 100%),
    radial-gradient(90px 26px at 100% 0, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb) / 95.7%) 12.5%, rgb(var(--bg-rgb) / 84.4%) 25%, rgb(var(--bg-rgb) / 68.4%) 37.5%, rgb(var(--bg-rgb) / 50%) 50%, rgb(var(--bg-rgb) / 31.6%) 62.5%, rgb(var(--bg-rgb) / 15.6%) 75%, rgb(var(--bg-rgb) / 4.3%) 87.5%, rgb(var(--bg-rgb) / 0%) 100%),
    radial-gradient(90px 26px at 0 0, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb) / 95.7%) 12.5%, rgb(var(--bg-rgb) / 84.4%) 25%, rgb(var(--bg-rgb) / 68.4%) 37.5%, rgb(var(--bg-rgb) / 50%) 50%, rgb(var(--bg-rgb) / 31.6%) 62.5%, rgb(var(--bg-rgb) / 15.6%) 75%, rgb(var(--bg-rgb) / 4.3%) 87.5%, rgb(var(--bg-rgb) / 0%) 100%);
  background-position: 90px 26px, 0 26px, 100% 26px, 90px 0, 90px 100%, 0 0, 100% 0, 0 100%, 100% 100%;
  background-size: calc(100% - 180px) calc(100% - 52px), 90px calc(100% - 52px), 90px calc(100% - 52px), calc(100% - 180px) 26px, calc(100% - 180px) 26px, 90px 26px, 90px 26px, 90px 26px, 90px 26px;
  background-repeat: no-repeat;
}
/* Phones: the words run nearly edge to edge, so the floor is the crop x 640–1460, y 700–1024 across the section, its
   top 40px above the buttons' foot, and the clearing spans the whole width. With the fade-in (30px to 70px under the
   crop's top) that leaves one eased ramp, from 50px to 76px under it. */
@media (max-width: 639px) {
  .cta::before {
    right: auto;
    left: -78.049%;
    bottom: 120px;
    width: 187.317%;
    margin-bottom: -39.512%;
    --fade: linear-gradient(to bottom, transparent calc(68.359% + 50px), rgb(0 0 0 / 2.7%) calc(68.359% + 53.25px), rgb(0 0 0 / 11.5%) calc(68.359% + 56.5px), rgb(0 0 0 / 26.5%) calc(68.359% + 59.75px), rgb(0 0 0 / 45.9%) calc(68.359% + 63px), rgb(0 0 0 / 66.7%) calc(68.359% + 66.25px), rgb(0 0 0 / 84.3%) calc(68.359% + 69.5px), rgb(0 0 0 / 95.7%) calc(68.359% + 72.75px), #000 calc(68.359% + 76px));
  }
  .cta .wrap::before { content: none; }
}
@media (max-width: 480px) {
  .cta::before { bottom: 100px; }
}

@media (prefers-color-scheme: dark) {
  .hero figure::before, .cta::before { background-image: url("/art/mosaic-dark.webp"); mix-blend-mode: screen; }
}
@media (prefers-color-scheme: dark) and (max-width: 959px) {
  .hero::before { background-image: url("/art/mosaic-dark.webp"); mix-blend-mode: screen; }
}

/* How it works: a dotted row of small tiles links the step numbers, deepening from lavender to indigo. Stacked cards
   get two tiles down from each card's foot toward the next number tile; side by side, a row runs from number tile to
   number tile, and mask-repeat: space keeps the tiles whole. The grid's auto-fit (240px minimum, 20px gap) sets the
   columns, so the section's width decides: two from 540px, three from 800px. */
.how { container-type: inline-size; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 38px;
  top: calc(100% + 11.5px);
  width: 6px;
  height: 18px;
  background: linear-gradient(to bottom, #c7c4ff 0 9px, #a8a3fc 9px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='6' height='6' rx='1.5'/%3E%3C/svg%3E") 0 0 / 12px 12px repeat-y;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='6' height='6' rx='1.5'/%3E%3C/svg%3E") 0 0 / 12px 12px repeat-y;
  pointer-events: none;
}
.steps li:nth-child(2)::after { background: linear-gradient(to bottom, #8983f8 0 9px, #6a62f5 9px); }
@container (min-width: 540px) {
  .steps li:not(:last-child)::after {
    left: 71px;
    right: -37px;
    top: 38px;
    width: auto;
    height: 6px;
    background: linear-gradient(to right, #c7c4ff, #6a62f5);
    -webkit-mask-repeat: space no-repeat;
    mask-repeat: space no-repeat;
  }
  .steps li:nth-child(2)::after { content: none; }
}
@container (min-width: 800px) {
  .steps li:nth-child(1)::after { background: linear-gradient(to right, #c7c4ff, #9993fa); }
  .steps li:nth-child(2)::after { content: ""; background: linear-gradient(to right, #9993fa, #6a62f5); }
}

/* Features: a glass mosaic plaque above each card's title, clipped to the favicon's 25% corner. */
.plaque {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 0 14px;
  box-shadow: 0 1px 2px rgb(27 24 80 / 22%), 0 4px 12px rgb(27 24 80 / 10%);
}
