/*
 * Glitch for After Effects: sales page.
 * Loaded only on the page-glitch.php template. Uses the terminal theme
 * tokens (matrix.css) and the Text Animation Presets typography, so the page
 * matches the rest of the site. Preset colors are kept for the videos only.
 */

html.gl-lock,
html.gl-lock body {
    overflow: hidden;
}

.gl-spinner[hidden] {
    display: none;
}

.gl {
    --gl-green: var(--om-green, #5dff82);
    --gl-bright: var(--om-green-bright, #b1ffc1);
    --gl-ink: #021507;
    --gl-video: #0a1015;
    --gl-panel: rgba(7, 14, 9, 0.92);
    --gl-panel-2: #0d1710;
    --gl-line: rgba(93, 255, 130, 0.2);
    --gl-line-2: rgba(93, 255, 130, 0.42);
    --gl-text: #ecfff0;
    --gl-body: #b7c8bb;
    --gl-muted: #91a697;
    --gl-dim: #829488;
    --gl-head: "Plus Jakarta Sans", Inter, Arial, sans-serif;
    --gl-sans: Inter, Arial, sans-serif;
    --gl-mono: var(--om-mono, "IBM Plex Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace);
    --gl-cut: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
    --gl-cut-lg: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    --gl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    /* Color of the preset playing in the showreel (set by glitch-page.js). */
    --gl-reel: #4dff6a;

    position: relative;
    overflow: clip;
    color: var(--gl-text);
    font-family: var(--gl-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.gl *,
.gl *::before,
.gl *::after,
.gl-modal *,
.gl-lightbox *,
.gl-sticky * {
    box-sizing: border-box;
}

/* :where() keeps this reset at class specificity, so component rules win. */
.gl :where(h1, h2, h3, p, ol, ul, dl, dd, figure) {
    margin: 0;
    padding: 0;
}

.gl :where(ol, ul) {
    list-style: none;
}

.gl a {
    color: inherit;
}

.gl-wrap {
    width: min(100% - 40px, 1220px);
    margin: 0 auto;
}

.gl-admin-note {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 12px 16px;
    background: #2b2300;
    color: #ffe08a;
    font: 600 12px/1.5 var(--gl-mono);
    text-align: center;
}
.gl-admin-note a {
    color: #fff;
}

/* ---------- Type ---------- */

.gl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--gl-green);
    font: 700 11px/1.4 var(--gl-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gl-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gl-green);
    box-shadow: 0 0 10px var(--gl-green);
    animation: gl-pulse 2s ease-in-out infinite;
}

@keyframes gl-pulse {
    50% { opacity: 0.3; }
}

.gl-h1 {
    color: var(--gl-text);
    font-family: var(--gl-head);
    font-size: clamp(46px, 6.4vw, 92px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.gl-h2 {
    margin-bottom: 20px;
    color: var(--gl-text);
    font-family: var(--gl-head);
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.gl-h3 {
    margin-bottom: 16px;
    color: var(--gl-text);
    font-family: var(--gl-head);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.gl :is(.gl-h1, .gl-h2, .gl-h3) em {
    font-style: normal;
    color: var(--gl-green);
}

.gl-lead {
    max-width: 32em;
    margin-top: 24px;
    color: var(--gl-body);
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.7;
}

.gl-sub {
    max-width: 42em;
    color: var(--gl-body);
    font-size: 17px;
    line-height: 1.75;
}

.gl-sub a {
    color: var(--gl-green);
}

.gl-fine {
    color: var(--gl-dim);
    font-size: 13px;
    line-height: 1.6;
}

.gl-micro {
    margin-top: 14px;
    color: var(--gl-dim);
    font: 600 10px/1.6 var(--gl-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gl-center {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.gl-center-text {
    margin-top: 28px;
    text-align: center;
}

/* Chromatic split on the word "Glitch", a short burst every few seconds. */
.gl-split {
    position: relative;
    display: inline-block;
}
.gl-split::before,
.gl-split::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}
.gl-split::before {
    color: #ff2e88;
    animation: gl-split-a 4.2s steps(1) infinite;
}
.gl-split::after {
    color: #45c8ff;
    animation: gl-split-b 4.2s steps(1) infinite;
}
@keyframes gl-split-a {
    0%, 86%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
    88% { opacity: 0.9; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); }
    91% { opacity: 0.9; transform: translate(5px, -2px); clip-path: inset(60% 0 8% 0); }
    94% { opacity: 0.8; transform: translate(-2px, 0); clip-path: inset(30% 0 40% 0); }
}
@keyframes gl-split-b {
    0%, 86%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
    88% { opacity: 0.9; transform: translate(4px, -1px); clip-path: inset(55% 0 12% 0); }
    91% { opacity: 0.9; transform: translate(-5px, 2px); clip-path: inset(5% 0 70% 0); }
    94% { opacity: 0.8; transform: translate(3px, 0); clip-path: inset(42% 0 30% 0); }
}

/* ---------- Buttons (same as .pillar-primary-cta / .downgrade-hero-secondary) ---------- */

.gl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 0;
    font: 800 12px/1 var(--gl-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.gl-btn svg {
    flex: none;
    transition: transform 0.2s var(--gl-ease);
}

.gl-btn-primary {
    background: var(--gl-green);
    border-color: var(--gl-green);
    color: var(--gl-ink);
    clip-path: var(--gl-cut);
}
.gl-btn-primary:hover {
    background: var(--gl-bright);
    color: #000;
    box-shadow: 0 0 34px rgba(93, 255, 130, 0.18);
}
.gl-btn-primary:hover svg {
    transform: translateX(3px);
}
.gl-btn-primary:disabled {
    opacity: 0.45;
    cursor: wait;
    box-shadow: none;
}

.gl-btn-ghost {
    background: transparent;
    border-color: var(--gl-green);
    color: var(--gl-green);
}
.gl-btn-ghost:hover {
    background: rgba(93, 255, 130, 0.08);
}

.gl-btn-sm {
    min-height: 42px;
    padding: 0 16px;
    font-size: 11px;
}

.gl-btn-xl {
    min-height: 62px;
    padding: 0 32px;
    font-size: 13px;
}

.gl-btn-block {
    width: 100%;
}

.gl-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--gl-muted);
    font: 600 11px/1.5 var(--gl-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.gl-link:hover {
    color: var(--gl-green);
}

.gl-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--om-line, rgba(93, 255, 130, 0.22));
    border-radius: 0;
    background: rgba(7, 14, 9, 0.92);
    color: #ecfff0;
    font-size: 16px;
    cursor: pointer;
}
.gl-icon-btn:hover {
    background: rgba(93, 255, 130, 0.08);
    color: var(--om-green, #5dff82);
}

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

.gl-hero {
    position: relative;
    padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
}

.gl-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 70vw;
    max-width: 1000px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--gl-reel);
    opacity: 0.1;
    filter: blur(140px);
    pointer-events: none;
    transition: background-color 0.8s var(--gl-ease);
}

.gl-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas: "copy media";
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.gl-hero-copy {
    grid-area: copy;
}

.gl-hero-media {
    grid-area: media;
    min-width: 0;
}

.gl-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Same pills as the presets hero. */
.gl-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.gl-proof li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border: 1px solid var(--gl-line);
    border-radius: 100px;
    background: #08100a;
    color: var(--gl-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.gl-proof li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gl-green);
}

/* Comp viewer frame */
.gl-monitor {
    overflow: hidden;
    border: 1px solid var(--gl-line-2);
    background: var(--gl-video);
    box-shadow: 0 0 0 6px rgba(93, 255, 130, 0.03), 0 40px 110px -40px rgba(0, 0, 0, 0.9);
    clip-path: var(--gl-cut-lg);
}

.gl-monitor-bar,
.gl-monitor-timeline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #08100a;
    color: var(--gl-dim);
    font: 600 10px/1.4 var(--gl-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gl-monitor-bar {
    border-bottom: 1px solid var(--gl-line);
}

.gl-monitor-timeline {
    border-top: 1px solid var(--gl-line);
}

.gl-monitor-dots {
    display: inline-flex;
    gap: 5px;
}
.gl-monitor-dots i {
    width: 8px;
    height: 8px;
    background: rgba(93, 255, 130, 0.18);
}

.gl-monitor-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--gl-muted);
}
.gl-monitor-title b {
    color: var(--gl-reel);
    font-weight: 700;
    transition: color 0.6s var(--gl-ease);
}

.gl-monitor-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--gl-video);
}

.gl-reel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.18s linear;
}
.gl-reel-video.is-active {
    opacity: 1;
}

.gl-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gl-green);
    background: rgba(2, 5, 3, 0.7);
    color: var(--gl-green);
    cursor: pointer;
    clip-path: var(--gl-cut);
}
.gl-play[hidden] {
    display: none;
}

