/*
 * OLAF MOTION // 2026 UPDATES
 * Loaded AFTER matrix.css so these rules win without touching the base theme files.
 * Contents:
 *   1. Header logo image (replaces the "OM" mark)
 *   2. Larger, more readable labels on the custom-motion-design brief form
 *   3. Creator Library landing page (blue gateway path)
 *   4. Best After Effects plugins SEO page (plugin cards + CTA band)
 */

/* ============================================================
   1. HEADER LOGO IMAGE
   ============================================================ */
.logo .logo-img {
    display: block;
    width: auto !important;
    max-width: none !important;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

/* Landing-page nav/footer logos (custom-motion-design + creator page) */
.sales-lp-logo .logo-img {
    width: auto !important;
    max-width: none !important;
    height: 30px;
    object-fit: contain;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .logo .logo-img {
        height: 34px;
    }
}

/* The wordmark sits fine next to a real logo; keep the status pip only on wider screens. */
@media (max-width: 520px) {
    .logo .logo-status { display: none; }
}

/* ============================================================
   2. BRIEF FORM LABELS — larger / more legible
   (base theme sets .form-group label to 9px; that is too small)
   ============================================================ */
.sales-contact-form .form-group label {
    font-size: 13px !important;
    letter-spacing: 0.06em;
    color: #d6f2dc !important;
    margin-bottom: 9px;
    display: block;
    font-weight: 600;
}

.sales-contact-form .contact-form-head {
    font-size: 11px;
    letter-spacing: 0.14em;
}

.sales-contact-form .form-group input,
.sales-contact-form .form-group textarea,
.sales-contact-form .form-group select {
    font-size: 15px !important;
    padding: 13px 14px !important;
}

/* ============================================================
   3. CREATOR LIBRARY LANDING PAGE
   Reuses the .sales-lp system; only the extras below are new.
   ============================================================ */
.creator-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    width: min(100% - 40px, 1320px);
    margin: 0 auto clamp(3rem, 8vw, 6rem);
    background: var(--om-line);
    border: 1px solid var(--om-line);
}

.creator-metric {
    padding: clamp(1.4rem, 3vw, 2.2rem);
    background: rgba(7, 14, 9, 0.85);
    text-align: left;
}

.creator-metric b {
    display: block;
    color: var(--om-green);
    font: 850 clamp(1.9rem, 4vw, 2.9rem)/1 var(--om-sans);
    letter-spacing: -0.04em;
}

.creator-metric span {
    display: block;
    margin-top: 8px;
    color: var(--om-muted);
    font: 600 10px/1.4 var(--om-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* CTA cluster — links out to the other subpages */
.creator-cta-cluster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: min(100% - 40px, 1320px);
    margin: 0 auto clamp(4rem, 9vw, 7rem);
}

.creator-cta-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    background: rgba(7, 14, 9, 0.85);
    border: 1px solid var(--om-line);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    text-decoration: none !important;
    transition: border-color 0.18s, transform 0.18s, background 0.18s;
}

.creator-cta-card:hover {
    transform: translateY(-3px);
    border-color: var(--om-green);
    background: rgba(11, 22, 15, 0.95);
}

.creator-cta-card span.cta-index {
    color: var(--om-green);
    font: 700 10px/1 var(--om-mono);
    letter-spacing: 0.16em;
}

.creator-cta-card h3 {
    margin: 14px 0 8px;
    color: var(--om-white) !important;
    font: 800 1.45rem/1.05 var(--om-sans);
    letter-spacing: -0.03em;
}

.creator-cta-card p {
    flex: 1;
    color: #b7c8bb !important;
    font-size: 0.95rem;
    line-height: 1.65;
}

