/* AdminVora: marketing site only.
 *
 * Everything a page here can build out of a product component, it does:
 * `.av-public` for the shell, `.av-pricing-card`, `.av-faq`, `.av-prose`,
 * `.av-btn`, `.av-badge`, `.av-table`, `.av-code`. This file holds only what
 * genuinely does not exist in the product, because a marketing site that
 * re-implements the thing it is selling is the honest review of the thing it is
 * selling.
 *
 * Held to the product's own rules by hand, because `lint:css` reads `src/scss`
 * and cannot see this file (recorded in todo.md, not discovered later):
 *   - tokens only. `color-mix()` and `oklch(from …)` over a token are still the
 *     token: they are how a wash or a tint is *derived* rather than picked, and
 *     they are why the whole backdrop re-tints when the visitor changes preset.
 *   - logical properties, never physical
 *   - every rule inside `@layer components`
 *   - no `!important`, no numeric `z-index`
 *   - `.av-mkt-block__element--modifier`, elements never nested
 *
 * The `av-mkt-` prefix keeps the set disjoint from the product's, so a class
 * here can never quietly shadow a component a customer installs.
 *
 * See design.md for why the page is shaped the way it is.
 */

@layer components {

  /* ── The page ────────────────────────────────────────────────────────────
     1080px is the product's reading width for a public page, and it is too
     narrow for a landing page whose main argument is a screenshot: the hero
     image *is* the product, and at 1080 it renders as a thumbnail somebody
     tolerated rather than the thing being sold.

     Later in the same layer at equal specificity, so it wins on source order
     rather than by out-specifying the component it is adjusting. */
  .av-mkt-page {
    max-inline-size: 1200px;
    padding-block: 0 0;
  }

  :where(.av-mkt-page) > * + * { margin-block-start: 0; }

  /* The bar's glass spans the viewport; its contents sit on the same 1200px
     column as the page, brand on the column's start edge and links on its end.
     The `auto` margin goes on the <nav>, the flex item: on the list inside it
     the margin has nothing to push against. */
  .av-mkt-shell .av-public__bar {
    padding-inline: max(var(--av-space-6), calc((100% - 1200px) / 2 + var(--av-space-6)));
  }
  .av-mkt-shell .av-public__bar > nav { margin-inline-start: auto; }

  /* FAQ questions and topics are headings for search engines and screen
     readers (the question's button sits inside an <h3>, since a heading may not
     sit inside a button). They keep the look the component gives them. */
  .av-faq__heading { margin: 0; font: inherit; }
  .av-faq__topic { font-family: inherit; line-height: inherit; }

  /* Code samples show the characters a reader will type. The code font's
     ligatures draw `<!--` as an arrow and a dash and `->` as an arrow, which
     reads as different syntax from what the copy button would give them. */
  .av-code { font-variant-ligatures: none; }

  /* ── Ambient ground ──────────────────────────────────────────────────────
     Two washes and a masked grid, all derived from the brand token, so the
     whole backdrop re-tints when the preset changes, which is the point, since
     the visitor can change the preset from this page.

     On the shell rather than on the hero, because the wash has to reach the
     full width of the viewport and a child of a max-width column cannot. The
     usual escape (`margin-inline: calc(50% - 50vw)`) brings a horizontal
     scrollbar with it on any page tall enough to have a vertical one: `100vw`
     counts the scrollbar gutter and `100%` does not. */
  .av-mkt-shell {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
  }

  .av-mkt-shell::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 820px;
    z-index: var(--av-z-below);
    pointer-events: none;
    background:
      radial-gradient(58% 46% at 50% -4%,
        color-mix(in oklab, var(--av-color-primary) 30%, transparent) 0%,
        transparent 100%),
      radial-gradient(36% 30% at 86% 10%,
        color-mix(in oklab, var(--av-color-info) 24%, transparent) 0%,
        transparent 100%),
      radial-gradient(32% 28% at 12% 16%,
        color-mix(in oklab, var(--av-color-primary) 18%, transparent) 0%,
        transparent 100%);
  }

  /* The grid. Masked to nothing well before the copy starts, so it reads as
     texture under the headline and never as a table behind the text. */
  .av-mkt-shell::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 620px;
    z-index: var(--av-z-below);
    pointer-events: none;
    background-image:
      linear-gradient(to right,
        color-mix(in oklab, var(--av-border-default) 95%, transparent) 1px, transparent 1px),
      linear-gradient(to bottom,
        color-mix(in oklab, var(--av-border-default) 95%, transparent) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(64% 62% at 50% -6%, #000 0%, transparent 70%);
  }

  /* ── Hero ────────────────────────────────────────────────────────────────
     Centred, with the screenshot underneath at the full width of the column
     rather than beside the text at half of it. See design.md: a two-column hero
     caps the picture at ~480px, and the picture is the argument. */
  .av-mkt-hero {
    position: relative;
    padding-block: var(--av-space-16) var(--av-space-8);
    text-align: center;
  }

  /* The glow behind the window frame, drawn from the brand token so it follows
     the preset the visitor picked rather than being a painted-on blue.

     On the hero, not on the frame. The frame carries `overflow: hidden` to clip
     the screenshot to its own corners, which clipped the glow to nothing as
     well: a decoration that rendered, cost a 100px blur every paint, and could
     not be seen. A glow has to be drawn by something that does not clip. */
  .av-mkt-hero::after {
    content: "";
    position: absolute;
    inset-block-end: 22%;
    inset-inline: 12%;
    block-size: 42%;
    z-index: var(--av-z-below);
    border-radius: var(--av-radius-full);
    background: color-mix(in oklab, var(--av-color-primary) 42%, transparent);
    filter: blur(110px);
    pointer-events: none;
  }

  .av-mkt-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--av-space-2);
    margin: 0 0 var(--av-space-6);
    padding: var(--av-space-1) var(--av-space-4) var(--av-space-1) var(--av-space-1);
    border: 1px solid color-mix(in oklab, var(--av-color-primary) 24%, transparent);
    border-radius: var(--av-radius-full);
    background-color: color-mix(in oklab, var(--av-color-primary) 8%, var(--av-surface-raised));
    font-size: var(--av-font-size-sm);
    color: var(--av-text-secondary);
  }

  .av-mkt-hero__eyebrow b {
    padding: var(--av-space-0-5) var(--av-space-2-5);
    border-radius: var(--av-radius-full);
    background-color: var(--av-color-primary);
    color: var(--av-text-on-primary);
    font-size: var(--av-font-size-xs);
    font-weight: var(--av-font-weight-semibold);
    letter-spacing: 0.02em;
  }

  .av-mkt-hero__title {
    margin: 0 auto var(--av-space-6);
    max-inline-size: 17ch;
    font-family: var(--av-font-display);
    font-size: clamp(2.5rem, 1.1rem + 4.4vw, 4.75rem);
    font-weight: var(--av-font-weight-bold);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--av-text-primary);
    text-wrap: balance;
  }

  /* The half of the headline that carries the brand. One phrase, never two: an
     accent applied to everything accents nothing. */
  .av-mkt-hero__accent { color: var(--av-color-primary); }

  .av-mkt-hero__lede {
    margin: 0 auto var(--av-space-8);
    max-inline-size: 60ch;
    font-size: var(--av-font-size-lg);
    line-height: var(--av-line-height-relaxed);
    color: var(--av-text-secondary);
  }

  .av-mkt-hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--av-space-3);
    margin-block-end: var(--av-space-6);
  }

  /* The reassurance line: three short facts, not a paragraph. It is read in the
     half-second after the button is noticed and before it is clicked. */
  .av-mkt-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--av-space-2) var(--av-space-6);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--av-font-size-sm);
    color: var(--av-text-muted);
  }

  .av-mkt-facts li {
    display: flex;
    align-items: center;
    gap: var(--av-space-1-5);
  }

  /* `-text`, not `-border`: the border step is tuned to draw a 1px line and
     renders as a near-invisible glyph at 16px. The reassurance row is read in
     the half-second before the button is clicked or not, so it has to be
     legible at a glance. */
  .av-mkt-facts svg { color: var(--av-color-success-text); }

  /* ── Window frame ────────────────────────────────────────────────────────
     An unframed screenshot of a browser UI floating on a page reads as a
     rendering fault: the eye looks for the edge of the application and finds
     the edge of the page instead. */
  .av-mkt-window {
    position: relative;
    border: 1px solid var(--av-border-subtle);
    border-radius: var(--av-radius-xl);
    background-color: var(--av-surface-raised);
    box-shadow: var(--av-shadow-2xl);
    overflow: hidden;
  }

  .av-mkt-window--hero { margin-block-start: var(--av-space-12); }

  .av-mkt-window__bar {
    display: flex;
    align-items: center;
    gap: var(--av-space-2);
    padding: var(--av-space-3) var(--av-space-4);
    border-block-end: 1px solid var(--av-border-subtle);
    background-color: var(--av-surface-sunken);
  }

  .av-mkt-window__dot {
    inline-size: 10px;
    block-size: 10px;
    border-radius: var(--av-radius-full);
    background-color: color-mix(in oklab, var(--av-text-subtle) 50%, transparent);
  }

  .av-mkt-window__url {
    margin: 0 auto;
    padding: var(--av-space-0-5) var(--av-space-5);
    border-radius: var(--av-radius-full);
    background-color: var(--av-surface-base);
    font-size: var(--av-font-size-xs);
    color: var(--av-text-muted);
  }

  .av-mkt-shot {
    display: block;
    inline-size: 100%;
    /* `block-size: auto` is load-bearing, not tidiness. An <img> carrying
       width/height attributes gets them as presentational hints, and
       `aspect-ratio` is only consulted when the used height is `auto`, so the
       frame rendered 484x800 instead of 484x302 and `object-fit: cover` cropped
       a third of the dashboard off the side. The attributes stay (they reserve
       the space before the image arrives); this hands the ratio back to CSS. */
    block-size: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center top;
  }

  /* Two screenshots, one per colour mode, swapped by the same attribute the
     product's own theme engine sets. A dark-mode visitor shown a light-mode
     screenshot has watched the theme engine fail in the one place it is being
     sold. `[hidden]` is deliberately not used: it loses to any author `display`
     at any specificity, which is why the product fixes it globally. */
  .av-mkt-shot--dark { display: none; }
  [data-bs-theme="dark"] .av-mkt-shot--light { display: none; }
  [data-bs-theme="dark"] .av-mkt-shot--dark { display: block; }

  /* The live dashboard. Same origin, same `localStorage` key, so the product's
     own boot script inside the frame reads the preference the visitor set out
     here, the iframe re-themes with the page. */
  .av-mkt-window__frame {
    display: block;
    inline-size: 100%;
    block-size: 560px;
    border: 0;
    background-color: var(--av-surface-base);
  }

  /* ── Works-with strip ────────────────────────────────────────────────────
     Where a SaaS page puts customer logos. We have no customers yet, and an
     invented "trusted by" row is the one claim that cannot be walked back, so
     this says what the product genuinely works with instead. Same visual job,
     and true. */
  .av-mkt-strip {
    padding-block: var(--av-space-10);
    text-align: center;
  }

  .av-mkt-strip__label {
    margin: 0 0 var(--av-space-6);
    font-size: var(--av-font-size-xs);
    font-weight: var(--av-font-weight-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--av-text-muted);
  }

  .av-mkt-strip__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--av-space-4) var(--av-space-8);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .av-mkt-strip__items li {
    font-size: var(--av-font-size-lg);
    font-weight: var(--av-font-weight-semibold);
    letter-spacing: -0.015em;
    color: color-mix(in oklab, var(--av-text-primary) 58%, transparent);
  }

  /* ── Bands ───────────────────────────────────────────────────────────────
     Drawn by their own padding rather than by escaping the column; see the
     note on `.av-mkt-shell` for why `100vw` is not available here. */
  .av-mkt-band { padding-block: var(--av-space-16); }

  .av-mkt-band--ruled { border-block-start: 1px solid var(--av-border-subtle); }

  .av-mkt-band__head {
    max-inline-size: 58ch;
    margin-inline: auto;
    margin-block-end: var(--av-space-10);
    text-align: center;
  }

  .av-mkt-band__eyebrow {
    display: block;
    margin: 0 0 var(--av-space-3);
    font-size: var(--av-font-size-xs);
    font-weight: var(--av-font-weight-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--av-color-primary);
  }

  .av-mkt-band__title {
    margin: 0 0 var(--av-space-4);
    font-family: var(--av-font-display);
    font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem);
    font-weight: var(--av-font-weight-bold);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--av-text-primary);
    text-wrap: balance;
  }

  .av-mkt-band__lede {
    margin: 0;
    font-size: var(--av-font-size-lg);
    line-height: var(--av-line-height-relaxed);
    color: var(--av-text-secondary);
  }

  /* ── Card grids ──────────────────────────────────────────────────────────
     `auto-fit` + `minmax` rather than a media query per breakpoint, so the
     columns answer the space they are actually in: these grids appear inside a
     full-width band and inside a narrow one. */
  .av-mkt-grid {
    display: grid;
    gap: var(--av-space-4);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  }

  .av-mkt-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  }

  .av-mkt-grid--tight {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  }

  /* Six items want three columns, not four. `auto-fit` at this page width fits
     four tracks and leaves a two-card orphan row, which reads as a section that
     ran out rather than one that was composed. A count that divides is worth an
     explicit breakpoint. */
  @media (min-width: 62rem) {
    .av-mkt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  /* ── Feature card ────────────────────────────────────────────────────────
     Not `.av-card`: that component carries a header/body/footer structure and a
     surface treatment built for dashboard content, and using it here meant
     three empty wrappers per feature. */
  .av-mkt-feature {
    display: flex;
    flex-direction: column;
    gap: var(--av-space-3);
    padding: var(--av-space-6);
    border: 1px solid var(--av-border-subtle);
    border-radius: var(--av-radius-xl);
    background-color: var(--av-surface-raised);
    transition:
      border-color var(--av-duration-normal) var(--av-ease-standard),
      box-shadow var(--av-duration-normal) var(--av-ease-standard);
  }

  .av-mkt-feature:hover {
    border-color: color-mix(in oklab, var(--av-color-primary) 38%, var(--av-border-subtle));
    box-shadow: var(--av-shadow-md);
  }

  /* The tinted tile the icon sits in. A bare stroke icon on a pale card reads
     as a bullet; the tile is what makes it read as a subject. */
  .av-mkt-feature__icon {
    display: grid;
    place-items: center;
    inline-size: 46px;
    block-size: 46px;
    border-radius: var(--av-radius-lg);
    background-color: color-mix(in oklab, var(--av-color-primary) 13%, transparent);
    color: var(--av-color-primary);
    --av-icon-size: 22px;
  }

  .av-mkt-feature__title {
    margin: 0;
    font-size: var(--av-font-size-lg);
    font-weight: var(--av-font-weight-semibold);
    letter-spacing: -0.012em;
    color: var(--av-text-primary);
  }

  .av-mkt-feature__text {
    margin: 0;
    font-size: var(--av-font-size-sm);
    line-height: var(--av-line-height-relaxed);
    color: var(--av-text-secondary);
  }

  /* ── Figures ─────────────────────────────────────────────────────────────
     Six countable numbers, deliberately *not* `.av-stat-card`. That component
     paints a vivid gradient tile under `data-av-depth="rich"`, which this site
     runs, and its own source says why that would be wrong here: "a vivid tile
     says this number matters; sixteen of them on one screen says nothing at
     all." Six identical blue blocks is the same sentence with a smaller number.
     Emphasis has to be spent, not issued to every figure at once. */
  .av-mkt-figure {
    display: flex;
    flex-direction: column;
    gap: var(--av-space-1);
    padding: var(--av-space-6);
    border: 1px solid var(--av-border-subtle);
    border-radius: var(--av-radius-xl);
    background-color: var(--av-surface-raised);
  }

  .av-mkt-figure__value {
    margin: 0;
    font-family: var(--av-font-display);
    font-size: var(--av-font-size-4xl);
    font-weight: var(--av-font-weight-bold);
    line-height: var(--av-line-height-none);
    letter-spacing: -0.035em;
    color: var(--av-text-primary);
  }

  .av-mkt-figure__label {
    margin: var(--av-space-2) 0 0;
    font-size: var(--av-font-size-sm);
    font-weight: var(--av-font-weight-semibold);
    color: var(--av-text-primary);
  }

  .av-mkt-figure__note {
    margin: 0;
    font-size: var(--av-font-size-sm);
    line-height: var(--av-line-height-snug);
    color: var(--av-text-muted);
  }

  /* ── Preset picker ───────────────────────────────────────────────────────
     The centrepiece, and the only part of this site a competitor cannot answer
     with a picture.

     Each swatch carries its own `data-av-preset`, and the product declares its
     preset tokens on a bare `[data-av-preset="…"]` rather than on `:root`, so
     a swatch renders in its own preset while this stylesheet names not one
     colour. Sixteen hard-coded chips would have been the obvious build, and
     would be wrong by the first retune, silently.

     The click is the product's own delegated `data-av-theme-set` trigger. There
     is no script on this site at all. */
  .av-mkt-presets {
    display: grid;
    gap: var(--av-space-3);
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
    margin: 0 0 var(--av-space-6);
    padding: 0;
    list-style: none;
  }

  .av-mkt-preset {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--av-space-2);
    inline-size: 100%;
    padding: var(--av-space-2-5);
    border: 1px solid var(--av-border-subtle);
    border-radius: var(--av-radius-lg);
    background-color: var(--av-surface-raised);
    font-size: var(--av-font-size-xs);
    font-weight: var(--av-font-weight-medium);
    color: var(--av-text-secondary);
    cursor: pointer;
    transition:
      border-color var(--av-duration-normal) var(--av-ease-standard),
      translate var(--av-duration-normal) var(--av-ease-standard),
      box-shadow var(--av-duration-normal) var(--av-ease-standard);
  }

  .av-mkt-preset:hover {
    border-color: color-mix(in oklab, var(--av-text-primary) 32%, transparent);
    translate: 0 -3px;
    box-shadow: var(--av-shadow-md);
  }

  .av-mkt-preset:focus-visible {
    outline: 2px solid var(--av-border-focus);
    outline-offset: 2px;
  }

  /* Three real stops from the preset being previewed: the brand, its hover step
     and the surface a card sits on. Enough to tell warm from cool and vivid
     from muted, which is the whole question a swatch answers. */
  .av-mkt-preset__chip {
    display: flex;
    block-size: 38px;
    border-radius: var(--av-radius-md);
    overflow: hidden;
  }

  /* The **ramp**, not the semantic token, and this is the whole trick working
     or not working.

     A preset block redeclares `--av-primary-500`, `--av-neutral-100` and the
     rest. The semantic layer (`--av-color-primary: var(--av-primary-600)`) is
     declared once on `:root`, and custom-property substitution resolves at the
     element that *declares* it: `--av-color-primary` computes to a literal at
     `:root` and inherits down as that literal, so redeclaring the ramp beneath
     it changes nothing.

     Reading the semantic token here painted thirteen of the sixteen swatches
     the same blue. It looked half-right rather than broken, because ocean,
     crimson and nord happen to carry a semantic override of their own: a
     coincidence that is exactly how a bug like this survives a glance. */
  .av-mkt-preset__chip i { flex: 1; }
  .av-mkt-preset__chip i:nth-child(1) { background-color: var(--av-primary-600); }
  .av-mkt-preset__chip i:nth-child(2) { background-color: var(--av-primary-400); }
  .av-mkt-preset__chip i:nth-child(3) { background-color: var(--av-neutral-200); }

  /* The axis rows beneath the swatches: mode, density, radius. Small, because
     the swatches are the headline and these are the footnote that proves the
     engine goes deeper than colour. */
  .av-mkt-axes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--av-space-5);
    margin-block-end: var(--av-space-8);
  }

  .av-mkt-axis {
    display: flex;
    align-items: center;
    gap: var(--av-space-2);
    font-size: var(--av-font-size-sm);
    color: var(--av-text-muted);
  }

  /* ── Receipts ────────────────────────────────────────────────────────────
     The evidence band. Every template page says "clean code" and "fully
     accessible"; the words are free, so they are worthless to the audience that
     buys this. These are specific and checkable, on an inverse surface because
     the page needs one dark moment before the close. */
  .av-mkt-dark {
    position: relative;
    margin-block: var(--av-space-16);
    padding: var(--av-space-16) var(--av-space-8);
    border-radius: var(--av-radius-2xl);
    background-color: var(--av-surface-inverse);
    color: var(--av-text-inverse);
    overflow: hidden;
  }

  .av-mkt-dark .av-mkt-band__title,
  .av-mkt-dark .av-mkt-figure__value,
  .av-mkt-dark .av-mkt-receipt__title { color: var(--av-text-inverse); }

  .av-mkt-dark .av-mkt-band__lede,
  .av-mkt-dark .av-mkt-receipt__text {
    color: color-mix(in oklab, var(--av-text-inverse) 76%, transparent);
  }

  .av-mkt-dark .av-mkt-band__eyebrow {
    color: color-mix(in oklab, var(--av-color-primary) 70%, var(--av-text-inverse));
  }

  .av-mkt-receipts {
    display: grid;
    gap: var(--av-space-px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    border: 1px solid color-mix(in oklab, var(--av-text-inverse) 14%, transparent);
    /* Six receipts, three across: same reasoning as `.av-mkt-grid--3`. */
    border-radius: var(--av-radius-xl);
    background-color: color-mix(in oklab, var(--av-text-inverse) 14%, transparent);
    overflow: hidden;
  }

  /* Hairline dividers drawn by the grid's own gap over a tinted parent, rather
     than by a border on each cell, a border per cell doubles on every internal
     edge and leaves the outer ring twice as heavy as the inner ones. */
  @media (min-width: 62rem) {
    .av-mkt-receipts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  .av-mkt-receipt {
    display: flex;
    flex-direction: column;
    gap: var(--av-space-2);
    padding: var(--av-space-6);
    background-color: var(--av-surface-inverse);
  }

  .av-mkt-receipt__title {
    display: flex;
    align-items: center;
    gap: var(--av-space-2);
    margin: 0;
    font-size: var(--av-font-size-base);
    font-weight: var(--av-font-weight-semibold);
  }

  .av-mkt-receipt__title svg {
    color: color-mix(in oklab, var(--av-color-primary) 60%, var(--av-text-inverse));
  }

  .av-mkt-receipt__text {
    margin: 0;
    font-size: var(--av-font-size-sm);
    line-height: var(--av-line-height-relaxed);
  }

  /* ── Code split ──────────────────────────────────────────────────────────
     One component, the real markup that makes it, rendered beside it. A
     developer buying a template wants to know what the API looks like before
     they want to know anything else, and the honest answer here is short. */
  .av-mkt-split {
    display: grid;
    gap: var(--av-space-6);
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }

  @media (min-width: 56rem) {
    .av-mkt-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  }

  /* `.av-mkt-feature__text` carries `margin: 0` because inside a card the gap is
     the card's job. Reused as a column of paragraphs it collapsed them into one
     block of text, the flow needs an owner, and here it is this. */
  .av-mkt-flow {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: var(--av-space-4);
  }

  .av-mkt-panel {
    display: flex;
    flex-direction: column;
    gap: var(--av-space-4);
    padding: var(--av-space-8);
    border: 1px solid var(--av-border-subtle);
    border-radius: var(--av-radius-xl);
    background-color: var(--av-surface-raised);
  }

  /* ── Spec list ───────────────────────────────────────────────────────────
     "What is in the ZIP." A description list, because that is what it is: a
     term and what it holds. */
  .av-mkt-spec {
    display: grid;
    gap: var(--av-space-5) var(--av-space-7);
    margin: 0;
    padding: var(--av-space-8);
    border: 1px solid var(--av-border-subtle);
    border-radius: var(--av-radius-xl);
    background-color: var(--av-surface-raised);
    grid-template-columns: minmax(0, 1fr);
  }

  @media (min-width: 40rem) {
    .av-mkt-spec { grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr); }
  }

  .av-mkt-spec__term {
    margin: 0;
    font-size: var(--av-font-size-sm);
    font-weight: var(--av-font-weight-semibold);
    color: var(--av-text-primary);
  }

  .av-mkt-spec__desc {
    margin: 0;
    font-size: var(--av-font-size-sm);
    line-height: var(--av-line-height-relaxed);
    color: var(--av-text-secondary);
  }

  /* ── Closing call to action ──────────────────────────────────────────────
     `--av-text-inverse` is the ink paired with `--av-surface-inverse`; the pair
     is defined together in the token layer and must stay together, or one mode
     reads as light on light. */
  .av-mkt-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--av-space-5);
    padding: var(--av-space-16) var(--av-space-6);
    border-radius: var(--av-radius-2xl);
    background-color: var(--av-surface-inverse);
    color: var(--av-text-inverse);
    text-align: center;
    overflow: hidden;
  }

  .av-mkt-cta::before {
    content: "";
    position: absolute;
    inset-block-start: -46%;
    inset-inline-start: 50%;
    translate: -50% 0;
    inline-size: 72%;
    aspect-ratio: 2 / 1;
    z-index: var(--av-z-below);
    border-radius: var(--av-radius-full);
    background: color-mix(in oklab, var(--av-color-primary) 55%, transparent);
    filter: blur(90px);
    pointer-events: none;
  }

  .av-mkt-cta__title {
    margin: 0;
    font-family: var(--av-font-display);
    font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem);
    font-weight: var(--av-font-weight-bold);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--av-text-inverse);
    text-wrap: balance;
  }

  .av-mkt-cta__lede {
    margin: 0;
    max-inline-size: 52ch;
    font-size: var(--av-font-size-lg);
    line-height: var(--av-line-height-relaxed);
    color: color-mix(in oklab, var(--av-text-inverse) 80%, transparent);
  }

  /* Inline list of the vendored libraries. Chips rather than logos: a
     commercial page has no right to anyone's trademark, and a row of wordmarks
     reads as an endorsement none of them has given. */
  .av-mkt-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--av-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* ── Pricing page ────────────────────────────────────────────────────────
     Five tiers across a wide screen, two on a tablet, one on a phone. Declared
     at explicit breakpoints rather than with `auto-fit`, which given five
     tracks and a container between two widths produces a row of four and an
     orphan: the cheapest tier alone on a line reads as a different product. */
  .av-mkt-tiers {
    display: grid;
    gap: var(--av-space-4);
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  @media (min-width: 44rem) {
    .av-mkt-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (min-width: 76rem) {
    .av-mkt-tiers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  }

  /* The period label sits beside a figure that can be four digits wide. Without
     this it is a flex sibling that refuses to wrap and pushes "one-off" out
     through the side of the card, which is what `$1,299.00` did. */
  .av-mkt-tiers .av-pricing-card__price {
    flex-wrap: wrap;
    column-gap: var(--av-space-1);
  }

  /* "By agreement" is not a price and must not be set like one: at the price
     step it wraps to two lines, dwarfs the four real figures beside it and
     makes the cheapest tier look like the small print. */
  .av-mkt-quote {
    font-size: var(--av-font-size-xl);
    font-weight: var(--av-font-weight-semibold);
    color: var(--av-text-secondary);
  }

  /* An excluded row in a pricing card's feature list: the cross beside "SaaS
     with paying end users" on the two cheap tiers. It is the highest-value
     element on a licence pricing page, because it is what moves a SaaS buyer up
     a tier with no salesperson in the room.

     `--av-text-muted`, not `--av-text-subtle`: the row still has to clear
     4.5:1, and subtle fails that by design; it is the token for what should
     stay small and secondary, never a body-text colour. */
  .av-mkt-off { color: var(--av-text-muted); }
  .av-mkt-off__icon { color: var(--av-text-muted); }
  .av-mkt-on__icon { color: var(--av-color-success-text); }

  /* A wide table scrolls inside its own box rather than pushing the page
     sideways, and a scroll container must be reachable by keyboard, hence
     `tabindex="0"` on it in the markup, and a ring here so the focus it can now
     take is visible. */
  .av-mkt-scroll {
    overflow-x: auto;
    border-radius: var(--av-radius-lg);
  }

  .av-mkt-scroll:focus-visible {
    outline: 2px solid var(--av-border-focus);
    outline-offset: 2px;
  }

  /* ── Consent bar ─────────────────────────────────────────────────────────
     Floats over the page's lower edge rather than pushing the layout, so the
     page underneath does not jump when it appears or goes. Capped in width on
     a desktop, full width less the gutter on a phone. */
  .av-mkt-consent {
    position: fixed;
    inset-block-end: var(--av-space-4);
    inset-inline: var(--av-space-4);
    z-index: var(--av-z-toast);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--av-space-3) var(--av-space-4);
    max-inline-size: 640px;
    margin-inline: auto;
    padding: var(--av-space-4);
    background-color: var(--av-surface-float);
    color: var(--av-text-secondary);
    border: 1px solid var(--av-border-default);
    border-radius: var(--av-radius-lg);
    box-shadow: var(--av-shadow-lg);
    font-size: var(--av-font-size-sm);
  }

  .av-mkt-consent__text {
    flex: 1 1 260px;
    margin: 0;
  }

  .av-mkt-consent__actions {
    display: flex;
    gap: var(--av-space-2);
    margin-inline-start: auto;
  }

  /* A button, because it acts on the page rather than going anywhere, dressed
     as the link text around it. */
  .av-mkt-consent__reopen {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
  }
}