.gl-monitor-time {
    color: var(--gl-green);
    font-variant-numeric: tabular-nums;
}

.gl-monitor-track {
    position: relative;
    flex: 1;
    height: 3px;
    background: rgba(93, 255, 130, 0.12);
    overflow: hidden;
}
.gl-monitor-track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--gl-reel);
    box-shadow: 0 0 8px var(--gl-reel);
}

.gl-monitor-status {
    white-space: nowrap;
}

.gl-reel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Like the PRESETS button in the menu. */
.gl-chip {
    --c: #5dff82;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--gl-line);
    border-radius: 0;
    background: rgba(7, 14, 9, 0.92);
    color: var(--gl-muted);
    font: 700 11px/1 var(--gl-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.gl-chip:hover {
    color: var(--gl-text);
    border-color: var(--gl-line-2);
}
.gl-chip.is-active {
    color: var(--gl-text);
    border-color: var(--c);
    background: rgba(93, 255, 130, 0.07);
}
.gl-chip-dot {
    width: 8px;
    height: 8px;
    background: var(--c);
    box-shadow: 0 0 8px var(--c);
}

/* ---------- Numbers (like the blog stats bar) ---------- */

.gl-stats {
    border-top: 1px solid var(--gl-line);
    border-bottom: 1px solid var(--gl-line);
    background: rgba(5, 10, 7, 0.9);
}

.gl-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.gl-stats-grid > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 20px;
    border-left: 1px solid var(--gl-line);
}
.gl-stats-grid > div:first-child {
    border-left: 0;
}

.gl-stats b {
    color: var(--gl-green);
    font-family: var(--gl-head);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.gl-stats span {
    color: var(--gl-dim);
    font: 600 10px/1.4 var(--gl-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.gl-section {
    position: relative;
    padding: clamp(64px, 8vw, 112px) 0;
}

.gl-section + .gl-section {
    border-top: 1px solid var(--gl-line);
}

/* Panels share the site's card look: flat, green hairline, no radius. */
.gl-vs-card,
.gl-case,
.gl-steps li,
.gl-feature,
.gl-panel,
.gl-price-card {
    border: 1px solid var(--gl-line);
    border-radius: 0;
    background: var(--gl-panel);
}

/* Why: by hand vs Glitch */
.gl-versus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 52px;
}

.gl-vs-card {
    padding: clamp(24px, 3vw, 40px);
}

.gl-vs-label {
    margin-bottom: 20px;
    color: var(--gl-dim);
    font: 700 11px/1.4 var(--gl-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gl-vs-list {
    counter-reset: gl-vs;
}
.gl-vs-list li {
    counter-increment: gl-vs;
    display: flex;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px dashed var(--gl-line);
    color: var(--gl-dim);
    font-size: 15px;
}
.gl-vs-list li::before {
    content: counter(gl-vs, decimal-leading-zero);
    padding-top: 2px;
    color: rgba(93, 255, 130, 0.35);
    font: 600 11px/1.6 var(--gl-mono);
}
.gl-vs-list li:last-child {
    color: var(--gl-body);
}

.gl-vs-card.is-new {
    position: relative;
    display: flex;
    flex-direction: column;
    border-color: var(--gl-line-2);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(93, 255, 130, 0.1), transparent 60%),
        var(--gl-panel);
    clip-path: var(--gl-cut-lg);
}
.gl-vs-card.is-new .gl-vs-label {
    color: var(--gl-green);
}

.gl-vs-steps li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    color: var(--gl-text);
    font-family: var(--gl-head);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.gl-vs-steps .gl-vs-n {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    background: var(--gl-green);
    color: var(--gl-ink);
    font: 800 15px/1 var(--gl-mono);
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.gl-vs-result {
    margin: 16px 0 28px;
    color: var(--gl-body);
    font-size: 16px;
}
.gl-vs-result strong {
    color: var(--gl-text);
}
.gl-vs-card.is-new .gl-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Case studies */
.gl-case-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 52px;
}

.gl-case {
    --c: #5dff82;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.gl-case:hover {
    border-color: color-mix(in srgb, var(--c) 60%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent), 0 30px 80px -50px var(--c);
}

.gl-case-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--gl-line);
    background: var(--gl-video);
    cursor: zoom-in;
}

.gl-case-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--gl-video);
}

