/* ============================================================
   Home page (Views/Home/Index). Only what is particular to this page; the base is core/css/ds.css.
   Every class starts with hm-. The hero's tree and robot have their own files under animations/.
   ============================================================ */

/* nothing on the page may widen it sideways */
.hm-page {
    overflow-x: clip;
}

/* ---------- HERO ---------- */
.hm-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 90px;
    background-color: var(--ds-bg);
}

    .hm-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(ellipse 40% 38% at 50% 66%, rgba(201, 29, 19, 0.10) 0%, rgba(201, 29, 19, 0) 70%),
            radial-gradient(ellipse 65% 60% at 50% 62%, var(--ds-glow) 0%, transparent 70%);
        pointer-events: none;
    }

@keyframes hm-sweep {
    to { transform: rotate(360deg); }
}

.hm-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hm-title {
    max-width: 920px;
    margin: 18px auto 0 !important;
}

.hm-lead {
    max-width: 700px;
    margin-inline: auto !important;
}

/* the console: tabs, the search form, then a preview of results */
.hm-console {
    position: relative;
    z-index: 5;
    max-width: 1020px;
    margin: 36px auto 0;
    text-align: start;
    border-radius: 26px;
    box-shadow: var(--ds-shadow-lg);
}

.hm-console {
    border-top: 4px solid var(--ds-red);
}

.hm-console-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ds-tint-line);
    border-radius: 22px 22px 0 0;
    background: var(--ds-tint);
}

    .hm-console-top .ds-seg {
        background: var(--ds-surface);
        border-color: var(--ds-tint-line);
    }

.hm-tabs {
    min-width: 0;
    margin: 0;
    list-style: none;
}

    .hm-tabs li {
        margin: 0;
    }

    .hm-tabs .nav-link img,
    .hm-platform-tabs img {
        width: 22px !important;
        height: 22px !important;
        padding: 2px;
        border-radius: 50%;
        object-fit: contain;
    }

    /* on the red active tab the icon sits on a small white disc so it still reads */
    .hm-tabs .nav-link.is-on img,
    .hm-platform-tabs button.is-on img {
        background: #FFF;
    }

.hm-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ds-red);
}

.hm-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px auto;
    gap: 10px;
    padding: 16px 16px 10px;
}

.hm-search-field {
    position: relative;
}

    .hm-search-field > i {
        position: absolute;
        top: 50%;
        inset-inline-start: 18px;
        transform: translateY(-50%);
        color: var(--ds-red);
        z-index: 1;
    }

    .hm-search-field input[type="text"] {
        width: 100%;
        height: 52px;
        padding: 0 48px;
        padding-inline-end: 16px;
        border-radius: 14px;
        border: 1px solid var(--ds-input-line);
        background: var(--ds-soft);
        font-size: 16px;
        color: var(--ds-ink);
        transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    }

        .hm-search-field input[type="text"]::placeholder {
            color: var(--ds-placeholder);
        }

        .hm-search-field input[type="text"]:focus {
            outline: none;
            border-color: var(--ds-red);
            background: var(--ds-surface);
            box-shadow: var(--ds-ring);
        }

/* the country picker (core/js/search-console.js toggles .open and marks .selected) */
.hm-country .custom-select {
    position: relative;
    z-index: 20;
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--ds-input-line);
    background: var(--ds-soft);
}

.hm-country .selected-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 0 14px;
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-ink);
}

.hm-country .option-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

    .hm-country .option-content img,
    .hm-country .option-icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        object-fit: cover;
        flex: none;
    }

.hm-country .dropdown-arrow {
    font-size: 11px;
    color: var(--ds-muted);
}

.hm-country .dropdown-options {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    max-height: 290px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 14px;
    background: var(--ds-surface);
    border: 1px solid var(--ds-line-soft);
    box-shadow: var(--ds-shadow-md);
}

.hm-country .custom-select.open .dropdown-options {
    display: block;
}

.hm-country .option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

    .hm-country .option-item:hover {
        background: var(--ds-soft);
    }

    .hm-country .option-item.selected {
        background: var(--ds-red-soft);
        color: var(--ds-red);
        font-weight: 700;
    }

