/* FeedCRM homepage v4 — light editorial + lead-flow hero */

body.home-v4 {
    --hm-ink: #0c0f14;
    --hm-muted: #5c6575;
    --hm-faint: #8b93a3;
    --hm-paper: #f6f7f9;
    --hm-surface: #ffffff;
    --hm-line: rgba(12, 15, 20, 0.1);
    --hm-line-soft: rgba(12, 15, 20, 0.06);
    --hm-blue: #315efb;
    --hm-blue-soft: rgba(49, 94, 251, 0.1);
    --hm-navy: #121826;
    background: var(--hm-paper);
}

body.home-v4 .lp-header {
    background: rgba(246, 247, 249, 0.82);
}

/* ---------- Shared ---------- */
.hm-section {
    padding: clamp(72px, 11vw, 128px) 0;
}

.hm-kicker {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hm-blue);
}

.hm-kicker.is-light { color: #9bb0ff; }

.hm-display {
    margin: 0;
    max-width: 16ch;
    font-family: var(--lp-display);
    font-size: clamp(34px, 5.4vw, 60px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.055em;
    color: var(--hm-ink);
}

.hm-display-xl {
    max-width: 18ch;
    font-size: clamp(40px, 6.8vw, 76px);
}

.hm-display.is-light { color: #f5f7fb; }

.hm-lead {
    margin: 18px 0 0;
    max-width: 42ch;
    font-size: clamp(16px, 1.55vw, 19px);
    line-height: 1.55;
    letter-spacing: -0.02em;
    color: var(--hm-muted);
    font-weight: 500;
}

.hm-lead.is-light { color: rgba(245, 247, 251, 0.7); }

.hm-accent { color: var(--hm-blue); }

.hm-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    animation: hmRevealSafety 0.01s linear 2.5s forwards;
}

.hm-reveal.is-in {
    opacity: 1;
    transform: none;
    animation: none;
}

@keyframes hmRevealSafety {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Hero ---------- */
body.home-v4 .lp-hero {
    padding: 12px 0 8px;
}

body.home-v4 .hm-hero-inner {
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
    grid-template-areas:
        "copy visual" !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
}

body.home-v4 .hm-hero-copy {
    grid-area: copy;
}

body.home-v4 .hm-flow-visual {
    grid-area: visual;
    min-width: 0;
}

.hm-eyebrow {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--hm-muted);
}

.hm-hero-copy h1 {
    margin: 0;
    font-family: var(--lp-display);
    font-size: clamp(40px, 6.2vw, 68px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.06em;
    color: var(--hm-ink);
    max-width: 12ch;
}

body.home-v4 .hm-hero-copy h1 .hm-h1-line {
    display: block;
}

body.home-v4 .hm-hero-copy h1 .hm-accent {
    display: inline;
    font-style: normal;
    color: var(--hm-blue);
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.hm-hero-lead {
    margin-top: 18px !important;
    max-width: 38ch !important;
}

.hm-hero-cta { margin-top: 24px; }

.hm-hero-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--hm-faint);
    letter-spacing: -0.01em;
}

/* Flow visual */
.hm-flow-visual {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) 18px minmax(0, 1.15fr);
    gap: 14px;
    align-items: stretch;
    min-height: 360px;
    padding: 8px;
}

.hm-flow-sources {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.hm-flow-chip {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--hm-line-soft);
    box-shadow: 0 10px 28px rgba(18, 24, 38, 0.05);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hm-flow-visual.is-ready .hm-flow-chip {
    opacity: 1;
    transform: none;
}

.hm-flow-visual.is-ready .hm-flow-chip:nth-child(1) { transition-delay: 0.05s; }
.hm-flow-visual.is-ready .hm-flow-chip:nth-child(2) { transition-delay: 0.14s; }
.hm-flow-visual.is-ready .hm-flow-chip:nth-child(3) { transition-delay: 0.23s; }

.hm-flow-chip.is-active {
    border-color: rgba(49, 94, 251, 0.35);
    box-shadow: 0 0 0 4px var(--hm-blue-soft), 0 12px 30px rgba(18, 24, 38, 0.06);
}

.hm-flow-chip-mark {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hm-flow-chip.is-avito .hm-flow-chip-mark { color: #e11d48; }
.hm-flow-chip.is-site .hm-flow-chip-mark { color: var(--hm-blue); }
.hm-flow-chip.is-chat .hm-flow-chip-mark { color: #0d9488; }

.hm-flow-chip strong {
    display: block;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.025em;
    color: var(--hm-ink);
}

.hm-flow-line {
    position: relative;
    width: 2px;
    margin: 24px auto;
    border-radius: 2px;
    background: var(--hm-line-soft);
    overflow: hidden;
}

.hm-flow-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hm-blue);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s;
}

.hm-flow-visual.is-ready .hm-flow-line::after {
    transform: scaleY(1);
}

.hm-flow-steps {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.hm-flow-node {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--hm-line-soft);
    box-shadow: 0 12px 32px rgba(18, 24, 38, 0.06);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
}

.hm-flow-visual.is-ready .hm-flow-node {
    opacity: 1;
    transform: none;
}

.hm-flow-visual.is-ready .hm-flow-node[data-hm-step="0"] { transition-delay: 0.35s; }
.hm-flow-visual.is-ready .hm-flow-node[data-hm-step="1"] { transition-delay: 0.48s; }
.hm-flow-visual.is-ready .hm-flow-node[data-hm-step="2"] { transition-delay: 0.61s; }
.hm-flow-visual.is-ready .hm-flow-node[data-hm-step="3"] { transition-delay: 0.74s; }

.hm-flow-node.is-hub {
    border-color: rgba(49, 94, 251, 0.28);
    background: linear-gradient(180deg, #fff, #f4f7ff);
}

.hm-flow-node-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hm-faint);
    margin-bottom: 4px;
}

.hm-flow-node strong {
    display: block;
    font-size: 15px;
    letter-spacing: -0.025em;
    color: var(--hm-ink);
}

.hm-flow-node em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 12px;
    color: var(--hm-muted);
}

.hm-flow-node.is-pulse.is-alive {
    animation: hmPulse 2.4s ease-in-out infinite;
}

@keyframes hmPulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(18, 24, 38, 0.06), 0 0 0 0 rgba(49, 94, 251, 0); }
    50% { box-shadow: 0 12px 32px rgba(18, 24, 38, 0.06), 0 0 0 6px rgba(49, 94, 251, 0.12); }
}

