/* ---------------------------------------------------------------------------
   Main page (index.html): the product tour, the numbers strip and one row
   per capability with a mock-up of its result.

   Same tokens as the showcase page. Everything is `hm-` prefixed because the
   page also carries Webflow, Tailwind and Geist class names.
   --------------------------------------------------------------------------- */

.hm {
    --hm-raised: hsla(0, 0%, 100%, 0.024);
    --hm-border: hsla(0, 0%, 100%, 0.12);
    --hm-border-strong: hsla(0, 0%, 100%, 0.22);
    --hm-fg: #ededed;
    --hm-muted: #a1a1a1;
    --hm-faint: #7d7d7d;
    --hm-accent: #cf362d;
    --hm-accent-text: #f0786f;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 16px 24px;
    box-sizing: border-box;
    color: var(--hm-fg);
    text-align: left;
}

.hm *,
.hm *::before,
.hm *::after {
    box-sizing: border-box;
}

.hm-head {
    max-width: 680px;
    margin: 0 auto 28px;
    text-align: center;
}

.hm-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hm-accent-text);
}

.hm-head h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.hm-head p {
    margin: 12px auto 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hm-muted);
}

/* ---- product tour ------------------------------------------------------- */
.hm-tour {
    max-width: 1180px;
    padding-top: 88px;
}

.hm-tour-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    background: var(--hm-raised);
    scrollbar-width: none;
}

.hm-tour-tabs::-webkit-scrollbar {
    display: none;
}

.hm-tour-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hm-muted);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.hm-tour-tabs button i {
    font-size: 13px;
}

.hm-tour-tabs button span {
    padding: 1px 6px;
    border-radius: 999px;
    background: hsla(0, 0%, 100%, 0.06);
    color: var(--hm-faint);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.hm-tour-tabs button:hover {
    color: var(--hm-fg);
}

.hm-tour-tabs button[aria-selected='true'] {
    background: hsla(0, 0%, 100%, 0.08);
    color: var(--hm-fg);
    box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.08);
}

.hm-tour-tabs button[aria-selected='true'] i {
    color: var(--hm-accent-text);
}

.hm-tour-tabs button:focus-visible {
    outline: 2px solid var(--hm-accent-text);
    outline-offset: 1px;
}

.hm-tour-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

/* A browser window around the recording. */
.hm-window {
    overflow: hidden;
    border: 1px solid var(--hm-border-strong);
    border-radius: 14px;
    background: #0a0a0a;
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(0, 0, 0, 0.6);
}

.hm-window-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid var(--hm-border);
    background: #111;
}

.hm-dots {
    display: flex;
    gap: 6px;
}

.hm-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.14);
}

.hm-url {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 auto;
    padding: 4px 14px;
    border-radius: 7px;
    background: hsla(0, 0%, 100%, 0.05);
    color: var(--hm-faint);
    font-size: 12px;
}

.hm-url i {
    font-size: 12px;
}

.hm-url b {
    color: var(--hm-fg);
    font-weight: 500;
}

.hm-rec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hm-faint);
    font-size: 12px;
    white-space: nowrap;
}

.hm-rec::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hm-accent);
    box-shadow: 0 0 0 3px rgba(207, 54, 45, 0.2);
}

.hm-window-body video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
}

.hm-tour-note {
    padding: 20px;
    border: 1px solid var(--hm-border);
    border-radius: 14px;
    background: var(--hm-raised);
}

.hm-tour-what {
    margin: 0 0 14px;
    color: var(--hm-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.hm-tour-what b {
    display: block;
    color: var(--hm-fg);
    font-size: 1rem;
    font-weight: 600;
}

.hm-tour-note ul,
.hm-points {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.hm-tour-note li,
.hm-points li {
    position: relative;
    padding: 0 0 0 18px;
    margin: 0 0 9px;
    color: var(--hm-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.hm-tour-note li::before,
.hm-points li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hm-accent);
}

.hm-tour-note li b,
.hm-points li b {
    color: var(--hm-fg);
    font-weight: 500;
}

/* ---- numbers: one quiet strip ------------------------------------------- */
.hm-numbers {
    padding-top: 56px;
}

.hm-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0;
    border-top: 1px solid var(--hm-border);
    border-bottom: 1px solid var(--hm-border);
}

.hm-strip > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 16px;
    border-right: 1px solid var(--hm-border);
}

.hm-strip > div:last-child {
    border-right: 0;
}

.hm-strip dd {
    order: -1;
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hm-strip dd small {
    margin-left: 1px;
    font-size: max(12px, 0.55em);
    color: var(--hm-muted);
}

.hm-strip dt {
    color: var(--hm-faint);
    font-size: 0.8125rem;
}

.hm-strip-note {
    margin: 14px auto 0;
    max-width: 640px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--hm-faint);
}

/* ---- capabilities: text + a still of the result --------------------------- */
.hm-caps {
    padding-top: 96px;
}

.hm-caps .hm-head {
    margin-bottom: 56px;
}

.hm-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: center;
    padding: 40px 0;
}

