/* -----------------------------------------------------------------------------
   Mobile App Sub-pages — shared styles for /timberid-app and /dcode-reader
----------------------------------------------------------------------------- */

/* --- HERO --- */
.mapp-hero {
    background: #fff;
    padding: 4.5rem 0 3.5rem;
}

.mapp-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

.mapp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.mapp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--light-green);
    color: var(--primary-green-darker);
    border: 1px solid rgba(123,185,62,0.28);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- FEATURES --- */
.mapp-features {
    background: var(--neutral-50);
    padding: 4rem 0;
}

.mapp-feat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.mapp-feat-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}

.mapp-feat-icon {
    width: 46px;
    height: 46px;
    background: var(--light-green);
    border: 1px solid rgba(123,185,62,0.25);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-green);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mapp-feat-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navbar-bg);
    margin-bottom: 0.5rem;
}

.mapp-feat-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- STORE SECTION --- */
.mapp-store {
    background: var(--navbar-bg);
    padding: 4.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mapp-store::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123,185,62,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.mapp-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
}

.mapp-store-badge {
    display: inline-block;
    transition: opacity 0.2s, transform 0.2s;
}

.mapp-store-badge:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* --- HERO SCREENSHOT IMAGE --- */
.mapp-hero-figure {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.mapp-hero-figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- CHECKLIST --- */
.mapp-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.mapp-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.mapp-check-item i {
    color: var(--primary-green);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* --- CONTENT SECTIONS --- */
.mapp-content-section {
    padding: 5rem 0;
}

.mapp-content-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.mapp-content-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- PLATFORM LINKS --- */
.mapp-platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.mapp-platform-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--primary-green-darker);
    background: var(--light-green);
    border: 1px solid rgba(123, 185, 62, 0.3);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mapp-platform-link:hover {
    background: rgba(123, 185, 62, 0.2);
    border-color: var(--primary-green);
    color: var(--primary-green-darker);
}

.mapp-platform-link i {
    font-size: 0.72rem;
}

/* --- MCS SCREENSHOT GALLERY (shared) --- */
.mcs-screens-section { background: var(--primary-bg); overflow: hidden; }
.mcs-screens-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding-bottom: 2rem;
}
.mcs-screen-item {
    flex: 0 0 auto;
    width: 176px;
    border-radius: var(--radius-small);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mcs-screen-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.2);
}
.mcs-screen-item img { width: 100%; height: auto; display: block; }
.mcs-screen--low    { transform: translateY(28px); }
.mcs-screen--high   { transform: translateY(-20px); }
.mcs-screen--center { transform: translateY(0); width: 196px; box-shadow: 0 28px 72px rgba(123,185,62,0.22); }

@media screen and (max-width: 1023px) {
    .mcs-screens-row {
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mcs-screens-row::-webkit-scrollbar { display: none; }
    .mcs-screen--low,
    .mcs-screen--high,
    .mcs-screen--center { transform: none; }
    .mcs-screen-item,
    .mcs-screen--center { width: 150px; }
}
@media screen and (max-width: 768px) {
    .mcs-screens-section { overflow: visible; }
    .mcs-screens-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow-x: visible;
        padding-left: 0;
        padding-right: 0;
        gap: 1rem;
    }
    .mcs-screen-item,
    .mcs-screen--center { width: 100%; }
}

/* --- SCREENSHOTS ROW --- */
.mapp-screens-section {
    background: var(--neutral-50);
    padding: 4rem 0;
}

.mapp-screens-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
}

.mapp-screen-item {
    flex: 0 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    transition: transform 0.3s ease;
}

.mapp-screen-item:hover {
    transform: translateY(-6px);
}

.mapp-screen-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mapp-screen--tall { height: 440px; width: 200px; }
.mapp-screen--low  { height: 360px; width: 200px; }

