/*
 * Bavn's public pages (docs/marketing.md). One file every public page shares, linked by
 * <x-marketing.layout> with its filemtime as the cache-buster. No build step: edit it here.
 * Order matters where two rules have the same specificity: tokens and tones, base, the
 * shared chrome (header, buttons, footer), then page sections, then the article pages
 * (.doc), then the narrow-screen overrides, then the motion, which prefers-reduced-motion
 * switches off at the very end.
 *
 * The panel's colour and motion (public/css/panel.css, docs/ux.md "Motion and colour"):
 * one tone per page (the layout's `tone`, on <body data-tone>), a navy hero with drifting
 * glows on / and the angle pages, a band in the page's tone on the others. Rules kept here:
 * only transform and opacity animate; glows are radial gradients (no filter, no image, no
 * url()); nothing is hidden unless the layout's reveal script ran and motion is allowed
 * (html.reveal); no stacking context, clipping or transform on an ancestor of the header's
 * menu (html, body, the header's .wrap, .nav-right, .nav-menu).
 */

:root {
    --bg: #0b1020;
    --bg-soft: #121a30;
    --card: #16203a;
    --border: #26324f;
    --text: #e8edf7;
    --muted: #9fb0cc;
    --flame: #ff7a1a;
    --flame-2: #ffb547;
    --accent: #4f9dff;
    --ring: rgba(79, 157, 255, .35);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --navy: #0b1730;

    /* The panel's tones (App\Filament\Support\PageTone, the same hexes as panel.css): the base,
       its lighter partner for gradients, and an ink for text and icons on the page's own ground. */
    --tone-flame: #ff7a1a;   --tone-flame-2: #ffb547;   --tone-flame-ink: #ffa057;
    --tone-sky: #4f9dff;     --tone-sky-2: #8ec5ff;     --tone-sky-ink: #8ec5ff;
    --tone-violet: #8b5cf6;  --tone-violet-2: #c4b5fd;  --tone-violet-ink: #c4b5fd;
    --tone-rose: #f43f5e;    --tone-rose-2: #fda4af;    --tone-rose-ink: #fda4af;
    --tone-teal: #14b8a6;    --tone-teal-2: #5eead4;    --tone-teal-ink: #5eead4;
    --tone-emerald: #10b981; --tone-emerald-2: #6ee7b7; --tone-emerald-ink: #6ee7b7;
    --tone-amber: #f59e0b;   --tone-amber-2: #fcd34d;   --tone-amber-ink: #fcd34d;
    --tone-fuchsia: #d946ef; --tone-fuchsia-2: #f0abfc; --tone-fuchsia-ink: #f0abfc;
    --tone-indigo: #6366f1;  --tone-indigo-2: #a5b4fc;  --tone-indigo-ink: #a5b4fc;

    /* A page outside the layout (the unsubscribe page) still has a tone: the brand's. */
    --tone: var(--tone-flame); --tone-2: var(--tone-flame-2); --tone-ink: var(--tone-flame-ink);
}
@media (prefers-color-scheme: light) {
    :root {
        --bg: #f6f8fc;
        --bg-soft: #eef2fa;
        --card: #ffffff;
        --border: #dbe3f0;
        --text: #12203a;
        --muted: #4d5f7d;
        --flame: #e35d00;
        --flame-2: #f59e0b;
        --accent: #1f6fe0;
        --ring: rgba(31, 111, 224, .25);

        --tone-flame-ink: #c2410c;
        --tone-sky-ink: #1d64d8;
        --tone-violet-ink: #6d28d9;
        --tone-rose-ink: #be123c;
        --tone-teal-ink: #0f766e;
        --tone-emerald-ink: #047857;
        --tone-amber-ink: #b45309;
        --tone-fuchsia-ink: #a21caf;
        --tone-indigo-ink: #4338ca;
    }
}
/* A page's tone (<body data-tone>, the layout's `tone`); a plan card names its own. Custom properties only. */
[data-tone="flame"]   { --tone: var(--tone-flame);   --tone-2: var(--tone-flame-2);   --tone-ink: var(--tone-flame-ink); }
[data-tone="sky"]     { --tone: var(--tone-sky);     --tone-2: var(--tone-sky-2);     --tone-ink: var(--tone-sky-ink); }
[data-tone="violet"]  { --tone: var(--tone-violet);  --tone-2: var(--tone-violet-2);  --tone-ink: var(--tone-violet-ink); }
[data-tone="rose"]    { --tone: var(--tone-rose);    --tone-2: var(--tone-rose-2);    --tone-ink: var(--tone-rose-ink); }
[data-tone="teal"]    { --tone: var(--tone-teal);    --tone-2: var(--tone-teal-2);    --tone-ink: var(--tone-teal-ink); }
[data-tone="emerald"] { --tone: var(--tone-emerald); --tone-2: var(--tone-emerald-2); --tone-ink: var(--tone-emerald-ink); }
[data-tone="amber"]   { --tone: var(--tone-amber);   --tone-2: var(--tone-amber-2);   --tone-ink: var(--tone-amber-ink); }
[data-tone="fuchsia"] { --tone: var(--tone-fuchsia); --tone-2: var(--tone-fuchsia-2); --tone-ink: var(--tone-fuchsia-ink); }
[data-tone="indigo"]  { --tone: var(--tone-indigo);  --tone-2: var(--tone-indigo-2);  --tone-ink: var(--tone-indigo-ink); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }
/* A one-time message from the app above the page, e.g. after an account is deleted. */
.site-notice {
    margin: 20px 0 0; padding: 14px 18px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent);
    overflow-wrap: anywhere;
}

