/* ================================================================== */
/*  Concrete Monitoring product page                                  */
/* ================================================================== */

.cm-page {
    padding: 72px 0 96px;
}
@media (min-width: 768px) {
    .cm-page { padding: 108px 0 120px; }
}

/* Shared inner container — padding-inline 24px lives on the SECTION (matches
   the about-page model) so titles align across pages on wide viewports. */
.cm-hero,
.cm-valueprops,
.cm-how,
.cm-variants,
.cm-app,
.cm-usecases,
.cm-final {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---------- Section helpers ---------- */

.cm-section__title {
    margin: 0 0 12px;
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    text-wrap: balance;
    background-image: var(--title-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.cm-section__lead {
    margin: 0 0 32px;
    font-size: var(--fs-lead);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

/* Standard placeholder label inside gradient boxes */
.cm-placeholder__label {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-tight);
    color: var(--text-on-dark);
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ---------- Buttons ---------- */

.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    line-height: 1.2;
    border-radius: var(--radius-base);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-tight);
    border: 1px solid transparent;
    transition:
        background-color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-med) var(--ease-out);
}
.cm-btn--primary {
    background: var(--brand-fill);
    color: #ffffff;
    border-color: var(--brand-fill);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset,
                0 8px 18px -10px rgba(4, 44, 113, 0.55);
}
.cm-btn--primary:hover {
    background: var(--brand-fill-600);
    border-color: var(--brand-fill-600);
    transform: translateY(-1px);
}
.cm-btn--secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.cm-btn--secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.cm-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: var(--fw-medium);
    font-size: var(--fs-body-sm);
    transition: color var(--dur-fast) var(--ease-out);
}
.cm-link:hover {
    color: var(--accent-amber);
    text-decoration: underline;
}

/* ---------- 1. Hero ---------- */

.cm-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    /* Layout values mirror .sw-hero so the two product-hero pages match. */
    padding-top: 8px;
    padding-bottom: 24px;
    margin-bottom: 56px;
}
@media (min-width: 920px) {
    .cm-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 48px;
        padding-top: 16px;
        padding-bottom: 40px;
    }
}
.cm-hero__text { min-width: 0; }
.cm-hero__eyebrow {
    margin: 0 0 12px;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--accent-amber);
}
.cm-hero__title {
    margin: 0 0 16px;
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    color: var(--text);
    text-wrap: balance;
}
.cm-hero__lead {
    margin: 0 0 16px;
    max-width: 56ch;
    font-size: var(--fs-lead);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}
.cm-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 4px 0;
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--brand, #1a4bb5);
}
.cm-hero__chip-icon {
    flex-shrink: 0;
    color: var(--brand, #1a4bb5);
}
.cm-hero__actions {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 12px;
}
.cm-hero__actions > .cm-btn {
    width: 100%;
    justify-content: center;
}

/* Match the home hero on mobile: stack the CTAs and stretch them full-width. */
@media (max-width: 520px) {
    .cm-hero__actions { display: flex; width: 100%; flex-direction: column; align-items: stretch; }
    .cm-hero__actions .cm-btn { width: 100%; }
}

/* Mirror .sw-hero__visual: PNG hero render floats on the page (no frame /
   shadow / background), capped via max-height so it never blows up the hero
   past the viewport. */
.cm-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}
.cm-hero__visual img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(70vh, 560px);
    object-fit: contain;
}
@media (max-width: 919px) {
    .cm-hero__visual img { max-height: 50vh; }
}


/* ---------- 2. Value props ---------- */

.cm-valueprops {
    margin-bottom: 96px;
    text-align: start;
}
.cm-vp__intro {
    margin-bottom: 32px;
}
.cm-vp__intro .cm-section__title { text-align: start; }
.cm-vp__intro .cm-section__lead {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: start;
}
.cm-vp__eyebrow {
    margin: 0 0 8px;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--accent-amber);
}
/* ---- Vertical inline list (no card backgrounds) ---- */
.cm-vp__rows {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: start;
}
.cm-vp__row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.cm-vp__row:last-child { border-bottom: 0; }
.cm-vp__row:first-child { padding-top: 0; }
.cm-vp__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--brand);
    transition: background-color var(--dur-fast) var(--ease-out);
}
.cm-vp__row:hover .cm-vp__icon {
    background: var(--icon-hover-bg);
}
.cm-vp__body { min-width: 0; }
.cm-vp__title {
    margin: 0 0 6px;
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--text);
}
.cm-vp__desc {
    margin: 0;
    font-size: var(--fs-body);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}
