/* AnimateGL demo site. Design from animategl.com: light grey and deep navy sections, Josefin Sans headings,
   and the logo's glitch colours (cyan, lime, magenta) as accents. */

:root {
    --navy: #040320;
    --navy-2: #0b0a33;
    --navy-3: #16154a;
    --bg: #f5f5f5;
    --surface: #ffffff;
    --ink: #040320;
    --muted: #55546e;
    --muted-dark: #b9b8d3;
    --line: #e2e2ea;
    --line-dark: rgba(255, 255, 255, 0.12);
    --cyan: #00f0ff;
    --lime: #a8ff00;
    --magenta: #ff00e5;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(4, 3, 32, 0.06), 0 8px 24px rgba(4, 3, 32, 0.08);
    --font-head: 'Josefin Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --header-h: 68px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
}

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(4, 3, 32, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 5px;
}

.section-dark code,
.feature-dark code {
    background: rgba(255, 255, 255, 0.1);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 1000;
    background: var(--navy);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius);
}

.skip-link:focus {
    left: 8px;
}

:focus-visible {
    outline: 3px solid var(--magenta);
    outline-offset: 2px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.9rem;
}

/* ------------------------------ Buttons ------------------------------ */

.btn,
.wp-block-button > .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    padding: 16px 26px 14px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover,
.wp-block-button > .wp-block-button__link:hover {
    transform: translateY(-1px);
}

.btn svg,
.wp-block-button > .wp-block-button__link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-top: -2px;
}

.btn-sm {
    font-size: 0.95rem;
    padding: 11px 18px 9px;
}

.btn-dark,
.wp-block-button.is-style-dark > .wp-block-button__link {
    background: var(--navy);
    color: #fff;
    box-shadow: 3px 3px 0 var(--magenta), -3px -3px 0 var(--cyan);
}

.btn-dark:hover,
.wp-block-button.is-style-dark > .wp-block-button__link:hover {
    box-shadow: 4px 4px 0 var(--magenta), -4px -4px 0 var(--cyan);
}

.btn-outline,
.wp-block-button.is-style-outline > .wp-block-button__link {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-outline:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
    background: var(--ink);
    color: #fff;
}

.btn-light,
.wp-block-button.is-style-light > .wp-block-button__link {
    background: #fff;
    color: var(--navy);
}

.section-dark .btn-outline,
.feature-dark .btn-outline {
    color: #fff;
    border-color: #fff;
}

/* ------------------------------ Logo ------------------------------ */

.logo {
    display: inline-flex;
    min-width: 0;
    text-decoration: none;
}

/* Shrinks with the header on small screens */
.logo img {
    display: block;
    width: 221px;
    max-width: 100%;
    height: auto;
}

/* A short glitch under the mouse or keyboard focus: cyan and magenta copies jitter apart for a few steps and settle */
@media (prefers-reduced-motion: no-preference) {
    .logo:hover img,
    .logo:focus-visible img {
        animation: logo-glitch 0.32s steps(1, end);
    }
}

@keyframes logo-glitch {
    0% {
        transform: translate(-2px, 0);
        filter: drop-shadow(-3px 0 var(--cyan)) drop-shadow(3px 0 var(--magenta));
    }
    20% {
        transform: translate(2px, -1px) skewX(-6deg);
        filter: drop-shadow(3px 0 var(--cyan)) drop-shadow(-3px 0 var(--magenta));
    }
    40% {
        transform: translate(-1px, 1px);
        filter: drop-shadow(-2px 1px var(--cyan)) drop-shadow(2px -1px var(--magenta));
    }
    60% {
        transform: translate(1px, 0) skewX(4deg);
        filter: drop-shadow(1px 0 var(--cyan)) drop-shadow(-1px 0 var(--magenta));
    }
    80%,
    100% {
        transform: none;
        filter: none;
    }
}

/* ------------------------------ Header ------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    /* Above the runtime's WebGL canvas */
    z-index: 1000;
    background: rgba(245, 245, 245, 0.86);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.main-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.main-nav a {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    padding: 10px 12px 8px;
    border-radius: 8px;
    color: var(--ink);
    transition: background-color 0.15s ease;
}

.main-nav a:hover {
    background: rgba(4, 3, 32, 0.06);
}

.main-nav a.is-active {
    background: var(--navy);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .header-cta {
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 16px 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(4, 3, 32, 0.08);
        display: none;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 12px 12px;
    }
}

