@layer components {
    /* ---- layout ---- */
    .wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
    .wrap--narrow { width: min(860px, 100% - 2 * var(--gutter)); margin-inline: auto; }
    .wrap--wide { width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; }
    .section { position: relative; padding-block: var(--section-y); overflow-x: clip; }
    .section--tight { padding-block: calc(var(--section-y) * .6); }
    /* the divider between sections: a hairline that fades out at both ends (LimeFlow's section seams) */
    .section--line::before {
        content: ''; position: absolute; top: 0; left: 50%; translate: -50% 0;
        width: min(1100px, 90%); height: 1px;
        background: linear-gradient(90deg, transparent, var(--white-a10) 30%, var(--cyan-a25) 50%, var(--white-a10) 70%, transparent);
    }

    .skip-link {
        position: fixed; left: 12px; top: -60px; z-index: 1000;
        padding: 10px 16px; border-radius: var(--radius-sm);
        background: var(--accent); color: var(--on-accent); font-weight: 700;
        transition: top .15s;
    }
    .skip-link:focus { top: 12px; }

    /* ---- glass, hairline edges, panels (LimeFlow's .glass / .edge / .panel / .orb) ---- */
    .edge { position: relative; }
    .edge::before {
        content: '';
        position: absolute;
        inset: var(--edge-inset, -0.5px);
        z-index: var(--edge-z, auto);
        padding: var(--edge-width, 1px);
        border-radius: inherit;
        background: var(--edge);
        opacity: var(--edge-opacity, 1);
        -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;
    }
    .glass {
        --glass-angle: -135deg;
        --edge-angle: -150deg;
        background:
            linear-gradient(var(--glass-angle), var(--white-a8) 14.6%, var(--white-a2) 57%, var(--white-a3) 85.4%),
            var(--glass-fill, var(--white-a3));
        --edge: linear-gradient(var(--edge-angle), var(--white-a30) 13.4%, rgb(255 255 255 / .07) 46.3%, var(--white-a4) 64.6%, var(--white-a16) 86.6%);
    }
    .glass--dark {
        --glass-fill: var(--bg-a30);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-shadow: inset 0 1px 0 var(--white-a10);
    }
    .panel {
        --edge-angle: -150deg;
        border-radius: var(--r-card);
        background:
            linear-gradient(180deg, var(--cyan-a6) 0%, var(--white-a3) 20%, transparent 60%),
            var(--panel-fill, var(--surface-card));
        box-shadow: var(--shadow-panel);
        --edge: linear-gradient(var(--edge-angle), rgb(122 232 255 / .28) 13%, rgb(255 255 255 / .07) 46.3%, var(--white-a4) 64.7%, var(--white-a16) 87%);
    }
    .orb {
        --edge: linear-gradient(180deg, var(--white-a30) 0%, var(--white-a8) 50%, rgb(61 220 255 / .35) 100%);
        background: rgb(12 16 19 / .85);
        box-shadow: inset 0 1px 0 var(--white-a12), 0 12px 32px var(--black-a60);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    /* ---- section heading: eyebrow pill, title, lead ---- */
    /* Eyebrow: the dark glass pill above a title, with a round cyan badge (LimeFlow's Eyebrow). Text-only works too. */
    .eyebrow {
        display: inline-flex; align-items: center; gap: 10px;
        margin: 0 0 22px;
        padding: 6px 18px 6px 6px;
        border: 1px solid var(--white-a12);
        border-radius: 999px;
        background: linear-gradient(180deg, var(--white-a6), transparent), rgb(23 27 29 / .85);
        box-shadow: inset 0 1px 0 var(--white-a8);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        color: var(--white-a90);
        font-size: 16px; font-weight: 600; letter-spacing: -0.2px; line-height: 22px;
    }
    .eyebrow:not(:has(.eyebrow__badge)) { padding: 6px 16px; color: var(--cyan-200); }
    .eyebrow__badge {
        display: grid; place-items: center; flex: none;
        width: 30px; height: 30px; border-radius: 50%;
        background: linear-gradient(-110deg, var(--cyan-300) 0%, var(--cyan-400) 48%, var(--cyan-600) 100%);
        color: var(--cyan-ink);
    }
    .eyebrow__badge .i { width: 16px; height: 16px; stroke-width: 2.2; }
    .eyebrow--live .eyebrow__badge { background: var(--rose-900); }
    .eyebrow--live .eyebrow__badge::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--rose-400); box-shadow: 0 0 12px var(--rose-400); animation: live-dot 1.6s ease-in-out infinite; }
    @keyframes live-dot { 50% { opacity: .35; } }

    .h1 {
        margin: 0;
        font-family: var(--font-display);
        font-size: clamp(42px, 7vw, 96px);
        font-weight: 900; line-height: 1; letter-spacing: -0.035em;
        color: var(--white);
    }
    .h2 {
        margin: 0;
        font-family: var(--font-display);
        font-size: clamp(32px, 4.6vw, 60px);
        font-weight: 900; line-height: 1.06; letter-spacing: -0.03em;
        color: var(--white);
    }
    .h3 { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; }
    .lead { margin: 0; max-width: 720px; color: var(--white-a90); font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; line-height: 1.5; }
    .lead strong { color: var(--cyan-300); font-weight: 800; }
    .muted { color: var(--text-3); }
    .accent-text { color: var(--cyan-400); }
    /* Highlight chip: the cyan block behind a few words of a title (LimeFlow's .hl). */
    .hl {
        display: inline-block;
        padding: .02em .26em .08em;
        border-radius: .26em;
        background: var(--grad-cyan);
        outline: 1.5px solid var(--cyan-200);
        outline-offset: -0.75px;
        box-shadow: 0 .18em .5em -.18em rgb(61 220 255 / .45);
        color: var(--cyan-ink);
        white-space: nowrap;
    }
    @media (max-width: 560px) {
        /* long highlighted phrases wrap on phones instead of pushing the page sideways */
        .hl { display: inline; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.3; }
    }
    /* Hand-drawn underline under a few words (scribble() in includes/helpers.php). Draws as it scrolls into view. */
    .scribble { position: relative; white-space: nowrap; }
    .scribble svg { position: absolute; top: 96%; left: -2%; width: 104%; height: .22em; overflow: visible; pointer-events: none; }
    .scribble path { fill: none; stroke: url(#scribble-grad); stroke: var(--cyan-400); stroke-width: .07em; stroke-linecap: round; vector-effect: non-scaling-stroke; }
    @supports (animation-timeline: view()) {
        .scribble path { stroke-dasharray: 1; animation: scribble-draw linear both; animation-timeline: view(); animation-range: entry 40% cover 40%; }
    }
    @keyframes scribble-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

    .head { display: grid; gap: 20px; margin-bottom: 64px; }
    .head--center { justify-items: center; text-align: center; }
    .head--center .lead { margin-inline: auto; }
    .head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 24px 64px; }
    .head--split .eyebrow { grid-column: 1 / -1; justify-self: start; margin: 0; }
    .head .eyebrow { margin-bottom: 0; }
    @media (max-width: 900px) { .head--split { grid-template-columns: 1fr; } }
    @media (max-width: 720px) { .head { margin-bottom: 44px; gap: 16px; } .eyebrow { font-size: 14px; padding: 5px 14px 5px 5px; } .eyebrow__badge { width: 26px; height: 26px; } }
    /* legacy section head (thank-you / 404 / legal) */
    .section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
    .section-head .lead { margin: 18px auto 0; }

    /* ---- buttons (LimeFlow's gradient pill with an inner highlight and a hairline) ---- */
    .btn {
        --btn-h: 52px;
        display: inline-flex; align-items: center; justify-content: center; gap: 12px;
        min-height: var(--btn-h); padding: 0 26px;
        border: 0; border-radius: 999px;
        background: var(--grad-cyan);
        box-shadow: var(--shadow-btn);
        outline: 1px solid var(--cyan-200); outline-offset: -0.5px;
        color: var(--cyan-ink);
        font-size: 17px; font-weight: 800; letter-spacing: -0.2px; line-height: 1;
        white-space: nowrap;
        transition: transform .16s ease, box-shadow .22s ease, filter .16s ease, background-color .18s;
    }
    .btn .i { width: 19px; height: 19px; stroke-width: 2.4; transition: transform .2s ease; }
    @media (hover: hover) {
        .btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: var(--shadow-btn-hover); }
        .btn:hover .i { transform: translateX(3px); }
    }
    .btn:active { transform: translateY(0) scale(.99); }
    .btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
    .btn[aria-busy="true"] { opacity: .75; cursor: progress; }
    .btn--primary { /* the default look */ }
    .btn--ghost {
        background: linear-gradient(180deg, var(--white-a8), var(--white-a3));
        box-shadow: inset 0 1px 0 var(--white-a12);
        outline-color: var(--white-a16);
        color: var(--text);
    }
    @media (hover: hover) { .btn--ghost:hover { background: linear-gradient(180deg, var(--white-a12), var(--white-a6)); box-shadow: inset 0 1px 0 var(--white-a16), 0 10px 30px -12px var(--black-a80); } }
    .btn--white { background: var(--white); outline-color: var(--white); box-shadow: 0 12px 30px -10px var(--black-a80); color: #0B0D0E; }
    .btn--sm { --btn-h: 42px; padding: 0 18px; font-size: 15px; gap: 8px; }
    .btn--sm .i { width: 16px; height: 16px; }
    .btn--lg { --btn-h: 62px; padding: 0 34px; font-size: 19px; }
    .btn--block { width: 100%; }
    .btn--play .btn__disc { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -14px; border-radius: 50%; background: var(--white-a10); }
    .btn--play .i { width: 14px; height: 14px; }
    @media (hover: hover) { .btn--play:hover .i { transform: none; } }
    @media (max-width: 720px) { .btn { --btn-h: 50px; font-size: 16px; } .btn--lg { --btn-h: 56px; font-size: 17px; padding: 0 26px; } }

    /* CTA after a demo moment: the button, and the risk reversal next to it */
    .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 44px; }
    .cta-row--center { justify-content: center; }
    .cta-row__note { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 14.5px; font-weight: 500; }
    .cta-row__note .i { width: 16px; height: 16px; color: var(--cyan-400); }

    /* ---- pills, badges, chips ---- */
    .pill {
        display: inline-flex; align-items: center; gap: 10px;
        padding: 6px 16px 6px 6px; border-radius: 999px;
        color: var(--white-a90); font-size: 14px; font-weight: 600;
    }
    .pill__tag {
        padding: 4px 10px; border-radius: 999px;
        background: var(--cyan-a16); color: var(--cyan-200);
        font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    }
    .pill .i { width: 15px; height: 15px; color: var(--cyan-300); }
    a.pill { transition: filter .2s; }
    a.pill:hover { filter: brightness(1.2); }
    .badge {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 4px 10px; border-radius: 999px;
        background: var(--cyan-a10); color: var(--cyan-200); border: 1px solid var(--cyan-a16);
        font-size: 12px; font-weight: 800; letter-spacing: .02em;
    }
    .badge .i { width: 13px; height: 13px; }
    .badge--violet { background: var(--violet-a12); color: var(--violet-300); border-color: var(--violet-a25); }
    .badge--solid { background: var(--grad-cyan); color: var(--on-accent); border-color: var(--cyan-200); }
    .chip {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 8px 14px; border-radius: 999px;
        background: var(--white-a4); border: 1px solid var(--line-2);
        color: var(--text-2); font-size: 14px; font-weight: 600;
    }
    .chip .i { width: 16px; height: 16px; color: var(--accent); }
    /* verdict chips (LimeFlow's problem section): good / bad */
    .verdict { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
    .verdict .i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; stroke-width: 3; }
    .verdict--good { background: var(--cyan-a10); color: var(--cyan-200); border: 1px solid var(--cyan-a25); }
    .verdict--good .i { background: var(--cyan-400); color: var(--cyan-ink); }
    .verdict--bad { background: rgb(255 90 110 / .08); color: var(--rose-300); border: 1px solid rgb(255 90 110 / .22); }
    .verdict--bad .i { background: var(--rose-400); color: #2A0A10; }

    /* ---- cards (shared by legal / thank-you) ---- */
    .card {
        position: relative;
        border-radius: var(--r-card);
        background: linear-gradient(180deg, var(--white-a3), transparent 40%), var(--surface-card);
        border: 1px solid var(--line);
        box-shadow: var(--shadow-card);
    }
    .card--pad { padding: 28px; }
    .icon-tile {
        display: grid; place-items: center; flex: none;
        width: 40px; height: 40px; border-radius: 12px;
        background: var(--cyan-a10); border: 1px solid var(--cyan-a16);
        color: var(--cyan-300);
    }
    .icon-tile .i { width: 20px; height: 20px; }

    /* check list */
    .checks { display: grid; gap: 11px; }
    .checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 15.5px; line-height: 1.45; }
    .checks .i { flex: none; width: 20px; height: 20px; margin-top: 0; padding: 4px; border-radius: 50%; background: var(--cyan-a16); color: var(--cyan-300); stroke-width: 3; }
    .checks li.is-off { color: var(--text-4); }
    .checks li.is-off .i { background: var(--white-a6); color: var(--text-4); }
    .checks strong { color: var(--text); font-weight: 700; }

    /* ---- the play bar (LimeFlow's playbar: --t is 0–1 of the full video, js/lib/clips.js followPlaybar) ---- */
    .playbar { display: flex; align-items: center; gap: 10px; }
    .playbar__time { flex: none; color: var(--white-a90); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
    .playbar__time--total { color: var(--white-a60); }
    .playbar__track { position: relative; flex: 1; height: 4px; border-radius: 999px; background: var(--white-a20); }
    .playbar__played { position: absolute; inset: 0 auto 0 0; width: calc(var(--t, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--cyan-300), var(--cyan-500)); }
    .playbar__played::after { content: ''; position: absolute; top: 50%; right: -5px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 4px var(--black-a40); }

    /* ---- "Click to unmute": the white pill with a dark disc that breathes (LimeFlow's unmute CTA) ---- */
    .unmute {
        position: absolute; left: 50%; top: 50%; z-index: 4;
        translate: -50% -50%;
        display: inline-flex; align-items: center; gap: 12px;
        padding: 6px 22px 6px 6px;
        border: 0; border-radius: 999px;
        background: var(--white);
        box-shadow: 0 14px 40px -8px var(--black-a80), 0 0 0 0 rgb(255 255 255 / .5);
        color: #0B0D0E; font-size: 16px; font-weight: 700; letter-spacing: -0.2px;
        animation: unmute-pulse 2.2s var(--ease) infinite;
        transition: transform .2s var(--ease), opacity .3s, scale .3s var(--ease);
    }
    .unmute__circle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0B0D0E; color: var(--white); }
    .unmute__circle .i { width: 19px; height: 19px; }
    @media (hover: hover) { .unmute:hover { scale: 1.04; } }
    @keyframes unmute-pulse {
        0%   { box-shadow: 0 14px 40px -8px var(--black-a80), 0 0 0 0 rgb(255 255 255 / .45); }
        70%  { box-shadow: 0 14px 40px -8px var(--black-a80), 0 0 0 16px rgb(255 255 255 / 0); }
        100% { box-shadow: 0 14px 40px -8px var(--black-a80), 0 0 0 0 rgb(255 255 255 / 0); }
    }
    @media (max-width: 720px) { .unmute { font-size: 14px; padding-right: 16px; gap: 9px; } .unmute__circle { width: 32px; height: 32px; } }

    /* ---- contour frames: LimeFlow's concentric rounded hairlines behind a section ---- */
    .contours { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
    .contours i {
        position: absolute; left: 50%; top: var(--contour-top, 50%);
        width: calc(var(--w, 900px) + var(--n) * 180px); aspect-ratio: 2.2;
        translate: -50% -50%;
        border: 1px solid rgb(61 220 255 / calc(.16 - var(--n) * .03));
        border-radius: 120px;
        mask: linear-gradient(180deg, #000 30%, transparent 85%);
    }
    .contours i:nth-child(1) { --n: 0; }
    .contours i:nth-child(2) { --n: 1; }
    .contours i:nth-child(3) { --n: 2; }
    .contours i:nth-child(4) { --n: 3; }

    /* scroll reveal (js/features/reveal.js); without JS everything is simply visible */
    html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
    html.js [data-reveal].is-visible { opacity: 1; transform: none; }
    html.js [data-reveal][data-delay="1"] { transition-delay: .08s; }
    html.js [data-reveal][data-delay="2"] { transition-delay: .16s; }
    html.js [data-reveal][data-delay="3"] { transition-delay: .24s; }

    /* checkout notice (js/features/checkout/) */
    .checkout-toast {
        position: fixed; left: 50%; bottom: 24px; z-index: 900; transform: translateX(-50%);
        width: min(460px, 100% - 32px); padding: 14px 18px; border-radius: var(--r-panel);
        background: var(--surface-raised); border: 1px solid var(--line-3); box-shadow: var(--shadow-float);
        color: var(--text); font-size: 15px;
    }
}