.gl-case-expand {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gl-line-2);
    background: rgba(2, 5, 3, 0.7);
    color: var(--gl-green);
    opacity: 0;
    transition: opacity 0.2s;
}
.gl-case-media:hover .gl-case-expand,
.gl-case-media:focus-visible .gl-case-expand {
    opacity: 1;
}

.gl-case-body {
    padding: 22px 24px 26px;
}

.gl-case-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.gl-case-num {
    color: var(--c);
    font: 700 11px/1 var(--gl-mono);
    letter-spacing: 0.06em;
}

.gl-case-name {
    flex: 1;
    color: var(--gl-text);
    font-family: var(--gl-head);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gl-swatches {
    display: inline-flex;
    gap: 3px;
}
.gl-swatches i {
    width: 14px;
    height: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.gl-case-pitch {
    color: var(--gl-body);
    font-size: 15px;
}

.gl-case-meta {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--gl-line);
}
.gl-case-meta dt {
    color: var(--gl-dim);
    font: 600 10px/1.4 var(--gl-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.gl-case-meta dd {
    margin-top: 4px;
    color: var(--gl-text);
    font-size: 14px;
    line-height: 1.4;
}

/* How it works */
.gl-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 52px;
}
.gl-steps li {
    padding: 30px 28px 32px;
}
.gl-step-n {
    display: block;
    margin-bottom: 36px;
    color: var(--gl-green);
    font: 800 13px/1 var(--gl-mono);
    letter-spacing: 0.1em;
}
.gl-step-n::before {
    content: "STEP ";
    color: var(--gl-dim);
}
.gl-steps h3 {
    margin-bottom: 8px;
    color: var(--gl-text);
    font-family: var(--gl-head);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.gl-steps p {
    color: var(--gl-body);
    font-size: 15px;
}

/* Anatomy */
.gl-anatomy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.gl-anatomy-video {
    overflow: hidden;
    margin-top: 34px;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--gl-line);
    background: var(--gl-video);
    clip-path: var(--gl-cut-lg);
}

.gl-layers {
    counter-reset: gl-layer;
    border-top: 1px solid var(--gl-line);
}
.gl-layers li {
    counter-increment: gl-layer;
    display: grid;
    grid-template-columns: 44px 120px 1fr;
    gap: 12px;
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid var(--gl-line);
}
.gl-layers li::before {
    content: counter(gl-layer, decimal-leading-zero);
    color: var(--gl-green);
    font: 700 11px/1 var(--gl-mono);
}
.gl-layers b {
    color: var(--gl-text);
    font-family: var(--gl-head);
    font-size: 19px;
    font-weight: 800;
}
.gl-layers span {
    color: var(--gl-body);
    font-size: 15px;
}

/* Features (like "Built to ship faster" on the presets page) */
.gl-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 52px;
}
.gl-feature {
    padding: 30px 28px;
    transition: border-color 0.2s;
}
.gl-feature:hover {
    border-color: var(--gl-line-2);
}
.gl-feature svg {
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid rgba(93, 255, 130, 0.24);
    background: rgba(93, 255, 130, 0.08);
    fill: none;
    stroke: var(--gl-green);
    stroke-width: 1.7;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.gl-feature h3 {
    margin-bottom: 8px;
    color: var(--gl-text);
    font-family: var(--gl-head);
    font-size: 18px;
    font-weight: 700;
}
.gl-feature p {
    color: var(--gl-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Formats: equal heights, widths follow the aspect ratios. */
.gl-format-row {
    display: grid;
    grid-template-columns: 0.5625fr 1fr 1.7778fr;
    gap: 16px;
    align-items: start;
    margin-top: 52px;
}
.gl-format-frame {
    overflow: hidden;
    border: 1px solid var(--gl-line-2);
    background: var(--gl-video);
}
.gl-format.is-916 .gl-format-frame { aspect-ratio: 9 / 16; }
.gl-format.is-11 .gl-format-frame { aspect-ratio: 1 / 1; }
.gl-format.is-169 .gl-format-frame { aspect-ratio: 16 / 9; }
.gl-format figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
    color: var(--gl-muted);
    font-size: 13px;
}
.gl-format figcaption b {
    color: var(--gl-green);
    font: 800 15px/1 var(--gl-mono);
    letter-spacing: 0.04em;
}

/* Glow + portability */
.gl-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.gl-panel {
    padding: clamp(28px, 4vw, 48px);
}
.gl-panel > p:not(.gl-eyebrow):not(.gl-fine) {
    color: var(--gl-body);
}
.gl-panel .gl-fine {
    margin-top: 16px;
}

.gl-ticks,
.gl-includes,
.gl-trust {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}
.gl-ticks li,
.gl-includes li,
.gl-trust li {
    position: relative;
    padding-left: 32px;
    color: var(--gl-body);
}
/* Same check as .lp-check-icon on the presets page, made square. */
.gl-ticks li::before,
.gl-includes li::before,
.gl-trust li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.2em;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(93, 255, 130, 0.24);
    background: rgba(93, 255, 130, 0.08);
    color: var(--gl-green);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Pricing (like the presets buy card) */
.gl-pricing {
    background: linear-gradient(135deg, rgba(2, 5, 3, 0) 0%, rgba(7, 21, 10, 0.85) 50%, rgba(2, 5, 3, 0) 100%);
}

.gl-price-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
    background: #08100a;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.58), 0 0 40px rgba(93, 255, 130, 0.06);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.gl-price-left,
.gl-price-right {
    padding: clamp(28px, 4.5vw, 60px);
}

.gl-price-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--gl-line);
    background: var(--gl-panel-2);
}

.gl-price {
    display: flex;
    align-items: flex-start;
    color: var(--gl-text);
    font-family: var(--gl-head);
    font-size: clamp(72px, 8vw, 96px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}
.gl-price-cur,
.gl-price-cents {
    margin-top: 0.14em;
    font-size: 0.42em;
    letter-spacing: -0.02em;
    opacity: 0.55;
}

.gl-price-note {
    margin: 12px 0 26px;
    color: var(--gl-muted);
    font-size: 14px;
}

.gl-trust {
    margin-top: 24px;
    gap: 8px;
}
.gl-trust li {
    padding-left: 28px;
    color: var(--gl-muted);
    font-size: 13px;
}
.gl-trust li::before {
    width: 18px;
    height: 18px;
    font-size: 10px;
}

.gl-joke {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--gl-line);
    color: var(--gl-dim);
    font-size: 13px;
    font-style: italic;
}

/* Specs */
.gl-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--gl-line);
}
.gl-specs > div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gl-line);
}
.gl-specs dt {
    padding-top: 3px;
    color: var(--gl-green);
    font: 700 10px/1.6 var(--gl-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.gl-specs dd {
    color: var(--gl-body);
    font-size: 15px;
}

/* FAQ (boxed items, like the presets page) */
.gl-faq-wrap {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}
.gl-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gl-faq-item {
    border: 1px solid var(--gl-line);
    background: #08100a;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gl-faq-item[open] {
    border-color: rgba(93, 255, 130, 0.35);
    box-shadow: 0 0 0 3px rgba(93, 255, 130, 0.06);
}
.gl-faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    color: var(--gl-text);
    font-family: var(--gl-head);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.gl-faq-item summary::-webkit-details-marker {
    display: none;
}
.gl-faq-item summary:hover {
    color: var(--gl-green);
}
.gl-faq-icon {
    position: relative;
    flex: none;
    width: 24px;
    height: 24px;
    border: 1px solid var(--gl-line);
    background: #0d1710;
    color: var(--gl-muted);
    transition: background-color 0.2s, color 0.2s;
}
.gl-faq-icon::before,
.gl-faq-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 1.6px;
    background: currentColor;
    transition: transform 0.25s var(--gl-ease);
}
.gl-faq-icon::after {
    transform: rotate(90deg);
}
.gl-faq-item[open] .gl-faq-icon {
    border-color: var(--gl-green);
    background: var(--gl-green);
    color: var(--gl-ink);
}
.gl-faq-item[open] .gl-faq-icon::after {
    transform: rotate(0deg);
}
.gl-faq-item p {
    max-width: 42em;
    padding: 0 22px 20px;
    color: var(--gl-muted);
    font-size: 14px;
    line-height: 1.75;
}

/* Final CTA */
.gl-final {
    position: relative;
    padding: clamp(96px, 13vw, 180px) 0;
    border-top: 1px solid var(--gl-line);
    text-align: center;
    overflow: hidden;
}
.gl-final-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}
.gl-final-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 70% at 50% 50%, rgba(2, 5, 3, 0.35), #020503 85%);
}
.gl-final-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gl-final-title {
    margin-bottom: 38px;
}