.hm-submit {
    height: 52px;
    border-radius: 14px;
    padding: 0 28px;
}

.hm-tip {
    padding: 0 18px 14px;
    font-size: 13px;
    color: var(--ds-muted);
}

    .hm-tip i {
        color: #FAA61B;
        margin-inline-end: 4px;
    }

.hm-preview {
    border-top: 1px solid var(--ds-line-soft);
}

@keyframes hm-row {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.hm-kw {
    font-weight: 600;
    color: var(--ds-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-preview-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 10px 20px;
    border-top: 1px solid var(--ds-line-soft);
    border-radius: 0 0 26px 26px;
    background: var(--ds-surface-2);
    font-size: 12px;
    color: var(--ds-muted);
}

    .hm-preview-foot i {
        margin-inline-end: 4px;
    }

/* ---------- KPIs ---------- */
.hm-kpis-section {
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.hm-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hm-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .hm-kpi span:not(.ds-icon-tile) {
        font-size: 13px;
        line-height: 1.6;
    }

    .hm-kpi b {
        color: var(--ds-red);
    }

/* ---------- TRENDING TICKER ---------- */
/* a card inside the container, not a full-width strip */
.hm-trending-section {
    margin-top: 40px;
}

.hm-trending {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--ds-surface);
    border: 1px solid var(--ds-line-soft);
    border-radius: var(--ds-r-lg);
    box-shadow: var(--ds-shadow-sm);
}

.hm-trending-label {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
    color: #FFF;
    background: var(--ds-red);
    white-space: nowrap;
}

    .hm-trending-label .ds-live {
        background: #FFF;
        animation-name: ds-live-white;
    }

.hm-ticker {
    flex: 1;
    overflow: hidden;
    padding: 14px 0;
    -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.hm-ticker-track {
    display: flex;
    width: max-content;
    animation: hm-ticker 45s linear infinite;
}

    .hm-ticker-track:hover {
        animation-play-state: paused;
    }

.hm-ticker-set {
    display: flex;
    gap: 10px;
    padding-inline-end: 10px;
}

@keyframes hm-ticker {
    to { transform: translateX(50%); }
}

.hm-word {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--ds-r-pill);
    border: 1px solid var(--ds-line);
    background: var(--ds-surface);
    font-size: 14px;
    color: var(--ds-text) !important;
    white-space: nowrap;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

    .hm-word::before {
        content: "\f002";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 11px;
        color: #B9C0C8;
    }

    .hm-word:hover {
        border-color: var(--ds-red);
        background: var(--ds-red-soft);
        color: var(--ds-red) !important;
    }

/* ---------- 01 PLATFORMS ---------- */
.hm-platform-tabs {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
}

    .hm-platform-tabs img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

.hm-platform-panel {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 36px;
    align-items: center;
    margin-top: 32px;
    animation: hm-row .45s ease both;
}

    .hm-platform-panel[hidden] {
        display: none;
    }

.hm-platform-text p {
    font-size: 17px;
    line-height: 2.1;
    color: var(--ds-text);
}

.hm-platform-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hm-table-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-ink);
}

/* ---------- 02 PIPELINE ---------- */
.hm-pipeline {
    --k: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .hm-pipeline::before,
    .hm-pipeline::after {
        content: "";
        position: absolute;
        top: 47px;
        inset-inline-start: 16%;
        height: 2px;
        z-index: 0;
    }

    .hm-pipeline::before {
        inset-inline-end: 16%;
        background: var(--ds-line);
    }

    .hm-pipeline::after {
        width: calc(68% * var(--k));
        background: var(--ds-red);
    }

    .hm-pipeline li {
        position: relative;
        z-index: 1;
    }

        .hm-pipeline li p {
            font-size: 14px;
            color: var(--ds-muted);
            margin-top: 6px;
        }

.hm-node {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-red-soft);
    color: var(--ds-red);
    font-size: 18px;
    margin-bottom: 14px;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

.hm-pipeline li.is-on .hm-node {
    background: var(--ds-red);
    color: #FFF;
    box-shadow: 0 0 0 6px rgba(201, 29, 19, 0.1);
}

.hm-pipeline li {
    border-top: 3px solid var(--ds-red-soft);
}

    .hm-pipeline li.is-on {
        border-top-color: var(--ds-red);
    }

.hm-step-n {
    position: absolute;
    top: 24px;
    inset-inline-end: 24px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(201, 29, 19, 0.35);
}

/* ---------- 03 USE CASES ---------- */
.hm-uses {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 24px;
    align-items: stretch;
}

.hm-uses-list {
    display: grid;
    gap: 8px;
}

    .hm-uses-list button {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 14px;
        border: 1px solid var(--ds-line-soft);
        background: var(--ds-surface);
        text-align: start;
        font-size: 15px;
        font-weight: 500;
        color: var(--ds-text);
        cursor: pointer;
        transition: border-color .2s ease, background .2s ease, color .2s ease;
    }

        .hm-uses-list button i {
            width: 34px;
            height: 34px;
            flex: none;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--ds-soft);
            color: var(--ds-muted);
            font-size: 14px;
        }

        .hm-uses-list button:hover {
            border-color: var(--ds-line);
        }

        .hm-uses-list button.is-on {
            border-color: var(--ds-red);
            background: var(--ds-red);
            color: #FFF;
            font-weight: 700;
            box-shadow: 0 10px 22px rgba(201, 29, 19, 0.2);
        }

            .hm-uses-list button.is-on i {
                background: rgba(255, 255, 255, 0.18);
                color: #FFF;
            }

.hm-uses-panel {
    padding: 40px;
    border-top: 4px solid var(--ds-red);
}

    .hm-uses-panel article {
        animation: hm-row .45s ease both;
    }

        .hm-uses-panel article[hidden] {
            display: none;
        }

    .hm-uses-panel h3 {
        font-size: 24px;
        margin: 20px 0 10px;
    }

    .hm-uses-panel p {
        font-size: 16px;
        line-height: 2.1;
    }

.hm-use-art {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8574F, var(--ds-red));
    color: #FFF;
    font-size: 28px;
    box-shadow: 0 14px 30px rgba(201, 29, 19, 0.22);
}