/* ---------- Editorial ---------- */
.hm-editorial {
    padding-top: clamp(56px, 9vw, 100px);
    padding-bottom: clamp(56px, 9vw, 100px);
    background:
        radial-gradient(700px 320px at 8% 40%, rgba(49, 94, 251, 0.08), transparent 60%),
        #fff;
    border-top: 1px solid var(--hm-line);
    border-bottom: 1px solid var(--hm-line);
}

.hm-editorial-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.hm-editorial-mark {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-editorial-ghost {
    position: absolute;
    font-family: var(--lp-font);
    font-size: clamp(140px, 18vw, 220px);
    font-weight: 200;
    line-height: 0.8;
    color: rgba(49, 94, 251, 0.08);
    letter-spacing: -0.08em;
    user-select: none;
}

.hm-editorial-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(100%, 280px);
}

.hm-editorial-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--hm-line);
    background: #fff;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.02em;
    box-shadow: 0 10px 28px rgba(12, 15, 20, 0.05);
}

.hm-editorial-card.is-faded {
    opacity: 0.55;
    color: var(--hm-muted);
}

.hm-editorial-card.is-lost {
    border-color: rgba(225, 29, 72, 0.25);
    background: #fff5f6;
    color: #be123c;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.06);
}

.hm-editorial-lead {
    margin: 22px 0 0;
    max-width: 48ch;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--hm-muted);
}

/* ---------- Problem ---------- */
.hm-problem-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hm-problem-card {
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--hm-line);
    box-shadow: 0 16px 40px rgba(12, 15, 20, 0.04);
    min-height: 100%;
}

.hm-problem-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hm-num {
    font-family: var(--lp-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--hm-blue);
}

.hm-problem-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hm-problem-tag.is-avito { background: #ffe4e6; color: #e11d48; }
.hm-problem-tag.is-site { background: #e8efff; color: var(--hm-blue); }
.hm-problem-tag.is-task { background: #f1f5f9; color: #475569; }

.hm-problem-card h3 {
    margin: 0 0 14px;
    font-family: var(--lp-display);
    font-size: clamp(22px, 2.4vw, 28px);
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.hm-mini {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--hm-paper);
    border: 1px solid var(--hm-line-soft);
}

.hm-mini span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hm-faint);
    margin-bottom: 6px;
}

.hm-mini p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--hm-ink);
    letter-spacing: -0.02em;
}

