/* ============================================================
   JAX 3D PRO — Main Stylesheet
   Design: Clean, modern, Google-inspired light theme
   ============================================================ */

/* ── 1. CSS Variables ───────────────────────────────────────── */
:root {
    --color-primary:        #1a73e8;
    --color-primary-dark:   #1557b0;
    --color-primary-light:  #e8f0fe;
    --color-accent:         #ea4335;

    --color-white:          #ffffff;
    --color-bg:             #ffffff;
    --color-bg-subtle:      #f8f9fa;
    --color-bg-section:     #f1f3f4;
    --color-border:         #dadce0;
    --color-border-light:   #e8eaed;

    --color-text:           #202124;
    --color-text-secondary: #5f6368;
    --color-text-muted:     #80868b;
    --color-text-inverse:   #ffffff;

    --color-success:        #34a853;
    --color-warning:        #fbbc04;

    --font-primary:   'DM Sans', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --text-xs:    0.75rem;
    --text-sm:    0.875rem;
    --text-base:  1rem;
    --text-lg:    1.125rem;
    --text-xl:    1.25rem;
    --text-2xl:   1.5rem;
    --text-3xl:   1.875rem;
    --text-4xl:   2.25rem;
    --text-5xl:   3rem;

    --weight-regular: 400;
    --weight-medium:  500;
    --weight-bold:    700;

    --leading-tight:  1.2;
    --leading-snug:   1.4;
    --leading-normal: 1.6;
    --leading-loose:  1.8;

    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --container-max:    1440px;
    --container-narrow: 800px;
    --container-pad:    clamp(1rem, 4vw, 2rem);

    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-full: 9999px;

    --shadow-xs:  0 1px 2px rgba(0,0,0,.06);
    --shadow-sm:  0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg:  0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --shadow-xl:  0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);

    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Header */
    --header-large: 115px;
    --header-small: 68px;
    --header-mob:   56px;

    /* Logo heights */
    --logo-large-h: 110px;
    --logo-small-h: 52px;
}

