/* ============================================
   USE-CASE — styles for use-cases/*.html pages
   Depends on: base.css (CSS variables + shared header/footer/btn/etc.)
   Round 2: dead main-page CSS removed (Block 1 dropped entirely),
   .uc-features/.uc-marketplaces/.uc-proxy-* dead blocks removed.
============================================ */

/* === Block 2: hero triptych CSS (was inline style #2) === */
.uc-page-hero {
    padding: clamp(64px, 9vw, 112px) 0 80px;
    border-bottom: 1px solid var(--border-dark);
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    position: relative;
}
@media (max-width: 600px) {
    /* Trim the 80px desktop bottom padding so the hero doesn't open with a big
       void before the first content row on phones. */
    .uc-page-hero { padding-bottom: 48px; }
}
.uc-page-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.10) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}
.uc-page-hero .container {
    max-width: 1240px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 1024px) {
    .uc-page-hero .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Hero text is a grid item; without this it refuses to shrink below its
   min-content (the curl pill's white-space:pre command), which blew the 1fr
   track — and the whole page — past the viewport on mobile. min-width:0 lets
   the track collapse so the curl scrolls inside its own overflow-x:auto pill. */
.uc-hero-text { min-width: 0; }

/* ===== Hero triptych (scan + extract demo, right column) ===== */
.uc-trip {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.uc-trip-frame {
    position: relative;
}
.uc-trip-shadow {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    transform: translate(6px, 8px);
    z-index: 0;
    pointer-events: none;
}
.uc-trip-frame-inner {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.uc-trip-frame-inner.is-dark {
    background: #0b0b0b;
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}
.uc-trip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.uc-trip-dot.is-r { background: #ff5f57; }
.uc-trip-dot.is-y { background: #febc2e; }
.uc-trip-dot.is-g { background: #28c840; }

/* === Frame: TERMINAL (top, right-aligned) === */
.uc-trip-terminal {
    align-self: flex-end;
    width: min(100%, 480px);
    min-width: 0;
}
.uc-trip-term-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.uc-trip-term-title {
    flex: 1;
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
    margin-right: 36px; /* offset for the 3 dots width on the left */
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}
.uc-trip-term-body {
    padding: 10px 14px 12px;
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 10.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    min-width: 0;       /* prevent flex-item content from blowing out width */
    overflow: hidden;
    max-width: 100%;
}
.uc-trip-term-row {
    white-space: pre-wrap;
    overflow-wrap: anywhere;   /* aggressive: break inside long URL tokens too */
    word-break: normal;
    min-width: 0;
    max-width: 100%;
}
.uc-trip-term-row.is-muted { color: rgba(255, 255, 255, 0.4); }
.uc-trip-term-prompt { color: #a5b4fc; margin-right: 6px; }
.uc-trip-term-cmd { color: rgba(255, 255, 255, 0.92); }
.uc-trip-term-caret {
    display: inline-block;
    width: 6px;
    height: 11px;
    background: #7c3aed;
    vertical-align: -1px;
    margin-left: 2px;
    animation: uc-trip-caret 1s steps(1) infinite;
}
@keyframes uc-trip-caret { 50% { opacity: 0; } }

/* === Frame: MAIN (browser chrome + skeleton product page + scanner) === */
.uc-trip-main { width: 100%; }
.uc-trip-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f1f1f1;
    border-bottom: 1px solid var(--border-dark);
    flex-shrink: 0;
}
.uc-trip-urlbar {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 6px;
    padding: 0 10px;
    height: 22px;
    max-width: 360px;
    margin-inline: auto;
    overflow: hidden;
}
.uc-trip-urlbar-lock { color: var(--text-dim); flex-shrink: 0; }
.uc-trip-url {
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uc-trip-page {
    position: relative;
    padding: 18px 20px;
    background: #fff;
    flex: 1;
    min-height: 340px;
    overflow: hidden;
}
.uc-trip-page-top {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 18px;
    margin-bottom: 22px;
}
.uc-trip-skel-image {
    background: rgba(124, 58, 237, 0.08);
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(124, 58, 237, 0.45);
}
.uc-trip-skel-image svg { width: 62%; height: 62%; }
.uc-trip-skel-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.uc-trip-skel-bar {
    height: 9px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.10);
}
.uc-trip-skel-bar.uc-h-sm { height: 7px; }
.uc-trip-skel-bar.uc-h-lg { height: 12px; }
.uc-trip-skel-bar.uc-h-xl { height: 18px; }
.uc-trip-skel-bar.uc-is-accent { background: rgba(124, 58, 237, 0.32); }
.uc-trip-skel-bar.uc-w-25  { width: 25%; }
.uc-trip-skel-bar.uc-w-30  { width: 30%; }
.uc-trip-skel-bar.uc-w-40  { width: 40%; }
.uc-trip-skel-bar.uc-w-50  { width: 50%; }
.uc-trip-skel-bar.uc-w-60  { width: 60%; }
.uc-trip-skel-bar.uc-w-70  { width: 70%; }
.uc-trip-skel-bar.uc-w-80  { width: 80%; }
.uc-trip-skel-bar.uc-w-90  { width: 90%; }
.uc-trip-skel-bar.uc-w-95  { width: 95%; }
.uc-trip-skel-bar.uc-w-100 { width: 100%; }
.uc-trip-skel-cta-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.uc-trip-skel-cta {
    height: 24px;
    width: 90px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
}
.uc-trip-skel-cta.uc-is-primary {
    background: rgba(124, 58, 237, 0.55);
}
.uc-trip-page-related {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.uc-trip-skel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.uc-trip-skel-prod {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.025);
    border-radius: 8px;
}
.uc-trip-skel-prod-img {
    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
    background: rgba(124, 58, 237, 0.10);
    border-radius: 6px;
    margin-bottom: 4px;
}

/* === Violet scanner (CSS-only loop) === */
.uc-trip-scanner {
    position: absolute;
    left: 0; right: 0;
    height: 60px;
    pointer-events: none;
    z-index: 5;
    background: linear-gradient(180deg,
        rgba(124, 58, 237, 0)    0%,
        rgba(124, 58, 237, 0.12) 40%,
        rgba(124, 58, 237, 0.40) 50%,
        rgba(124, 58, 237, 0.12) 60%,
        rgba(124, 58, 237, 0)    100%);
    animation: uc-trip-scan 3.4s ease-in-out infinite;
}
.uc-trip-scanner-line {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: #7c3aed;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.7);
}
@keyframes uc-trip-scan {
    0%, 100% { top: 14px; }
    50%      { top: calc(100% - 74px); }
}

/* === AI-abstract main frame (AI agents page) — orb + tools + thinking + stream === */
/* Prompt bar (chrome) — заменяет URL bar на AI-стиль с sparkle prefix */
.uc-trip-urlbar--ai .uc-trip-urlbar-spark { color: var(--violet); flex-shrink: 0; }
.uc-trip-url-prefix {
    font-family: var(--font-mono, monospace);
    font-size: 10.5px;
    color: var(--text-dim);
    font-weight: 600;
    margin-right: 2px;
    flex-shrink: 0;
}

/* AI orb — большой sparkle в круге с пульсирующими кольцами (наследует skel-image геометрию) */
.uc-trip-ai-orb {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0.04) 60%, transparent 100%);
    border: 1px solid rgba(124, 58, 237, 0.22);
    overflow: visible;
}
.uc-trip-ai-spark {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56%;
    height: 56%;
    color: var(--violet);
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4));
    animation: uc-trip-orb-breathe 3.2s ease-in-out infinite;
}
@keyframes uc-trip-orb-breathe {
    0%, 100% { transform: scale(1);    opacity: 0.95; }
    50%      { transform: scale(1.05); opacity: 1; }
}
.uc-trip-ai-ring {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid rgba(124, 58, 237, 0.45);
    opacity: 0;
    animation: uc-trip-orb-ring 2.6s ease-out infinite;
    pointer-events: none;
}
.uc-trip-ai-ring.uc-is-delayed { animation-delay: 1.3s; }
@keyframes uc-trip-orb-ring {
    0%   { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.4);  opacity: 0; }
}

/* AI flow зона (наследует skel-info layout) — eyebrows + tool-pills + thinking */
.uc-trip-ai-flow {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}
.uc-trip-ai-eyebrow {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}
.uc-trip-ai-eyebrow--spaced { margin-top: 6px; }

.uc-trip-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.uc-trip-tool-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: var(--bg);
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    font-family: var(--font-mono, monospace);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: -0.01em;
    line-height: 1.4;
    white-space: nowrap;
}
.uc-trip-tool-pill.is-active {
    background: var(--violet);
    color: #fff;
    border-color: var(--violet);
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    animation: uc-trip-pill-glow 2.0s ease-out infinite;
}
@keyframes uc-trip-pill-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5); }
    50%      { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0); }
}