.hm-mini.is-task {
    border-color: rgba(49, 94, 251, 0.25);
    background: #f5f8ff;
}

.hm-problem-note {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    color: var(--hm-muted);
    letter-spacing: -0.02em;
}

/* ---------- Core ---------- */
.hm-core-track {
    position: relative;
    margin-top: 52px;
    padding-top: 10px;
}

.hm-core-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--hm-blue);
    border-radius: 2px;
    z-index: 2;
    transition: width 0.15s linear;
}

.hm-core-track::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--hm-line), transparent 95%);
}

.hm-core-steps {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hm-core-steps li {
    position: relative;
    padding: 28px 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--hm-line-soft);
    overflow: hidden;
    min-height: 168px;
}

.hm-core-bg {
    position: absolute;
    right: 6px;
    top: 4px;
    font-family: var(--lp-font);
    font-size: clamp(56px, 6vw, 72px);
    font-weight: 200;
    letter-spacing: -0.08em;
    line-height: 1;
    color: rgba(49, 94, 251, 0.08);
    pointer-events: none;
}

.hm-core-idx {
    position: relative;
    display: block;
    font-family: var(--lp-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--hm-blue);
    margin-bottom: 12px;
}

.hm-core-steps strong {
    position: relative;
    display: block;
    font-family: var(--lp-display);
    font-size: clamp(20px, 2.1vw, 26px);
    letter-spacing: -0.045em;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hm-core-steps p {
    position: relative;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--hm-muted);
    max-width: 18ch;
}

/* ---------- Product ---------- */
.hm-product {
    background: #fff;
    border-top: 1px solid var(--hm-line);
    border-bottom: 1px solid var(--hm-line);
}

.hm-product-split,
.hm-messenger-split,
.hm-analytics-split,
.hm-team-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.hm-analytics-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.hm-product-points {
    margin: 28px 0 0;
    display: grid;
    gap: 12px;
}

.hm-point-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--hm-paper);
    border: 1px solid var(--hm-line-soft);
}

.hm-point-card h3 {
    margin: 0 0 6px;
    font-family: var(--lp-display);
    font-size: 22px;
    letter-spacing: -0.04em;
}

.hm-point-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--hm-muted);
}

.hm-shot-frame {
    margin: 0;
    padding: 14px;
    border-radius: 24px;
    background: var(--hm-paper);
    border: 1px solid var(--hm-line);
    box-shadow: 0 24px 60px rgba(12, 15, 20, 0.07);
    overflow: hidden;
}

.hm-shot-real {
    padding: 10px;
}

.hm-shot-real img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--hm-line-soft);
}

.hm-shot-frame .lp-shot,
.hm-shot-frame .lp-shot-lg {
    width: 100%;
    max-width: none;
}

.hm-shot-frame figcaption {
    margin-top: 12px;
    padding: 0 4px;
    font-size: 13px;
    color: var(--hm-faint);
    letter-spacing: -0.01em;
}

/* ---------- Avito ---------- */
.hm-avito {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 120px) 0;
    background:
        radial-gradient(900px 480px at 90% 0%, rgba(49, 94, 251, 0.28), transparent 55%),
        linear-gradient(160deg, #121826, #182033 55%, #121826);
    color: #f5f7fb;
}

.hm-avito-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hm-avito-mark {
    position: absolute;
    top: 8%;
    right: -2%;
    font-family: var(--lp-display);
    font-size: clamp(72px, 14vw, 160px);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    transform: rotate(-8deg);
    user-select: none;
}

.hm-avito-mark.is-2 {
    top: auto;
    bottom: 6%;
    left: -4%;
    right: auto;
    font-size: clamp(64px, 12vw, 130px);
    transform: rotate(6deg);
    color: rgba(255, 97, 99, 0.08);
}

.hm-avito-mark.is-3 {
    top: 42%;
    left: 38%;
    font-size: clamp(48px, 8vw, 90px);
    opacity: 0.7;
    transform: rotate(-2deg);
}

.hm-avito-float {
    position: absolute;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(245, 247, 251, 0.55);
}

.hm-avito-float.is-xml { top: 18%; left: 8%; }
.hm-avito-float.is-xls { top: 28%; right: 12%; }
.hm-avito-float.is-mass { bottom: 22%; left: 14%; }
.hm-avito-float.is-loc { bottom: 16%; right: 10%; color: rgba(255, 180, 182, 0.7); border-color: rgba(255, 97, 99, 0.25); }