/* ---------- 04 AI TOOLS ---------- */
.hm-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hm-tool {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease !important;
}

    .hm-tool:hover {
        transform: translateY(-4px);
        box-shadow: var(--ds-shadow-md);
    }

.hm-tool-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

    .hm-tool-body p {
        font-size: 14px;
        line-height: 1.95;
        color: var(--ds-muted);
        margin-top: 8px;
    }

.hm-tool-cta {
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--ds-r-pill);
    background: var(--ds-red-soft);
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-red);
    transition: background .2s ease, color .2s ease;
}

.hm-tool-body p {
    margin-bottom: 16px;
}

.hm-tool:hover .hm-tool-cta {
    background: var(--ds-red);
    color: #FFF;
}

.hm-tool {
    border-top: 3px solid var(--ds-red) !important;
}

    .hm-tool-cta i {
        margin-inline-start: 6px;
        transition: transform .3s ease;
    }

.hm-tool:hover .hm-tool-cta i {
    transform: translateX(calc(4px * var(--dir, 1)));
}

html[dir="rtl"] .hm-tool {
    --dir: -1;
}

/* the little screen on top of each tool card */
.hm-screen {
    position: relative;
    display: block;
    height: 160px;
    overflow: hidden;
    border-bottom: 1px solid var(--ds-line-soft);
    background-color: var(--ds-soft);
    background-image:
        linear-gradient(var(--ds-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--ds-grid) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* brand monitor: a radar with blips and your empty target */
.hm-screen-radar {
    background-image:
        radial-gradient(circle at 50% 50%, transparent 0 30px, rgba(201, 29, 19, 0.12) 30px 31px, transparent 31px 60px, rgba(201, 29, 19, 0.12) 60px 61px, transparent 61px 90px, rgba(201, 29, 19, 0.12) 90px 91px, transparent 91px),
        linear-gradient(var(--ds-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--ds-grid) 1px, transparent 1px);
    background-size: auto, 20px 20px, 20px 20px;
}

.hm-mini-sweep {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(201, 29, 19, 0.28), rgba(201, 29, 19, 0) 22%, rgba(201, 29, 19, 0) 100%);
    animation: hm-sweep 3.2s linear infinite;
}

.hm-screen-radar b,
.hm-screen-radar em {
    position: absolute;
    left: var(--x);
    top: var(--y);
}

.hm-screen-radar b {
    width: 9px;
    height: 9px;
    margin: -4px;
    border-radius: 50%;
    background: var(--ds-gpt);
    animation: hm-blip 3.2s ease-out infinite;
}

    .hm-screen-radar b:nth-of-type(2) { background: var(--ds-gem); animation-delay: -1.1s; }
    .hm-screen-radar b:nth-of-type(3) { animation-delay: -2.2s; }

.hm-screen-radar em {
    width: 24px;
    height: 24px;
    margin: -12px;
    border: 2px dashed var(--ds-red);
    border-radius: 50%;
    animation: hm-sweep 6s linear infinite;
}

@keyframes hm-blip {
    0% { box-shadow: 0 0 0 0 rgba(16, 163, 127, 0.5); opacity: 1; }
    60% { box-shadow: 0 0 0 12px rgba(16, 163, 127, 0); opacity: .5; }
    100% { opacity: 1; }
}

/* content generator: lines writing themselves */
.hm-screen-write {
    padding: 26px 28px;
}

    .hm-screen-write i {
        display: block;
        height: 9px;
        margin-bottom: 14px;
        border-radius: 6px;
        background: var(--ds-skeleton);
        width: 0;
        animation: hm-write 5s ease-in-out infinite;
    }

        .hm-screen-write i:nth-child(1) { --w: 46%; background: var(--ds-ink); height: 12px; }
        .hm-screen-write i:nth-child(2) { --w: 92%; animation-delay: .5s; }
        .hm-screen-write i:nth-child(3) { --w: 84%; animation-delay: 1s; }
        .hm-screen-write i:nth-child(4) { --w: 60%; animation-delay: 1.5s; }

        .hm-screen-write i.is-caret {
            width: 2px;
            height: 16px;
            background: var(--ds-red);
            animation: hm-caret .9s steps(2, start) infinite;
        }

@keyframes hm-write {
    0% { width: 0; }
    25%, 85% { width: var(--w); }
    100% { width: 0; }
}

@keyframes hm-caret {
    to { visibility: hidden; }
}

/* link radar: a site and the links that point at it */
.hm-screen-links svg {
    display: block;
    width: 100%;
    height: 100%;
    padding: 16px;
}

.hm-screen-links path {
    fill: none;
    stroke: #C9CED5;
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    animation: hm-flow 1.4s linear infinite;
}

.hm-screen-links circle {
    fill: var(--ds-surface);
    stroke: var(--ds-ok-bright);
    stroke-width: 2.5;
}

    .hm-screen-links circle.is-main {
        fill: var(--ds-red);
        stroke: #FFF;
        stroke-width: 3;
    }

    .hm-screen-links circle.is-bad {
        stroke: var(--ds-red);
        stroke-dasharray: 3 2;
    }

@keyframes hm-flow {
    to { stroke-dashoffset: -16; }
}

/* ---------- AJEBHOM BAND: a red band where the robot introduces itself ---------- */
.hm-band-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 70% 120% at 50% 0%, #D8261B 0%, var(--ds-red) 45%, var(--ds-red-dark) 100%);
}

    .hm-band-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
        background-size: 40px 40px;
        pointer-events: none;
    }