/* Thinking line — pulsing dots + small label */
.uc-trip-thinking {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono, monospace);
    font-size: 10.5px;
    color: var(--text-muted);
}
.uc-trip-thinking-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.uc-trip-thinking-dots i {
    display: inline-block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--violet);
    opacity: 0.35;
    animation: uc-trip-think-bounce 1.2s ease-in-out infinite;
}
.uc-trip-thinking-dots i:nth-child(2) { animation-delay: 0.18s; }
.uc-trip-thinking-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes uc-trip-think-bounce {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50%      { opacity: 1;    transform: translateY(-2px); }
}

/* Streaming tokens — анимированные горизонтальные линии (метафора LLM output) */
.uc-trip-stream {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}
.uc-trip-stream-line {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg,
        rgba(124, 58, 237, 0.08)  0%,
        rgba(124, 58, 237, 0.35) 50%,
        rgba(124, 58, 237, 0.08) 100%);
    background-size: 200% 100%;
    animation: uc-trip-stream-shimmer 1.8s linear infinite;
}
.uc-trip-stream-line:nth-child(2) { animation-delay: 0.25s; }
.uc-trip-stream-line:nth-child(3) { animation-delay: 0.5s;  }
.uc-trip-stream-line:nth-child(4) { animation-delay: 0.75s; }
@keyframes uc-trip-stream-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === Loader: spinner внутри tasks-card (visible пока все 5 шагов is-pending) === */
.uc-trip-tasks-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;       /* совпадает с .uc-trip-tasks-body */
    z-index: 2;
    transition: opacity .35s ease, visibility .35s;
}
/* Когда хотя бы один task не pending — loader fade out */
.uc-trip-tasks-body:has(.uc-trip-task:not(.is-pending)) .uc-trip-tasks-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.uc-trip-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid rgba(124, 58, 237, 0.18);
    border-top-color: #7c3aed;
    animation: uc-trip-spin .9s linear infinite;
}
@keyframes uc-trip-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .uc-trip-spinner { animation: none; border-top-color: rgba(124, 58, 237, 0.45); }
}