.hm-avito .lp-container { position: relative; z-index: 1; }

.hm-avito-head { max-width: 52rem; }

.hm-avito-grid {
    margin: 40px 0 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hm-avito-card {
    position: relative;
    padding: 22px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.hm-avito-icon {
    display: block;
    font-family: var(--lp-font);
    font-size: 42px;
    font-weight: 200;
    letter-spacing: -0.06em;
    line-height: 1;
    color: rgba(155, 176, 255, 0.35);
    margin-bottom: 12px;
}

.hm-avito-card strong {
    display: block;
    font-family: var(--lp-display);
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: -0.04em;
    margin-bottom: 10px;
    line-height: 1.15;
}

.hm-avito-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(245, 247, 251, 0.62);
    max-width: 28ch;
}

/* ---------- Channels ---------- */
.hm-channels-layout {
    margin-top: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: 20px;
    align-items: stretch;
}

.hm-channels-sources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hm-ch-card {
    position: relative;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--hm-line);
}

.hm-ch-card.is-avito { border-top: 3px solid #e11d48; }
.hm-ch-card.is-form { border-top: 3px solid var(--hm-blue); }

.hm-ch-card.is-bot.is-featured {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, #f0fdf9 0%, #fff 55%);
    border: 1px solid rgba(13, 148, 136, 0.28);
    box-shadow: 0 18px 44px rgba(13, 148, 136, 0.1);
}

.hm-ch-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #0d9488;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hm-ch-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hm-faint);
}

.hm-ch-card.is-avito .hm-ch-label { color: #e11d48; }
.hm-ch-card.is-form .hm-ch-label { color: var(--hm-blue); }
.hm-ch-card.is-bot .hm-ch-label { color: #0d9488; }

.hm-ch-card h3 {
    margin: 0 0 8px;
    font-family: var(--lp-display);
    font-size: clamp(20px, 2.2vw, 26px);
    letter-spacing: -0.04em;
}

.hm-ch-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--hm-muted);
    max-width: 42ch;
}

.hm-ch-card ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.hm-ch-card li {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.08);
    font-size: 13px;
    font-weight: 650;
    color: #0f766e;
    letter-spacing: -0.015em;
}

/* ---------- AI chatbot ---------- */
.hm-ai-bot {
    background: #fff;
    border-top: 1px solid var(--hm-line);
    border-bottom: 1px solid var(--hm-line);
}

.hm-ai-bot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 36px 48px;
    align-items: center;
}

.hm-ai-bot-list {
    list-style: none;
    margin: 24px 0 28px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.hm-ai-bot-list li {
    display: grid;
    gap: 4px;
    border-left: 2px solid var(--hm-blue);
    padding-left: 14px;
}

.hm-ai-bot-list strong {
    font-size: 0.98rem;
    letter-spacing: -0.02em;
    color: var(--hm-ink);
}

.hm-ai-bot-list span {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--hm-muted);
}

.hm-ai-bot-flow {
    padding: 22px 20px;
    border: 1px solid var(--hm-line-soft);
    border-radius: 18px;
    background: var(--hm-paper);
    display: grid;
    gap: 12px;
}

.hm-ai-flow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hm-ai-flow-row span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hm-line-soft);
    font-size: 12px;
    font-weight: 650;
    color: var(--hm-ink);
}

.hm-ai-flow-arrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hm-faint);
}

.hm-ai-flow-hub {
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(49, 94, 251, 0.22);
    box-shadow: 0 0 0 4px var(--hm-blue-soft);
    display: grid;
    gap: 4px;
}

.hm-ai-flow-hub strong {
    font-family: var(--lp-display);
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.hm-ai-flow-hub em {
    font-style: normal;
    color: var(--hm-muted);
    font-size: 0.9rem;
}

.hm-ai-flow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.hm-ai-flow-steps li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--hm-line-soft);
}

.hm-ai-flow-steps li.is-on {
    border-color: rgba(49, 94, 251, 0.28);
    background: var(--hm-blue-soft);
}

.hm-ai-flow-steps span {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.06em;
    color: var(--hm-blue);
}

.hm-ai-flow-steps b {
    font-size: 0.95rem;
    font-weight: 650;
}