/* ---------- 05 PRICING ---------- */
.hm-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
}

.hm-plan {
    display: flex;
    flex-direction: column;
    padding: 28px;
}

    .hm-plan.is-best {
        border: 2px solid var(--ds-red);
        box-shadow: 0 24px 60px rgba(201, 29, 19, 0.12);
    }

.hm-plan-top {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ds-line-soft);
}

/* the paid plan's head is a red band */
.hm-plan.is-best {
    padding-top: 0;
    overflow: hidden;
}

    .hm-plan.is-best .hm-plan-top {
        margin: 0 -28px;
        padding: 24px 28px 20px;
        border-bottom: none;
        background: radial-gradient(ellipse 80% 140% at 50% 0%, #D8261B 0%, var(--ds-red) 55%, var(--ds-red-dark) 100%);
    }

        .hm-plan.is-best .hm-plan-name,
        .hm-plan.is-best .hm-plan-price small {
            color: #FFDCD9;
        }

        .hm-plan.is-best .hm-plan-price b {
            color: #FFF !important;
        }

.hm-plan-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ds-muted);
}

.hm-plan-price b {
    font-size: 44px;
    line-height: 1.3;
    color: var(--ds-ink);
}

.hm-plan.is-best .hm-plan-price b {
    color: var(--ds-red);
}