/* ---------- Sticky buy bar ---------- */

.gl-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 9500;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    transform: translateY(140%);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gl-sticky.is-visible {
    transform: none;
}
.gl-sticky-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 540px);
    padding: 7px 7px 7px 20px;
    border: 1px solid var(--om-line, rgba(93, 255, 130, 0.22));
    background: rgba(5, 12, 7, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(93, 255, 130, 0.08);
    pointer-events: auto;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}
.gl-sticky-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #ecfff0;
    font: 700 11px/1.2 var(--om-mono, monospace);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gl-sticky-price {
    color: var(--om-green, #5dff82);
    font: 800 14px/1 "Plus Jakarta Sans", Inter, sans-serif;
}

/* ---------- Lightbox ---------- */

.gl-lightbox,
.gl-modal {
    position: fixed;
    inset: 0;
    z-index: 1000001; /* above the cookie banner */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #ecfff0;
    font-family: Inter, Arial, sans-serif;
}
.gl-lightbox[hidden],
.gl-modal[hidden] {
    display: none;
}

.gl-lightbox-backdrop,
.gl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 4, 2, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.gl-lightbox-inner {
    position: relative;
    width: min(100%, 1280px);
}
.gl-lightbox video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(93, 255, 130, 0.22);
    background: #0a1015;
}
.gl-lightbox-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.gl-lightbox-name {
    flex: 1;
    color: #ecfff0;
    font: 800 13px/1 var(--om-mono, monospace);
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

/* ---------- Checkout (same palette as the presets checkout) ---------- */

.gl-modal-panel {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(93, 255, 130, 0.22);
    background: #08100a;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.58), 0 0 40px rgba(93, 255, 130, 0.06);
    outline: none;
    overscroll-behavior: contain;
    scrollbar-color: rgba(93, 255, 130, 0.25) transparent;
    scrollbar-width: thin;
}

.gl-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(93, 255, 130, 0.22);
    border-radius: 0;
    background: #0d1710;
    color: #91a697;
    font-size: 14px;
    cursor: pointer;
}
.gl-modal-close:hover {
    color: #ecfff0;
    background: rgba(93, 255, 130, 0.12);
}