/* ------------------------------ Reduced motion notice ------------------------------ */

.motion-notice {
    background: var(--navy);
    color: #fff;
    font-size: 0.95rem;
}

.motion-notice .container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.motion-notice p {
    margin: 0;
    flex: 1 1 320px;
}

/* ------------------------------ Sections ------------------------------ */

.section {
    padding: 112px 0;
}

@media (max-width: 700px) {
    .section {
        padding: 72px 0;
    }
}

.section-dark {
    background: var(--navy);
    color: #f5f5f5;
}

.section-dark-2 {
    background: radial-gradient(1200px 500px at 80% 0%, #1a0f4d 0%, var(--navy) 60%);
}

.section-head {
    max-width: 760px;
    margin-bottom: 56px;
}

.section-head-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.section-sub {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0;
}

.section-dark .section-sub,
.feature-dark p {
    color: var(--muted-dark);
}

.section-dark .section-sub strong,
.feature-dark p strong {
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px;
}

.eyebrow-glitch {
    color: #fff;
    text-shadow: -1.5px 0 var(--cyan), 1.5px 0 var(--magenta);
}

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ------------------------------ Hero ------------------------------ */

.hero {
    padding: 72px 0 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.8rem, 6.4vw, 5.4rem);
    line-height: 1.02;
    margin-bottom: 24px;
}

/* Each row of the hero title animates on its own */
.hero-row {
    display: block;
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.works-with {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
}

.works-with li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ww-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    padding-top: 2px;
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    width: min(100%, 520px);
}

.hero-bento figure {
    position: relative;
    margin: 0;
    min-width: 0;
}

.hero-bento img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.hb-tall {
    grid-row: span 2;
}

.hb-tall > div,
.hb-tall img {
    height: 100%;
}

.hb-mark img,
.hb-wide img {
    aspect-ratio: 1;
}

.hero-bento figcaption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 9px 3px;
    border-radius: 6px;
    background: rgba(4, 3, 32, 0.78);
    color: #fff;
    font: 700 0.78rem var(--font-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* Above the runtime's WebGL canvas (z-index 999), which draws the image while it animates or is hovered */
    z-index: 1000;
}

/* The entrance, then the hover effect: on a narrow tile the caption breaks between them */
.hero-bento figcaption span {
    white-space: nowrap;
}

.replay-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 0.85rem var(--font-body);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.replay-chip svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.replay-chip:hover {
    border-color: var(--ink);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 72px 0 0;
}

.stats > div {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.stats dt {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 8px;
}

.stats dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-bento {
        width: min(100%, 420px);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 48px;
    }
}

@media (max-width: 420px) {
    .stats {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------ Effect galleries ------------------------------ */

.css-section {
    background: var(--bg);
}


.effect-grid {
    display: grid;
    gap: 20px;
}

.effect-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.effect-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.effect-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
    .effect-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .effect-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .effect-grid-3,
    .effect-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 440px) {
    .effect-grid-5,
    .effect-grid-4,
    .effect-grid-3 {
        grid-template-columns: 1fr;
    }
}

.effect-card {
    background: var(--navy-2);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-lg);
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.tile {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px);
    cursor: pointer;
    overflow: visible;
}

.tile:focus-visible {
    outline-offset: 4px;
}