.hm-funnel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 22px;
    border-radius: 22px;
    background: var(--hm-ink);
    color: #fff;
    min-height: 100%;
}

.hm-funnel-hub {
    padding: 18px;
    border-radius: 16px;
    background: var(--hm-blue);
    text-align: center;
}

.hm-funnel-hub strong {
    display: block;
    font-family: var(--lp-display);
    font-size: 24px;
    letter-spacing: -0.04em;
}

.hm-funnel-hub em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 13px;
    opacity: 0.8;
}

.hm-funnel-arrow {
    width: 2px;
    height: 28px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
}

.hm-funnel-stages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.hm-funnel-stages li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-funnel-stages li.is-on {
    background: rgba(49, 94, 251, 0.22);
    border-color: rgba(123, 155, 255, 0.35);
}

.hm-funnel-stages span {
    font-family: var(--lp-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
}

.hm-funnel-stages b {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

/* ---------- Messenger / Analytics ---------- */
.hm-messenger {
    background: #fff;
    border-top: 1px solid var(--hm-line);
}

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

.hm-messenger-list li {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--hm-line-soft);
    background: var(--hm-paper);
}

.hm-messenger-list strong {
    display: block;
    font-size: 15px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.hm-messenger-list span {
    font-size: 14px;
    line-height: 1.45;
    color: var(--hm-muted);
}

.hm-analytics {
    border-top: 1px solid var(--hm-line);
    background: #fff;
}

.hm-analytics-intro {
    max-width: 40rem;
    margin-bottom: 36px;
}

.hm-analytics-board {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: var(--hm-paper);
    border: 1px solid var(--hm-line);
}

.hm-an-kpis {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hm-an-kpis > div {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--hm-line-soft);
}

.hm-an-kpis small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hm-faint);
    margin-bottom: 8px;
}

.hm-an-kpis b {
    display: block;
    font-family: var(--lp-display);
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 6px;
}

.hm-an-kpis em {
    font-style: normal;
    font-size: 13px;
    color: var(--hm-muted);
}

.hm-an-chart {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--hm-line-soft);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
}

.hm-an-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    margin-bottom: 16px;
}

.hm-an-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #7b9bff, var(--hm-blue));
    opacity: 0.75;
}

.hm-an-bars i:nth-child(3n) { background: linear-gradient(180deg, #5eead4, #0d9488); }
.hm-an-bars i:nth-child(3n+2) { background: linear-gradient(180deg, #fda4af, #e11d48); opacity: 0.7; }
.hm-an-bars i.is-peak { opacity: 1; box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.12); }

.hm-an-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hm-an-legend span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hm-muted);
}

.hm-an-legend span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.hm-an-legend .is-avito::before { background: #e11d48; }
.hm-an-legend .is-site::before { background: var(--hm-blue); }
.hm-an-legend .is-bot::before { background: #0d9488; }

.hm-an-sources {
    display: grid;
    gap: 10px;
}

.hm-an-sources > div {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--hm-line-soft);
}

.hm-an-sources strong {
    display: block;
    font-family: var(--lp-display);
    font-size: 20px;
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

.hm-an-sources p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--hm-muted);
}

/* ---------- Team ---------- */
.hm-role-cards {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.hm-role-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--hm-line);
    background: #fff;
}

.hm-role-card.is-owner {
    border-color: rgba(49, 94, 251, 0.3);
    background: linear-gradient(180deg, #f5f8ff, #fff);
}

.hm-role-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.hm-role-head h3 {
    margin: 0;
    font-family: var(--lp-display);
    font-size: 22px;
    letter-spacing: -0.04em;
}

.hm-role-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--hm-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hm-role-tag.is-soft {
    background: #e8eaef;
    color: var(--hm-muted);
}

.hm-role-card p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--hm-muted);
}

.hm-role-perms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hm-role-perms span {
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--hm-paper);
    border: 1px solid var(--hm-line-soft);
    font-size: 12px;
    font-weight: 650;
    color: var(--hm-ink);
}

.hm-team-note {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--hm-muted);
    max-width: 42ch;
}

/* ---------- Compare ---------- */
.hm-compare {
    background: #fff;
    border-top: 1px solid var(--hm-line);
    border-bottom: 1px solid var(--hm-line);
}

.hm-compare-cols {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hm-compare-cols > div {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--hm-line);
    background: var(--hm-paper);
}