.gl-co-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 44px 18px 0;
    border-bottom: 1px solid rgba(93, 255, 130, 0.2);
}
.gl-co-thumb {
    flex: none;
    width: 72px;
    height: 41px;
    object-fit: cover;
    border: 1px solid rgba(93, 255, 130, 0.2);
    background: #0a1015;
}
.gl-co-product {
    flex: 1;
    min-width: 0;
}
.gl-co-name {
    margin: 0;
    color: #ecfff0;
    font: 800 15px/1.25 "Plus Jakarta Sans", Inter, sans-serif;
}
.gl-co-sub {
    margin: 3px 0 0;
    color: #829488;
    font: 600 10px/1.4 var(--om-mono, monospace);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gl-co-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}
.gl-co-price b {
    color: #ecfff0;
    font: 800 22px/1.1 "Plus Jakarta Sans", Inter, sans-serif;
}
.gl-co-price s {
    color: #829488;
    font-size: 12px;
}

.gl-co-progress {
    display: flex;
    gap: 6px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
    counter-reset: gl-co;
}
.gl-co-progress li {
    counter-increment: gl-co;
    flex: 1;
    padding-top: 10px;
    border-top: 2px solid rgba(93, 255, 130, 0.14);
    color: #5d6f62;
    font: 700 10px/1.4 var(--om-mono, monospace);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 0.3s, color 0.3s;
}
.gl-co-progress li::before {
    content: "0" counter(gl-co) " // ";
}
.gl-co-progress li.is-active {
    border-color: #5dff82;
    color: #5dff82;
}
.gl-co-progress li.is-done {
    border-color: rgba(93, 255, 130, 0.45);
    color: #829488;
}