.tile > .agl,
.tile > .tile-anim {
    position: absolute;
    inset: 0;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* CSS tiles: a little UI card, since CSS animations are for text and interface elements */
.tile-ui {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px;
    border-radius: 6px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(160deg, var(--g1, #ff00e5) 0%, var(--g2, #4a2bff) 55%, var(--g3, #040320) 100%);
}

.tile-ui strong {
    font-family: var(--font-head);
    font-size: 1.6rem;
    line-height: 1;
}

.tile-ui i {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.55);
}

.tile-ui i:last-of-type {
    width: 60%;
}

.tile-ui b {
    align-self: flex-start;
    margin-top: 6px;
    font: 600 0.75rem var(--font-body);
    background: #fff;
    color: var(--navy);
    padding: 6px 10px;
    border-radius: 6px;
}

.tile .badge-pro {
    position: absolute;
    top: 10px;
    left: 10px;
    pointer-events: none;
}

/* The home galleries' last card: a link to the packs */
.effect-card-more {
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    padding: 28px 24px;
    color: var(--muted-dark);
    text-decoration: none;
    background: linear-gradient(160deg, var(--navy-2) 0%, #241a52 100%);
    transition: border-color 0.2s;
}

.effect-card-more:hover,
.effect-card-more:focus-visible {
    border-color: var(--magenta);
}

.effect-card-more strong {
    font: 700 1.8rem/1.05 var(--font-head);
    color: #fff;
}

.effect-card-more-link {
    font-weight: 600;
    color: #fff;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.effect-card .card-meta h3 {
    font-size: 1.25rem;
    margin: 0;
    padding-top: 3px;
    color: #fff;
}

.tag {
    font: 600 0.68rem var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tag-webgl {
    background: rgba(0, 240, 255, 0.15);
    color: var(--cyan);
}

.tag-css {
    background: rgba(168, 255, 0, 0.14);
    color: var(--lime);
}

.icon-btn {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line-dark);
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    font: 500 0.78rem var(--font-body);
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid var(--line-dark);
    background: transparent;
    color: var(--muted-dark);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.chip[aria-checked='true'] {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

.class-chip {
    display: block;
    width: 100%;
    text-align: left;
    font: 0.74rem var(--font-mono);
    color: var(--muted-dark);
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--line-dark);
    border-radius: 7px;
    padding: 6px 8px;
    cursor: copy;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.class-chip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

/* ------------------------------ Code blocks ------------------------------ */

.code-block {
    background: var(--navy);
    color: #e9e8ff;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.code-block-dark {
    background: var(--navy-2);
    border: 1px solid var(--line-dark);
}

.code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 16px;
    border-bottom: 1px solid var(--line-dark);
    font: 600 0.75rem var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-dark);
}

.copy-btn {
    font: 600 0.78rem var(--font-body);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
}

.code-block code {
    background: none;
    padding: 0;
    font-size: inherit;
    white-space: pre;
}

/* ------------------------------ Block editor mockup ------------------------------ */

.editor-section {
    background: var(--surface);
    --wp-blue: #3858e9;
    --wp-ink: #1e1e1e;
    --wp-gray: #757575;
    --wp-line: #e0e0e0;
    --wp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.step-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    list-style: none;
    margin: -24px 0 28px;
    padding: 0;
    font-weight: 600;
}

.step-strip li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.step-strip span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font: 700 0.9rem var(--font-head);
    padding-top: 2px;
}

.browser {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 2px 4px rgba(4, 3, 32, 0.04), 0 30px 70px rgba(4, 3, 32, 0.16);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    background: #ececf1;
    border-bottom: 1px solid #dcdce3;
}

.browser-dots {
    display: inline-flex;
    gap: 7px;
    flex: none;
}

.browser-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.browser-dots i:nth-child(2) {
    background: #febc2e;
}

.browser-dots i:nth-child(3) {
    background: #28c840;
}

.browser-url {
    flex: 1;
    min-width: 0;
    max-width: 560px;
    margin: 0 auto;
    padding: 5px 12px;
    border-radius: 7px;
    background: #fff;
    color: var(--wp-gray);
    font: 0.8rem var(--wp-font);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.wpe {
    font-family: var(--wp-font);
    color: var(--wp-ink);
    font-size: 13px;
}

.wpe-top {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 60px;
    padding-right: 16px;
    border-bottom: 1px solid var(--wp-line);
}

.wpe-logo {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    background: var(--wp-ink);
    color: #fff;
    font: 700 22px Georgia, serif;
    flex: none;
}

.wpe-add {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: 8px;
    border-radius: 2px;
    background: var(--wp-ink);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.wpe-icon {
    width: 32px;
    text-align: center;
    font-size: 18px;
    color: var(--wp-ink);
}

.wpe-doc-title {
    margin: 0 auto;
    padding: 6px 16px;
    border-radius: 4px;
    background: #f0f0f0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpe-link {
    color: var(--wp-blue);
    white-space: nowrap;
}

.wpe-publish {
    background: var(--wp-blue);
    color: #fff;
    padding: 8px 12px;
    border-radius: 2px;
    white-space: nowrap;
}

.wpe-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    min-height: 640px;
}

.wpe-canvas {
    background: #ddd;
    padding: 24px;
    overflow: hidden;
    min-width: 0;
}

.wpe-doc {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 40px 56px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 30px;
    font-family: var(--font-body);
    color: var(--ink);
}

.wpe-post-title {
    font: 700 2rem/1.1 var(--font-head);
    margin: 0;
}

.wpe-block {
    position: relative;
    padding: 6px;
    margin: -6px;
    border-radius: 2px;
    outline: 1px dashed transparent;
    cursor: pointer;
}

.wpe-block:hover {
    outline-color: rgba(56, 88, 233, 0.5);
}

.wpe-block.is-selected {
    outline: 2px solid var(--wp-blue);
}

.wpe-block:focus-visible {
    outline: 2px solid var(--wp-blue);
    outline-offset: 2px;
}

.wpe-chip {
    position: absolute;
    top: -25px;
    left: -2px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 2px;
    background: var(--wp-ink);
    color: #fff;
    font: 500 11px var(--wp-font);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.wpe-block.is-selected .wpe-chip,
.wpe-block:hover .wpe-chip {
    opacity: 1;
}

.wpe-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.wpe-heading {
    font-size: 1.9rem;
    margin: 0;
}

.wpe-paragraph {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.wpe-button {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font: 700 0.95rem var(--font-head);
    padding: 13px 20px 11px;
    border-radius: 999px;
}

.wpe-sidebar {
    border-left: 1px solid var(--wp-line);
    background: #fff;
    min-width: 0;
}

.wpe-tabs {
    display: flex;
    border-bottom: 1px solid var(--wp-line);
}

.wpe-tabs span {
    padding: 16px;
    font-weight: 500;
}

.wpe-tabs .is-active {
    box-shadow: inset 0 -3px 0 var(--wp-blue);
}

.wpe-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--wp-line);
}

.wpe-card-icon {
    flex: none;
    width: 24px;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
}

.wpe-card-name {
    font-weight: 600;
    margin: 0 0 4px;
}

.wpe-card-desc {
    margin: 0;
    color: var(--wp-gray);
}

.wpe-panel {
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--wp-line);
}

.wpe-panel-title,
.wpe-panel-collapsed {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 16px 0;
    font-weight: 600;
}

.wpe-panel-collapsed {
    padding: 16px;
    border-bottom: 1px solid var(--wp-line);
}

.wpe-when-animated {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.wpe-when-animated[hidden] {
    display: none;
}

.wpe-field {
    display: grid;
    gap: 8px;
}

.wpe-field > span {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
}

.wpe-field output {
    font: 13px var(--wp-font);
    text-transform: none;
    border: 1px solid #949494;
    border-radius: 2px;
    padding: 1px 6px;
    min-width: 52px;
    text-align: right;
}

.wpe-field select {
    width: 100%;
    font: 13px var(--wp-font);
    color: var(--wp-ink);
    padding: 6px 8px;
    min-height: 32px;
    border: 1px solid #949494;
    border-radius: 2px;
    background: #fff;
}

.wpe-range input {
    width: 100%;
    accent-color: var(--wp-blue);
}

.wpe-secondary {
    justify-self: start;
    font: 13px var(--wp-font);
    color: var(--wp-blue);
    background: #fff;
    border: 1px solid var(--wp-blue);
    border-radius: 2px;
    padding: 8px 12px;
    cursor: pointer;
}

.wpe-secondary:hover {
    background: rgba(56, 88, 233, 0.06);
}

.wpe-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.wpe-toggle input {
    position: absolute;
    opacity: 0;
    width: 36px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.wpe-switch {
    position: relative;
    width: 36px;
    height: 18px;
    border-radius: 9px;
    border: 1px solid var(--wp-ink);
    flex: none;
    transition: background-color 0.15s ease;
}

.wpe-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wp-ink);
    transition: transform 0.15s ease;
}

.wpe-toggle input:checked + .wpe-switch {
    background: var(--wp-blue);
    border-color: var(--wp-blue);
}

.wpe-toggle input:checked + .wpe-switch::after {
    background: #fff;
    transform: translateX(18px);
}

.wpe-toggle input:focus-visible + .wpe-switch {
    outline: 2px solid var(--wp-blue);
    outline-offset: 2px;
}

.editor-code {
    margin-top: 24px;
}

#ed-code {
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .wpe-body {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .wpe-sidebar {
        border-left: 0;
        border-top: 1px solid var(--wp-line);
    }

    .wpe-icon,
    .wpe-link {
        display: none;
    }
}

@media (max-width: 600px) {
    .wpe-canvas {
        padding: 12px;
    }

    .wpe-doc {
        padding: 28px 18px 36px;
    }

    .wpe-top {
        height: 48px;
        padding-right: 10px;
    }

    .wpe-logo {
        width: 48px;
        height: 48px;
    }

    .wpe-doc-title {
        display: none;
    }

    .wpe-publish {
        margin-left: auto;
    }

    .browser-url {
        text-align: left;
    }
}

/* ------------------------------ Lock to scrollbar ------------------------------ */

.lock-section {
    overflow: hidden;
}

.lock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.lock-item {
    margin: 0;
}

.lock-item-offset {
    margin-top: 160px;
}

.lock-item img {
    width: 100%;
    border-radius: 6px;
}

.lock-item figcaption,
.se-grid figcaption,
.he-grid figcaption {
    margin-top: 12px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.lock-words {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(3.5rem, 13vw, 10rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.lock-words span:first-child {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.lock-words span:last-child {
    text-shadow: -4px 0 var(--cyan), 4px 0 var(--magenta);
}

@media (max-width: 760px) {
    .lock-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
        gap: 56px;
    }

    .lock-item-offset {
        margin-top: 0;
    }
}

/* ------------------------------ Pro ------------------------------ */

.badge-pro {
    display: inline-block;
    font: 700 0.75rem var(--font-head);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
    padding: 6px 9px 4px;
    border-radius: 6px;
    box-shadow: 2px 2px 0 var(--magenta), -2px -2px 0 var(--cyan);
}

.badge-soon {
    display: inline-block;
    font: 700 0.75rem var(--font-head);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    background: #fff;
    padding: 5px 8px 3px;
    border: 1px solid var(--navy);
    border-radius: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

.compare thead .badge-soon {
    margin-left: 6px;
    font-size: 0.65rem;
}

.feature-dark .badge-pro {
    background: #fff;
    color: var(--navy);
}

.pro-intro {
    padding-bottom: 48px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.pro-intro h2 {
    font-size: clamp(2.3rem, 6vw, 4.6rem);
}

/* The Pro page's opening: the title, its buttons and the features menu */
.pro-hero {
    padding-top: 80px;
}

.pro-hero h1 {
    font-size: clamp(2.6rem, 6.4vw, 5rem);
    line-height: 1.04;
}

.pro-hero .section-sub {
    margin-bottom: 28px;
}

.pro-hero .hero-actions {
    justify-content: center;
}

.pro-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pro-nav a {
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    padding: 10px 16px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.pro-nav a:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.feature {
    padding: 96px 0;
    background: var(--surface);
}

.feature-alt {
    background: var(--bg);
}

.feature-dark {
    background: var(--navy);
    color: #f5f5f5;
}

.feature h3 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.feature-copy > p,
.feature-head > p {
    font-size: 1.1rem;
    color: var(--muted);
}

.feature-dark .feature-head > p {
    color: var(--muted-dark);
}

.feature-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.feature-grid > *,
.hero-grid > * {
    min-width: 0;
}

.feature-grid-reverse .feature-copy {
    order: 2;
}

.feature-copy .code-block {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .feature {
        padding: 72px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-grid-reverse .feature-copy {
        order: 0;
    }
}

/* Stagger */
.stagger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mini-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mini-card img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

.mini-card span {
    display: block;
    padding: 10px 12px 8px;
    font-family: var(--font-head);
    font-weight: 700;
}

@media (max-width: 480px) {
    .stagger-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Text split */
.split-demo {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
}

.split-label {
    font: 600 0.75rem var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-dark);
    margin: 0 0 8px;
}

.split-big {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 32px;
}

.split-big:last-child {
    margin-bottom: 0;
}

.split-glitch {
    text-shadow: -3px 0 var(--cyan), 3px 0 var(--magenta);
}

@media (max-width: 600px) {
    .split-demo {
        padding: 28px 20px;
    }
}

/* Triggers */
.trigger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trigger-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    min-width: 0;
}

.trigger-card h4 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.trigger-card .muted {
    margin-bottom: 16px;
    word-break: break-all;
}

.trigger-target {
    position: relative;
    align-self: stretch;
    margin-top: 20px;
    min-height: 200px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    border: 2px dashed var(--line);
    padding: 16px;
}

.trigger-target::before {
    content: attr(data-hint);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.trigger-target > * {
    position: relative;
}

.offer {
    display: grid;
    place-items: center;
    text-align: center;
    width: 100%;
    padding: 28px 16px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, #ff00e5, #4a2bff 60%, #00c8ff);
}

.offer strong {
    font-family: var(--font-head);
    font-size: 2.2rem;
    line-height: 1;
}

.hover-tile {
    width: 100%;
}

.hover-tile img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
}

.class-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: var(--bg);
    width: 100%;
    display: grid;
    gap: 8px;
}

.class-list li {
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 500;
    font-size: 0.92rem;
}

#class-toggle[aria-pressed='true'] {
    background: var(--magenta);
}

@media (max-width: 960px) {
    .trigger-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

/* Scroll effects */
.se-grid,
.he-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.se-grid figure,
.he-grid figure {
    margin: 0;
}

.se-grid img,
.he-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
}

.he-grid img {
    aspect-ratio: 1;
}

.se-grid figcaption,
.he-grid figcaption {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
}

.skew-lines {
    margin-top: 80px;
    text-align: center;
}

.skew-lines p {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin: 0;
}

.skew-lines p:last-child {
    margin-top: 16px;
    font-size: 1.1rem;
}

@media (max-width: 760px) {
    .se-grid,
    .he-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
}

/* Hover effects */
.he-subhead {
    margin: 48px 0 20px;
    font-weight: 500;
}

.touch-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--bg);
    border-left: 4px solid var(--magenta);
    font-size: 1rem !important;
    color: var(--ink) !important;
}

.he-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.he-card {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    will-change: transform;
}

.he-card h4 {
    font-size: 1.6rem;
    margin: 16px 0 4px;
}

.he-card p {
    color: var(--muted-dark);
}

.he-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    font-size: 1.3rem;
    color: var(--navy);
    font-weight: 700;
}

@media (max-width: 760px) {
    .he-cards {
        grid-template-columns: 1fr;
    }
}

/* More */
.more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.more-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.more-card h4 {
    font-size: 1.3rem;
    margin: 16px 0 8px;
}

.more-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.more-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 2px 2px 0 var(--magenta), -2px -2px 0 var(--cyan);
}

@media (max-width: 1000px) {
    .more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .more-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------ Compare ------------------------------ */

.compare-section {
    background: var(--bg);
}

.table-wrap {
    max-width: 820px;
    margin: 0 auto;
    overflow-x: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.compare th,
.compare td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
    border-bottom: 0;
}

.compare thead th {
    font-family: var(--font-head);
    font-size: 1.15rem;
    background: var(--navy);
    color: #fff;
    padding-top: 18px;
}

.compare thead th:not(:first-child),
.compare td {
    text-align: center;
    width: 110px;
}

.compare tbody th {
    font-weight: 500;
}

.compare .yes {
    font-weight: 700;
    color: #0a8f3c;
}

.compare .no {
    color: #a3a2b5;
}

@media (max-width: 520px) {
    .compare th,
    .compare td {
        padding: 12px 12px;
        font-size: 0.92rem;
    }

    .compare thead th:not(:first-child),
    .compare td {
        width: 64px;
    }
}

/* ------------------------------ Developers ------------------------------ */

.dev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.dev-grid h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}

.checks {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 12px;
}

.checks li {
    position: relative;
    padding-left: 30px;
}

.checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 9px;
    border-left: 3px solid var(--lime);
    border-bottom: 3px solid var(--lime);
    transform: rotate(-45deg);
}

.dev-grid .code-block {
    margin: 0;
    min-width: 0;
}

@media (max-width: 900px) {
    .dev-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------ CTA and footer ------------------------------ */

.cta {
    padding: 88px 0;
    text-align: center;
    background: radial-gradient(800px 300px at 50% 100%, rgba(255, 0, 229, 0.12), transparent 70%),
        radial-gradient(800px 300px at 50% 0%, rgba(0, 240, 255, 0.12), transparent 70%), var(--bg);
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 36px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer {
    background: var(--navy);
    color: var(--muted-dark);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 24px 40px;
    flex-wrap: wrap;
}

.footer-inner nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-inner nav a {
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
}

.footer-inner nav a:hover {
    text-decoration: underline;
}

.copyright {
    margin: 0 0 0 auto;
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .copyright {
        margin-left: 0;
        width: 100%;
    }
}

/* ------------------------------ Toast ------------------------------ */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1001;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    box-shadow: 0 10px 30px rgba(4, 3, 32, 0.3);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ------------------------------ Pro JS activation page (activate.html) ------------------------------ */

.pro-js-note {
    margin: 28px auto 0;
    max-width: 640px;
    text-align: center;
    color: var(--muted);
}

.pro-js-note a {
    font-weight: 600;
    color: var(--ink);
}

.activate-section {
    padding-top: 72px;
}

.activate-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: start;
}

.activate-main h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.2rem);
    margin-bottom: 20px;
}