@media (max-width: 640px) {
    .cm-vp__row { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
    .cm-vp__icon { width: 48px; height: 48px; }
}

/* ---------- 3. How it works ---------- */

.cm-how {
    margin-bottom: 96px;
    text-align: start;
}
.cm-how__intro {
    margin-bottom: 32px;
}
.cm-how .cm-section__title,
.cm-how .cm-section__lead { text-align: start; }
.cm-how .cm-section__lead { margin-left: 0; margin-right: 0; max-width: none; }

.cm-how__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 920px) {
    .cm-how__steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.cm-how__step {
    text-align: start;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    padding: 20px;
}
.cm-how__media {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-base);
    margin-bottom: 14px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}
.cm-how__media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.cm-how__num {
    display: inline-block;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-caps);
    color: var(--brand-500);
    margin-bottom: 4px;
}
.cm-how__title {
    margin: 0 0 6px;
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--text);
}
.cm-how__desc {
    margin: 0;
    font-size: var(--fs-body-sm);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

/* ---------- 4. Product variants ---------- */

.cm-variants {
    margin-bottom: 96px;
    text-align: start;
}
.cm-variants .cm-section__title,
.cm-variants .cm-section__lead { text-align: start; }
.cm-variants .cm-section__lead { margin-left: 0; margin-right: 0; max-width: none; }

.cm-variants__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 720px) {
    .cm-variants__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1100px) {
    .cm-variants__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}
.cm-variant {
    position: relative;
    text-align: start;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 16px -10px rgba(15, 23, 42, 0.06);
    scroll-margin-top: 88px;       /* land below the sticky navbar when jumped to via #anchor */
}
/* Pilot-access badge — warm amber to separate "in-pilot" variants from the
   production-ready Node/Probe products and the blue home-grid badges. */
.cm-variant__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 4px 8px;
    background: var(--accent-amber);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    line-height: 1;
    border-radius: var(--radius-2xs);
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.30);
}
[dir="rtl"] .cm-variant__badge {
    left: auto;
    right: 10px;
}
.cm-variant__media {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-base);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cm-variant__media--standard,
.cm-variant__media--longrange {
    background: var(--bg-soft);
    overflow: hidden;
    padding: 12px;
}
.cm-variant__media--standard picture,
.cm-variant__media--longrange picture {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.cm-variant__media--standard img,
.cm-variant__media--longrange img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
#strain-tilt-sensors .cm-variant__media--standard img {
    max-width: 85%;
    max-height: 85%;
}
.cm-variant__title {
    margin: 0 0 6px;
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--text);
}
.cm-variant__desc {
    margin: 0 0 12px;
    font-size: var(--fs-body-sm);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}
.cm-variant__bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}
.cm-variant__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--fs-caption);
    color: var(--text);
}
.cm-variant__bullets li::before {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 0.25em;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23042c71' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

/* ---------- 5. App preview ---------- */

.cm-app {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 96px;
}
@media (min-width: 920px) {
    .cm-app { grid-template-columns: 1fr 1fr; gap: 56px; }
}
/* Tablet PNG with transparent background — let it float over the page,
   no card frame, no shadow ring. */
.cm-app__visual {
    display: block;
    width: 100%;
}
.cm-app__visual img {
    display: block;
    width: 100%;
    height: auto;
}
.cm-app__eyebrow {
    margin: 0 0 8px;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--brand-500);
}
.cm-app__lead {
    margin: 0 0 16px;
    max-width: 600px;       /* match other section leads */
    font-size: var(--fs-body);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}
.cm-app__bullets {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.cm-app__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--fs-body-sm);
    line-height: var(--lh-loose);
    color: var(--text);
}
.cm-app__bullets li::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.25em;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23042c71' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

/* ---------- 6. Use cases ---------- */