.hm-compare-cols .is-feed {
    background: #fff;
    border-color: rgba(49, 94, 251, 0.28);
    box-shadow: 0 16px 40px rgba(49, 94, 251, 0.08);
}

.hm-compare-cols h3 {
    margin: 0 0 16px;
    font-family: var(--lp-display);
    font-size: clamp(24px, 2.6vw, 32px);
    letter-spacing: -0.045em;
}

.hm-compare-cols .is-feed h3 { color: var(--hm-blue); }

.hm-compare-cols ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-compare-cols li {
    padding: 10px 0;
    border-bottom: 1px solid var(--hm-line-soft);
    font-size: 15px;
    line-height: 1.45;
    color: var(--hm-muted);
    letter-spacing: -0.015em;
}

.hm-compare-cols .is-feed li {
    color: var(--hm-ink);
    font-weight: 550;
}

/* ---------- Who ---------- */
.hm-who-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hm-who-tags span {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--hm-line);
    background: #fff;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--hm-ink);
}

.hm-who-soft {
    margin: 28px 0 0;
    max-width: 56ch;
    font-size: 15px;
    line-height: 1.55;
    color: var(--hm-muted);
}

/* ---------- How ---------- */
.hm-how {
    background: #fff;
    border-top: 1px solid var(--hm-line);
}

.hm-how-steps {
    list-style: none;
    margin: 48px 0 36px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.hm-how-steps > li > span {
    display: block;
    font-family: var(--lp-font);
    font-size: clamp(56px, 7vw, 84px);
    font-weight: 200;
    letter-spacing: -0.08em;
    line-height: 0.9;
    color: rgba(49, 94, 251, 0.28);
    margin-bottom: 12px;
}

.hm-how-steps h3 {
    margin: 0 0 10px;
    font-family: var(--lp-display);
    font-size: clamp(22px, 2.4vw, 28px);
    letter-spacing: -0.045em;
}

.hm-how-steps p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--hm-muted);
    max-width: 28ch;
}

.hm-how-mini {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--hm-blue-soft);
    color: var(--hm-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: inline-block;
}

/* ---------- Final ---------- */
.hm-final {
    padding: clamp(80px, 12vw, 140px) 0;
    background:
        radial-gradient(700px 360px at 0% 0%, rgba(49, 94, 251, 0.08), transparent 55%),
        var(--hm-paper);
    border-top: 1px solid var(--hm-line);
}

.hm-final-note { color: var(--hm-faint); }

body.home-v4 #pricing.lp-section,
body.home-v4 #faq.lp-section {
    background: #fff;
    border-top: 1px solid var(--hm-line);
}

body.home-v4 #pricing .lp-section-head h2,
body.home-v4 #faq .lp-section-title,
body.home-v4 #faq h2 {
    font-family: var(--lp-display);
    letter-spacing: -0.05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
    body.home-v4 .hm-hero-inner {
        grid-template-areas:
            "copy"
            "visual" !important;
        grid-template-columns: 1fr !important;
    }

    .hm-flow-visual {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 8px;
    }

    .hm-flow-line {
        width: 100%;
        height: 2px;
        margin: 4px 0;
    }

    .hm-flow-line::after {
        transform: scaleX(0);
        transform-origin: left;
    }

    .hm-flow-visual.is-ready .hm-flow-line::after {
        transform: scaleX(1);
    }

    .hm-flow-sources {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hm-editorial-wrap,
    .hm-problem-grid,
    .hm-product-split,
    .hm-messenger-split,
    .hm-team-split,
    .hm-avito-grid,
    .hm-how-steps,
    .hm-compare-cols,
    .hm-channels-layout,
    .hm-channels-sources,
    .hm-analytics-board,
    .hm-an-kpis,
    .hm-ai-bot-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hm-ch-card.is-bot.is-featured {
        grid-column: auto;
    }

    .hm-avito-float { display: none; }

    .hm-core-steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hm-core-progress { display: none; }

    .hm-analytics-split .hm-shot-frame { order: 2; }
}

@media (max-width: 720px) {
    .hm-hero-copy h1 { max-width: none; }

    .hm-flow-sources {
        grid-template-columns: 1fr;
    }

    .hm-display-xl { max-width: none; }

    .hm-editorial-mark { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-reveal {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }

    .hm-flow-chip,
    .hm-flow-node,
    .hm-flow-line::after {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hm-flow-node.is-pulse.is-alive {
        animation: none;
    }
}