.gl-co-step[hidden] {
    display: none;
}

.gl-co-title {
    margin: 0 0 18px;
    color: #ecfff0;
    font: 800 22px/1.2 "Plus Jakarta Sans", Inter, sans-serif;
    letter-spacing: -0.02em;
}

.gl-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
    min-width: 0;
}
.gl-field label {
    color: #91a697;
    font: 700 10px/1.4 var(--om-mono, monospace);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.gl-field input,
.gl-field select,
.gl-coupon-row input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1.5px solid rgba(93, 255, 130, 0.2);
    border-radius: 0;
    background: #050a07;
    color: #ecfff0;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px; /* no zoom on iOS */
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gl-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%235dff82' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat,
        #050a07;
}
.gl-field input:focus,
.gl-field select:focus,
.gl-coupon-row input:focus {
    border-color: #5dff82;
    box-shadow: 0 0 0 3px rgba(93, 255, 130, 0.08);
}
.gl-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gl-coupon {
    margin: 16px 0 18px;
}
.gl-coupon-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.gl-coupon-row[hidden] {
    display: none;
}
.gl-coupon-row input {
    min-height: 42px;
    text-transform: uppercase;
}
.gl-coupon-msg {
    margin: 8px 0 0;
    color: #5dff82;
    font-size: 13px;
}
.gl-coupon-msg.is-error {
    color: #ffb4a8;
}