.hm-row + .hm-row {
    border-top: 1px solid hsla(0, 0%, 100%, 0.06);
}

.hm-row-flip .hm-row-text {
    order: 2;
}

.hm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--hm-accent-text);
    font-size: 0.8125rem;
    font-weight: 500;
}

.hm-row-text h3 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hm-row-text > p {
    margin: 0 0 18px;
    color: var(--hm-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.hm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hm-fg) !important;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.hm-link i {
    font-size: 12px;
    transition: transform 0.15s ease;
}

.hm-link:hover i {
    transform: translateX(3px);
}

.hm-row-text .hm-links {
    gap: 22px;
}

/* The mock-up frame: a result card as the product draws it. */
.hm-mock {
    position: relative;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--hm-border);
    border-radius: 16px;
    background:
        linear-gradient(180deg, hsla(0, 0%, 100%, 0.035), hsla(0, 0%, 100%, 0.01)),
        #0b0b0b;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
    font-size: 13px;
    color: var(--hm-fg);
    pointer-events: none;
    user-select: none;
}

.hm-mock-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 10px;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: #0a0a0a;
}

.hm-mock-bar b {
    font-weight: 600;
}

.hm-mock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hm-accent-text);
}

.hm-pill {
    padding: 2px 8px;
    border: 1px solid var(--hm-border);
    border-radius: 999px;
    color: var(--hm-muted);
    font-size: 12px;
}

.hm-mock-tag {
    margin-left: auto;
    color: var(--hm-faint);
    font-size: 12px;
}

.hm-mock-email,
.hm-phone {
    display: grid;
    gap: 10px;
}

.hm-id {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: #0e0e0e;
}

.hm-id b,
.hm-profile-who b {
    display: block;
    font-weight: 600;
}

.hm-id small,
.hm-profile-who small {
    color: var(--hm-faint);
    font-size: 12px;
}

.hm-avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3a1d1b, #1c1c1c);
    color: #f3c2bd;
    font-size: 13px;
    font-weight: 600;
}

.hm-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
}

.hm-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hm-kpis > div {
    padding: 10px 12px;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: #0e0e0e;
}