/* === JSON pop-up (revealed when tasks complete) === */
.uc-trip-json {
    position: absolute;
    left: 16px;
    bottom: -12px;            /* визуально подогнано к нижнему краю .uc-trip-tasks */
    width: 45%;
    max-width: 297px;         /* потолок — внутри ширины уже 45% адаптивно */
    min-height: 195px;        /* не строгая высота: контент может расти, !important не нужен */
    background: #0b0b0b;
    border-radius: 10px;
    border: 1px solid rgba(124, 58, 237, 0.28);
    box-shadow: 0 16px 44px -16px rgba(124, 58, 237, 0.45);
    overflow: hidden;
    z-index: 6;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transition: opacity .4s ease, transform .45s cubic-bezier(.5, 1.4, .5, 1);
}
.uc-trip-json.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.uc-trip-json-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: linear-gradient(180deg, #181818, #0b0b0b);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}
.uc-trip-json-status { color: #4ade80; font-weight: 700; }
.uc-trip-json-body {
    margin: 0;
    padding: 10px 12px 12px;
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 10.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre;
    overflow: hidden;
}
.uc-jk { color: #c4b5fd; }
.uc-js { color: #86efac; }
.uc-jn { color: #fbbf24; }
.uc-jb { color: #f87171; }

/* === Frame: TASK CARD (floating bottom-right overlay) === */
.uc-trip-tasks {
    position: absolute;
    bottom: -10px;
    right: -6px;
    width: 270px;
    z-index: 7;
}
.uc-trip-tasks-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #0b0b0b;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.02em;
}
.uc-trip-tasks-mark {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
    flex-shrink: 0;
}
.uc-trip-tasks-title {
    font-weight: 700;
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11px;
    letter-spacing: 0.01em;
}
.uc-trip-tasks-host {
    margin-left: auto;
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}
.uc-trip-tasks-body {
    background: #f6f6f6;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    position: relative;        /* контекст для .uc-trip-tasks-loader (absolute) */
}
.uc-trip-task {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #575d69;
    line-height: 1.3;
    padding: 2px 0;
    transition: opacity .3s ease, transform .3s ease;
}
.uc-trip-task.is-pending {
    opacity: 0;
    transform: translateY(4px);
}
.uc-trip-task.is-done .uc-trip-task-label { color: var(--text); }
.uc-trip-task-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.uc-trip-task-spinner,
.uc-trip-task-check {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.uc-trip-task-spinner {
    color: #b3bac5;
    animation: uc-trip-spin .8s linear infinite;
}
.uc-trip-task-check {
    color: #7c3aed;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .25s ease, transform .25s ease;
}
.uc-trip-task.is-done .uc-trip-task-spinner { display: none; }
.uc-trip-task.is-done .uc-trip-task-check { opacity: 1; transform: scale(1); }
@keyframes uc-trip-spin { to { transform: rotate(360deg); } }
.uc-trip-task-conn {
    display: block;
    width: 0;
    height: 10px;
    margin-left: 6px;       /* center under icon (icon w=14, conn at 6px → midline) */
    border-left: 2px dashed transparent;
    transition: border-color .3s ease;
}
.uc-trip-task-conn.is-done { border-color: #d4d6db; }

/* === Hero curl pill (under CTA buttons) === */
.uc-hero-curl {
    margin-top: 20px;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    background: #0b0b0b;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.uc-hero-curl-prompt { color: #a5b4fc; flex-shrink: 0; }
.uc-hero-curl-cmd { white-space: pre; flex: 1; }

/* On mobile the curl's white-space:pre command is unbreakable and stretches the
   hero past the viewport — let it wrap (and break long URLs/JSON) there. */
@media (max-width: 600px) {
    .uc-hero-curl-cmd { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
}
.uc-hero-curl-copy {
    margin-left: 4px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: color .2s, background .2s;
    flex-shrink: 0;
}
.uc-hero-curl-copy:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.uc-hero-curl-copy.is-copied { color: #4ade80; }

/* === Triptych responsive === */
@media (max-width: 1024px) {
    .uc-trip-tasks {
        position: static;
        width: 100%;
        margin-top: 18px;
    }
    .uc-trip-terminal { width: 100%; }
}
@media (max-width: 600px) {
    /* Shrink the hero mockup on phones: the browser-frame skeleton (product image
       + info + the "related products" grid) makes the e-commerce frame much taller
       than the compact agent/analytics frames. Drop the related-products filler and
       lower the floor so every uc-trip hero is a similar, smaller height. */
    .uc-trip-page { padding: 14px; min-height: 200px; }
    .uc-trip-page-top { grid-template-columns: 96px 1fr; gap: 12px; margin-bottom: 0; }
    .uc-trip-page-related { display: none; }
    .uc-trip-skel-grid { grid-template-columns: repeat(2, 1fr); }
    .uc-trip-json { width: calc(100% - 24px); left: 12px; right: auto; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .uc-trip-scanner,
    .uc-trip-task-spinner,
    .uc-trip-term-caret,
    .uc-trip-tasks-mark { animation: none !important; }
}
.uc-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.uc-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.uc-breadcrumb a:hover { color: var(--violet); }
.uc-breadcrumb .sep { opacity: 0.5; }
/* Yoast breadcrumbs: current (last) crumb — matches the original inline color. */
.uc-breadcrumb .breadcrumb_last { color: var(--text); }
.uc-page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--violet-deep);
    background: var(--violet-tint);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.uc-page-hero h1 {
    font-size: clamp(34px, 5.2vw, 56px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.uc-page-hero h1 .highlight {
    background: linear-gradient(90deg, var(--violet) 0%, var(--violet-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.uc-page-hero p.lead {
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 760px;
}
.uc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Trust strip — marquee of marketplace name-mentions ===== */
.uc-trust-strip {
    padding: 22px 0;
    border-bottom: 1px solid var(--border-dark);
    background: var(--bg-2);
    overflow: hidden;
    position: relative;
}
.uc-trust-strip .container {
    display: grid;
    grid-template-columns: minmax(0, auto) 1fr;
    gap: 32px;
    align-items: center;
    max-width: 1240px;
}
.uc-trust-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    white-space: nowrap;
    line-height: 1.3;
}
.uc-trust-label strong {
    display: block;
    color: var(--violet);
    font-size: 14px;
    letter-spacing: -0.01em;
    text-transform: none;
    font-weight: 700;
    margin-top: 4px;
}
.uc-trust-track-wrap {
    overflow: hidden;
    min-width: 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.uc-trust-track {
    display: flex;
    width: max-content;
    animation: uc-trust-marquee 36s linear infinite;
}
.uc-trust-track:hover { animation-play-state: paused; }
.uc-trust-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    min-width: 170px;             /* шире, чтобы wordmarks не обрезались */
    padding: 0 28px;
    border-left: 1px solid var(--border-dark);
    color: var(--text);
    flex-shrink: 0;
    white-space: nowrap;
}
.uc-trust-logo:first-child { border-left: 0; }
.uc-trust-logo img {
    height: 22px;                 /* базовая высота wordmark */
    width: auto;
    max-width: 100%;
    display: block;
    opacity: 0.78;                /* приглушённый base state */
    transition: opacity .25s ease;
}
.uc-trust-logo:hover img {
    opacity: 1;                   /* лёгкий focus на наведении */
}
/* Per-logo подстройка под пропорции */
.uc-trust-logo img[src*="amazon.svg"]     { height: 26px; }   /* amazon wordmark с smile — нужно повыше для читаемости */
.uc-trust-logo img[src*="walmart.svg"]    { height: 18px; }   /* walmart wordmark очень широкий */
.uc-trust-logo img[src*="aliexpress.svg"] { height: 22px; }
/* Text-only вариант (для брендов без читаемого monochrome wordmark, типа Google Shopping) */
.uc-trust-logo--text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #5b5b5b;
    font-family: var(--font-display, system-ui, sans-serif);
    opacity: 0.78;
    transition: opacity .25s ease;
}
.uc-trust-logo--text:hover { opacity: 1; }
.uc-trust-logo small {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0;
}
/* Combo: icon + brand name рядом (для glyph-style логов, где сам символ
   не несёт имя бренда — типа MCP-клиентов Cursor / Cline / Zed). */
.uc-trust-name {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #5b5b5b;
    font-family: var(--font-display, system-ui, sans-serif);
    opacity: 0.78;
    transition: opacity .25s ease;
}
.uc-trust-logo:hover .uc-trust-name { opacity: 1; }
/* В combo-режиме чуть уменьшаем иконку, чтобы текст ведущий */
.uc-trust-logo:has(.uc-trust-name) img { height: 18px; }
.uc-trust-logo:has(.uc-trust-name) { gap: 8px; }
@keyframes uc-trust-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .uc-trust-strip .container { grid-template-columns: 1fr; gap: 14px; }
    .uc-trust-label { text-align: center; }
    .uc-trust-logo { min-width: 110px; height: 42px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .uc-trust-track { animation: none; }
}

.uc-section {
    padding: clamp(64px, 8vw, 96px) 0;
}
.uc-section.tint {
    background: var(--bg-2);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

/* === Copy-button overlay внутри dark code-блоков (How it works / Recipes) === */
pre.uc-howit-code,
pre.uc-recipe-code { position: relative; }
.uc-code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    opacity: 0.55;             /* видимая базово, не навязчивая */
    transition: opacity .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    padding: 0;
    z-index: 2;
}
.uc-code-copy svg { width: 14px; height: 14px; }
pre.uc-howit-code:hover .uc-code-copy,
pre.uc-recipe-code:hover .uc-code-copy,
.uc-code-copy:focus-visible {
    opacity: 1;
}
.uc-code-copy:hover {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.22);
}
.uc-code-copy.is-copied {
    opacity: 1;
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.10);
}

/* === Problem → Solution: sticky-left + scrolling slides (groupbwt-style) === */
.uc-ps-section { padding-top: 60px; padding-bottom: 60px; }
.uc-ps-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}
.uc-ps-left {
    position: sticky;
    top: 96px;
    align-self: start;
}
.uc-ps-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 16px 0 28px;
}
.uc-ps-accent { color: var(--violet); }
.uc-ps-description {
    border-left: 2px solid var(--violet);
    padding-left: 22px;
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.55;
}
.uc-ps-description-secondary {
    margin: 0;
    padding-left: 22px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    font-style: italic;
}
.uc-ps-description-secondary code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--bg-3);
    color: var(--text);
    padding: 1px 6px;
    border-radius: 4px;
    font-style: normal;
}

.uc-ps-slides {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.uc-ps-slide {
    position: relative;
    padding: 28px 24px;
    /* Боковые градиент-линии — как у groupbwt */
    transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}
.uc-ps-slide::before,
.uc-ps-slide::after {
    content: "";
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--border-dark) 50%, transparent 100%);
    pointer-events: none;
}
.uc-ps-slide::before { left: 0; }
.uc-ps-slide::after  { right: 0; }
/* JS добавляет .needs-fade ДО observing → safe fallback: если JS упал, slides видимы */
.uc-ps-slide.needs-fade {
    opacity: 0;
    transform: translateY(16px);
}
.uc-ps-slide.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

.uc-ps-slide-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.uc-ps-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--violet);
    flex-shrink: 0;
    margin-top: 6px;
}
.uc-ps-slide-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
}
.uc-ps-slide-desc,
.uc-ps-slide-solution {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 12px;
}
.uc-ps-slide-desc strong,
.uc-ps-slide-solution strong { color: var(--text); }
.uc-ps-slide-solution { color: var(--text); }
.uc-ps-slide-solution strong { color: var(--violet-deep); }
.uc-ps-slide-desc code,
.uc-ps-slide-solution code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--bg-3);
    color: var(--text);
    padding: 1px 6px;
    border-radius: 4px;
}

.uc-ps-slide-meta {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.uc-ps-slide-meta li {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    padding: 3px 9px;
    background: var(--bg-3);
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0;
}

/* Reduced motion: убираем slide-in, секция сразу видна */
@media (prefers-reduced-motion: reduce) {
    .uc-ps-slide { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1024px) {
    .uc-ps-container { grid-template-columns: 1fr; gap: 36px; }
    .uc-ps-left { position: relative; top: 0; }
    .uc-ps-slide { padding: 24px 20px; }
}
@media (max-width: 600px) {
    .uc-ps-title { font-size: 28px; }
    .uc-ps-slide-title { font-size: 19px; }
}

/* How it works — 3 steps with code snippets */
.uc-howit {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-top: 40px;
}
/* Карточка-обёртка по стилю .qs-step на главной */
.uc-howit-step {
    flex: 1 1 0;
    min-width: 0;
    background: var(--bg-2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* Head-bar с border-bottom (как .qs-step-head) */
.uc-howit-head {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-dark);
}
/* Унифицировано со стилем .qs-step-num на главной */
.uc-howit-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--violet);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.uc-howit-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    letter-spacing: -0.005em;
}
/* Описание под head-bar — отдельная зона padding'ов как у qs-step */
.uc-howit-step > p {
    margin: 0;
    padding: 18px 24px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    height: 130px;            /* фиксированная высота → одинаковая стартовая точка code у всех cards */
    box-sizing: border-box;
    flex: 0 0 130px;
}
.uc-howit-step p code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--bg-3);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text);
}
/* Code-блок занимает остаток карточки (как .qs-step-code), темная стилистика сохранена */
.uc-howit-step pre.uc-howit-code {
    margin: 0;
    height: 290px;            /* фиксированная высота → все 3 cards одинаковой высоты */
    flex: 0 0 290px;          /* убираем flex-grow, чтобы explicit height работал */
    box-sizing: border-box;
    padding: 18px 22px;
    background: #18181b;
    color: #e2e8f0;
    border-radius: 0;         /* срезается углами родителя через overflow:hidden */
    font-size: 13px;
    line-height: 1.5;
    overflow-y: auto;         /* если контент длиннее — внутренний scroll */
    overflow-x: hidden;
    font-family: var(--font-mono);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}