.activate-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
}

.activate-card h2,
.activate-aside h2 {
    font-size: 1.6rem;
    overflow-wrap: anywhere;
}

.activate-card .code-block {
    margin: 0 0 16px;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
}

.field label {
    font-weight: 600;
}

.field input {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    padding: 12px 14px;
    border: 1px solid #c9c8d6;
    border-radius: var(--radius);
}

.field input:hover {
    border-color: var(--muted);
}

.field-hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.form-status {
    margin: 16px 0 0;
}

.form-status:empty {
    display: none;
}

.form-status.is-error {
    color: #b0063a;
}

.form-status.is-ok {
    color: #0a7a35;
    font-weight: 600;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn[aria-busy='true'] {
    cursor: progress;
}

.code-wrap code {
    white-space: pre-wrap;
    word-break: break-all;
}

.domain-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.domain-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.domain-item > div:first-child {
    display: grid;
    min-width: 0;
}

.domain-host {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.domain-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activate-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.activate-steps {
    padding-left: 1.3em;
    margin: 0 0 20px;
    display: grid;
    gap: 8px;
}

@media (max-width: 900px) {
    .activate-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .activate-aside {
        position: static;
    }
}

@media (max-width: 600px) {
    .activate-section {
        padding-top: 40px;
    }

    .activate-card {
        padding: 20px 16px;
    }
}

/* ======================================================================================================
   WordPress: what the block markup adds around the demo's sections, and the page and docs layouts.
   Everything above this line is demo/css/demo.css as it was copied, except the .wp-block-button selectors added
   to its button rules: keep those when copying demo.css again.
   ====================================================================================================== */

.wp-site-blocks > * + *,
.home-content > * + *,
.site-main > * + * {
    margin-block-start: 0;
}

.wp-site-blocks {
    padding: 0;
}

.home-content > .section,
.home-content > .hero,
.home-content > .feature,
.home-content > .cta {
    margin: 0;
}

/* Core blocks inside the demo's sections keep the demo's own spacing */
.section-head > * + *,
.feature-head > * + *,
.feature-copy > * + * {
    margin-block-start: 0;
}

.section-head .wp-block-heading,
.feature-head .wp-block-heading,
.feature-copy .wp-block-heading {
    margin-top: 0;
}

.wp-block-buttons.hero-actions,
.wp-block-buttons.cta-actions {
    gap: 12px;
}

/* A core Button has the dark style unless another is picked (functions.php registers Dark and Light) */
.wp-block-button:not(.is-style-outline):not(.is-style-light) > .wp-block-button__link {
    background: var(--navy);
    color: #fff;
    box-shadow: 3px 3px 0 var(--magenta), -3px -3px 0 var(--cyan);
}

.section-dark .wp-block-button.is-style-outline > .wp-block-button__link,
.feature-dark .wp-block-button.is-style-outline > .wp-block-button__link {
    color: #fff;
    border-color: #fff;
}

/* Plain pages: title, then the content at reading width */
.page-main {
    padding: 48px 0 96px;
    min-height: 70vh;
}

.page-container {
    max-width: 820px;
}

.page-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 32px;
}

.page-content > * + * {
    margin-block-start: 1em;
}

.page-content h2 {
    font-family: var(--font-head);
    font-size: 1.75rem;
    line-height: 1.2;
    margin-block-start: 2em;
}

.page-content h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    margin-block-start: 1.6em;
}