/* ── 2. Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 3. Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-text);
}
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl),  2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
p  { line-height: var(--leading-loose); color: var(--color-text-secondary); }
p + p { margin-top: var(--space-4); }
strong { font-weight: var(--weight-bold); color: var(--color-text); }

/* ── 4. Layout ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}
.container--narrow { max-width: var(--container-narrow); }

.section     { padding-block: var(--space-20); }
.section--sm { padding-block: var(--space-12); }
.section--lg { padding-block: var(--space-24); }
.section--alt { background-color: var(--color-bg-subtle); }

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: var(--space-3);
}
.section-header { margin-bottom: var(--space-12); }
.section-header--center { text-align: center; }
.section-header p { margin-top: var(--space-4); font-size: var(--text-lg); max-width: 60ch; }
.section-header--center p { margin-inline: auto; }

.grid    { display: grid; gap: var(--space-8); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ── 5. Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    line-height: 1;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}
.btn-ghost { background-color: transparent; color: var(--color-text-secondary); }
.btn-ghost:hover { background-color: var(--color-bg-section); color: var(--color-text); }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn-xl { padding: var(--space-4) var(--space-10); font-size: var(--text-lg); }

/* ── 6. Header — smooth logo shrink on scroll ───────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-xs);
    /* Smooth height transition */
    height: var(--header-large);
    transition: height var(--transition-slow), box-shadow var(--transition-base);
}
.site-header.scrolled {
    height: var(--header-small);
    box-shadow: var(--shadow-md);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

/* Logo — single image, smoothly resizes via height transition */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.logo-img {
    /* height animates smoothly with the header */
    height: var(--logo-large-h);
    width: auto;
    transition: height var(--transition-slow);
}
.site-header.scrolled .logo-img {
    height: var(--logo-small-h);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
}

/* Desktop nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list  { display: flex; align-items: center; gap: var(--space-1); }
.nav-link {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.nav-link:hover        { color: var(--color-primary); background-color: var(--color-primary-light); }
.nav-link--active      { color: var(--color-primary); background-color: var(--color-primary-light); }

.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.header-cta { display: none; }

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}
.hamburger:hover { background-color: var(--color-bg-section); }
.hamburger span {
    display: block;
    height: 2px; width: 100%;
    background-color: var(--color-text);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-list    { display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-nav-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.mobile-nav-link:hover,
.mobile-nav-link--active { color: var(--color-primary); background-color: var(--color-primary-light); }
.mobile-nav-cta { display: flex; margin-top: var(--space-4); width: 100%; }

/* ── 7. Footer ──────────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border-light);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
    padding-block: var(--space-16);
}
.footer-logo img { height: 92px; width: auto; }
.footer-tagline  { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-text-secondary); }
.footer-area     { margin-top: var(--space-2);  font-size: var(--text-xs); color: var(--color-text-muted); }

.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    background-color: var(--color-border-light);
    transition: all var(--transition-fast);
}
.footer-social a:hover { color: var(--color-primary); background-color: var(--color-primary-light); }

.footer-heading {
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: var(--space-4);
}
.footer-nav ul,
.footer-contact ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-nav a,
.footer-contact a { font-size: var(--text-sm); color: var(--color-text-secondary); transition: color var(--transition-fast); }
.footer-nav a:hover,
.footer-contact a:hover { color: var(--color-primary); }
.footer-contact li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-secondary); }
.footer-contact svg { flex-shrink: 0; color: var(--color-text-muted); }
.footer-area-note  { color: var(--color-text-muted); }

.footer-bottom { border-top: 1px solid var(--color-border-light); padding-block: var(--space-6); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom p { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1; }

/* ── 8. Hero Slider — img-based, correct aspect ratio on mobile ─ */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Height is determined by the image aspect ratio naturally */
    /* max-height caps it on very tall screens */
    max-height: 86vh;
    background-color: #000;
}
.slider-track {
    /* Fills slider, reference for absolute-positioned dots/arrows */
    position: relative;
    width: 100%;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
/* First slide is in flow to give the container its natural height */
.slide:first-child {
    position: relative;
}
.slide img {
    width: 100%;
    height: 680px;         /* desktop: crop to 1920x680, centered */
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Mobile: natural aspect ratio, no cropping */
@media (max-width: 767px) {
    .slide img {
        height: auto;
    }
}
.slide--active { opacity: 1; }

.slider-dots {
    position: absolute;
    bottom: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: var(--space-2);
}
.slider-dot {
    width: 10px; height: 10px;
    border-radius: var(--radius-full);
    background-color: rgba(255,255,255,.5);
    border: 1.5px solid rgba(255,255,255,.8);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}
.slider-dot--active,
.slider-dot:hover { background-color: var(--color-white); transform: scale(1.25); }

.slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 3;
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    background-color: rgba(255,255,255,.25);
    color: var(--color-white);
    border: 1.5px solid rgba(255,255,255,.5);
    font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all var(--transition-base);
}
.slider-arrow:hover { background-color: rgba(255,255,255,.45); }
.slider-arrow--prev { left:  var(--space-5); }
.slider-arrow--next { right: var(--space-5); }

/* ── 9. Hero Text ───────────────────────────────────────────── */
.hero-text {
    padding-block: var(--space-12) var(--space-10);
    border-bottom: 1px solid var(--color-border-light);
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-5);
}
.hero-text h1 { margin-bottom: var(--space-5); }
.hero-lead {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    max-width: 60ch;
    line-height: var(--leading-loose);
    margin-bottom: var(--space-8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* ── 10. Stats Bar ──────────────────────────────────────────── */
.stats-bar {
    background-color: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border-light);
    padding-block: var(--space-8);
}
.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .stat-value {
    font-family: var(--font-primary);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    line-height: 1;
}
.stat-item .stat-label { font-size: var(--text-sm); color: var(--color-text-secondary); margin-top: var(--space-1); }
.stat-divider { width: 1px; height: 40px; background-color: var(--color-border); flex-shrink: 0; }

/* ── 11. Services Grid ──────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.service-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-8);
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--color-primary-light); }
.service-card-icon { font-size: 2.5rem; flex-shrink: 0; line-height: 1; margin-top: var(--space-1); }
.service-card-body h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); color: var(--color-text); transition: color var(--transition-fast); }
.service-card:hover .service-card-body h3 { color: var(--color-primary); }
.service-card-body p { font-size: var(--text-sm); line-height: var(--leading-loose); margin-bottom: var(--space-4); }
.service-card-link   { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-primary); }

/* ── 12. About Split ────────────────────────────────────────── */
.about-split { display: grid; grid-template-columns: auto 1fr; gap: var(--space-16); align-items: center; }
.about-images { display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.about-photo {
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-lg);
}
.about-photo--main      { width: 120px; height: 120px; }
.about-photo--secondary { width: 120px; height: 120px; }
.about-text h2 { margin-bottom: var(--space-6); }
.about-text p  { margin-bottom: var(--space-4); }
.about-text .btn { margin-top: var(--space-4); }

/* ── 13. Testimonials Carousel ──────────────────────────────── */
.testimonials-section { background-color: var(--color-bg-subtle); }

.testimonials-carousel {
    position: relative;
    max-width: 720px;
    margin-inline: auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    /* JS sets transform: translateX() */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-slide {
    min-width: 100%;
    padding: var(--space-2);
}

.testimonial-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-stars {
    color: var(--color-warning);
    font-size: var(--text-xl);
    letter-spacing: 3px;
    margin-bottom: var(--space-6);
}

.testimonial-card > p {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--space-8);
    max-width: 55ch;
    margin-inline: auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}
.testimonial-author img {
    width: 56px; height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--color-primary-light);
}
.testimonial-author strong { display: block; font-size: var(--text-base); color: var(--color-text); }
.testimonial-author span   { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Dots below carousel */
.t-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
}
.t-dot {
    width: 8px; height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}