/* Подсветка синтаксиса */
.uc-howit-code .uc-jc { color: #c084fc; } /* комментарий */
.uc-howit-code .uc-jk { color: #c084fc; } /* ключи */
.uc-howit-code .uc-js { color: #4ade80; } /* строки */
.uc-howit-code .uc-jn { color: #facc15; } /* числа */
.uc-howit-code .uc-jb { color: #60a5fa; } /* boolean */
@media (max-width: 1024px) { .uc-howit { flex-direction: column; } }

/* Live example — chip-tabs to switch between presets */
/* Segmented control — same language as the blog category filter
   (blog-2.css .b2-cat-pill). Neutral zinc segments, brand-violet active. */
.uc-live-tabs {
    display: flex;
    justify-content: safe center;
    gap: 4px;
    margin: 36px 0 22px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;          /* Firefox */
    padding-bottom: 4px;            /* room for the active :active shadow */
}
.uc-live-tabs::-webkit-scrollbar { display: none; }  /* WebKit */

.uc-live-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 24px;
    background: #f4f4f5;            /* zinc-100 */
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);            /* zinc-900 */
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.uc-live-tab:first-child { border-radius: 12px 0 0 12px; }
.uc-live-tab:last-child  { border-radius: 0 12px 12px 0; }

/* Preset icon — shared with the homepage preset-picker via cyz_preset_icon().
   Uses currentColor, so it inherits the tab text color (dark → white when active). */
.uc-live-tab svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Hover (inactive) — one shade darker, no vertical shift. */
.uc-live-tab:hover { background: #e4e4e7; }   /* zinc-200 */

/* Active — brand violet + white. Hover mirrors .btn-primary (#7c3aed → #8b4af2). */
.uc-live-tab.is-active {
    background: var(--violet);     /* #7c3aed */
    color: #fff;
}
.uc-live-tab.is-active:hover  { background: #8b4af2; }  /* btn-primary hover */
.uc-live-tab.is-active:active { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3); }

.uc-live-tab.is-active .uc-live-tab-tag { color: rgba(255, 255, 255, 0.7); }
.uc-live-tab-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* On phones the 4 presets don't fit one scroll row comfortably — lay them out
   as a 2×2 grid of equal pills instead of a horizontal scroll strip. */
@media (max-width: 600px) {
    .uc-live-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
    }
    .uc-live-tab,
    .uc-live-tab:first-child,
    .uc-live-tab:last-child {
        border-radius: 10px;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }
}

/* Recipes — code-snippet cards (replaces "Real workflows") */
.uc-recipes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
/* Карточка-обёртка по стилю .qs-step на главной */
.uc-recipe {
    background: var(--bg-2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;             /* grid items с overflow contents: держим 1fr-треки */
}
/* Head-bar с border-bottom (как .qs-step-head) */
.uc-recipe-head {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-dark);
}
/* Унифицировано со стилем .qs-step-num на главной */
.uc-recipe-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--violet);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.uc-recipe-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    letter-spacing: -0.005em;
}
/* Описание под head — фиксированная высота для выравнивания */
.uc-recipe > p {
    margin: 0;
    padding: 18px 24px 16px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    height: 110px;
    box-sizing: border-box;
    flex: 0 0 110px;
}
/* Code-блок — тёмная панель на всю ширину карточки (как .uc-howit-code / .qs-step-code) */
.uc-recipe-code {
    margin: 0;
    padding: 18px 22px;
    background: #0b0b0b;
    color: rgba(255, 255, 255, 0.92);
    border-radius: 0;           /* срезается углами родителя через overflow:hidden */
    border: 0;                  /* боковые границы не нужны на full-width панели */
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    overflow-x: hidden;
    height: 360px;              /* фиксированная высота → все 3 code-панели одной высоты */
    flex: 0 0 360px;            /* убираем grow, height точный */
    box-sizing: border-box;
    overflow-y: auto;           /* длинный код → внутренний scroll */
    min-width: 0;
}
.uc-recipe-code .uc-rec-cmt { color: rgba(255, 255, 255, 0.42); }
.uc-recipe-code .uc-rec-cmd { color: #c4b5fd; }
.uc-recipe-code .uc-rec-str { color: #86efac; }
.uc-recipe-code .uc-rec-var { color: #fbbf24; }
.uc-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;  /* пилюли прижаты к верху → пустое место внизу при коротком content */
    gap: 6px;
    padding: 18px 24px 22px;    /* отступ от code-панели + поля карточки */
    height: 110px;              /* фиксированная высота → meta-зона одинакова у всех cards */
    box-sizing: border-box;
    flex: 0 0 110px;
}
.uc-recipe-meta span {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    padding: 3px 8px;
    background: var(--bg-3);
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0;
}
@media (max-width: 1024px) { .uc-recipes { grid-template-columns: 1fr; } }


/* FAQ */
.uc-faq {
    max-width: 820px;
    margin: 32px auto 0;
}
.uc-faq-item {
    position: relative;
    border-bottom: 1px solid var(--border-dark);
    padding-left: 22px;        /* отступ для summary+body, линия живёт ЗА padding слева */
}
/* Декоративная фиолетовая линия — растёт из центра (как у groupbwt) */
.uc-faq-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    bottom: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--violet) 0%, var(--violet-light) 100%);
    border-radius: 2px;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: top .55s cubic-bezier(.16, 1, .3, 1),
                bottom .55s cubic-bezier(.16, 1, .3, 1),
                opacity .45s ease;
}
.uc-faq-item[open]:not(.is-collapsing)::before {
    top: 0;
    bottom: 0;
    opacity: 1;
}
.uc-faq-item summary {
    cursor: pointer;
    padding: 22px 0;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--text);
}
.uc-faq-item summary::-webkit-details-marker { display: none; }
/* Geometric + ↔ − icon: horizontal bar постоянно + vertical bar shrinks через background-size.
   Использует .is-collapsing для синхронного reverse при закрытии. */