.page-content a {
    color: #3b2bd6;
}

.page-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.1em 0.35em;
}

.page-content pre {
    background: var(--navy);
    color: #e9e8ff;
    border-radius: var(--radius);
    padding: 16px 20px;
    overflow-x: auto;
}

.page-content pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.page-content th,
.page-content td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.page-content figure.wp-block-image img {
    border-radius: var(--radius);
}

/* Docs: the tree on the left, the page on the right; on phones the tree comes first */
.docs-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.docs-article {
    max-width: 780px;
}

.docs-nav {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    font-size: 0.94rem;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
}

.docs-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-nav ul ul {
    padding-left: 14px;
    border-left: 1px solid var(--line);
    margin: 4px 0 8px 4px;
}

.docs-nav a {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
}

.docs-nav a:hover {
    color: var(--ink);
    background: var(--surface);
}

.docs-nav a[aria-current='page'] {
    color: var(--ink);
    background: var(--surface);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--magenta);
}

.docs-nav-home {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .docs-nav {
        position: static;
        max-height: none;
        background: var(--surface);
        border-radius: var(--radius);
        padding: 12px;
    }
}

/* The footer at the bottom of short pages */
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wp-site-blocks > .site-main {
    flex: 1 0 auto;
}

/* The header sits in its template part's wrapper, so the wrapper is what sticks */
.site-header-wrap {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 1000;
}