.hm-plan-price small {
    font-size: 15px;
    color: var(--ds-muted);
}

.hm-plan-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px;
}

    .hm-plan-list li {
        position: relative;
        padding: 6px 0;
        padding-inline-start: 30px;
        font-size: 14px;
    }

        .hm-plan-list li::before {
            position: absolute;
            inset-inline-start: 0;
            top: 9px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            font-size: 10px;
        }

        .hm-plan-list li.is-yes::before {
            content: "\f00c";
            background: var(--ds-ok-soft);
            color: var(--ds-ok);
        }

        .hm-plan-list li.is-no {
            color: #A3AAB3;
        }

            .hm-plan-list li.is-no::before {
                content: "\f00d";
                background: var(--ds-line-soft);
                color: #A3AAB3;
            }

    .hm-plan-list strong {
        margin: 0 4px;
        color: var(--ds-red);
    }

.hm-plan-foot {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

/* the plan period: radio inputs drawn as a segmented switch */
.hm-plan-period {
    display: flex;
}

    .hm-plan-period input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .hm-plan-period label {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        padding: 0 14px;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ds-text);
        cursor: pointer;
        transition: background .2s ease, color .2s ease;
    }

    .hm-plan-period input:checked + label,
    .hm-plan-period .is-static {
        background: var(--ds-ink);
        color: var(--ds-surface);
    }

    .hm-plan-period .is-static {
        cursor: default;
    }

    .hm-plan-period input:focus-visible + label {
        box-shadow: var(--ds-ring);
    }

.hm-plan-price del {
    margin-inline-end: 6px;
    font-size: 18px;
    color: #FFDCD9;
}

.hm-plan-off {
    display: inline-block;
    margin-inline-start: 8px;
    padding: 0 8px;
    border-radius: 7px;
    background: #FFF;
    font-size: 13px;
    font-weight: 700;
    color: var(--ds-red);
}