.uc-faq-item summary::after {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image:
        linear-gradient(var(--violet), var(--violet)),
        linear-gradient(var(--violet), var(--violet));
    background-position: center, center;
    background-repeat: no-repeat;
    background-size: 16px 2px, 2px 16px;       /* horizontal, vertical */
    transition: background-size .4s cubic-bezier(.16, 1, .3, 1);
}
.uc-faq-item[open]:not(.is-collapsing) summary::after {
    background-size: 16px 2px, 2px 0px;        /* vertical shrinks к 0 → остается "−" */
}

/* Body — JS-driven smooth toggle.
   Outer (.uc-faq-item-body) — анимирует ТОЛЬКО height (single property → no race).
   Inner (.uc-faq-item-body-inner) — обёртка JS, держит padding/typography.
   Линия слева — псевдо-элемент на .uc-faq-item (растёт из центра). */
.uc-faq-item-body {
    overflow: hidden;
    box-sizing: border-box;
    height: 0;
    padding: 0;
    transition: height .55s cubic-bezier(.16, 1, .3, 1);
    will-change: height;
}
.uc-faq-item-body-inner {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 720px;
    padding: 4px 0 22px 0;
}
.uc-faq-item-body code,
.uc-faq-item-body-inner code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--bg-3);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--violet-deep);
}