.site-header-wrap .site-header {
    position: relative;
    top: auto;
}

/* The effect pages (Entrance animations, Hover effects, Scroll effects): the page's h1 in its first section, a
   "View all" link next to a gallery's Replay all */
.section-head h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.page-intro {
    padding-top: 80px;
}

.page-intro:has(+ .section-dark) {
    padding-bottom: 32px;
}

.section-actions {
    flex-wrap: wrap;
    gap: 12px;
}

.feature h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Scroll effects page: one row per effect, two images in each */
.sp-row + .sp-row {
    margin-top: 144px;
}

.sp-row h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-dark .feature-copy > p,
.section-dark .feature-head > p {
    color: var(--muted-dark);
}

.sp-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.sp-pair figure {
    margin: 0;
}

.sp-pair figure + figure {
    margin-top: 72px;
}

.sp-pair img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
}

.sp-pair figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
}

.sp-cards .he-card {
    background: rgba(255, 255, 255, 0.06);
}

.sp-note {
    margin: 96px 0 0;
    text-align: center;
    color: var(--muted-dark);
}

@media (max-width: 600px) {
    .sp-pair {
        gap: 12px;
    }

    .sp-pair figure + figure {
        margin-top: 40px;
    }

    .sp-row + .sp-row {
        margin-top: 96px;
    }
}