.t-dot--active,
.t-dot:hover { background-color: var(--color-primary); transform: scale(1.3); }

/* ── 14. CTA Section ────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); }
.cta-section h2 { color: var(--color-white); }
.cta-section > .container > p {
    color: rgba(255,255,255,.8);
    font-size: var(--text-lg);
    max-width: 55ch;
    margin-inline: auto;
    margin-top: var(--space-4);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-8); }
.cta-section .btn-primary { background-color: var(--color-white); color: var(--color-primary); border-color: transparent; }
.cta-section .btn-primary:hover { background-color: var(--color-bg-subtle); color: var(--color-primary-dark); }
.cta-section .btn-outline { color: var(--color-white); border-color: rgba(255,255,255,.5); }
.cta-section .btn-outline:hover { background-color: rgba(255,255,255,.1); color: var(--color-white); border-color: rgba(255,255,255,.8); }
.cta-note { margin-top: var(--space-6); font-size: var(--text-sm); color: rgba(255,255,255,.6) !important; }

/* ── 15. Utilities ──────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── 16. Responsive ─────────────────────────────────────────── */
@media (min-width: 1024px) {
    .hamburger  { display: none; }
    .header-cta { display: inline-flex; }
}

@media (max-width: 1023px) {
    .main-nav   { display: none; }
    .site-header { height: var(--header-mob) !important; }
    .logo-img { height: var(--logo-small-h) !important; }
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .about-split   { grid-template-columns: 1fr; text-align: center; }
    .about-images  { flex-direction: row; justify-content: center; }
}

@media (max-width: 767px) {
    .hero-slider { max-height: 70vh; }
    .stats-grid  { gap: var(--space-5); }
    .stat-divider { display: none; }
    .service-card { flex-direction: column; gap: var(--space-3); }
    .slider-arrow { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); padding-block: var(--space-12); }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .testimonial-card { padding: var(--space-8) var(--space-6); }
    .testimonial-card > p { font-size: var(--text-base); }
}

@media (max-width: 479px) {
    :root { --container-pad: 1rem; }
}

/* ══════════════════════════════════════════════════════════
   PAGE: Google Maps — faithful port of smartica.cz/mp.html
   ══════════════════════════════════════════════════════════ */

/* Scroll reveal — used on this page */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(.22,1,.36,1),
                transform 0.75s cubic-bezier(.22,1,.36,1);
}
.reveal       { transform: translateY(28px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1; transform: translate(0);
}
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.15s; }
.d3 { transition-delay: 0.23s; }
.d4 { transition-delay: 0.31s; }
.d5 { transition-delay: 0.39s; }

/* Hero animations */
.mp-anim-1 { animation: mpFadeUp 0.7s 0.1s both; }
.mp-anim-2 { animation: mpFadeUp 0.7s 0.2s both; }
.mp-anim-3 { animation: mpFadeUp 0.7s 0.35s both; }
.mp-anim-4 { animation: mpFadeUp 0.7s 0.5s both; }
.mp-anim-5 { animation: mpFadeUp 0.7s 0.65s both; }
.mp-anim-r { animation: mpFadeRight 0.8s 0.3s both; }