/* ---------- NEWSLETTER ---------- */
.hm-news {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    padding: 44px;
    border-radius: var(--ds-r-xl);
    background: radial-gradient(circle at 15% 20%, #DE3328 0%, var(--ds-red) 40%, var(--ds-red-dark) 100%);
    box-shadow: 0 30px 70px rgba(201, 29, 19, 0.22);
}

.hm-news-title {
    color: #FFF !important;
    font-size: 28px;
    margin: 0 !important;
}

    .hm-news-title span {
        text-decoration: underline;
        text-decoration-thickness: 3px;
        text-underline-offset: 8px;
    }

.hm-news-text {
    margin-top: 10px !important;
    color: #FFDCD9;
    font-size: 15px;
    line-height: 2;
}

.hm-news-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    padding-inline-start: 20px;
    border-radius: var(--ds-r-pill);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

    .hm-news-form > i {
        color: #FFF;
    }

    .hm-news-form input {
        flex: 1;
        min-width: 0;
        height: 44px;
        border: none;
        background: none;
        color: #FFF;
        font-size: 15px;
    }

        .hm-news-form input::placeholder {
            color: rgba(255, 255, 255, 0.72);
        }

        .hm-news-form input:focus {
            outline: none;
        }

/* ============================================================
   Ajebhom on the page: in the platform panels, the band, on the paid plan and the newsletter
   ============================================================ */


/* ---- 01 platforms: Google with volume only (no difficulty), the others as the words people type ---- */
.hm-table-two .ds-tr {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.hm-typed {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .hm-typed li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        border-top: 1px solid var(--ds-line-soft);
    }

        .hm-typed li > i {
            font-size: 12px;
            color: var(--ds-muted);
        }

    .hm-typed .hm-typed-head {
        padding-block: 12px;
        border-top: 0;
        background: var(--ds-tint);
        font-size: 12.5px;
        font-weight: 700;
        color: var(--ds-red);
    }

/* ---- Ajebhom's band ---- */
.hm-botband {
    position: relative;
    display: flex;
    align-items: center;
    gap: 44px;
    max-width: 920px;
    margin: 0 auto;
}

.hm-botband-bot {
    position: relative;
    flex: 0 0 230px;
    height: 230px;
}

    .hm-botband-bot img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
    }

        .hm-botband-bot img.is-on {
            opacity: 1;
        }

.hm-botband-text .ds-h2 {
    margin: 0 0 12px !important;
    color: #FFF !important;
}

    .hm-botband-text .ds-h2 .colored-text {
        color: #FFF !important;
        background: none !important;
        text-decoration: underline;
        text-decoration-thickness: 3px;
        text-underline-offset: 8px;
    }

.hm-botband-text p {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 2;
    color: #FFDCD9;
}

/* ---- on the paid plan: cheering in the corner of its red head ---- */
.hm-plan.is-best {
    position: relative;
}

.hm-plan-bot {
    position: absolute;
    top: 4px;
    inset-inline-end: 12px;
    width: 104px;
    height: 104px;
    pointer-events: none;
}

/* ---- on the newsletter: peeking over its top edge (the lower part is cut at the edge) ---- */
.hm-news {
    position: relative;
}

.hm-news-bot {
    position: absolute;
    top: -82px;
    inset-inline-end: 64px;
    width: 126px;
    height: 126px;
    clip-path: inset(0 0 35% 0);
    pointer-events: none;
}

@media (max-width: 767px) {
    .hm-botband {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hm-botband-bot {
        flex-basis: auto;
        width: 180px;
        height: 180px;
    }

    .hm-botband-text p {
        font-size: 15px;
    }

    .hm-plan-bot {
        width: 84px;
        height: 84px;
    }

    .hm-news-bot {
        top: -66px;
        inset-inline-end: 24px;
        width: 100px;
        height: 100px;
    }
}

/* ---------- SIGN-UP GIFT: a dialog for guests (signup-gift.js opens it) ----------
   Ajebhom cheers over a red band; the gift as cards; one call to sign up. */
.hm-gift {
    width: min(480px, calc(100vw - 32px));
    max-height: none;
    margin-top: max(90px, 10vh);
    padding: 0;
    overflow: visible;
    border: none;
    border-radius: var(--ds-r-xl);
    background: var(--ds-surface);
    color: var(--ds-text);
    box-shadow: var(--ds-shadow-lg);
}

    .hm-gift[open] {
        animation: hm-gift-pop .45s cubic-bezier(.34, 1.56, .64, 1) both;
    }

    .hm-gift::backdrop {
        background: rgba(15, 13, 14, 0.6);
        backdrop-filter: blur(3px);
    }

.hm-gift-head {
    position: relative;
    padding: 74px 28px 26px;
    border-radius: var(--ds-r-xl) var(--ds-r-xl) 0 0;
    text-align: center;
    color: #FFF;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, .22) 0 3px, transparent 4px),
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, .25) 0 4px, transparent 5px),
        radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .18) 0 3px, transparent 4px),
        radial-gradient(circle at 28% 80%, rgba(255, 255, 255, .15) 0 2px, transparent 3px),
        linear-gradient(135deg, #E23B2F 0%, var(--ds-red) 55%, #A0120A 100%);
}