.cm-usecases {
    margin-bottom: 96px;
    text-align: start;
}
.cm-usecases .cm-section__title,
.cm-usecases .cm-section__lead { text-align: start; }
.cm-usecases .cm-section__lead { margin-left: 0; margin-right: 0; max-width: none; }

.cm-usecases__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) { .cm-usecases__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cm-usecases__grid { grid-template-columns: repeat(3, 1fr); } }

.cm-usecase {
    text-align: start;
    padding: 22px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
}
.cm-usecase__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: var(--radius-base);
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    color: var(--brand);
    transition: background-color var(--dur-fast) var(--ease-out);
}
.cm-usecase:hover .cm-usecase__icon {
    background: var(--icon-hover-bg);
}
.cm-usecase__title {
    margin: 0 0 6px;
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--text);
}
.cm-usecase__desc {
    margin: 0;
    font-size: var(--fs-body-sm);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

/* ---------- 7. Final CTA ---------- */

.cm-final {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: start;
    padding-top: 64px;
    padding-bottom: 64px;
    /* horizontal padding 24 preserved from the shared cm-* rule above so the
       gradient card's content aligns with every other section title */
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(167, 243, 208, 0.12), transparent 55%),
        linear-gradient(135deg, var(--brand-fill) 0%, #0b1220 100%);
    color: #ffffff;
}
.cm-final::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("../../assets/images/graphics/cta-flow-bg.svg") center / cover no-repeat;
    opacity: 0.55;
    animation: cta-flow-drift 12s ease-in-out infinite alternate;
    -webkit-mask-image: linear-gradient(20deg, #000 0%, transparent 45%);
            mask-image: linear-gradient(20deg, #000 0%, transparent 45%);
}
@keyframes cta-flow-drift {
    from { transform: translateX(-3%) scale(1); }
    to   { transform: translateX(3%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
    .cm-final::before { animation: none; }
}
.cm-final__title {
    margin: 0 0 12px;
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    color: #ffffff;
    text-wrap: balance;
}
.cm-final__lead {
    margin: 0 0 24px;
    font-size: var(--fs-lead);
    color: var(--text-on-dark);
}
.cm-final__actions { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; justify-content: flex-start; }
.cm-final__actions > .cm-btn { width: 100%; }
/* Primary button flips to white-on-brand for maximum contrast on the dark
   gradient banner; ghost/secondary uses a translucent white border. */
.cm-final .cm-btn--primary {
    background: #ffffff;
    color: var(--brand-fill);
    border-color: #ffffff;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
}
.cm-final .cm-btn--primary:hover {
    background: var(--bg-soft);
    border-color: var(--bg-soft);
    color: var(--brand);
}
.cm-final .cm-btn--secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}
.cm-final .cm-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.75);
}
.cm-final__lead { max-width: none; }
@media (max-width: 600px) {
    .cm-final__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }
    .cm-final__actions > * {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Mobile tweaks ---------- */

@media (max-width: 640px) {
    .cm-page { padding: 72px 0 64px; }
    .cm-hero { margin-bottom: 48px; }
    .cm-valueprops, .cm-how, .cm-variants, .cm-app, .cm-usecases { margin-bottom: 64px; }
    /* Reduce vertical padding only; horizontal padding (24) inherited from
       the shared cm-* rule keeps content aligned with every other section. */
    .cm-final {
        padding-top: 48px;
        padding-bottom: 48px;
        border-radius: 0;
    }
    /* No mobile font-size override on titles — let var(--fs-h1) clamp do its
       job, matching every other page (about, software, pricing, contact). */

    /* Left-align section intros (title + lead) on mobile. */
    .cm-how .cm-section__title,
    .cm-how .cm-section__lead,
    .cm-variants .cm-section__title,
    .cm-variants .cm-section__lead,
    .cm-vp__intro,
    .cm-vp__intro .cm-section__title,
    .cm-vp__intro .cm-section__lead,
    .cm-usecases .cm-section__title,
    .cm-usecases .cm-section__lead {
        text-align: start;
    }
    .cm-how .cm-section__lead,
    .cm-variants .cm-section__lead,
    .cm-vp__intro .cm-section__lead,
    .cm-usecases .cm-section__lead {
        margin-left: 0;
        margin-right: 0;
    }
}