@keyframes mpFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes mpFadeRight {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Layout */
.mp-si {
    max-width: 1440px;
    margin: 0 auto;
    padding: 96px clamp(1.5rem, 5vw, 60px);
}
.mp-section-bg      { background: #ffffff; }
.mp-section-bg-soft { background: #f8f9fa; }
.mp-divider { border: none; border-top: 1px solid #eeeeee; margin: 0; }

/* Typography */
.mp-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 16px;
}
.mp-t-hero {
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
}
.mp-t-h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-text);
}
.mp-t-h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}
.mp-t-lead   { font-size: clamp(1rem, 1.3vw, 1.1rem); font-weight: 400; line-height: 1.7; color: #5f6368; }
.mp-t-body   { font-size: 0.95rem; font-weight: 400; line-height: 1.7; color: #5f6368; }
.mp-t-small  { font-size: 0.82rem; font-weight: 400; line-height: 1.6; color: #80868b; }
.mp-t-caption{ font-size: 0.75rem; font-weight: 400; line-height: 1.6; color: #bdc1c6; }
.mp-t-accent { color: var(--color-primary); }

/* Two col */
.mp-two-col        { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.mp-two-col-center { align-items: center; }

/* Buttons */
.mp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-primary);
    font-size: 0.95rem; font-weight: 500;
    padding: 12px 28px;
    border-radius: 24px;
    cursor: pointer; border: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    text-decoration: none;
}
.mp-btn:hover { transform: translateY(-1px); }
.mp-btn-primary { background: var(--color-primary); color: #fff; }
.mp-btn-primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: 0 2px 12px rgba(26,115,232,.35); }
.mp-btn-outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.mp-btn-outline:hover { background: var(--color-primary-light); color: var(--color-primary); }

/* Progress nav */
#mp-progress-nav {
    position: fixed;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    display: flex; flex-direction: column; gap: 10px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
}
#mp-progress-nav.visible { opacity: 1; pointer-events: auto; }
.mp-pnav-dot {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; padding: 3px 0;
}
.mp-pnav-inner {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.3s, transform 0.3s;
    flex-shrink: 0;
}
.mp-pnav-dot.active .mp-pnav-inner { background: var(--color-primary); transform: scale(1.6); }
.mp-pnav-label {
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    color: #bdc1c6; white-space: nowrap;
    opacity: 0; transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
    pointer-events: none;
}
.mp-pnav-dot:hover .mp-pnav-label,
.mp-pnav-dot.active .mp-pnav-label { opacity: 1; transform: translateX(0); color: var(--color-primary); }

/* Hero */
.mp-section-hero {
    padding: 0;
    position: relative;
    overflow: hidden;
}
.mp-hero-bg-shape {
    position: absolute;
    top: -120px; right: -80px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, #e8f0fe 0%, transparent 70%);
    pointer-events: none;
}
.mp-section-hero .mp-si { padding-top: 120px; padding-bottom: 96px; }
.mp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.mp-hero-sub { max-width: 480px; margin-top: 24px; }

.mp-hero-chips {
    display: flex; flex-direction: column; gap: 10px;
    margin: 28px 0 32px;
}
.mp-hero-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: #e8f0fe;
    color: var(--color-primary);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 0.88rem; font-weight: 500;
    width: fit-content;
}

.mp-hero-stats {
    display: flex; gap: 36px; margin-top: 8px;
}
.mp-stat-item { display: flex; flex-direction: column; }
.mp-stat-num  {
    font-family: var(--font-primary);
    font-size: 2.2rem; font-weight: 700;
    color: var(--color-primary); line-height: 1;
}
.mp-stat-label { font-size: 0.78rem; color: #80868b; margin-top: 4px; }

.mp-hero-visual-inner {
    background: #e8f0fe;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
}

/* Stat cards (in Why section) */
.mp-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 24px;
}
.mp-card-blue { background: #e8f0fe; border-color: rgba(26,115,232,.15); }
.mp-stat-card-num {
    display: block;
    font-family: var(--font-primary);
    font-size: 2rem; font-weight: 700;
    color: var(--color-primary); line-height: 1;
    margin-bottom: 8px;
}
.mp-stat-card-num.mp-large { font-size: 3.5rem; }

/* Reason items */
.mp-reason-item {
    display: flex; gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eeeeee;
}
.mp-reason-item:first-of-type { border-top: 1px solid #eeeeee; }
.mp-reason-icon {
    font-size: 1.3rem; flex-shrink: 0;
    width: 36px; height: 36px;
    background: #e8f0fe;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.mp-reason-item h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; color: var(--color-text); }
.mp-reason-item p  { font-size: 0.82rem; color: #5f6368; line-height: 1.6; }

/* Strip */
.mp-strip {
    background: var(--color-primary);
    padding: 52px clamp(1.5rem, 8vw, 80px);
    text-align: center;
}
.mp-strip p {
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    font-style: italic;
    color: rgba(255,255,255,.92);
    max-width: 760px; margin: 0 auto; line-height: 1.6;
}

/* Segments */
.mp-segments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.mp-segment {
    background: #fff; border: 1px solid #eeeeee; border-radius: 16px;
    padding: 28px 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.mp-segment:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); border-color: #e0e0e0; }
.mp-segment-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.mp-segment h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: var(--color-text); }
.mp-segment p  { font-size: 0.82rem; color: #5f6368; line-height: 1.6; }

/* Notebook / laptop mockup */
.mp-notebook-wrapper {
    position: relative; width: 100%;
    filter: drop-shadow(0 12px 40px rgba(0,0,0,.1));
}
.mp-notebook-wrapper > img { width: 100%; height: auto; display: block; }
.mp-iframe-overlay {
    position: absolute;
    /* Extend 3px beyond display edges to eliminate white gap */
    top: calc(4.52% - 3px);
    left: calc(13.88% - 3px);
    width: calc(72.29% + 6px);
    height: calc(73.37% + 6px);
}
.mp-iframe-overlay iframe { width: 100%; height: 100%; border: none; }

/* Demo features */
.mp-demo-feature {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #eeeeee;
}
.mp-demo-feature:first-of-type { border-top: 1px solid #eeeeee; }
.mp-demo-feat-icon {
    width: 36px; height: 36px;
    background: #e8f0fe; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.mp-demo-feature h5 { font-size: 0.92rem; font-weight: 600; margin-bottom: 3px; color: var(--color-text); }
.mp-demo-feature p  { font-size: 0.82rem; color: #5f6368; line-height: 1.6; }

/* GSV block */
.mp-gsv-block {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 22px;
    background: #fff; border: 1px solid #eeeeee; border-radius: 10px;
}
.mp-gsv-block img { height: 80px; width: auto; flex-shrink: 0; border-radius: 6px; }
.mp-gsv-block p   { font-size: 0.85rem; color: #5f6368; line-height: 1.6; margin: 0; }

/* iframe wrap */
.mp-iframe-wrap {
    width: 100%; aspect-ratio: 16/9;
    background: #f8f9fa; border-radius: 12px;
    overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.1);
}
.mp-iframe-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* Process */
.mp-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.mp-process-step {
    background: #fff; border: 1px solid #eeeeee; border-radius: 16px;
    padding: 32px 24px;
    transition: box-shadow 0.2s;
}
.mp-process-step:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.mp-step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; margin-bottom: 20px;
}
.mp-process-step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--color-text); }
.mp-process-step p  { font-size: 0.85rem; color: #5f6368; line-height: 1.7; }

/* Pricing */
.mp-pricing-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 12px; margin-bottom: 20px;
}
.mp-price-card {
    background: #fff; border: 1px solid #eeeeee; border-radius: 16px;
    padding: 24px 16px; text-align: center;
    transition: box-shadow 0.2s, transform 0.2s; position: relative;
}
.mp-price-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.mp-price-featured { border-color: var(--color-primary); background: #e8f0fe; }
.mp-price-featured::before {
    content: 'POPULAR';
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--color-primary); color: #fff;
    font-size: 8px; font-weight: 700; letter-spacing: 1.5px;
    padding: 3px 12px; border-radius: 16px; white-space: nowrap;
}
.mp-price-tier   { font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #80868b; margin-bottom: 6px; }
.mp-price-size   { font-size: 0.82rem; color: #5f6368; margin-bottom: 4px; }
.mp-price-scans  { font-size: 0.75rem; color: var(--color-primary); font-weight: 500; margin-bottom: 12px; }
.mp-price-use    { font-size: 0.75rem; color: #80868b; margin-bottom: 16px; min-height: 36px; line-height: 1.5; }
.mp-price-amount { font-size: 1.6rem; font-weight: 700; color: var(--color-text); }

.mp-pricing-note {
    background: #f8f9fa; border: 1px solid #eeeeee; border-radius: 16px;
    padding: 28px 36px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.mp-pricing-note p { font-size: 0.85rem; color: #5f6368; line-height: 1.8; }
.mp-pricing-note strong { color: var(--color-text); font-weight: 600; }

/* Tech badges */
.mp-tech-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mp-badge {
    background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 16px;
    padding: 5px 14px; font-size: 0.78rem; color: #5f6368; font-weight: 500;
}

/* Examples 2-col grid */
.mp-examples-2col {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px; margin-top: 48px;
}
.mp-example-item {
    border-radius: 10px; overflow: hidden;
    background: #fff; border: 1px solid #eeeeee;
    transition: box-shadow 0.2s;
}
.mp-example-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.mp-example-label {
    font-size: 0.72rem; font-weight: 600; color: #80868b;
    padding: 10px 14px; letter-spacing: 0.3px;
    text-transform: uppercase; display: block;
}

/* Contact */
.mp-contact-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #bdc1c6; margin-bottom: 4px; display: block; }
.mp-contact-value { font-size: 1.25rem; font-weight: 600; color: var(--color-text); transition: color 0.2s; display: block; }
.mp-contact-value:hover { color: var(--color-primary); }
.mp-contact-address { font-size: 0.82rem; color: #80868b; line-height: 1.9; margin-top: 36px; }

/* Responsive */
@media (max-width: 1100px) {
    #mp-progress-nav { display: none; }
    .mp-pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .mp-si { padding-top: 68px; padding-bottom: 68px; }
    .mp-section-hero .mp-si { padding-top: 100px; }
    .mp-hero-grid  { grid-template-columns: 1fr; }
    .mp-hero-bg-shape { display: none; }
    .mp-two-col    { grid-template-columns: 1fr; gap: 40px; }
    .mp-process-grid  { grid-template-columns: 1fr; gap: 16px; }
    .mp-segments-grid { grid-template-columns: repeat(2, 1fr); }
    .mp-pricing-grid  { grid-template-columns: repeat(2, 1fr); }
    .mp-pricing-note  { grid-template-columns: 1fr; gap: 20px; }
    .mp-hero-stats    { gap: 28px; }
    .mp-examples-2col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .mp-si { padding-left: 5vw; padding-right: 5vw; }
    .mp-segments-grid { grid-template-columns: 1fr; }
    .mp-pricing-grid  { grid-template-columns: 1fr; }
    .mp-hero-stats    { flex-wrap: wrap; gap: 20px; }
    .mp-price-featured::before { content: 'POPULAR'; }
}

/* ══════════════════════════════════════════════════════════
   GOOGLE MAPS PAGE — new interactive sections
   ══════════════════════════════════════════════════════════ */

/* Hero: laptop breaks out to right edge of viewport */
.mp-section-hero {
    overflow: hidden;  /* clip laptop that extends beyond viewport */
}
.mp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.mp-hero-text {
    /* Text stays inside normal flow */
}
#gm-laptop-hero {
    /* Break out toward right edge — stops ~32px before edge */
    margin-right: calc(-1 * (50vw - 50%) + 32px);
    width: calc(50vw);
}
.mp-hero-text { min-width: 0; }

#gm-laptop-hero {
    transition: opacity 0.3s ease;
}
#gm-laptop-hero .mp-notebook-wrapper {
    filter: drop-shadow(0 16px 48px rgba(0,0,0,.15));
}


/* ── Sticky WHY section ──────────────────────────────────── */
.gm-why-sticky {
    display: block;
    height: calc(4 * 100vh); /* 4 reasons × 100vh scroll distance */
    position: relative;
}
.gm-why-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;   /* single row fills viewport height */
    gap: 80px;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px clamp(1.5rem, 8vw, 80px);
    box-sizing: border-box;
}

/* ── Why right panel: CSS Grid stack — cards overlap ────────── */
.gm-why-right {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-self: center;   /* don't stretch — center vertically */
    height: 420px;        /* fixed height matching left column content */
    position: relative;
}

/* All 4 cards in same grid cell = perfect overlap */
.gm-why-reason {
    grid-area: 1 / 1 / 2 / 2;   /* explicit: row1 col1 */
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    /* Hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease,
                visibility 0s linear 0.5s;
}
.gm-why-reason.gm-reason-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease,
                visibility 0s linear 0s;
}
.gm-why-reason.gm-reason-past {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-24px);
    transition: opacity 0.5s ease, transform 0.5s ease,
                visibility 0s linear 0.5s;
}

/* SVG area — fills space above text */
.gm-why-anim {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gm-svg-anim {
    width: 100%;
    max-height: 260px;
    height: auto;
    display: block;
}

/* Text — fixed at bottom of card */
.gm-why-reason-body {
    flex-shrink: 0;
    padding: 16px 0 0;
}
.gm-why-reason-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}
.gm-why-reason-body p {
    font-size: 0.88rem;
    color: #5f6368;
    line-height: 1.7;
    margin: 0;
}

/* Mobile: hide sticky, show normal */
.gm-why-mobile { display: none; }

/* Left panel */
.gm-why-left { }

.gm-why-bigstat {
    margin-top: 32px;
    padding: 28px 32px;
    background: var(--color-primary-light);
    border-radius: 20px;
    border: 1px solid rgba(26,115,232,.2);
}
.gm-why-bignum {
    display: block;
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}
.gm-why-biglabel {
    display: block;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}
.gm-why-bigcite {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.gm-why-minicards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}
.gm-why-minicard {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
}
.gm-why-minicard strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}
.gm-why-minicard span {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Right panel — reasons */


/* SVG animation area — flex so it fills card space above text */

.gm-why-reason-body h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}
.gm-why-reason-body p {
    font-size: 0.92rem;
    color: #5f6368;
    line-height: 1.7;
}

/* Progress dots for why section */
.gm-why-progress {
    position: absolute;
    bottom: -48px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.gm-why-prog-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.3s, transform 0.3s;
}
.gm-why-prog-dot.active {
    background: var(--color-primary);
    transform: scale(1.4);
}

/* ── Counter glow ─────────────────────────────────────────── */
.gm-why-bignum.gm-counter-done {
    animation: gmCounterGlow 0.6s ease-out;
}
@keyframes gmCounterGlow {
    0%   { text-shadow: none; }
    50%  { text-shadow: 0 0 32px rgba(26,115,232,.6), 0 0 64px rgba(26,115,232,.25); }
    100% { text-shadow: none; }
}

/* Hero counter highlight */
.mp-stat-item--hero .mp-stat-num {
    font-size: 2.6rem;
    color: var(--color-primary);
    display: inline-block;
    min-width: 5ch;      /* wide enough for "+87%" — prevents layout shift */
    text-align: left;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .mp-hero-grid { grid-template-columns: 1fr; }
    #gm-laptop-hero {
        order: -1;
        width: 100vw;
        margin-left: calc(-1 * clamp(1.5rem, 5vw, 60px));
        margin-right: calc(-1 * clamp(1.5rem, 5vw, 60px));
    }

    /* Disable sticky on mobile, show normal layout */
    .gm-why-sticky  { display: none; }
    .gm-why-mobile  { display: block; }

    .gm-laptop-expand-wrap { max-width: 100% !important; opacity: 1 !important; padding: 0 5vw 32px; }
}

@media (max-width: 600px) {
    .gm-why-minicards { grid-template-columns: 1fr 1fr; }
}

/* ── Google dashes running around chip border ───────────────── */
.mp-hero-chip--google {
    position: relative;
    background: #d2e3fc;
    color: #1557b0;
    font-weight: 600;
    border: none;           /* border replaced by animated dashes */
    overflow: visible;
    z-index: 0;
}

/* Subtle static background border so chip has a base */
.mp-hero-chip--google::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1.5px solid rgba(26,115,232,.15);
    pointer-events: none;
}

/* Four dashes travel along the chip border using offset-path */
.gm-google-dot {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 10;
}

.gm-google-dot i {
    display: block;
    position: absolute;
    width: 12px;        /* dash length */
    height: 1.5px;      /* same thickness as border */
    border-radius: 1px;
    margin: -0.75px 0 0 -6px;  /* center on path */
    offset-path: border-box;
    offset-rotate: auto;   /* dash rotates to follow path direction */
}

.gm-google-dot i:nth-child(1) {
    background: #4285f4;
    animation: gmDashTravel 8s linear infinite;
    offset-distance: 0%;
}
.gm-google-dot i:nth-child(2) {
    background: #ea4335;
    animation: gmDashTravel 8s linear infinite;
    offset-distance: 1.7%;   /* ~12px / ~700px perimeter */
}
.gm-google-dot i:nth-child(3) {
    background: #fbbc04;
    animation: gmDashTravel 8s linear infinite;
    offset-distance: 3.4%;
}
.gm-google-dot i:nth-child(4) {
    background: #34a853;
    animation: gmDashTravel 8s linear infinite;
    offset-distance: 5.1%;
}

@keyframes gmDashTravel {
    from { offset-distance: var(--start, 0%); }
    to   { offset-distance: calc(var(--start, 0%) + 100%); }
}


/* ── Process steps with SVG animations ──────────────────────── */
.mp-process-step {
    display: flex;
    flex-direction: column;
}

.gm-scan-box {
    width: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #eeeeee;
}

.gm-scan-svg {
    width: 100%;
    height: auto;
    display: block;
}

.mp-process-step h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.mp-process-step p {
    font-size: 0.85rem;
    color: #5f6368;
    line-height: 1.7;
    margin: 0;
}

/* ── Morphing line animation wrapper ────────────────────────── */
.gm-morphline-wrap {
    width: 100%;
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-bottom: none;
}

/* Clean process grid below the line */
.mp-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #eeeeee;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    margin-bottom: 0;
    background: white;
}
.mp-process-step {
    padding: 24px;
    border-right: 1px solid #eeeeee;
    background: white;
    box-shadow: none;
    border-radius: 0;
    transition: background 0.2s;
}
.mp-process-step:last-child { border-right: none; }
.mp-process-step:hover { background: #f8f9fa; }
.mp-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 700;
    margin-bottom: 14px;
}
.mp-process-step h4 {
    font-size: 1rem; font-weight: 600;
    margin-bottom: 8px; color: var(--color-text);
}
.mp-process-step p {
    font-size: 0.85rem; color: #5f6368;
    line-height: 1.7; margin: 0;
}


/* ── How it works — line + icons ────────────────────────────── */
.gm-how-line-row {
    display: flex;
    align-items: flex-end;  /* align to dot row */
    padding-bottom: 0;
    position: relative;
    height: 130px;
}

.gm-how-spacer {
    flex: 0.5;
    height: 3px;
    background: #e8eaed;
    align-self: center;
    margin-top: 88px;
    position: relative;
}
/* Left spacer: gray base, blue fill animates over it */
.gm-how-spacer--left {
    background: #e8eaed;
    overflow: hidden;   /* clip the fill */
}
/* Right spacer: fully transparent — just for centering */
.gm-how-spacer--right {
    background: transparent;
    overflow: hidden;
}

.gm-how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

/* Icons — hidden by default, JS shows them */
.gm-how-icon {
    width: 80px; height: 80px;
    background: white;
    border-radius: 50%;
    border: 2px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    margin-bottom: 12px;
    opacity: 0;
    transform: scale(0.3) translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.gm-how-icon.gm-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.gm-how-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #e8eaed;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #e8eaed;
    position: relative;
    z-index: 2;
    transition: background 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}
.gm-how-dot.gm-visible {
    background: #1a73e8;
    box-shadow: 0 0 0 2px #1a73e8;
}

/* Connecting lines */
.gm-how-line {
    flex: 1;
    height: 3px;
    background: #e8eaed;
    position: relative;
    align-self: center;
    margin-top: 88px;  /* align with dots */
}
.gm-how-line-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 0%;
    background: #1a73e8;
    border-radius: 2px;
    transition: width 1.6s ease;
}
.gm-how-line-fill.gm-visible { width: 100%; }

/* Step 3 map */
.gm-how-step--map { position: relative; }
.gm-how-map-bg {
    position: absolute;
    width: 510px;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    bottom: -140px;      /* overlaps down into the box below */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;        /* always semi-transparent */
    z-index: 0;
    pointer-events: none;
}
.gm-how-map-bg img { width: 100%; height: 100%; object-fit: cover; }

.gm-how-icon--pin {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 56px; height: 66px;
    padding: 0;
    position: relative;
    z-index: 1;
    /* Override default transform for drop-in */
    transform: scale(1) translateY(-40px);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.gm-how-icon--pin.gm-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.gm-how-label {
    position: absolute;
    top: -24px;      /* above the pin */
    left: 50%;
    transform: translateX(-50%);
    background: #1a73e8;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
    font-family: var(--font-secondary);
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}
.gm-how-icon--pin.gm-visible .gm-how-label { opacity: 1; }

/* Step numbers — hidden initially */
.mp-process-grid .mp-step-num {
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.mp-process-grid .mp-step-num.gm-visible {
    opacity: 1;
    transform: scale(1);
}

/* Code lines in monitor — animated by JS */
#gm-code-1, #gm-code-2, #gm-code-3, #gm-code-4 {
    transition: x2 0.4s ease;
}