/* ------------------------------ Pricing ------------------------------ */

.pricing-section {
    padding-top: 24px;
}

.pricing-head {
    text-align: center;
}

.billing-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 0 auto 28px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.billing-switch button {
    font: 600 0.95rem var(--font-body);
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.billing-switch button[aria-pressed="true"] {
    background: var(--navy);
    color: #fff;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.price-card.is-featured {
    border: 2px solid var(--navy);
}

.price-card h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin: 0;
}

.price-card .price {
    font-family: var(--font-head);
    font-size: 2.6rem;
    line-height: 1;
    margin: 0;
}

.price-card .price small {
    font: 500 1rem var(--font-body);
    color: var(--muted);
}

.price-card ul {
    margin: 0;
    padding-left: 1.1em;
    color: var(--muted);
}

.price-card .btn {
    margin-top: auto;
    justify-content: center;
    text-align: center;
}

.price-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
}

@media (max-width: 820px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
}

/* Pro page: animated backgrounds (parts/backgrounds.html) and loop animations (parts/loops.html) */
.bg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bg-tile {
    position: relative;
    min-height: 300px;
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: var(--navy);
    overflow: hidden;
}

.bg-tile h4 {
    font-size: 1.6rem;
    margin: 0 0 4px;
    color: #fff;
}

.bg-tile p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.85);
}

.bg-tile code {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.loop-cards {
    margin-top: 0;
}

@media (max-width: 820px) {
    .bg-grid {
        grid-template-columns: 1fr;
    }
}

/* Home: the section drawn by Pro's animated background (parts/backgrounds-home.html) */
.feature-bg {
    padding: 0;
}

.bg-stage {
    padding: 96px 0;
    background: var(--navy);
}

.bg-stage .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.bg-stage .feature-copy > p {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 12px rgba(4, 3, 32, 0.6);
}

.bg-panel {
    display: grid;
    gap: 12px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(4, 3, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.bg-panel .chip {
    font-size: 0.9rem;
    padding: 8px 16px;
}

.bg-panel-label {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.bg-panel-label + .chips,
.bg-panel-label + .bg-swatches {
    margin-bottom: 8px;
}

.bg-swatches {
    display: flex;
    gap: 12px;
}

.bg-swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.bg-swatch:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.bg-swatch[aria-checked='true'] {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
