@layer components {
    .logo { display: inline-flex; align-items: center; gap: 10px; }
    .logo__mark { width: 32px; height: 32px; flex: none; }
    .logo__img { display: block; height: 28px; width: auto; }
    .logo__word { font-family: var(--font-display); font-size: 21px; font-weight: 900; letter-spacing: -0.03em; color: var(--text); }
    .logo__word b { font-weight: 900; color: var(--cyan-300); }

    /* The masthead floats as a glass capsule (LimeFlow's frosted pills), centred, over the page. */
    .site-header {
        position: sticky; top: 0; z-index: 100;
        height: var(--header-h);
        padding-top: 12px;
        pointer-events: none;
    }
    .site-header__inner {
        --edge: linear-gradient(-170deg, var(--white-a20), var(--white-a4) 50%, var(--cyan-a25));
        position: relative;
        display: flex; align-items: center; gap: 28px;
        width: min(1180px, 100% - 2 * var(--gutter)); height: 58px; margin-inline: auto;
        padding: 0 9px 0 20px;
        border-radius: 999px;
        background: rgb(14 17 18 / .55);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        backdrop-filter: blur(18px) saturate(140%);
        box-shadow: inset 0 1px 0 var(--white-a10), 0 18px 50px -20px var(--black-a80);
        pointer-events: auto;
        transition: background-color .3s;
    }
    .site-header__inner::before {
        content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: var(--edge);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
        pointer-events: none;
    }
    .site-header.is-scrolled .site-header__inner, .site-header.is-open .site-header__inner { background: rgb(14 17 18 / .88); }
    .site-header__brand { flex: none; border-radius: 8px; }
    .site-nav { display: flex; align-items: center; flex: 1; gap: 18px; }
    .site-nav__list { display: flex; gap: 2px; margin: 0 auto; }
    .site-nav__list a {
        display: block; padding: 8px 14px; border-radius: 999px;
        color: var(--text-2); font-size: 15px; font-weight: 600;
        transition: color .15s, background-color .15s;
    }
    .site-nav__list a:hover { color: var(--text); background: var(--white-a6); }
    .site-nav__list a[aria-current="page"] { color: var(--text); background: var(--white-a8); }
    .site-nav__actions { display: flex; align-items: center; gap: 6px; }
    .site-nav__login { padding: 8px 14px; color: var(--text-2); font-size: 15px; font-weight: 600; border-radius: 999px; }
    .site-nav__login:hover { color: var(--text); }
    .site-header .btn { --btn-h: 42px; padding: 0 18px; font-size: 15px; }
    .site-header__toggle {
        display: none; margin-left: auto;
        width: 42px; height: 42px; place-items: center;
        border: 1px solid var(--line-2); border-radius: 50%; background: var(--white-a6);
    }
    .site-header__toggle .i { width: 20px; height: 20px; }

    @media (max-width: 1000px) {
        .site-header__toggle { display: grid; }
        .site-nav {
            position: fixed; inset: calc(var(--header-h) + 6px) var(--gutter) auto;
            flex-direction: column; align-items: stretch; gap: 18px;
            max-height: calc(100dvh - var(--header-h) - 20px); overflow: auto;
            padding: 14px 18px 20px;
            border-radius: var(--r-card);
            background: var(--surface-deep); border: 1px solid var(--line-2);
            box-shadow: var(--shadow-stage);
            opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center;
            transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
        }
        .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
        .site-nav__list { flex-direction: column; margin: 0; }
        .site-nav__list a { padding: 14px 6px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
        .site-nav__list a[aria-current="page"] { background: none; color: var(--cyan-300); }
        .site-nav__actions { flex-direction: column; align-items: stretch; }
        .site-nav__actions .btn { --btn-h: 52px; font-size: 17px; }
        .site-nav__login { text-align: center; padding: 13px; border: 1px solid var(--line-2); }
    }
    @media (max-width: 720px) {
        .site-header { padding-top: 8px; }
        .site-header__inner { height: 52px; padding-left: 14px; padding-right: 5px; }
        .logo__mark { width: 28px; height: 28px; }
        .logo__img { height: 24px; }
        .logo__word { font-size: 19px; }
    }
    /* no JS: the menu can't open, so phones get the links in a row under the bar instead */
    @media (max-width: 1000px) {
        html:not(.js) .site-header { height: auto; position: relative; }
        html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 10px; border-radius: var(--r-card); }
        html:not(.js) .site-nav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; background: none; border: 0; box-shadow: none; }
        html:not(.js) .site-header__toggle { display: none; }
    }

    /* Sticky CTA (includes/layout/foot.php, js/features/sticky-cta.js): appears once the hero has scrolled away, hides
       over the pricing and final sections and the footer, where the real buttons are. */
    .sticky-cta {
        position: fixed; left: 50%; bottom: 16px; z-index: 90;
        display: flex; align-items: center; gap: 16px;
        width: max-content; max-width: calc(100% - 24px);
        padding: 7px 7px 7px 22px;
        border-radius: 999px;
        background: rgb(14 17 18 / .82);
        -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
        box-shadow: inset 0 1px 0 var(--white-a10), 0 0 0 1px var(--white-a10), 0 24px 60px -10px var(--black-a80);
        translate: -50% 140%;
        opacity: 0;
        transition: translate .45s var(--ease), opacity .3s;
    }
    .sticky-cta.is-shown { translate: -50% 0; opacity: 1; }
    .sticky-cta__text { display: grid; line-height: 1.2; }
    .sticky-cta__text b { color: var(--text); font-size: 15px; font-weight: 800; }
    .sticky-cta__text small { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
    .sticky-cta .btn { --btn-h: 44px; padding: 0 20px; font-size: 15.5px; }
    @media (max-width: 480px) {
        .sticky-cta { width: calc(100% - 20px); justify-content: space-between; padding-left: 16px; bottom: 10px; }
        .sticky-cta__text b { font-size: 14px; }
        .sticky-cta__text small { display: none; }
    }
    html:not(.js) .sticky-cta { display: none; }
}