/* Header. On narrow screens the links fold into a <details> menu, so it works without JS. */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-menu { display: none; position: relative; }
.nav-menu > summary {
    display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
    padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--card); color: var(--text); font-weight: 600;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.nav-menu > summary svg { width: 18px; height: 18px; }
.nav-menu-links {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
    display: flex; flex-direction: column; min-width: 220px; padding: 8px;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
}
.nav-menu-links a { padding: 10px 12px; border-radius: 8px; color: var(--text); font-weight: 500; }
.nav-menu-links a:hover, .nav-menu-links a[aria-current="page"] { background: var(--bg-soft); text-decoration: none; }

.btn {
    display: inline-block; font-weight: 600; padding: 12px 22px; border-radius: 10px;
    border: 1px solid transparent; cursor: pointer; transition: transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn-primary {
    color: #1a0f00;
    background: linear-gradient(135deg, var(--flame-2), var(--flame));
    box-shadow: 0 6px 24px -8px var(--flame);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--card); }

/* A full-width band of a page, ruled off from the one above. Before .hero so the hero's padding wins. */
.band { padding: 64px 0; border-top: 1px solid var(--border); }

/*
 * The navy hero (/, the angle pages and the 404), in both colour schemes: the panel's
 * greeting band (filament/widgets/dashboard-hero), with a faint dot grid, a flame line along
 * its foot and two slowly drifting glows (.orb, inside the hero). It is the dark set of
 * tokens whatever the visitor's scheme. It clips its own glows (isolation, overflow) and
 * holds no menu. Its text stays at 4.5:1 or more over the lightest pixel behind it, with the
 * glows anywhere in their drift.
 */