/* Ajebhom rises out of the band */
.hm-gift-bot {
    position: absolute;
    top: -78px;
    left: 50%;
    width: 140px;
    height: 140px;
    margin-left: -70px;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25));
    animation: hm-gift-bob 3s ease-in-out infinite;
}

.hm-gift-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #FFF;
    cursor: pointer;
}

    .hm-gift-close:hover {
        background: rgba(255, 255, 255, .32);
    }

.hm-gift-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .18);
    font-size: 13px;
    font-weight: 700;
}

.hm-gift-head h2 {
    margin: 10px 0 6px !important;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.45;
    color: #FFF;
}

.hm-gift-head p {
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .9);
}

.hm-gift-body {
    display: grid;
    gap: 14px;
    padding: 22px 26px 24px;
}

.hm-gift-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .hm-gift-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        background: var(--ds-surface-2);
        border: 1px solid var(--ds-line-soft);
        font-size: 15.5px;
        font-weight: 600;
        line-height: 1.6;
        color: var(--ds-ink);
        animation: hm-gift-in .4s ease both;
    }

        .hm-gift-list li:nth-child(2) { animation-delay: .08s; }
        .hm-gift-list li:nth-child(3) { animation-delay: .16s; }

.hm-gift-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ds-red-soft);
    font-size: 16px;
    color: var(--ds-red);
}

.hm-gift-cta {
    width: 100%;
    min-height: 52px;
    font-size: 17px;
}

.hm-gift-note,
.hm-gift-login {
    margin: 0 !important;
    font-size: 13.5px;
    text-align: center;
    color: var(--ds-muted);
}

    .hm-gift-login a {
        font-weight: 700;
        color: var(--ds-red);
    }

@keyframes hm-gift-pop {
    from { opacity: 0; transform: translateY(16px) scale(.94); }
}

@keyframes hm-gift-bob {
    50% { transform: translateY(-6px) rotate(-2deg); }
}

@keyframes hm-gift-in {
    from { opacity: 0; transform: translateY(6px); }
}