/* ===== Final CTA — open-source close (unified with main page) ===== */
.final-cta {
    background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 100%);
    text-align: center;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
    color: var(--text-on-dark);
}
/* This file redefines .final-cta after base.css, re-inheriting the 96px desktop
   padding and defeating base.css's mobile override — restore the mobile shrink
   here (this stylesheet loads on the use-case AND product/software pages). */
@media (max-width: 768px) {
    .final-cta { padding: 64px 0; }
}
.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
                      radial-gradient(circle at 70% 50%, rgba(0, 0, 0, 0.18) 0%, transparent 50%);
    pointer-events: none;
}
.final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.final-cta .eyebrow {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}
.final-cta h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}
.final-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 32px;
}
.final-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.final-cta-license {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}
/* Buttons inside Final-CTA — white-primary on violet, outline-white */
.final-cta .btn-primary {
    background: #ffffff;
    color: var(--violet);
}
.final-cta .btn-primary:hover {
    background: #f4f4f5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.final-cta .btn-outline-dark,
.final-cta .btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.32);
    color: var(--text-on-dark);
}
.final-cta .btn-outline-dark:hover,
.final-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-on-dark);
}


/* ============================================
   Modifier — soft violet glow blob (echoes #mcp + #crawler sections on main page)
   Section itself has NO overflow:hidden — would break position:sticky in P→S left column.
   Instead, .uc-glow-bg wrapper clips the blob; section keeps a normal positioning context.
============================================ */
.uc-glow-right,
.uc-glow-left {
    position: relative;
    /* NB: no `overflow: hidden` here. It would kill the sticky-left column in P→S. */
}
.uc-glow-right > .container,
.uc-glow-left > .container {
    position: relative;
    z-index: 1;
}
.uc-glow-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.uc-glow-bg::before {
    content: '';
    position: absolute;
    pointer-events: none;
}
.uc-glow-right .uc-glow-bg::before {
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--violet-glow) 0%, transparent 60%);
    filter: blur(80px);
}
.uc-glow-left .uc-glow-bg::before {
    top: 50%;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 60%);
    filter: blur(80px);
    transform: translateY(-50%);
}

/* ==================== MOBILE: live-preset tabs ====================
   On phones the tabs are a 2×2 grid (rule above). Two problems: the inline
   `gap: 6px` between the label and its .uc-live-tab-tag reads like an empty icon
   slot ("Amazon ⎵ product"), and wrapping makes rows uneven (43px vs 59px).
   Fix: stack label over tag (no side gap, reads as a labelled pill) and force
   equal row heights. End-of-file → wins over the base .uc-live-tab rule. */
@media (max-width: 600px) {
    .uc-live-tabs { grid-auto-rows: 1fr; }
    .uc-live-tab {
        flex-direction: column;
        gap: 2px;
        line-height: 1.25;
    }
    .uc-live-tab-tag { margin: 0; }
}