.hm-kpis b {
    display: block;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hm-kpis small {
    color: var(--hm-faint);
    font-size: 12px;
}

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

.hm-breaches {
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: #0e0e0e;
}

.hm-breaches > div {
    display: grid;
    grid-template-columns: 26px auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
}

.hm-breaches > div + div {
    border-top: 1px solid hsla(0, 0%, 100%, 0.06);
}

.hm-b-ic {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(207, 54, 45, 0.12);
    color: var(--hm-accent-text);
    font-size: 12px;
    font-weight: 700;
}

.hm-breaches small {
    overflow: hidden;
    color: var(--hm-faint);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hm-breaches time {
    color: var(--hm-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.hm-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: #0e0e0e;
}

.hm-logos img {
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 7px;
    background: #fff;
    object-fit: contain;
}

.hm-logos span {
    margin-left: 2px;
    color: var(--hm-muted);
    font-size: 12px;
}

/* Username */
.hm-profiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hm-profile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: #0e0e0e;
}

.hm-profile-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.hm-profile-top img,
.hm-apps img {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

.hm-profile-who {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.hm-profile-who > div {
    min-width: 0;
}

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

.hm-profile dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 8px;
    margin: auto 0 0;
    padding-top: 8px;
    border-top: 1px solid hsla(0, 0%, 100%, 0.06);
    font-size: 12px;
}

.hm-profile dt {
    color: var(--hm-faint);
}

.hm-profile dd {
    margin: 0;
    text-align: right;
}

.hm-shared {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 10px;
    background: rgba(74, 222, 128, 0.06);
    color: #b7f0c9;
    font-size: 12px;
}

/* Phone */
.hm-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hm-apps > div {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: #0e0e0e;
}

.hm-apps b {
    font-weight: 500;
}

.hm-yes,
.hm-no {
    margin-left: auto;
    font-size: 12px;
    white-space: nowrap;
}

.hm-yes {
    color: #86efac;
}

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

.hm-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 10px;
    background: rgba(74, 222, 128, 0.06);
}

.hm-check i {
    color: #4ade80;
    font-size: 18px;
}

.hm-check b {
    display: block;
    font-weight: 600;
}

.hm-check small {
    color: var(--hm-muted);
    font-size: 12px;
}

/* Canvas */
.hm-graph {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background-color: #0a0a0a;
    background-image: radial-gradient(hsla(0, 0%, 100%, 0.09) 1px, transparent 1px);
    background-size: 18px 18px;
}

.hm-edges path {
    fill: none;
    stroke: hsla(0, 0%, 100%, 0.18);
    stroke-width: 1.2;
}

.hm-node circle {
    fill: color-mix(in srgb, var(--n, #a1a1a1) 16%, #0a0a0a);
    stroke: var(--n, hsla(0, 0%, 100%, 0.3));
    stroke-width: 1.5;
}

.hm-node text {
    fill: var(--n, #d4d4d4);
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
}

.hm-node .hm-node-label {
    fill: var(--hm-muted);
    font-size: 12px;
    font-weight: 400;
}

.hm-node-main circle {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--n) 45%, transparent));
}

.hm-node-main text {
    font-size: 15px;
}

.hm-node-main .hm-node-label {
    fill: var(--hm-fg);
    font-size: 12px;
    font-weight: 600;
}

/* Monitoring, bulk and API */
.hm-mock-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.hm-mini {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: #0e0e0e;
}

.hm-mini-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--hm-muted);
    font-size: 12px;
    font-weight: 500;
}

.hm-badge {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(207, 54, 45, 0.16);
    color: var(--hm-accent-text);
    font-size: 12px;
}

.hm-muted {
    margin-left: auto;
    color: var(--hm-faint);
}

.hm-alert {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
}

.hm-alert span {
    grid-column: 1;
    color: var(--hm-muted);
    font-size: 12px;
}

.hm-alert em {
    color: var(--hm-fg);
    font-style: normal;
}

.hm-alert time {
    grid-column: 2;
    grid-row: 1;
    color: var(--hm-faint);
    font-size: 12px;
}

.hm-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: hsla(0, 0%, 100%, 0.08);
}

.hm-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #4ade80;
}

.hm-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--hm-faint);
    font-size: 12px;
}

.hm-code pre {
    margin: 0;
    overflow: hidden;
    color: #d4d4d4;
    font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: pre;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
}

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

.hm-s {
    color: #a5d6a7;
}

.hm-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.hm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--hm-border-strong);
    border-radius: 8px;
    color: var(--hm-fg) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.hm-btn:hover {
    background: hsla(0, 0%, 100%, 0.06);
}

.hm-btn-primary {
    background: #ededed;
    border-color: #ededed;
    color: #0a0a0a !important;
}

.hm-btn-primary:hover {
    background: #cfcfcf;
    border-color: #cfcfcf;
}

.hm-note {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--hm-faint);
}

@media (max-width: 960px) {
    .hm-tour-stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .hm-strip > div:nth-child(3) {
        border-right: 0;
    }

    .hm-strip > div:nth-child(-n + 3) {
        border-bottom: 1px solid var(--hm-border);
    }

    .hm-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 32px 0;
    }

    .hm-row-flip .hm-row-text {
        order: 0;
    }
}