.gl-co-error {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 107, 126, 0.35);
    background: rgba(255, 107, 126, 0.08);
    color: #ffb4a8;
    font-size: 14px;
}
.gl-co-error[hidden] {
    display: none;
}

.gl-secure {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 14px 0 0;
    color: #829488;
    font-size: 12px;
    line-height: 1.5;
}
.gl-secure svg {
    flex: none;
    margin-top: 3px;
}
.gl-secure a {
    color: #91a697;
}

.gl-pay {
    min-height: 120px;
    margin-bottom: 18px;
}
.gl-skeleton {
    height: 160px;
    background: linear-gradient(90deg, #050a07 0%, #0d1710 50%, #050a07 100%);
    background-size: 200% 100%;
    animation: gl-shimmer 1.2s linear infinite;
}
@keyframes gl-shimmer {
    to { background-position: -200% 0; }
}

.gl-back {
    display: block;
    margin: 14px auto 0;
}

.gl-spinner {
    width: 40px;
    height: 40px;
    margin: 12px 0 20px;
    border: 3px solid rgba(93, 255, 130, 0.14);
    border-top-color: #5dff82;
    border-radius: 50%;
    animation: gl-spin 0.8s linear infinite;
}
@keyframes gl-spin {
    to { transform: rotate(360deg); }
}

.gl-done-text {
    margin: 0 0 22px;
    color: #b7c8bb;
}
.gl-done-text b {
    color: #ecfff0;
}

.gl-install {
    margin: 22px 0 0;
    padding: 18px 18px 18px 40px;
    border: 1px solid rgba(93, 255, 130, 0.2);
    background: #050a07;
    color: #b7c8bb;
    font-size: 14px;
    line-height: 1.6;
}
.gl-install li + li {
    margin-top: 6px;
}
.gl-install li::marker {
    color: #5dff82;
}
.gl-install a {
    color: #5dff82;
}
.gl-install b {
    color: #ecfff0;
}

/* The modal and lightbox live outside .gl, so give their buttons the tokens. */
.gl-modal .gl-btn,
.gl-lightbox .gl-btn,
.gl-sticky .gl-btn {
    --gl-green: var(--om-green, #5dff82);
    --gl-bright: var(--om-green-bright, #b1ffc1);
    --gl-ink: #021507;
    --gl-mono: var(--om-mono, monospace);
    --gl-cut: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
    --gl-muted: #91a697;
}
.gl-modal .gl-link {
    --gl-mono: var(--om-mono, monospace);
    --gl-muted: #91a697;
    --gl-green: #5dff82;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .gl-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gl-stats-grid > div:nth-child(4) {
        border-left: 0;
    }
    .gl-stats-grid > div:nth-child(n + 4) {
        border-top: 1px solid var(--gl-line);
    }
    .gl-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .gl-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    /* Phones: headline, then the showreel, then the pitch and the button. */
    .gl-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: none;
        gap: 0;
    }
    .gl-hero-copy {
        display: contents;
    }
    .gl-hero-copy > * {
        grid-column: 1;
    }
    .gl-hero-copy > .gl-eyebrow { order: 1; justify-self: start; }
    .gl-hero-copy > .gl-h1 { order: 2; }
    .gl-hero-media { grid-area: auto; grid-column: 1; order: 3; margin-top: 28px; }
    .gl-hero-copy > .gl-lead { order: 4; }
    .gl-hero-copy > .gl-cta-row { order: 5; margin-top: 26px; }
    .gl-hero-copy > .gl-micro { order: 6; }
    .gl-hero-copy > .gl-proof { order: 7; }
    .gl-reel-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 14px -20px 0;
        padding: 0 20px 4px;
        scrollbar-width: none;
    }
    .gl-reel-chips::-webkit-scrollbar {
        display: none;
    }
    .gl-chip {
        flex: none;
    }
    .gl-versus,
    .gl-two,
    .gl-anatomy-grid,
    .gl-faq-wrap,
    .gl-price-card {
        grid-template-columns: 1fr;
    }
    .gl-price-right {
        border-left: 0;
        border-top: 1px solid var(--gl-line);
    }
    .gl-case-grid {
        grid-template-columns: 1fr;
    }
    .gl-steps {
        grid-template-columns: 1fr;
    }
    .gl-step-n {
        margin-bottom: 18px;
    }
    .gl-format-row {
        grid-template-columns: 0.5625fr 1fr;
    }
    .gl-format.is-169 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .gl-wrap {
        width: min(100% - 32px, 1220px);
    }
    .gl-reel-chips {
        margin: 14px -16px 0;
        padding: 0 16px 4px;
    }
    .gl-cta-row .gl-btn {
        width: 100%;
    }
    .gl-stats-grid > div {
        padding: 20px 14px;
    }
    .gl-features {
        grid-template-columns: 1fr;
    }
    .gl-case-meta {
        grid-template-columns: 1fr 1fr;
    }
    .gl-case-meta > div:first-child {
        grid-column: 1 / -1;
    }
    .gl-layers li {
        grid-template-columns: 34px 1fr;
    }
    .gl-layers li span {
        grid-column: 2;
    }
    .gl-specs > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .gl-monitor-meta,
    .gl-monitor-status {
        display: none;
    }
    .gl-sticky {
        bottom: 10px;
        padding: 0 10px;
    }
    .gl-lightbox {
        padding: 12px;
    }
    .gl-lightbox-bar .gl-btn {
        display: none;
    }
    .gl-modal {
        align-items: flex-end;
        padding: 0;
    }
    .gl-modal-panel {
        width: 100%;
        max-height: 94vh;
        max-height: 94dvh;
        padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
        border-bottom: 0;
    }
    .gl-field-row {
        gap: 10px;
    }
}

@media (max-width: 359px) {
    .gl-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gl *,
    .gl *::before,
    .gl *::after {
        animation: none !important;
        transition: none !important;
    }
}