@media (max-width: 575px) {
    .hm-gift-head {
        padding: 66px 18px 20px;
    }

    .hm-gift-bot {
        top: -64px;
        width: 116px;
        height: 116px;
        margin-left: -58px;
    }

    .hm-gift-head h2 {
        font-size: 21px;
    }

    .hm-gift-body {
        padding: 18px 16px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-gift[open],
    .hm-gift-bot,
    .hm-gift-list li {
        animation: none;
    }
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .hm-tools {
        grid-template-columns: 1fr 1fr;
    }

        .hm-tools .hm-tool:last-child {
            grid-column: 1 / -1;
        }
}

@media (max-width: 991px) {
    .hm-hero {
        padding: 44px 0 70px;
    }

    .hm-search-row {
        grid-template-columns: 1fr;
    }

    .hm-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-platform-panel,
    .hm-uses,
    .hm-news {
        grid-template-columns: 1fr;
    }

    .hm-pipeline {
        grid-template-columns: 1fr;
    }

        .hm-pipeline::before,
        .hm-pipeline::after {
            display: none;
        }

    .hm-uses-list {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hm-uses-panel {
        padding: 26px;
    }

    .hm-plans {
        grid-template-columns: 1fr;
    }

    .hm-news {
        padding: 30px 24px;
    }
}

@media (max-width: 767.98px) {
    .hm-tools {
        grid-template-columns: 1fr;
    }

    .hm-kpi {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

        .hm-kpi b {
            font-size: 22px;
        }

        .hm-kpi .ds-icon-tile {
            width: 36px;
            height: 36px;
            font-size: 14px;
        }

    .hm-console-top {
        justify-content: center;
    }

    .hm-tabs {
        width: 100%;
    }

    .hm-live-tag {
        display: none;
    }
    .hm-trending {
        flex-direction: column;
        align-items: stretch;
    }

    .hm-trending-label {
        padding: 10px 16px;
    }

    .hm-platform-tabs {
        width: 100%;
    }

    .hm-news-form {
        flex-wrap: wrap;
        border-radius: 22px;
        padding: 10px;
    }

        .hm-news-form > i {
            display: none;
        }

        .hm-news-form input,
        .hm-news-form .ds-btn {
            flex: 1 1 100%;
        }
}

@media (prefers-reduced-motion: reduce) {
    .hm-mini-sweep,
    .hm-screen-radar b,
    .hm-screen-radar em,
    .hm-screen-write i,
    .hm-screen-links path,
    .hm-ticker-track {
        animation: none;
    }

    .hm-screen-write i {
        width: var(--w);
    }
}

/* ---------- dark theme: what the tokens alone do not cover ---------- */
/* balance at night: small things (buttons, tabs, labels, LEDs) stay full red; the large red areas turn into
   deep red-black bands with a red edge and glow, so red stays an accent and never floods the page */
:root[data-theme="dark"] .hm-hero::before {
    background:
        radial-gradient(ellipse 40% 38% at 50% 66%, rgba(232, 56, 45, 0.14) 0%, rgba(232, 56, 45, 0) 70%),
        radial-gradient(ellipse 70% 60% at 50% 62%, rgba(232, 56, 45, 0.05) 0%, transparent 70%);
}

:root[data-theme="dark"] .hm-console {
    border-color: var(--ds-line-soft);
    border-top-color: var(--ds-red);
    box-shadow: 0 0 0 1px rgba(232, 56, 45, 0.06), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(232, 56, 45, 0.08);
}

:root[data-theme="dark"] .hm-screen-links path {
    stroke: #4A4045;
}

:root[data-theme="dark"] .hm-plan-list li.is-no,
:root[data-theme="dark"] .hm-plan-list li.is-no::before {
    color: #5E5558;
}

/* the robot's band: a red-black band with a glowing red edge */
:root[data-theme="dark"] .hm-band-section {
    background:
        radial-gradient(ellipse 60% 90% at 50% 0%, rgba(232, 56, 45, 0.22) 0%, rgba(232, 56, 45, 0) 70%),
        linear-gradient(180deg, #1C1012 0%, #120B0D 100%);
    border-block: 1px solid #3B2325;
}

:root[data-theme="dark"] .hm-plan.is-best .hm-plan-price del {
    color: var(--ds-muted);
}

/* the paid plan: a dark head with a red line, the price in red */
:root[data-theme="dark"] .hm-plan.is-best {
    border-color: rgba(232, 56, 45, 0.7);
    box-shadow: 0 0 0 1px rgba(232, 56, 45, 0.15), 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(232, 56, 45, 0.1);
}

    :root[data-theme="dark"] .hm-plan.is-best .hm-plan-top {
        background: linear-gradient(180deg, #2A1416 0%, #1C1012 100%);
        border-bottom: 1px solid #3B2325;
    }

    :root[data-theme="dark"] .hm-plan.is-best .hm-plan-price b {
        color: var(--ds-red) !important;
    }

    :root[data-theme="dark"] .hm-plan.is-best .hm-plan-name,
    :root[data-theme="dark"] .hm-plan.is-best .hm-plan-price small {
        color: var(--ds-text);
    }

/* the newsletter: red-black with a red glow; the button stays the one red thing */
:root[data-theme="dark"] .hm-news {
    background:
        radial-gradient(circle at 12% 15%, rgba(232, 56, 45, 0.3) 0%, rgba(232, 56, 45, 0) 55%),
        linear-gradient(135deg, #1F1214 0%, #160E10 100%);
    border: 1px solid #3B2325;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .hm-news-text {
    color: var(--ds-text);
}

:root[data-theme="dark"] .hm-news-form {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--ds-line);
}

:root[data-theme="dark"] .hm-news .ds-btn-white {
    background: var(--ds-red);
    color: #FFF !important;
}

/* the trending label keeps its red but a step deeper, next to the dark ticker */
:root[data-theme="dark"] .hm-trending-label {
    background: linear-gradient(90deg, #C91D13, #A8150C);
}
