/* =========================================================
   MODULE DETAIL PAGE  (shared by all /features module pages)
   Builds on style.css design tokens.
   ========================================================= */

.m-grad {
    background: linear-gradient(135deg, #0369a1, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── HERO ── */
.m-hero {
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}
.m-hero::before {
    content: '';
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    height: 520px;
    background: radial-gradient(ellipse, rgba(3, 105, 161, .10) 0%, transparent 65%);
    pointer-events: none;
}
.m-hero .container { position: relative; }

.m-breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 22px;
}
.m-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.m-breadcrumb a:hover { color: var(--primary); }
.m-breadcrumb i { font-size: 10px; margin: 0 6px; opacity: .6; }

.m-hero-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    margin-bottom: 22px;
}

.m-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--primary);
    margin-bottom: 14px;
}

.m-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 18px;
    max-width: 760px;
}
.m-hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.m-meta {
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap; margin-bottom: 30px;
}
.m-price {
    font-size: 14px; font-weight: 600; color: var(--text-main);
    display: inline-flex; align-items: center; gap: 7px;
}
.m-price i { color: var(--primary); font-size: 15px; }
.m-price b { font-weight: 800; }
.m-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase; padding: 5px 11px; border-radius: 20px;
}
.m-badge.live { background: #d1fae5; color: #065f46; }
.m-badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.m-badge.soon { background: #fef3c7; color: #92400e; }

.m-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.m-btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: inherit; font-size: 15px; font-weight: 700;
    padding: 13px 26px; border-radius: 13px;
    cursor: pointer; text-decoration: none; transition: all .18s;
}
.m-btn-primary { background: linear-gradient(135deg, #0369a1, #0891b2); color: #fff; border: none; }
.m-btn-primary:hover { opacity: .9; }
.m-btn-ghost { background: #fff; color: var(--text-main); border: 1.5px solid var(--border-color); }
.m-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ── PRODUCT SHOTS ──
   Wider than .container so a 16:8.5 app screenshot stays readable. */
.container-shot {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.m-shot {
    position: relative;
    margin: 0;
    background: #fff;
    border: 1px solid #e6ecf3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 14px 30px -14px rgba(15, 23, 42, .18),
        0 50px 90px -50px rgba(21, 101, 192, .35);
}
.m-shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 15px;
    background: #f7f9fc;
    border-bottom: 1px solid #eef2f7;
}
.m-shot-bar b {
    width: 9px; height: 9px; border-radius: 50%;
    background: #dde5ee;
}
.m-shot-bar em {
    margin-left: 12px;
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-shot-view {
    position: relative;
}
.m-shot-view img {
    display: block;
    width: 100%;
    height: auto;
}
.m-shot-cap {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
    margin-top: 14px;
}

/* Hero shot: sits under the hero copy, on a soft tinted plate. */
.m-hero.with-shot { padding-bottom: 84px; }
.m-hero-shot {
    position: relative;
    margin-top: 46px;
}
.m-hero-shot::before {
    content: '';
    position: absolute;
    inset: 30px 46px -26px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(21, 101, 192, .18), rgba(66, 165, 245, 0));
    filter: blur(30px);
    pointer-events: none;
}
.m-hero-shot .m-shot { position: relative; }
/* The hero shot is the tallest one on the page, so it is cut off at a fixed
   height and faded out rather than eating the whole first screen. Below about
   1000px the image is already shorter than the cap, so nothing is cut. */
.m-hero-shot .m-shot-view {
    max-height: 520px;
    overflow: hidden;
}
.m-hero-shot .m-shot-view::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 58px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

/* ── SHOWCASE: alternating screenshot + copy rows ── */
.m-showcase { display: grid; gap: 66px; }
.m-show-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: center;
}
/* Reverse rows put the shot first, so the wide column has to move with it. */
.m-show-row.reverse { grid-template-columns: 1.2fr 0.8fr; }
.m-show-row.reverse .m-show-copy { order: 2; }
.m-show-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.m-show-copy h3 {
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 12px;
}
.m-show-copy > p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}
.m-show-points {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 9px;
}
.m-show-points li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.55;
}
.m-show-points li::before {
    content: '';
    position: absolute;
    left: 3px; top: 8px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0369a1, #0891b2);
}
.m-show-row .m-shot {
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 12px 26px -14px rgba(15, 23, 42, .18),
        0 40px 70px -46px rgba(21, 101, 192, .32);
}

@media (max-width: 900px) {
    .m-show-row, .m-show-row.reverse { grid-template-columns: 1fr; gap: 26px; }
    .m-show-row.reverse .m-show-copy { order: 0; }
    .m-showcase { gap: 52px; }
    .m-hero-shot::before { inset: 20px 20px -18px; }
}
@media (max-width: 600px) {
    .m-hero.with-shot { padding-bottom: 56px; }
    .m-hero-shot { margin-top: 32px; }
    .m-shot-bar { padding: 8px 11px; }
    .m-shot-bar em { display: none; }
    .m-shot-cap { font-size: 12.5px; }
}

/* ── GENERIC SECTION ── */
.m-section { padding: 66px 0; }
.m-section.alt { background: #f8fafc; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.m-section-head { max-width: 620px; margin: 0 auto 46px; text-align: center; }
.m-section-head h2 {
    font-size: clamp(26px, 3vw, 38px); font-weight: 800;
    letter-spacing: -0.03em; margin-bottom: 12px;
}
.m-section-head p { font-size: 16px; color: var(--text-muted); line-height: 1.65; }

/* ── FEATURE CARDS ── */
.m-features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.m-feat {
    background: #fff; border: 1px solid #f1f5f9; border-radius: 18px;
    padding: 26px 24px; transition: all .2s;
}
.m-feat:hover { border-color: #bae6fd; transform: translateY(-2px); }
.m-feat-icon { font-size: 26px; margin-bottom: 14px; display: block; }
.m-feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.m-feat p { font-size: 16px; color: var(--text-muted); line-height: 1.65; }

/* ── CAPABILITIES (two-col) ── */
.m-cap-layout {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start;
}
.m-cap-intro h2 {
    font-size: clamp(24px, 3vw, 34px); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px;
}
.m-cap-intro p { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.m-cap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.m-cap-list li {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fff; border: 1px solid var(--border-color);
    border-radius: 13px; padding: 15px 17px;
}
.m-cap-list li i {
    font-size: 18px; flex-shrink: 0; margin-top: 1px;
    background: linear-gradient(135deg, #0369a1, #0891b2);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.m-cap-list li b { font-weight: 700; display: block; font-size: 14px; margin-bottom: 2px; }
.m-cap-list li span { font-size: 16px; color: var(--text-muted); line-height: 1.55; }

/* ── RELATED MODULES ── */
.m-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.m-related-card {
    background: #fff; border: 1px solid #f1f5f9; border-radius: 15px;
    padding: 20px; text-decoration: none; transition: all .18s; display: block;
}
.m-related-card:hover { border-color: #bae6fd; transform: translateY(-2px); }
.m-related-card i { font-size: 22px; display: block; margin-bottom: 10px; }
.m-related-card h4 { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 3px; }
.m-related-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.m-related-card .dd-soon {
    display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px;
    background: #fef3c7; color: #92400e; padding: 2px 7px; border-radius: 20px;
}

/* ── CTA BAND ── */
.m-cta-band { padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.m-cta-band::before {
    content: ''; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 560px;
    background: radial-gradient(ellipse, rgba(3, 105, 161, .08) 0%, transparent 65%);
    pointer-events: none;
}
.m-cta-band .container { position: relative; }
.m-cta-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 12px; }
.m-cta-band p { font-size: 17px; color: var(--text-muted); margin-bottom: 30px; }
.m-cta-band .m-cta-row { justify-content: center; }
.m-trust {
    margin-top: 22px; display: flex; align-items: center; justify-content: center;
    gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted);
}
.m-trust span { display: inline-flex; align-items: center; gap: 5px; }
.m-trust i { color: #0891b2; }

/* ── SOON NOTICE (upcoming modules) ── */
.m-soon-note {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px;
    padding: 16px 18px; margin-bottom: 30px; max-width: 620px;
}
.m-soon-note i { color: #d97706; font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.m-soon-note p { font-size: 14px; color: #78350f; line-height: 1.6; margin: 0; }

/* ── FAQ ACCORDION (industry + hub pages) ── */
.m-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.m-faq-item {
    background: #fff; border: 1px solid var(--border-color); border-radius: 14px;
    padding: 0 20px; transition: border-color .18s;
}
.m-faq-item[open] { border-color: #bae6fd; }
.m-faq-item summary {
    list-style: none; cursor: pointer; padding: 18px 0;
    font-size: 16px; font-weight: 700; color: var(--text-main);
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.m-faq-item summary::-webkit-details-marker { display: none; }
.m-faq-item summary i { font-size: 15px; color: var(--primary); transition: transform .2s; flex-shrink: 0; }
.m-faq-item[open] summary i { transform: rotate(180deg); }
.m-faq-item p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin: 0 0 18px; }

/* ── HUB: industry directory cards ── */
.m-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.m-hub-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #f1f5f9; border-radius: 14px;
    padding: 16px 18px; text-decoration: none; transition: all .18s;
}
.m-hub-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.m-hub-card i { font-size: 20px; flex-shrink: 0; }
.m-hub-card span { font-size: 14px; font-weight: 600; color: var(--text-main); line-height: 1.4; }
@media (max-width: 900px) { .m-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .m-hub-grid { grid-template-columns: 1fr; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .m-features-grid { grid-template-columns: 1fr 1fr; }
    .m-cap-layout { grid-template-columns: 1fr; gap: 32px; }
    .m-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .m-hero { padding: 48px 0 40px; }
    .m-hero-sub { font-size: 15px; }
    .m-section { padding: 50px 0; }
    .m-features-grid { grid-template-columns: 1fr; }
    .m-related-grid { grid-template-columns: 1fr; }
    .m-cta-row { flex-direction: column; }
    .m-btn { justify-content: center; }
}

/* ── INDUSTRY PAGE: terminology chips + loading (shared by industry.html
   and the generated static industry pages) ── */
.term-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 16px; }
.term-card {
    background: #fff; border: 1px solid #f1f5f9; border-radius: 16px;
    padding: 22px 18px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: all .2s;
}
.term-card:hover { border-color: #bae6fd; transform: translateY(-2px); }
.term-card i { font-size: 26px; margin-bottom: 4px; }
.term-label { font-size: 14px; color: var(--text-muted); }
.term-val { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.industry-loading {
    min-height: 50vh; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 15px; gap: 10px;
}
.industry-loading i { font-size: 20px; }
@media (max-width: 900px) { .term-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 540px) { .term-grid { grid-template-columns: 1fr 1fr; } }