@media (max-width: 560px) {
    .hm {
        padding-top: 48px;
    }

    .hm-tour-tabs {
        width: 100%;
        justify-content: flex-start;
    }

    .hm-tour-tabs button span,
    .hm-rec {
        display: none;
    }

    .hm-window {
        border-radius: 10px;
    }

    .hm-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-strip > div,
    .hm-strip > div:nth-child(3) {
        padding: 16px 12px;
        border-right: 1px solid var(--hm-border);
        border-bottom: 1px solid var(--hm-border);
    }

    .hm-strip > div:nth-child(2n) {
        border-right: 0;
    }

    .hm-strip > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .hm-caps .hm-head {
        margin-bottom: 24px;
    }

    .hm-mock {
        padding: 10px;
    }

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

    .hm-profile:nth-child(3) {
        display: none;
    }

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

    .hm-breaches > div {
        grid-template-columns: 26px 1fr auto;
    }

    .hm-breaches small {
        display: none;
    }

    .hm-node .hm-node-label {
        font-size: 13px;
    }
}

/* "TraceFind vs. The Competition" on phones: one compact row per tool,
   logo on the left and its numbers on the right, instead of a tall
   centred card per tool. */
@media (max-width: 767px) {
    #comparison .grid {
        gap: 12px !important;
    }

    #comparison .grid > div {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 2px;
        align-items: center;
        padding: 14px 16px;
        text-align: left;
    }

    #comparison .grid > div > div:first-child {
        grid-row: 1 / span 4;
        width: 48px;
        height: 48px;
        margin: 0;
        padding: 12px;
        align-self: center;
    }

    #comparison .grid > div > p {
        grid-column: 2;
        margin: 0;
        line-height: 1.45;
    }

    /* Each figure on one line: label left, value right. */
    #comparison .grid > div > p.text-sm {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 10px;
        font-size: 13px;
    }

    /* The label stays on one line; only the value may wrap (right-aligned). */
    #comparison .grid > div > p.text-sm {
        white-space: nowrap;
    }

    #comparison .grid > div > p.text-sm strong {
        min-width: 0;
        white-space: normal;
        text-align: right;
    }

    #comparison .grid > div > p.font-medium {
        margin-bottom: 2px;
    }
}

/* "TraceFind vs. The Competition" on tablets and desktops: compact cards,
   logo and name on top, the three figures side by side underneath, in a
   narrower grid so the cards don't stretch into empty space. */
@media (min-width: 768px) {
    #comparison .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
        max-width: 900px;
        margin: 0 auto;
    }

    #comparison .grid > div {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: 36px auto;
        gap: 16px 12px;
        padding: 20px 22px;
        text-align: left;
    }

    /* Logo + name share the first row. */
    #comparison .grid > div > div:first-child {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin: 0;
        padding: 0;
        border-radius: 10px;
    }

    #comparison .grid > div > div:first-child img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    #comparison .grid > div > p.font-medium {
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: center;
        margin: 0 0 0 48px;
        font-size: 15px;
    }

    /* Figures: number on top, label below. */
    #comparison .grid > div > p.text-sm {
        grid-row: 2;
        display: flex;
        flex-direction: column-reverse;
        gap: 2px;
        margin: 0;
        padding-top: 14px;
        border-top: 1px solid hsla(0, 0%, 100%, 0.08);
        font-size: 12px;
        line-height: 1.3;
    }

    #comparison .grid > div > p.text-sm strong {
        font-size: 20px;
        font-weight: 600;
        letter-spacing: -0.02em;
        line-height: 1.15;
        font-variant-numeric: tabular-nums;
    }

    #comparison .grid > div > p.text-sm strong small {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0;
    }
}

@media (min-width: 1100px) {
    #comparison .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        max-width: 1080px;
    }
}

/* "TraceFind vs. The Competition": room around the example query so it
   doesn't crowd the header above and the cards below. */
#comparison .hm-cmp-query {
    margin-top: 56px;
    margin-bottom: 56px;
}

#comparison .hm-cmp-query > div {
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
}

@media (max-width: 767px) {
    #comparison .hm-cmp-query {
        margin-top: 32px;
        margin-bottom: 32px;
    }
}

/* Every qualifier like "(email)" in the comparison cards: 12px floor at any width. */
#comparison small {
    font-size: max(12px, 0.8em);
}

/* ---- FAQ (written by tools/build-pages.mjs from tools/pages/content.mjs) -- */
.hm-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.hm-faq-list details {
    padding: 16px 18px;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 12px;
    background: hsla(0, 0%, 100%, 0.02);
}

.hm-faq-list summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.45;
}

.hm-faq-list p {
    margin: 10px 0 0;
    color: var(--hm-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.hm-faq-list a {
    color: var(--hm-accent-text);
    white-space: nowrap;
}