/* --- SCREENSHOTS FAN VARIANT --- */
.mapp-screens-section--fan {
    padding: 1.5rem 0 2rem;
}
.mapp-screens-section--fan .has-text-centered {
    margin-bottom: 1rem !important;
}
.mapp-screens-section--fan .mapp-screens-row {
    align-items: center;
    gap: 0;
    padding-bottom: 1.5rem;
}
.mapp-screens-section--fan .mapp-screen-item {
    position: relative;
}
.mapp-screens-section--fan .mapp-screen-item:first-child {
    transform: rotate(-6deg) translateY(14px);
    z-index: 1;
    margin-right: -1.75rem;
}
.mapp-screens-section--fan .mapp-screen-item:nth-child(2) {
    z-index: 3;
}
.mapp-screens-section--fan .mapp-screen-item:last-child {
    transform: rotate(6deg) translateY(14px);
    z-index: 1;
    margin-left: -1.75rem;
}
.mapp-screens-section--fan .mapp-screen-item:hover {
    transform: translateY(-10px) rotate(0deg) !important;
    z-index: 5;
}
.mapp-screens-section--fan .mapp-screen--tall { height: 300px; width: 145px; }
.mapp-screens-section--fan .mapp-screen--low  { height: 260px; width: 130px; }

/* --- CTA SUB NOTE --- */
.mapp-store-sub {
    margin-top: 2rem;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
}

.mapp-store-sub a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.mapp-store-sub a:hover {
    text-decoration: underline;
    color: var(--primary-green);
}

/* --- HERO CUSTOM OVERRIDE (TimberID — uses global hero-custom + hero-shape) --- */
.mapp-hero-custom {
    min-height: 500px;
    padding: 60px 0;
    background: #fff;
}

/* --- HERO STORE BADGES (App Store badge + Learn more button) --- */
.mapp-store-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.75rem;
    margin-bottom: 1.25rem;
}

.mapp-badge-link {
    display: inline-block;
    background: var(--navbar-bg);
    border-radius: var(--radius-small);
    padding: 3px;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mapp-badge-link:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* --- CTA GRADIENT VARIANT (engage.php style) --- */
.mapp-store--green {
    background: linear-gradient(135deg, #14161A 0%, #1a2e10 100%);
}

/* --- CAPABILITIES STRIP (tag row below hero) --- */
.mapp-caps-strip {
    background: var(--neutral-50);
    padding: 5rem 0;
    border-top: 0px solid var(--border-color);
    border-bottom: 0px solid var(--border-color);
}

.mapp-caps-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 1023px) {
    .mapp-hero-figure { margin-top: 2rem; }
    .mapp-screen--tall { height: 360px; width: 165px; }
    .mapp-screen--mid  { height: 320px; width: 165px; }
    .mapp-screen--low  { height: 280px; width: 165px; }
}

@media screen and (max-width: 768px) {
    /* Hero mobile centering */
    .mapp-store-badges { justify-content: center; }
    .mapp-tags { justify-content: center; }

    .mapp-hero { padding: 2.5rem 0 2rem; }
    .mapp-icon-bg { width: 140px; height: 140px; border-radius: 26px; }
    .mapp-icon { width: 100px; height: 100px; border-radius: 20px; }
    .mapp-icon-wrap { margin-top: 2rem; }
    .mapp-features { padding: 2.5rem 0; }
    .mapp-store { padding: 3rem 0; }
    .mapp-content-section { padding: 3rem 0; }
    .mapp-screens-section { padding: 2.5rem 0; }
    .mapp-screens-row {
        gap: 0.5rem;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 1rem 1rem;
    }
    .mapp-screens-section--fan .mapp-screens-row {
        justify-content: center;
        overflow-x: visible;
        padding: 0 0 1.5rem;
    }
    .mapp-screen--tall { height: 280px; width: 130px; }
    .mapp-screen--mid  { height: 250px; width: 130px; }
    .mapp-screen--low  { height: 220px; width: 130px; }
    .mapp-hero-figure { border-radius: 14px; margin-top: 2rem; }
    .mapp-platform-links { gap: 0.4rem; }
    .mapp-caps-strip .container,
    .mapp-features .container,
    .mapp-content-section .container,
    .mapp-screens-section .container,
    .mcs-screens-section .container,
    .mapp-store .container,
    .mapp-pillars .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}