.hero {
    --text: #f4f7fd;
    --muted: #c9d5ea;
    --border: rgb(255 255 255 / .2);
    --card: rgb(255 255 255 / .07);
    --bg-soft: rgb(255 255 255 / .1);
    --accent: #8ec5ff;
    --flame: #ff7a1a;
    --flame-2: #ffb547;
    --ring: rgb(142 197 255 / .6);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 84px 0 64px;
    border-top: 0;
    color: var(--text);
    background-color: var(--navy);
    background-image: linear-gradient(125deg, #0a1630 0%, #0f2147 50%, #1b2550 78%, #3a2235 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .4;
    background-image: radial-gradient(rgb(255 255 255 / .5) 1px, transparent 1.3px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 45% 80% at 82% 45%, #000 10%, transparent 72%);
    mask-image: radial-gradient(ellipse 45% 80% at 82% 45%, #000 10%, transparent 72%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background-image: linear-gradient(90deg, transparent, var(--tone-flame-2) 30%, var(--tone-flame) 70%, transparent);
    opacity: .85;
}
.orb { position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; }
.orb-a { top: -260px; right: -120px; background: radial-gradient(closest-side, rgb(255 122 26 / .42), transparent); }
.orb-b { bottom: -300px; left: -170px; background: radial-gradient(closest-side, rgb(79 157 255 / .34), transparent); }
.hero .btn-ghost:hover { background: rgb(255 255 255 / .12); }

/* Landing (/) */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--flame-2); background: color-mix(in srgb, var(--flame) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--flame) 30%, transparent);
    padding: 6px 12px; border-radius: 999px;
}
h1, h2, .brand, .foot-brand { font-family: Archivo, "Arial Narrow", system-ui, sans-serif; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 20px 0 16px; letter-spacing: -.02em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cta-note { margin-top: 14px; color: var(--muted); font-size: .92rem; }

/*
 * The beacon-fire (components/marketing/beacon), drawn in HTML and CSS in a 240 × 260 box
 * scaled by --s: the same shapes and gradients as the old SVG, without an SVG paint server,
 * so the angle pages carry it with no url() (AngleLandingPagesTest). The flame flickers, the
 * rays pulse and the glow behind it breathes (the motion, below); .beacon-dim is unlit.
 */
.beacon { --s: 1.5; position: relative; flex: none; width: calc(240px * var(--s)); height: calc(260px * var(--s)); margin: 0 auto; }
.beacon-art { position: absolute; top: 0; left: 0; width: 240px; height: 260px; transform: scale(var(--s)); transform-origin: 0 0; }
.beacon-art span { position: absolute; display: block; }
.beacon-glow { left: 10px; top: 4px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 122 26 / .34), rgb(255 122 26 / .1) 60%, transparent); }
.beacon-shadow { left: 34px; top: 224px; width: 172px; height: 28px; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .32), transparent); }
.beacon-tower { left: 78px; top: 150px; width: 84px; height: 86px; background: linear-gradient(180deg, #3a4a74, #25314f); clip-path: polygon(21.43% 0, 78.57% 0, 100% 100%, 0 100%); }
.beacon-cap { left: 92px; top: 150px; width: 56px; height: 12px; border-radius: 4px; background: #4b5d8c; }
.beacon-flame { left: 0; top: 0; width: 240px; height: 260px; transform-origin: 120px 164px; }
.beacon-flame-outer, .beacon-flame-inner { inset: 0; }
.beacon-flame-outer {
    background: linear-gradient(150.75deg, #ffb547 18%, #ff5a00 68%);
    clip-path: path("M120 26 C138 66 164 84 164 120 a44 44 0 1 1-88 0 C76 84 102 66 120 26 z");
}
.beacon-flame-inner {
    transform-origin: 120px 148px;
    background: linear-gradient(149.4deg, #fff3c4 29%, #ffab2e 59%);
    clip-path: path("M120 62 C130 88 146 98 146 122 a26 26 0 1 1-52 0 C94 98 110 88 120 62 z");
}
.beacon-rays { inset: 0; opacity: .7; }
.beacon-rays span { width: 3px; height: 21.4px; border-radius: 2px; background: #ffb547; }
.beacon-rays span:nth-child(1) { left: 118.5px; top: 6.3px; }
.beacon-rays span:nth-child(2) { left: 174.5px; top: 26.3px; transform: rotate(40.6deg); }
.beacon-rays span:nth-child(3) { left: 62.5px; top: 26.3px; transform: rotate(-40.6deg); }
.beacon-dim .beacon-flame { opacity: .4; }
.beacon-dim .beacon-glow, .beacon-dim .beacon-rays { display: none; }

.section-head { max-width: 46ch; margin-bottom: 40px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.06rem; }

/*
 * The quieter bands (.story, and .final below): a faint wash of the page's tone and a dot
 * grid on the band's own layer (isolation; the grid is a z-index -1 pseudo-element under the
 * content). Neither holds a menu.
 */
.story, .final { position: relative; isolation: isolate; }
.story::before, .final::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .5;
    background-image: radial-gradient(color-mix(in srgb, var(--tone) 45%, transparent) 1px, transparent 1.3px);
    background-size: 22px 22px;
}
.story {
    background-color: var(--bg-soft);
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--tone) 7%, transparent), transparent 75%);
}
.story::before {
    -webkit-mask-image: linear-gradient(100deg, transparent 55%, #000 100%);
    mask-image: linear-gradient(100deg, transparent 55%, #000 100%);
}
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.story blockquote {
    margin: 0; padding: 24px 28px; border-left: 3px solid var(--flame);
    background: var(--card); border-radius: 12px; font-size: 1.1rem;
}
.story blockquote cite { display: block; margin-top: 12px; color: var(--muted); font-style: normal; font-size: .9rem; }

.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.engines-note { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }

/*
 * Icon chips in the page's tone: a card's icon (.ic), a page band's (.band-chip) and a help
 * topic's (.icon-chip). The panel's .bavn-chip.
 */
.ic, .band-chip, .icon-chip {
    display: inline-grid;
    place-items: center;
    flex: none;
    color: var(--tone-ink);
    background-image: linear-gradient(135deg,
        color-mix(in srgb, var(--tone) 30%, transparent),
        color-mix(in srgb, var(--tone-2) 12%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 34%, transparent), 0 8px 18px -10px var(--tone);
}
@media (prefers-color-scheme: light) {
    .ic, .band-chip, .icon-chip {
        background-image: linear-gradient(135deg,
            color-mix(in srgb, var(--tone) 22%, #fff),
            color-mix(in srgb, var(--tone-2) 16%, #fff));
    }
}
.card .ic { width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; }
.ic svg, .icon-chip svg { width: 22px; height: 22px; }
.icon-chip { width: 36px; height: 36px; border-radius: 10px; }

.engines { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.engine {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.engine strong { display: block; font-size: 1rem; }
.engine span { color: var(--muted); font-size: .86rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-left: 8px; }
.step .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; font-weight: 700;
    color: #1a0f00; background: linear-gradient(135deg, var(--tone-2), var(--tone)); margin-bottom: 14px;
    box-shadow: 0 8px 18px -10px var(--tone);
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* The closing call to action, at the foot of a page: the tone glows up from its foot. */
.final {
    text-align: center;
    background-color: var(--bg-soft);
    background-image: radial-gradient(ellipse 70% 120% at 50% 110%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 70%);
}
.final::before {
    -webkit-mask-image: radial-gradient(ellipse 60% 90% at 50% 100%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 90% at 50% 100%, #000 10%, transparent 70%);
}
.final h2 { margin-bottom: 12px; }
.final p { color: var(--muted); max-width: 48ch; margin: 0 auto 28px; font-size: 1.1rem; }

/*
 * Pricing (/pricing). The monthly/yearly switch needs no JavaScript: two visually hidden
 * radio buttons come before the switch and the cards, and `:checked ~` shows one period's
 * prices and buttons (.when-month, .when-year).
 */
.pricing { padding-bottom: 48px; }
.interval-input {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.interval-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 28px 0 24px; }
.interval-switch {
    display: inline-flex; gap: 4px; padding: 4px;
    background: var(--card); border: 1px solid var(--border); border-radius: 999px;
}
.interval-switch label { padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.interval-save {
    margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    color: var(--text); background: color-mix(in srgb, var(--tone) 24%, transparent);
}
#interval-month:checked ~ .interval-bar label[for="interval-month"],
#interval-year:checked ~ .interval-bar label[for="interval-year"] { background: color-mix(in srgb, var(--tone) 16%, var(--card)); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 50%, transparent); }
#interval-month:focus-visible ~ .interval-bar label[for="interval-month"],
#interval-year:focus-visible ~ .interval-bar label[for="interval-year"] { outline: 3px solid var(--ring); outline-offset: 2px; }
.vat-note { margin: 0; color: var(--muted); font-size: .92rem; }
.pricing .when-year { display: none; }
#interval-year:checked ~ .plans .when-year { display: block; }
#interval-year:checked ~ .plans .when-month { display: none; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start; }
.plan-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.plan-card h2 { font-size: 1.4rem; margin: 0 0 6px; }
.plan-price { margin: 0; }
.plan-price .amount { font-family: Archivo, "Arial Narrow", system-ui, sans-serif; font-size: 2.2rem; font-weight: 800; letter-spacing: -.01em; }
.plan-price .per { color: var(--muted); }
.plan-note { margin: 2px 0 18px; color: var(--muted); font-size: .92rem; }
.plan-cta .btn { display: block; text-align: center; }
.plan-limits { margin: 22px 0 0; }
.plan-limits > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: .95rem; }
.plan-limits dt { color: var(--muted); }
.plan-limits dd { margin: 0; text-align: right; font-weight: 600; }
.plans-note { margin: 16px 0 0; color: var(--muted); font-size: .92rem; text-align: center; }

.included, .faq { max-width: 860px; margin: 56px auto 0; }
.included h2, .faq h2 { font-size: 1.5rem; margin: 0 0 16px; }
.included ul { margin: 0; padding-left: 1.2rem; }
.included li { margin: .45rem 0; }
.faq details { margin: 10px 0; padding: 0 18px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.faq summary:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.faq-body { padding-bottom: 6px; color: var(--muted); }
.faq-body strong { color: var(--text); }
.faq-body p { margin: 0 0 12px; }
.faq-body ul { margin: 0 0 12px; padding-left: 1.2rem; }
.faq-body li { margin: .35rem 0; }
.faq-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
    padding: 1px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-soft);
}
/* A link inside running text is underlined, not told apart by colour alone. */
.included a, .faq-body a { text-decoration: underline; text-underline-offset: 2px; }

/*
 * Angle landing pages (/website-vulnerability-scanner and the other angles; docs/marketing.md,
 * "Angle landing pages"): the promise, the argument (stat tiles and tables in the proof
 * variant, redrawn screens in the product variant, the price chart on the price angle), then
 * the shared sections.
 */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lp-hero { padding: 72px 0 48px; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: center; }
.lp-hero-art .beacon { --s: 1.2; }
.lp-promise { max-width: 780px; }
.lp-promise .lead { max-width: 62ch; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.stat strong { display: block; font-family: Archivo, "Arial Narrow", system-ui, sans-serif; font-size: 1.6rem; line-height: 1.2; }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: .94rem; }

.lp-table-wrap { max-width: 100%; overflow-x: auto; margin: 32px 0 0; }
.lp-engines, .lp-plans { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lp-engines caption, .lp-plans caption { caption-side: top; text-align: left; color: var(--muted); padding: 0 0 10px; }
.lp-engines th, .lp-engines td, .lp-plans th, .lp-plans td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.lp-engines thead th, .lp-plans thead th { color: var(--muted); font-weight: 600; font-size: .86rem; }
.lp-engines tbody th, .lp-plans tbody th { font-weight: 600; white-space: nowrap; }
.lp-plans td { white-space: nowrap; }
.depth {
    display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: .75rem; font-weight: 600;
    color: var(--text); background: color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Redrawn Bavn screens (components/marketing/frame): HTML and inline SVG, never images. */
.frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 24px; align-items: start; }
.frame { margin: 0; min-width: 0; }
.frame-wide { grid-column: 1 / -1; }
.frame-window {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
}
.frame-bar {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: .82rem;
    background: var(--bg-soft); border-bottom: 1px solid var(--border); color: var(--muted);
}
.frame-bar svg { color: var(--flame); flex: none; }
.frame-app { font-weight: 700; color: var(--text); }
.frame-screen::before { content: "›"; margin-right: 8px; }
.frame-body { padding: 14px 16px; font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.frame-body p { margin: 0 0 8px; }
.frame figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; }
.frame-muted { color: var(--muted); }
.frame-modal-title { font-weight: 700; font-size: .95rem; }
.frame-step { font-weight: 600; margin-top: 12px !important; }
.frame-code {
    margin: 0 0 8px; padding: 10px 12px; max-width: 100%; overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; line-height: 1.5;
    white-space: pre-wrap; word-break: break-all; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
}
.frame-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.frame-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 12px 0 0 !important; }
.frame-button {
    display: inline-block; padding: 5px 12px; border-radius: 8px; font-weight: 600; font-size: .82rem;
    color: #1a0f00; background: linear-gradient(135deg, var(--flame-2), var(--flame));
}
.frame-button-ghost { color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); }
.frame-box { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.frame-box ul { margin: 6px 0 0; padding-left: 1.1rem; }
.frame-filter { color: var(--muted); font-size: .8rem; }
.frame-filter span { padding: 1px 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); }
.frame-table { display: grid; }
.frame-row {
    display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 4.5rem 6rem 5.5rem; gap: 4px 12px; align-items: start;
    padding: 9px 0; border-top: 1px solid var(--border);
}
.frame-head { color: var(--muted); font-size: .78rem; font-weight: 600; border-top: 0; padding-top: 0; }
.frame-title strong { display: block; font-weight: 600; }
.frame-title small { display: block; color: var(--muted); font-size: .78rem; }
.sev {
    display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px;
    font-size: .76rem; font-weight: 600; color: #fff; background: var(--sev);
}
.sev svg { width: 12px; height: 12px; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.chip-new { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.chip-change { background: color-mix(in srgb, var(--flame) 20%, transparent); }
.frame-mail-head { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.frame-mail-head div { display: flex; gap: 10px; }
.frame-mail-head dt { width: 4.5rem; flex: none; color: var(--muted); }
.frame-mail-head dd { margin: 0; min-width: 0; }
.frame-mail-greeting { font-weight: 700; font-size: .95rem; }

/* The price angle's chart (components/marketing/price-chart). */
.lp-chart { margin: 36px 0 0; }
.lp-chart figcaption { color: var(--muted); margin-bottom: 14px; }
.lp-chart figcaption strong { color: var(--text); }
.bars { list-style: none; margin: 0; padding: 0; }
.bar {
    display: grid; grid-template-columns: 13rem minmax(0, 1fr) 9.5rem; gap: 4px 16px; align-items: center;
    padding: 12px 0; border-top: 1px solid var(--border);
}
.bar-label strong { margin-right: 4px; }
.bar-track { height: 12px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.bar-track span { display: block; min-width: 4px; height: 100%; border-radius: 999px; background: var(--accent); }
.bar-bavn .bar-track span { background: linear-gradient(90deg, var(--flame-2), var(--flame)); }
.bar-value { font-weight: 700; text-align: right; white-space: nowrap; }
.bar-meta { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .88rem; }
.bar-meta a, .lp-strip a, .lp-chart-note a { text-decoration: underline; text-underline-offset: 2px; }
.lp-chart-note { color: var(--muted); font-size: .92rem; margin: 14px 0 0; }

.lp-steps { grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.lp-strip h2 { font-size: 1.3rem; }
.lp-strip p { margin: 0 0 10px; }
.lp-url span { display: block; color: var(--muted); font-size: .88rem; }
.lp-url code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.lp-faq { margin-top: 0; }
.lp-final-ctas { justify-content: center; margin-top: 0; }

/*
 * A page's band (components/marketing/page-band): the h1 and lead of every page but the
 * landing and the angles, on a soft gradient of the page's tone with a dot grid, one slow
 * glow and the page's icon in a chip. Like the hero it clips its own glow and holds no menu.
 * Its muted text is a shade further from the ground than the page's, so it keeps 4.5:1 over
 * the glow.
 */
.page-band {
    --muted: #c4cfe3;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 52px 0 44px;
    background-image: linear-gradient(105deg,
        color-mix(in srgb, var(--tone) 20%, transparent) 0%,
        color-mix(in srgb, var(--tone) 7%, transparent) 55%,
        color-mix(in srgb, var(--tone) 2%, transparent) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--tone) 28%, var(--border));
}
@media (prefers-color-scheme: light) {
    .page-band {
        --muted: #3c4b66;
        background-image: linear-gradient(105deg,
            color-mix(in srgb, var(--tone) 15%, transparent) 0%,
            color-mix(in srgb, var(--tone) 6%, transparent) 55%,
            color-mix(in srgb, var(--tone) 2%, transparent) 100%);
    }
}
.page-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .5;
    background-image: radial-gradient(color-mix(in srgb, var(--tone) 50%, transparent) 1px, transparent 1.3px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(100deg, transparent 50%, #000 100%);
    mask-image: linear-gradient(100deg, transparent 50%, #000 100%);
}
.page-band .orb { top: -230px; right: -150px; width: 460px; height: 460px; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 26%, transparent), transparent); }
.page-band-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: start; }
.page-band-doc { max-width: 860px; }
.band-chip { width: 56px; height: 56px; margin-top: 2px; border-radius: 16px; }
.band-chip svg { width: 28px; height: 28px; }
.page-band h1 { font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.15; margin: 0 0 12px; }
.page-band .lead { font-size: 1.12rem; max-width: 64ch; margin: 0; }
.page-band .help-crumbs { margin: 0 0 8px; }
.page-band .help-crumbs a { color: var(--text); }
.page-band + .doc { padding-top: 12px; }

/* Article pages: /ai-assistant, /security. A narrower column and quieter headings. */
.doc { max-width: 860px; padding-bottom: 40px; }
.doc h1 { font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.15; margin: 40px 0 12px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 10px; letter-spacing: normal; }
.doc .lead { font-size: 1.12rem; max-width: none; }
/* A short bar of the page's tone over each section heading, and the list markers in it. */
.doc > h2::before, .help-body > h2::before {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-bottom: 12px;
    border-radius: 3px;
    background-image: linear-gradient(90deg, var(--tone-2), var(--tone));
}
.doc ul.facts li::marker, .doc ul.examples li::marker, .help-body li::marker { color: var(--tone); }
.doc .card { padding: 18px 20px; margin: 16px 0; }
.doc .url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; word-break: break-all; }
.doc ul.examples { padding-left: 1.2rem; }
.doc ul.examples li { margin: .3rem 0; }
.doc ul.facts { padding-left: 1.2rem; }
.doc ul.facts li { margin: .45rem 0; }
.doc code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; word-break: break-all;
    padding: 1px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--card);
}
/* A link inside running text is underlined, not told apart by colour alone. */
.doc p a, .doc li a { text-decoration: underline; text-underline-offset: 2px; }
.doc .toc {
    display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 0; padding: 14px 18px; font-size: .95rem;
    border: 1px solid color-mix(in srgb, var(--tone) 24%, var(--border)); border-radius: 12px;
    background: color-mix(in srgb, var(--tone) 6%, var(--card));
}

/* The help centre: /help and /help/{slug}. Article bodies are Markdown (SafeMarkdown). */
.help-search { margin: 24px 0 8px; }
.help-search label { display: block; font-weight: 600; margin-bottom: 6px; }
.help-search-row { display: flex; gap: 10px; }
.help-search input {
    flex: 1; min-width: 0; padding: 11px 14px; font: inherit; color: var(--text);
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
}
.help-search input:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }
.help-search .btn { cursor: pointer; font: inherit; font-weight: 600; }
.help-result { color: var(--muted); }
.help-result a, .help-support a, .help-back a, .help-crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.help-area h2, .help-related h2 { font-size: 1.2rem; }
/* The help index's topics as cards, each with its icon in a chip. */
.help-area { margin: 20px 0 0; padding: 18px 22px 8px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.help-area-head { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.help-area-head h2 { margin: 0; }
.help-area .help-list li:first-child { border-top: 0; padding-top: 4px; }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-list li { padding: 12px 0; border-top: 1px solid var(--border); }
.help-list li a { font-weight: 600; text-decoration: none; }
.help-list li a:hover { text-decoration: underline; }
.help-list li span { display: block; color: var(--muted); font-size: .95rem; }
.help-crumbs { margin: 32px 0 -24px; color: var(--muted); font-size: .92rem; }
.help-body { overflow-wrap: anywhere; }
.help-body h3 { font-size: 1.08rem; margin: 28px 0 8px; }
.help-body li { margin: .35rem 0; }
.help-body a { text-decoration: underline; text-underline-offset: 2px; }
.help-body pre {
    overflow-x: auto; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--card); font-size: .88rem; line-height: 1.5;
}
.help-body pre code { padding: 0; border: 0; background: none; word-break: normal; white-space: pre; }
.help-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.help-body th, .help-body td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.help-body th { background: var(--bg-soft); }
.help-body blockquote {
    margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--tone); border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--tone) 9%, transparent); color: var(--text);
}
.help-body blockquote > :first-child { margin-top: 0; }
.help-body blockquote > :last-child { margin-bottom: 0; }
.help-support { margin: 40px 0 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.help-support h2 { margin: 0 0 6px; font-size: 1.15rem; }
.help-support p { margin: 0; }
.help-back { margin: 28px 0 0; }

/* Comparison pages: /compare and /compare/{slug}. The other scanner's figures sit in figure.cmp, each with its source. */
.cmp-cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.cmp-cards li { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.cmp-cards a { font-weight: 600; }
.cmp-cards span { display: block; margin-top: 4px; color: var(--muted); font-size: .95rem; }
.cmp-note { margin-top: 28px; color: var(--muted); font-size: .95rem; }
.cmp-note a { text-decoration: underline; text-underline-offset: 2px; }
figure.cmp { margin: 28px 0 8px; }
figure.cmp table { width: 100%; border-collapse: collapse; font-size: .95rem; table-layout: fixed; }
figure.cmp th, figure.cmp td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
figure.cmp thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text); background: color-mix(in srgb, var(--tone) 12%, transparent); }
/* Bavn's own column, lit in the page's tone. */
figure.cmp td[data-bavn] { background: color-mix(in srgb, var(--tone) 7%, transparent); }
figure.cmp thead th:nth-child(2) { background: color-mix(in srgb, var(--tone) 24%, transparent); }
figure.cmp tbody th { width: 22%; font-weight: 600; }
figure.cmp .cmp-source { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; text-decoration: underline; text-underline-offset: 2px; }
figure.cmp figcaption { margin-top: 12px; color: var(--muted); font-size: .88rem; }
figure.cmp figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.cmp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/*
 * Colour through the page: a 3 px accent along the top of each card and tile, in the page's
 * tone. After every card's own border, which would otherwise reset it.
 */
.card, .engine, .stat, .plan-card, .cmp-cards li, .help-area, .help-support { border-top: 3px solid var(--tone); }

/* The way out of a lifecycle email category (/email/unsubscribe/…): a page of its own, outside the layout. */
.unsubscribe-brand { display: inline-flex; margin: 32px 0 0; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.unsubscribe form { margin: 24px 0 0; }
.unsubscribe .btn { font: inherit; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { margin: 0 0 8px; }
.foot-brand { font-weight: 700; font-size: 1.2rem; color: var(--text); }
.foot-title { font-weight: 600; color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 6px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

@media (max-width: 1000px) {
    .lp-steps { grid-template-columns: repeat(2, 1fr); }
    .nav-links { gap: 16px; }
    .hero .beacon { --s: 1.2; }
    .lp-hero-art .beacon { --s: 1; }
}

@media (max-width: 820px) {
    .frames { grid-template-columns: 1fr; }
    .lp-plans td { white-space: normal; }
    .frame-row { grid-template-columns: 6.5rem minmax(0, 1fr); }
    .frame-row > :nth-child(n+3) { grid-column: 2; color: var(--muted); font-size: .8rem; }
    .frame-head { display: none; }
    .bar { grid-template-columns: minmax(0, 1fr) auto; }
    .bar-track { grid-column: 1 / -1; grid-row: 2; }
    .lp-hero { padding: 48px 0 36px; }
    .hero-grid, .story-grid, .lp-hero-grid { grid-template-columns: 1fr; }
    .beacon { order: -1; }
    .hero .beacon { --s: .8; }
    /* On a phone an angle page's promise comes first: its beacon is left out. */
    .lp-hero-art { display: none; }
    /* One column puts the text under the flame glow: a smaller one, further off the corner. */
    .hero .orb-a { width: 340px; height: 340px; top: -210px; right: -170px; }
    .hero .orb-b { width: 420px; height: 420px; bottom: -260px; left: -190px; }
    .hero::before {
        -webkit-mask-image: radial-gradient(ellipse 60% 22% at 50% 14%, #000 10%, transparent 72%);
        mask-image: radial-gradient(ellipse 60% 22% at 50% 14%, #000 10%, transparent 72%);
    }
    .cols-2, .cols-3, .steps { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-menu { display: block; }
    .nav-right { gap: 10px; }
    .btn-nav { padding: 9px 14px; }
    .lead { max-width: none; }
    .foot { grid-template-columns: 1fr 1fr; }
    .foot-about { grid-column: 1 / -1; }
    /* A comparison row stacks: the label, then Bavn, then the other scanner, each labelled. */
    figure.cmp thead { display: none; }
    figure.cmp tr, figure.cmp th, figure.cmp td { display: block; width: auto; }
    figure.cmp tbody tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
    figure.cmp tbody th, figure.cmp td { padding: 4px 0; border: 0; }
    figure.cmp td::before { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
    figure.cmp td[data-bavn]::before { content: "Bavn"; }
    figure.cmp td[data-competitor]::before { content: attr(data-competitor); }
    figure.cmp td[data-bavn] { margin: 4px 0; padding: 6px 10px; border-radius: 8px; }
}

/* A phone: a page band's chip sits above its heading, which keeps the whole width. */
@media (max-width: 560px) {
    .page-band { padding: 36px 0 32px; }
    .page-band-inner { grid-template-columns: minmax(0, 1fr); }
    .band-chip { width: 44px; height: 44px; margin: 0 0 14px; border-radius: 13px; }
    .band-chip svg { width: 22px; height: 22px; }
}

/* The smallest phones: the menu button keeps its name for screen readers, shows only its icon. */
@media (max-width: 380px) {
    .interval-switch label { padding: 8px 12px; font-size: .92rem; }
    .interval-save { margin-left: 4px; padding: 1px 6px; font-size: .72rem; }
    .nav-menu-label {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
    }
}

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* The headline and lead are the largest paint: they move but never start invisible. */
@keyframes rise-move { from { transform: translateY(14px); } to { transform: none; } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes drift-a { to { transform: translate(-60px, 50px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(70px, -40px) scale(.9); } }
@keyframes flicker {
    0% { transform: none; }
    35% { transform: scale(.97, 1.04); }
    70% { transform: scale(1.02, .985); }
    100% { transform: scale(.985, 1.03); }
}
@keyframes pulse { from { opacity: .45; } to { opacity: 1; } }

/*
 * First paint: the hero's and the band's content rises in, 70 ms apart (eyebrow, h1, lead,
 * calls to action), with the backwards fill, so every block ends where it would be without
 * the motion: visible.
 */
.hero :is(.eyebrow, h1, .lead, .cta-row, .cta-note),
.hero .beacon,
.page-band .band-chip,
.page-band-text > * {
    animation: rise .6s var(--ease) backwards;
}
.hero :is(h1, .lead), .page-band-text > :nth-child(-n+2) { animation-name: rise-move; }
.hero h1, .page-band-text > :nth-child(1) { animation-delay: .07s; }
.hero .lead, .page-band-text > :nth-child(2) { animation-delay: .14s; }
.hero .cta-row, .page-band-text > :nth-child(n+3) { animation-delay: .21s; }
.hero .cta-note { animation-delay: .28s; }
.hero .beacon { animation-duration: .9s; animation-delay: .1s; }

/* The glows drift slowly; the beacon's flame flickers, its rays pulse and its glow breathes. */
.orb-a { animation: drift-a 18s ease-in-out infinite alternate; }
.orb-b { animation: drift-b 22s ease-in-out infinite alternate; }
.page-band .orb { animation: drift-a 20s ease-in-out infinite alternate; }
.beacon-flame { animation: flicker 3.4s ease-in-out infinite alternate; }
.beacon-flame-inner { animation: flicker 2.3s ease-in-out .4s infinite alternate-reverse; }
.beacon-rays { animation: pulse 2.6s ease-in-out infinite alternate; }
.beacon-glow { animation: pulse 3.4s ease-in-out infinite alternate; }
.beacon-dim .beacon-flame, .beacon-dim .beacon-flame-inner { animation: none; }

/*
 * On scroll: each later block rises once as it comes into view (the public site's exception
 * to the panel's "first paint only"). The layout's script adds html.reveal, and marks each
 * block .rv, only when motion is allowed and IntersectionObserver exists; it adds .seen as a
 * block comes into view. Without the script none of this applies, and nothing is hidden.
 * A price chart's bars fill once, as their block rises.
 */
html.reveal .rv:not(.seen) { opacity: 0; }
html.reveal .rv:not(.seen):focus-within { opacity: 1; }
html.reveal .rv.seen { animation: rise .7s var(--ease) backwards; }
html.reveal .rv.seen.instant { animation: none; }
html.reveal .rv.seen .bar-track > span { transform-origin: left center; animation: fill .9s var(--ease) .25s backwards; }

/* Cards, tiles and plan cards lift a little under the pointer; the calls to action keep their own lift. */
.card, .engine, .stat, .plan-card, .cmp-cards li { transition: transform .2s var(--ease); }
.card:hover, .engine:hover, .stat:hover, .plan-card:hover, .cmp-cards li:hover { transform: translateY(-2px); }

/* A printout shows every block. */
@media print {
    html.reveal .rv:not(.seen) { opacity: 1; }
}

/* Reduced motion: no animation, drift, flicker, reveal or lift anywhere. Keep this block last. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero :is(.eyebrow, h1, .lead, .cta-row, .cta-note),
    .hero :is(h1, .lead),
    .hero .beacon,
    .page-band .band-chip,
    .page-band-text > *,
    .page-band-text > :nth-child(-n+2),
    .orb-a,
    .orb-b,
    .page-band .orb,
    .beacon-flame,
    .beacon-flame-inner,
    .beacon-rays,
    .beacon-glow,
    html.reveal .rv.seen,
    html.reveal .rv.seen .bar-track > span {
        animation: none !important;
    }
    html.reveal .rv:not(.seen) { opacity: 1 !important; }
    .btn, .card, .engine, .stat, .plan-card, .cmp-cards li { transition: none !important; }
    .btn-primary:hover, .card:hover, .engine:hover, .stat:hover, .plan-card:hover, .cmp-cards li:hover { transform: none !important; }
}