.creator-cta-card b.cta-go {
    margin-top: 18px;
    color: var(--om-green);
    font: 700 11px/1 var(--om-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Work cards are links on the creator page — keep them clean */
a.sales-work-card {
    display: block;
    text-decoration: none !important;
    transition: transform 0.18s;
}

a.sales-work-card:hover {
    transform: translateY(-3px);
}

a.sales-work-card h3 {
    color: var(--om-white) !important;
}

@media (max-width: 900px) {
    .creator-metrics { grid-template-columns: repeat(2, 1fr); }
    .creator-cta-cluster { grid-template-columns: 1fr; }
}

/* ============================================================
   4. BEST AFTER EFFECTS PLUGINS SEO PAGE
   Rendered inside .pillar-article via the_content().
   ============================================================ */
.plugin-list {
    list-style: none;
    margin: 2.2rem 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.plugin-card {
    position: relative;
    padding: 1.6rem 1.7rem 1.6rem 4.4rem;
    background: rgba(7, 14, 9, 0.7);
    border: 1px solid var(--om-line);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.plugin-card .plugin-rank {
    position: absolute;
    top: 1.5rem;
    left: 1.4rem;
    color: var(--om-green);
    font: 850 1.35rem/1 var(--om-mono);
    opacity: 0.85;
}

.plugin-card h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 0.5rem !important;
    color: var(--om-white) !important;
    font-size: 1.28rem !important;
}

.plugin-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 2px;
    font: 700 9.5px/1.3 var(--om-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plugin-badge-free {
    color: #021507;
    background: var(--om-green);
}

.plugin-badge-paid {
    color: #ffd9a3;
    background: rgba(255, 165, 70, 0.14);
    border: 1px solid rgba(255, 165, 70, 0.4);
}

.plugin-badge-premium {
    color: #ffb0be;
    background: rgba(255, 49, 84, 0.12);
    border: 1px solid rgba(255, 49, 84, 0.4);
}

.plugin-card p {
    margin: 0.4rem 0 0 !important;
    color: #b7c8bb !important;
    line-height: 1.7;
}

.plugin-card p.plugin-why {
    margin-top: 0.7rem !important;
    color: #8fb79b !important;
    font-size: 0.92rem;
}

.plugin-card p.plugin-why b {
    color: var(--om-green);
    font-family: var(--om-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Dual CTA band inside pillar content */
.pillar-cta-band {
    margin: 2.6rem 0;
    padding: clamp(1.8rem, 4vw, 2.6rem);
    background:
        radial-gradient(circle at 90% 10%, rgba(93, 255, 130, 0.1), transparent 40%),
        rgba(7, 14, 9, 0.92);
    border: 1px solid var(--om-line);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.pillar-cta-band h3 {
    margin: 0 0 0.6rem !important;
    color: var(--om-white) !important;
    font-size: 1.6rem !important;
    letter-spacing: -0.03em;
}

.pillar-cta-band p {
    margin: 0 0 1.4rem !important;
    color: #b7c8bb !important;
}

.pillar-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.pillar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    font: 700 12px/1 var(--om-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
}

.pillar-cta-btn-primary {
    color: #000 !important;
    background: var(--om-green);
    box-shadow: 0 0 26px rgba(93, 255, 130, 0.22);
}

/* Beat `.pillar-article a { color: var(--om-green) !important }` so the
   primary button label stays black inside the_content() output. */
.pillar-article a.pillar-cta-btn-primary { color: #000 !important; }
.pillar-article a.pillar-cta-btn-ghost { color: var(--om-green) !important; }

.pillar-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(93, 255, 130, 0.4);
}

.pillar-cta-btn-ghost {
    color: var(--om-green) !important;
    background: transparent;
    border: 1px solid var(--om-green);
}

.pillar-cta-btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(93, 255, 130, 0.08);
}

/* ============================================================
   5. THANK-YOU / RECEIPT PAGE — terminal theme
   (base receipt styling in main.css is light; re-skin to match)
   ============================================================ */
.thankyou-page {
    background: transparent !important;
}

.receipt-card {
    background: rgba(7, 14, 9, 0.94) !important;
    border: 1px solid var(--om-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 34px rgba(93, 255, 130, 0.06) !important;
}

.receipt-top {
    border-bottom: 1px dashed rgba(93, 255, 130, 0.28) !important;
}

/* Punched-out notches / scallops read as cutouts against the dark page */
.receipt-notch,
.scallop {
    background: var(--om-black) !important;
    border: 1px solid var(--om-line) !important;
}

.receipt-icon {
    color: #021507 !important;
    background: var(--om-green) !important;
    box-shadow: 0 0 26px rgba(93, 255, 130, 0.4) !important;
}

.receipt-title {
    color: var(--om-white) !important;
    font-style: normal;
    letter-spacing: -0.02em;
}

.receipt-subtitle {
    color: #b7c8bb !important;
}

.field-label {
    color: var(--om-green-muted) !important;
    font-family: var(--om-mono);
}

.field-value {
    color: var(--om-white) !important;
}

.field-value.large {
    color: var(--om-green) !important;
}

.field-value.mono,
.payment-card,
.barcode-text {
    font-family: var(--om-mono) !important;
}

.payment-method-box {
    background: rgba(93, 255, 130, 0.05) !important;
    border: 1px solid var(--om-line) !important;
    border-radius: 0 !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.payment-name {
    color: var(--om-white) !important;
}

.payment-card {
    color: var(--om-muted) !important;
}

.barcode-line {
    background: var(--om-green) !important;
}

.barcode-text {
    color: var(--om-muted) !important;
}

/* Action buttons → terminal buttons */
.thankyou-actions .action-button {
    border-radius: 0 !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    font-family: var(--om-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
}

.thankyou-actions .action-button.primary {
    color: #021507 !important;
    background: var(--om-green) !important;
    border: 1px solid var(--om-green) !important;
    box-shadow: 0 0 24px rgba(93, 255, 130, 0.18) !important;
}

.thankyou-actions .action-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(93, 255, 130, 0.34) !important;
    opacity: 1;
}

.thankyou-actions .action-button.secondary {
    color: var(--om-green) !important;
    background: transparent !important;
    border: 1px solid var(--om-line) !important;
    box-shadow: none !important;
}

.thankyou-actions .action-button.secondary:hover {
    transform: translateY(-2px);
    border-color: var(--om-green) !important;
    background: rgba(93, 255, 130, 0.07) !important;
}

/* BOGO (2-for-1) — align remaining light accents with the terminal palette */
.bogo-badge {
    color: var(--om-green) !important;
    background: rgba(93, 255, 130, 0.1) !important;
    border: 1px solid var(--om-line);
    border-radius: 0 !important;
    font-family: var(--om-mono);
}

.bogo-title em {
    color: var(--om-green) !important;
}

.bogo-sub {
    color: #b7c8bb !important;
}

.bogo-sub strong {
    color: var(--om-white) !important;
}

.bogo-counter {
    color: #021507 !important;
    background: var(--om-green) !important;
    border-radius: 0 !important;
    font-family: var(--om-mono);
}

.bogo-empty {
    color: var(--om-muted) !important;
}

.bogo-empty a {
    color: var(--om-green) !important;
}

.bogo-card-price .free {
    color: var(--om-green) !important;
}

.bogo-claim-btn {
    color: #021507 !important;
    background: var(--om-green) !important;
    border-radius: 0 !important;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    font-family: var(--om-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bogo-claim-btn:hover:not(:disabled) {
    background: var(--om-green-bright) !important;
    transform: translateY(-1px);
}

.bogo-claim-btn.claimed {
    color: var(--om-white) !important;
    background: rgba(93, 255, 130, 0.16) !important;
    border: 1px solid var(--om-green);
}

/* ============================================================
   AFTER EFFECTS VERSION NOTICE + DOWNGRADE GUIDE
   ============================================================ */
.ae-version-notice {
    position: relative;
    display: grid;
    overflow: hidden;
    margin: 0 0 clamp(3rem, 6vw, 5rem);
    padding: clamp(1.3rem, 3vw, 2rem);
    grid-template-columns: 58px minmax(0, 1fr) minmax(230px, 290px);
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
    background:
        radial-gradient(circle at 86% 12%, rgba(93, 255, 130, 0.12), transparent 34%),
        rgba(7, 14, 9, 0.97);
    border: 1px solid rgba(93, 255, 130, 0.42);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3), inset 3px 0 0 var(--om-green);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.ae-version-notice::after {
    content: "LATEST_VERSION // XML_AVAILABLE";
    position: absolute;
    top: 8px;
    right: 24px;
    color: rgba(93, 255, 130, 0.28);
    font: 700 8px/1 var(--om-mono);
    letter-spacing: 0.12em;
}

.ae-version-notice-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #021507;
    background: var(--om-green);
    font: 900 18px/1 var(--om-sans);
    box-shadow: 0 0 28px rgba(93, 255, 130, 0.23);
}

.ae-version-notice-label {
    margin: 0 0 0.55rem;
    color: var(--om-green) !important;
    font: 700 9px/1.3 var(--om-mono);
    letter-spacing: 0.12em;
}

.ae-version-notice h2 {
    margin: 0;
    color: var(--om-white) !important;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.ae-version-notice-copy > p:last-child {
    max-width: 740px;
    margin: 0.65rem 0 0;
    color: #b7c8bb !important;
    font-size: 0.92rem;
    line-height: 1.65;
}

.ae-version-notice-actions {
    display: grid;
    gap: 10px;
}

.single-video a.ae-version-notice-button {
    display: inline-flex;
    min-height: 46px;
    padding: 0.8rem 1rem;
    align-items: center;
    justify-content: center;
    color: var(--om-green) !important;
    border: 1px solid var(--om-green);
    font: 750 9px/1.25 var(--om-mono);
    letter-spacing: 0.07em;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform 0.16s, background 0.16s, box-shadow 0.16s;
}

.single-video a.ae-version-notice-button-primary {
    color: #021507 !important;
    background: var(--om-green);
    box-shadow: 0 0 24px rgba(93, 255, 130, 0.14);
}

.single-video a.ae-version-notice-button:hover {
    transform: translateY(-2px);
}

.single-video a.ae-version-notice-button-primary:hover {
    color: #000 !important;
    background: var(--om-green-bright);
    box-shadow: 0 0 34px rgba(93, 255, 130, 0.25);
}

.single-video a.ae-version-notice-button-secondary:hover {
    background: rgba(93, 255, 130, 0.08);
}

.downgrade-guide-hero h1 {
    max-width: 1140px;
}

.downgrade-hero-actions {
    display: flex;
    margin-top: 2rem;
    gap: 12px;
    flex-wrap: wrap;
}

.downgrade-hero-secondary {
    display: inline-flex;
    min-height: 56px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--om-green) !important;
    background: transparent;
    border: 1px solid var(--om-green);
    font: 800 11px/1 var(--om-mono);
    letter-spacing: 0.08em;
    text-decoration: none !important;
}

.downgrade-hero-secondary:hover {
    background: rgba(93, 255, 130, 0.08);
}

.downgrade-summary,
.downgrade-external-tool {
    margin-block: 2rem;
    padding: clamp(1.3rem, 3vw, 2rem);
    color: #b7c8bb;
    background:
        radial-gradient(circle at 94% 10%, rgba(60, 125, 255, 0.12), transparent 38%),
        rgba(7, 14, 9, 0.92);
    border: 1px solid var(--om-line);
    border-left: 3px solid var(--om-blue);
}

.downgrade-summary strong,
.downgrade-external-tool strong {
    color: var(--om-white);
}

.downgrade-steps {
    counter-reset: downgrade-step;
    display: grid;
    margin: 2rem 0 !important;
    padding: 0 !important;
    gap: 10px;
    list-style: none;
}

.downgrade-steps li {
    counter-increment: downgrade-step;
    display: grid;
    margin: 0 !important;
    padding: 1.2rem;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 4px 14px;
    background: rgba(7, 14, 9, 0.86);
    border: 1px solid var(--om-line);
}

.downgrade-steps li::before {
    content: counter(downgrade-step, decimal-leading-zero);
    grid-row: 1 / 3;
    color: var(--om-green);
    font: 850 1.2rem/1 var(--om-mono);
}

.downgrade-steps li strong,
.downgrade-steps li span {
    grid-column: 2;
}

.downgrade-steps li strong {
    color: var(--om-white);
}

.downgrade-steps li span {
    color: var(--om-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.downgrade-external-tool .pillar-cta-btn {
    margin-top: 0.4rem;
}

.downgrade-risk-grid {
    display: grid;
    margin: 2rem 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.downgrade-risk-grid > div {
    padding: 1.3rem;
    background: rgba(7, 14, 9, 0.86);
    border: 1px solid var(--om-line);
}

.downgrade-risk-grid h3 {
    margin: 0 0 0.5rem !important;
    color: var(--om-white) !important;
    font-size: 1.05rem !important;
}

.downgrade-risk-grid p {
    margin: 0 !important;
    font-size: 0.94rem !important;
}

@media (max-width: 1050px) {
    .ae-version-notice {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .ae-version-notice-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ae-version-notice {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .ae-version-notice::after {
        display: none;
    }

    .ae-version-notice-icon {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .ae-version-notice-actions,
    .downgrade-risk-grid {
        grid-template-columns: 1fr;
    }

    .downgrade-hero-actions > a {
        width: 100%;
    }

    .downgrade-steps li {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 1rem;
    }
}

/* ============================================================
   TERMINAL 404 PAGE
   ============================================================ */
.error-404-page.terminal-404 {
    position: relative;
    display: block;
    min-height: calc(100svh - 74px);
    padding: clamp(2rem, 6vw, 5.5rem) 20px;
    color: var(--om-white);
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 49, 84, 0.08), transparent 28%),
        radial-gradient(circle at 86% 70%, rgba(60, 125, 255, 0.07), transparent 26%),
        var(--om-black);
}

.error-404-page.terminal-404::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(93, 255, 130, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 255, 130, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.terminal-404-shell {
    position: relative;
    width: min(100%, 1220px);
    margin: 0 auto;
    border: 1px solid var(--om-line);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46), 0 0 42px rgba(93, 255, 130, 0.035);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.terminal-404-status {
    display: flex;
    min-height: 42px;
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--om-green-muted);
    background: #070d09;
    border-bottom: 1px solid var(--om-line);
    font: 700 8px/1 var(--om-mono);
    letter-spacing: 0.13em;
}

.terminal-404-status-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--om-green);
}

.terminal-404-status-live i {
    width: 6px;
    height: 6px;
    background: var(--om-green);
    box-shadow: 0 0 10px var(--om-green);
}

.terminal-404-grid {
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
    background: var(--om-line);
    gap: 1px;
}

.terminal-404-visual,
.terminal-404-copy {
    min-width: 0;
    background: rgba(4, 9, 6, 0.985);
}

.terminal-404-visual {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 600px;
    padding: clamp(2rem, 5vw, 4.5rem);
    flex-direction: column;
    justify-content: center;
    isolation: isolate;
}

.terminal-404-visual::before {
    content: "01000100 01000101 01000001 01000100 01000101 01001110 01000100";
    position: absolute;
    z-index: -1;
    inset: 22px 20px auto;
    color: rgba(93, 255, 130, 0.055);
    font: 700 11px/1.8 var(--om-mono);
    letter-spacing: 0.16em;
    overflow-wrap: anywhere;
}

.terminal-404-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.3;
    background: repeating-linear-gradient(transparent 0 7px, rgba(93, 255, 130, 0.08) 8px);
}

.terminal-404-visual p,
.terminal-404-visual > span {
    margin: 0;
    color: var(--om-green-muted);
    font: 750 9px/1.3 var(--om-mono);
    letter-spacing: 0.18em;
}

.terminal-404-visual strong {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0.06em 0 0.02em;
    color: var(--om-white);
    font: 900 clamp(9rem, 19vw, 17rem)/0.82 var(--om-sans);
    letter-spacing: -0.1em;
    text-shadow: -5px 0 rgba(255, 49, 84, 0.32), 5px 0 rgba(60, 125, 255, 0.28);
}

.terminal-404-visual strong::before,
.terminal-404-visual strong::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
}

.terminal-404-visual strong::before {
    color: var(--om-red);
    transform: translate(-5px, 2px);
    clip-path: inset(18% 0 57% 0);
    animation: terminal-404-glitch-a 4.2s steps(1) infinite;
}

.terminal-404-visual strong::after {
    color: var(--om-blue);
    transform: translate(5px, -2px);
    clip-path: inset(62% 0 12% 0);
    animation: terminal-404-glitch-b 4.2s steps(1) infinite;
}

.terminal-404-signal {
    display: flex;
    height: 48px;
    margin-top: 2.2rem;
    align-items: flex-end;
    gap: 7px;
}

.terminal-404-signal i {
    display: block;
    width: 5px;
    background: var(--om-red);
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(255, 49, 84, 0.25);
}

.terminal-404-signal i:nth-child(1) { height: 8px; }
.terminal-404-signal i:nth-child(2) { height: 22px; }
.terminal-404-signal i:nth-child(3) { height: 13px; }
.terminal-404-signal i:nth-child(4) { height: 39px; }
.terminal-404-signal i:nth-child(5) { height: 17px; }
.terminal-404-signal i:nth-child(6) { height: 29px; }
.terminal-404-signal i:nth-child(7) { height: 10px; }
.terminal-404-signal i:nth-child(8) { height: 4px; }

.terminal-404-copy {
    display: flex;
    min-height: 600px;
    padding: clamp(2rem, 5vw, 5rem);
    flex-direction: column;
    justify-content: center;
}

.terminal-404-command,
.terminal-404-result {
    margin: 0;
    font: 700 9px/1.4 var(--om-mono);
    letter-spacing: 0.1em;
}

.terminal-404-command {
    color: var(--om-muted);
}

.terminal-404-command span {
    color: var(--om-green);
}

.terminal-404-path {
    display: block;
    overflow: hidden;
    margin: 0.7rem 0 0.55rem;
    padding: 10px 12px;
    color: #b7c8bb;
    background: rgba(93, 255, 130, 0.035);
    border: 1px solid rgba(93, 255, 130, 0.13);
    font: 500 11px/1.45 var(--om-mono);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal-404-result {
    color: #ff7088;
}

.terminal-404-copy h1 {
    max-width: 680px;
    margin: 1.5rem 0 1rem;
    color: var(--om-white) !important;
    font: 850 clamp(2.6rem, 5vw, 5.2rem)/0.94 var(--om-sans);
    letter-spacing: -0.065em;
}

.terminal-404-description {
    max-width: 610px;
    margin: 0;
    color: #a8b9ad !important;
    font-size: clamp(0.98rem, 1.5vw, 1.08rem);
    line-height: 1.72;
}

.terminal-404-actions {
    display: flex;
    margin-top: 2rem;
    gap: 10px;
    flex-wrap: wrap;
}

.terminal-404-button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid var(--om-green);
    font: 800 10px/1 var(--om-mono);
    letter-spacing: 0.08em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform 0.16s, background 0.16s, box-shadow 0.16s;
}

.terminal-404-button:hover {
    transform: translateY(-2px);
}

.terminal-404-button-primary {
    color: #021507 !important;
    background: var(--om-green);
    box-shadow: 0 0 26px rgba(93, 255, 130, 0.13);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.terminal-404-button-primary:hover {
    color: #000 !important;
    background: var(--om-green-bright);
    box-shadow: 0 0 34px rgba(93, 255, 130, 0.24);
}

.terminal-404-button-secondary {
    color: var(--om-green) !important;
    background: transparent;
}

.terminal-404-button-secondary:hover {
    color: var(--om-green-bright) !important;
    background: rgba(93, 255, 130, 0.07);
}

.terminal-404-search {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--om-line);
}

.terminal-404-search label {
    display: block;
    margin-bottom: 9px;
    color: var(--om-green-muted);
    font: 700 8px/1 var(--om-mono);
    letter-spacing: 0.14em;
}

.terminal-404-search > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.terminal-404-search input[type="search"] {
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    color: var(--om-white);
    background: #050a07;
    border: 1px solid rgba(93, 255, 130, 0.2);
    border-right: 0;
    border-radius: 0;
    font: 500 12px/1 var(--om-mono);
    caret-color: var(--om-green);
}

.terminal-404-search input[type="search"]::placeholder {
    color: #5e6e63;
}

.terminal-404-search input[type="search"]:focus {
    outline: 0;
    border-color: var(--om-green);
    box-shadow: inset 3px 0 0 var(--om-green);
}

.terminal-404-search button {
    min-width: 112px;
    padding: 0 16px;
    color: #021507;
    background: var(--om-green);
    border: 1px solid var(--om-green);
    border-radius: 0;
    cursor: pointer;
    font: 800 9px/1 var(--om-mono);
    letter-spacing: 0.08em;
}

.terminal-404-search button:hover {
    background: var(--om-green-bright);
}

.terminal-404-routes {
    display: flex;
    margin-top: 1.3rem;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    font: 700 8px/1.4 var(--om-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.terminal-404-routes > span {
    color: var(--om-muted);
}

.terminal-404-routes a {
    color: var(--om-green) !important;
    text-decoration: none !important;
}

.terminal-404-routes a::before {
    content: "/ ";
    color: var(--om-green-muted);
}

.terminal-404-routes a:hover {
    color: var(--om-green-bright) !important;
}

@keyframes terminal-404-glitch-a {
    0%, 86%, 100% { transform: translate(-5px, 2px); }
    88% { transform: translate(8px, -2px); }
    91% { transform: translate(-2px, 3px); }
}

@keyframes terminal-404-glitch-b {
    0%, 84%, 100% { transform: translate(5px, -2px); }
    87% { transform: translate(-7px, 2px); }
    90% { transform: translate(3px, -3px); }
}

@media (max-width: 860px) {
    .terminal-404-grid {
        grid-template-columns: 1fr;
    }

    .terminal-404-visual {
        min-height: 300px;
        padding-block: 3rem;
    }

    .terminal-404-visual strong {
        font-size: clamp(8rem, 38vw, 14rem);
    }

    .terminal-404-copy {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .error-404-page.terminal-404 {
        padding-inline: 14px;
    }

    .terminal-404-status span:nth-child(2) {
        display: none;
    }

    .terminal-404-visual {
        min-height: 245px;
        padding: 2rem;
    }

    .terminal-404-signal {
        display: none;
    }

    .terminal-404-copy {
        padding: 2rem 1.25rem 2.4rem;
    }

    .terminal-404-actions {
        display: grid;
    }

    .terminal-404-button {
        width: 100%;
    }

    .terminal-404-search > div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .terminal-404-search input[type="search"] {
        border-right: 1px solid rgba(93, 255, 130, 0.2);
    }

    .terminal-404-search button {
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terminal-404-visual strong::before,
    .terminal-404-visual strong::after {
        animation: none;
    }
}
/* SEO templates keep the existing visual language while supporting longer,
   descriptive headings and semantic breadcrumb lists. */
.breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gateway-intro h1 {
    max-width: 1040px;
    font-size: clamp(1.75rem, 3.4vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.seo-landing-content-grid {
    display: block;
}

.seo-landing-copy {
    max-width: 900px;
    margin-inline: auto;
}

.seo-product-results,
.seo-category-directory,
.seo-related-guides {
    max-width: 1180px;
    margin-inline: auto;
}

/* Category cards use the real preview proportions stored on the Video post. */
.seo-product-results .pillar-video-card-media.ratio-9-16 {
    aspect-ratio: 9 / 16;
}

.seo-product-results .pillar-video-card-media.ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.seo-product-results .pillar-video-card-media.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

/* Five link columns, with the brand block on its own row underneath. */
.footer .footer-content.footer-link-columns {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: start;
    gap: clamp(1.25rem, 2.6vw, 2.5rem);
    margin-bottom: 2.5rem;
}

.footer-brand-row {
    padding: 2rem 0;
    border-top: 1px solid var(--om-line, #e2e8f0);
}

.footer-brand {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand h4,
.footer-brand p {
    margin-bottom: 0;
}

.footer-brand h4 + p {
    margin-top: 0.55rem;
}

.footer-brand-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
}

.footer .footer-brand-socials a {
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .footer .footer-content.footer-link-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .footer .footer-content.footer-link-columns {
        grid-template-columns: 1fr !important;
    }

    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-brand-socials {
        justify-content: flex-start;
    }
}

.product-internal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 2rem 0;
}

.product-internal-links a {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .gateway-intro h1 {
        max-width: 100%;
        font-size: clamp(1.35rem, 6.2vw, 2.25rem);
        line-height: 1.05;
        letter-spacing: -0.055em;
        white-space: normal;
    }

    .sales-hero-copy > h1 {
        font-size: clamp(2.25rem, 10vw, 4rem);
    }
}
