/* GI MAP Test — Mobile-First Styles
   Base = mobile, min-width queries scale up
   Color Scheme: Deep Teal for gut health/medical credibility */

/* Font fallback metrics to prevent CLS during web font swap */
@font-face {
    font-family: 'DM Serif Display Fallback';
    src: local('Georgia');
    size-adjust: 105.5%;
    ascent-override: 90%;
    descent-override: 22%;
}
@font-face {
    font-family: 'Source Sans 3 Fallback';
    src: local('Segoe UI'), local('Roboto'), local('Helvetica Neue'), local('Arial');
    size-adjust: 100.5%;
    ascent-override: 96%;
    descent-override: 23%;
}

:root {
    --primary: #2B7A78;
    --primary-dark: #1A5F5D;
    --primary-light: #4DA8A6;
    --secondary: #C4A77D;
    --secondary-light: #D4C4AA;
    --accent: #D4573B;
    --accent-light: #E8795F;
    --text-dark: #1E2D2B;
    --text-medium: #4A5C59;
    --text-light: #5E6E6B;
    --bg-cream: #FAFDF9;
    --bg-warm: #F2F7F5;
    --bg-sage: #E8F4F2;
    --white: #FFFFFF;
    --border: #D8E5E2;
    --font-display: 'DM Serif Display', 'DM Serif Display Fallback', Georgia, serif;
    --font-body: 'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, sans-serif;
    --section-pad: 48px;
    --container: 90vw;
    --tap-target: 44px;
}

/* ═══ RESET & BASE (mobile) ══════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body); color: var(--text-dark);
    background: var(--bg-cream); line-height: 1.7; font-size: 16px;
    overflow-x: hidden; width: 100%; max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 72px; /* space for sticky mobile CTA */
}
img { max-width: 100%; height: auto; display: block; }
a { -webkit-tap-highlight-color: transparent; }

/* ═══ ACCESSIBILITY ═════════════════════════════════════════════ */
/* Skip to content link */
.skip-link {
    position: absolute; top: -100%; left: 16px; z-index: 10000;
    background: var(--primary); color: #fff; padding: 12px 24px;
    border-radius: 0 0 8px 8px; font-weight: 600; text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }
/* Focus indicators for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
/* Remove default outline only when using mouse */
:focus:not(:focus-visible) { outline: none; }

/* ═══ NAVIGATION (mobile base) ═══════════════════════════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(250, 253, 249, 0.97); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); transition: box-shadow 0.3s ease;
}
.nav-inner {
    max-width: var(--container); margin: 0 auto;
    padding: 6px 16px; display: flex;
    justify-content: space-between; align-items: center;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 52px; width: auto; }
.logo-icon { display: inline-block; }

/* Desktop nav links — hidden on mobile */
.nav-links { display: none !important; list-style: none; background-color: transparent; }
.nav-links a {
    color: var(--text-medium); text-decoration: none;
    font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
    background: var(--primary); color: white !important;
    padding: 10px 22px; border-radius: 6px; transition: transform 0.2s, background-color 0.2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

/* Mobile hamburger */
.mobile-menu-btn {
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; width: var(--tap-target); height: var(--tap-target);
    background: none; border: none; cursor: pointer; padding: 8px;
    z-index: 9999; position: relative;
}
.mobile-menu-btn span {
    display: block; width: 22px; height: 2.5px;
    background: var(--text-dark); margin: 3px 0;
    transition: transform 0.3s, opacity 0.3s; border-radius: 2px;
}
.mobile-menu-btn.active span { background: var(--text-dark); }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* ═══ LANGUAGE SWITCHER ═══════════════════════════════════════════ */
.lang-switcher {
    display: flex; align-items: center; gap: 2px;
    margin-left: 4px; margin-right: 4px;
    background: var(--bg-cream); border: 1px solid var(--border);
    border-radius: 8px; padding: 2px;
}
.lang-pill {
    display: flex; align-items: center;
    padding: 5px 8px; font-size: 0.72rem;
    font-weight: 600; color: var(--text-light); text-decoration: none;
    border-radius: 6px; transition: background-color 0.2s;
    letter-spacing: 0.03em; line-height: 1; min-height: 28px;
}
.lang-pill:hover { color: var(--primary); background: rgba(45, 106, 79, 0.08); }
.lang-pill-active {
    background: var(--primary); color: #fff !important;
    box-shadow: 0 1px 3px rgba(45, 106, 79, 0.3);
}
.lang-pill-active:hover { background: var(--primary-dark); color: #fff !important; }

/* ═══ STICKY MOBILE CTA ══════════════════════════════════════════ */
.mobile-sticky-cta {
    display: block; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 999; background: var(--primary);
    padding: 14px 16px env(safe-area-inset-bottom, 0px); text-align: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mobile-sticky-cta a {
    display: block; color: white; text-decoration: none;
    font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em;
    padding: 2px 0;
}

/* ═══ HERO (mobile base) ═════════════════════════════════════════ */
.hero {
    padding: 90px 0 48px;
    background: radial-gradient(ellipse at 20% 80%, rgba(43,122,120,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(196,167,125,0.06) 0%, transparent 50%),
                var(--bg-cream);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 60%; height: 100%; opacity: 0.5;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232B7A78' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-container {
    max-width: var(--container); margin: 0 auto; padding: 0 16px;
    display: flex; flex-direction: column; gap: 32px;
    text-align: center; position: relative; z-index: 1; width: 100%;
}
.hero-content { animation: fadeInUp 0.8s ease-out; order: 1; }
.hero-visual { order: 2; padding: 0; max-width: 100%; animation: fadeInUp 0.8s ease-out 0.2s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-sage); border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 50px;
    font-size: 0.8rem; color: var(--primary); font-weight: 600;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
    font-family: var(--font-display);
    font-size: 1.75rem; line-height: 1.2;
    color: var(--text-dark); margin-bottom: 16px; margin-top: 16px;
    word-wrap: break-word; overflow-wrap: break-word;
}
.hero h1 span { color: var(--primary); }
.hero-description {
    font-size: 1rem; color: var(--text-medium);
    margin-bottom: 24px; max-width: 100%;
    margin-left: auto; margin-right: auto;
}
.hero-ctas {
    display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px;
}
.hero-ctas .btn { width: 100%; padding: 16px 24px; font-size: 1rem; justify-content: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px; border-radius: 8px;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease; cursor: pointer; border: none;
    -webkit-tap-highlight-color: transparent;
    min-height: var(--tap-target);
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px rgba(43,122,120,0.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: white; color: var(--text-dark); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Hero stats */
.hero-stats { display: flex; flex-direction: column; gap: 12px; }
.hero-stat { text-align: center; background: rgba(255,255,255,0.6); padding: 12px 20px; border-radius: 12px; border-left: none; }
.hero-stat:first-child { padding-left: 20px; }
.hero-stat-number { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); }
.hero-stat-label { font-size: 0.85rem; color: var(--text-light); }

/* Hero card */
.hero-card { background: white; border-radius: 16px; padding: 20px 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 12px 40px rgba(0,0,0,0.08); position: relative; z-index: 1; }
.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.hero-card-icon { width: 44px; height: 44px; flex-shrink: 0; background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.hero-card-icon svg { width: 22px; height: 22px; fill: white; }
.hero-card-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-dark); }
.hero-card-subtitle { font-size: 0.8rem; color: var(--text-light); }

/* Marker grid */
.marker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.marker-item { background: var(--bg-warm); padding: 10px 6px; border-radius: 8px; text-align: center; transition: transform 0.2s, background-color 0.2s; }
.marker-item:hover { background: var(--bg-sage); transform: translateY(-2px); }
.marker-symbol { font-size: 1.2rem; margin-bottom: 2px; }
.marker-name { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }

/* Floating badges — hidden on mobile */
.hero-floating { display: none; }
.floating-content { display: flex; align-items: center; gap: 12px; }
.floating-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.floating-icon.teal { background: var(--bg-sage); }
.floating-icon.teal svg { fill: var(--primary); }
.floating-icon.orange { background: #FEF3E8; }
.floating-icon.orange svg { fill: var(--accent); }
.floating-text { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.floating-subtext { font-size: 0.75rem; color: var(--text-light); }

/* ═══ TRUST BADGES ═══════════════════════════════════════════════ */
.trust-badges { padding: 28px 0; background: var(--bg-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.badges-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; justify-items: center; }
.badge-item { display: flex; align-items: center; gap: 10px; }
.badge-icon { font-size: 1.5rem; }
.badge-text strong { display: block; font-size: 0.8rem; color: var(--text-dark); }
.badge-text span { font-size: 0.7rem; color: var(--text-light); }

/* ═══ SECTIONS ═══════════════════════════════════════════════════ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 40px; padding: 0 8px; }
.section-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-dark); margin-bottom: 14px; }
.section-subtitle { font-size: 0.95rem; color: var(--text-medium); }

/* ═══ WHAT WE TEST (horizontal scroll) ══════════════════════════ */
.what-we-test { padding: var(--section-pad) 0; background: white; }
.test-categories {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 16px;
    padding-bottom: 16px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
    scrollbar-width: none;
}
.test-categories::-webkit-scrollbar { display: none; }
.test-category {
    flex: 0 0 85%; min-width: 260px; scroll-snap-align: start;
    background: var(--bg-cream); border-radius: 16px; padding: 28px 20px;
    border: 1px solid var(--border); transition: transform 0.3s ease;
}
.test-category:hover { transform: translateY(-3px); }
.test-category-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.test-category-icon svg { width: 26px; height: 26px; }
.test-category-icon.pathogens { background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%); }
.test-category-icon.pathogens svg { fill: var(--primary); }
.test-category-icon.microbiome { background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%); }
.test-category-icon.microbiome svg { fill: #00796B; }
.test-category-icon.markers { background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%); }
.test-category-icon.markers svg { fill: var(--accent); }
.test-category h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; color: var(--text-dark); }
.test-category p { color: var(--text-medium); font-size: 0.9rem; margin-bottom: 16px; }
.test-list { display: flex; flex-wrap: wrap; gap: 6px; }
.test-tag { background: white; border: 1px solid var(--border); padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; color: var(--text-medium); }

/* ═══ HOW IT WORKS (horizontal scroll) ══════════════════════════ */
.how-it-works { padding: var(--section-pad) 0; background: var(--bg-sage); position: relative; overflow: hidden; }
.how-it-works::before {
    content: ''; position: absolute; inset: 0; opacity: 0.5;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50m-40 0a40,40 0 1,0 80,0a40,40 0 1,0 -80,0' fill='none' stroke='%232B7A78' stroke-opacity='0.05' stroke-width='0.5'/%3E%3C/svg%3E");
}
.steps-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 16px;
    padding: 20px 16px 16px; margin: 0 -16px;
    position: relative; z-index: 1; scrollbar-width: none;
}
.steps-grid::-webkit-scrollbar { display: none; }
.step-card {
    flex: 0 0 75%; min-width: 240px; scroll-snap-align: start;
    background: white; border-radius: 16px; padding: 28px 20px;
    text-align: center; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.step-number { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.step-icon { width: 60px; height: 60px; background: var(--bg-warm); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 16px auto 16px; }
.step-icon svg { width: 28px; height: 28px; fill: var(--primary); }
.step-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; color: var(--text-dark); }
.step-card p { font-size: 0.85rem; color: var(--text-medium); }

/* ═══ PRICING (horizontal scroll) ════════════════════════════════ */
.pricing { padding: var(--section-pad) 0; background: white; }
.pricing-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 16px;
    padding: 20px 16px 16px; margin: 0 -16px;
    scrollbar-width: none;
}
.pricing-grid::-webkit-scrollbar { display: none; }
.pricing-card {
    flex: 0 0 85%; min-width: 280px; scroll-snap-align: start;
    background: var(--bg-cream); border-radius: 20px; padding: 28px 20px;
    border: 2px solid var(--border); position: relative; transition: transform 0.3s ease;
}
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card.featured { background: white; border-color: var(--primary); box-shadow: 0 12px 40px rgba(43,122,120,0.12); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 6px 18px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.pricing-header { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.pricing-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--text-dark); margin-bottom: 6px; }
.pricing-description { font-size: 0.85rem; color: var(--text-medium); }
.pricing-price { text-align: center; margin-bottom: 20px; }
.pricing-amount { font-family: var(--font-display); font-size: 2.5rem; color: var(--primary); }
.pricing-amount span { font-size: 1rem; color: var(--text-medium); }
.pricing-period { font-size: 0.85rem; color: var(--text-medium); }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--text-medium); }
.pricing-features li svg { width: 18px; height: 18px; fill: var(--primary); flex-shrink: 0; margin-top: 3px; }
.pricing-features li strong { color: var(--text-dark); }

/* ═══ WHY GI-MAP (stacked) ══════════════════════════════════════ */
.why-gimap { padding: var(--section-pad) 0; background: var(--bg-warm); }
.why-grid { display: flex; flex-direction: column; gap: 32px; }
.why-content h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 16px; color: var(--text-dark); }
.why-content p { color: var(--text-medium); margin-bottom: 24px; font-size: 0.95rem; }
.why-list { list-style: none; }
.why-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.why-list-icon { width: 44px; height: 44px; min-width: 44px; background: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.why-list-icon svg { width: 22px; height: 22px; fill: var(--primary); }
.why-list h3 { font-size: 1rem; margin-bottom: 4px; color: var(--text-dark); }
.why-list p { font-size: 0.85rem; color: var(--text-medium); margin-bottom: 0; }

/* ═══ COMPARISON TABLE ═══════════════════════════════════════════ */
.comparison-table { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.comparison-header { display: grid; grid-template-columns: 2fr 1fr 1fr; background: var(--primary); color: white; padding: 12px; font-weight: 600; font-size: 0.78rem; }
.comparison-row { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 12px; border-bottom: 1px solid var(--border); font-size: 0.78rem; }
.comparison-row:last-child { border-bottom: none; }
.comparison-row .label { color: var(--text-dark); }
.comparison-row .check { text-align: center; color: var(--primary); font-weight: 600; }
.comparison-row .cross { text-align: center; color: var(--text-light); }

/* ═══ TESTIMONIALS ═══════════════════════════════════════════════ */
.testimonials-section { padding: var(--section-pad) 0; background: white; }
.testimonials-grid-home { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.testimonial-card-home { background: var(--bg-cream); border-radius: 16px; padding: 24px 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); border: 1px solid var(--border); transition: transform 0.2s; }
.testimonial-card-home:hover { transform: translateY(-2px); }
.testimonial-card-home .stars { color: #F59E0B; font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 12px; }
.testimonial-card-home blockquote { font-size: 0.95rem; line-height: 1.7; color: var(--text-medium); margin: 0 0 16px; font-style: italic; }
.testimonial-author-home { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.testimonial-author-home strong { color: var(--text-dark); font-weight: 600; }
.testimonial-author-home span { font-size: 0.85rem; color: var(--text-light); }
.testimonials-footer { display: flex; flex-direction: column; text-align: center; gap: 16px; }
.rating-summary-home { display: flex; align-items: center; gap: 12px; justify-content: center; }
.stars-large { color: #F59E0B; font-size: 1.3rem; letter-spacing: 2px; }
.read-more-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.read-more-link:hover { text-decoration: underline; }

/* ═══ FAQ ════════════════════════════════════════════════════════ */
.faq { padding: var(--section-pad) 0; background: white; }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text-dark); min-height: var(--tap-target); -webkit-tap-highlight-color: transparent; }
.faq-question:hover { color: var(--primary); }
.faq-question svg { width: 22px; height: 22px; fill: var(--text-light); transition: transform 0.3s ease; flex-shrink: 0; margin-left: 12px; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding-bottom: 20px; color: var(--text-medium); line-height: 1.8; font-size: 0.9rem; }

/* ═══ CTA SECTION ════════════════════════════════════════════════ */
.cta-section { padding: var(--section-pad) 16px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.cta-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.cta-content { text-align: center; position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-family: var(--font-display); font-size: 1.5rem; color: white; margin-bottom: 16px; }
.cta-content p { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.cta-content .btn-primary { background: white; color: var(--primary); }
.cta-content .btn-primary:hover { background: var(--bg-cream); transform: translateY(-2px); }

/* ═══ FOOTER ═════════════════════════════════════════════════════ */
.footer { padding: 48px 0 100px; background: var(--text-dark); color: rgba(255,255,255,0.8); }
.footer-grid { display: flex; flex-direction: column; gap: 32px; margin-bottom: 32px; text-align: center; }
.footer-brand .logo { margin-bottom: 12px; justify-content: center; }
.footer-brand .logo img { height: 56px; width: auto; margin: 0 auto; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-column h3 { color: white; font-size: 0.95rem; margin-bottom: 16px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.85rem; display: inline-block; padding: 4px 0; min-height: 32px; line-height: 32px; }
.footer-column a:hover { color: white; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; font-size: 0.8rem; }
.footer-legal { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: rgba(255,255,255,0.75); text-decoration: none; padding: 6px 10px; display: inline-block; min-height: 32px; }
.footer-legal a:hover { color: white; }
.site-credit { color: rgba(255,255,255,0.7); font-size: 0.75rem; }
.site-credit a { color: rgba(255,255,255,0.75); text-decoration: underline; }
.site-credit a:hover { color: white; }

/* Contrast fix: trademark notice on dark footer */
.trademark-notice p { color: rgba(255,255,255,0.75) !important; }
/* Screen-reader only utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ═══ BLOG ═══════════════════════════════════════════════════════ */
.blog-hero { padding: calc(var(--section-pad) + 56px) 0 var(--section-pad); background: var(--bg-sage); }
.blog-grid { display: flex; flex-direction: column; gap: 20px; }
.blog-card { background: white; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.3s; }
.blog-card:hover { transform: translateY(-2px); }
.blog-card-content { padding: 20px; }
.blog-card-tag { font-size: 0.75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.blog-card-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-dark); margin-bottom: 10px; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { font-size: 0.85rem; color: var(--text-medium); margin-bottom: 12px; }
.blog-card-meta { font-size: 0.75rem; color: var(--text-light); }

/* ═══ INNER PAGES ════════════════════════════════════════════════ */
.page-hero { padding: calc(var(--section-pad) + 56px) 0 40px; background: var(--bg-sage); text-align: center; }
.page-hero h1 { font-family: var(--font-display); font-size: 1.6rem; color: var(--text-dark); margin-bottom: 12px; }
.page-hero p { font-size: 1rem; color: var(--text-medium); max-width: 600px; margin: 0 auto; }
.page-content { padding: var(--section-pad) 0; }
.page-content h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-dark); margin: 32px 0 12px; }
.page-content h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-dark); margin: 20px 0 10px; }
.page-content p { color: var(--text-medium); margin-bottom: 14px; line-height: 1.8; font-size: 0.95rem; }
.content-narrow { max-width: 800px; margin: 0 auto; }

/* ═══ UTILITY ════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.i18n-content-notice { background: #FFF3CD; border: 1px solid #FFECB5; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 0.85rem; color: #664D03; text-align: center; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — SCALE UP (min-width breakpoints)
   ═══════════════════════════════════════════════════════════════ */

/* ── LARGE PHONE (480px+) ───────────────────────────────────── */
@media (min-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: row; justify-content: center; gap: 16px; }
    .hero-stat { padding: 14px 24px; }
    .hero-stat-number { font-size: 1.75rem; }
    .marker-grid { gap: 10px; }
    .marker-symbol { font-size: 1.3rem; }
    .marker-name { font-size: 0.7rem; }
    .section-title { font-size: 1.65rem; }
    .pricing-amount { font-size: 2.8rem; }
    .badges-grid { gap: 20px; }
    .badge-text strong { font-size: 0.85rem; }
}

/* ── TABLET (768px+) ────────────────────────────────────────── */
@media (min-width: 768px) {
    :root { --section-pad: 80px; --container: min(1200px, 90vw); }
    body { font-size: 17px; padding-bottom: 0; }

    .mobile-sticky-cta { display: none; }

    .nav-inner { padding: 8px 24px; }
    .logo img { height: 70px; }
    .nav-links { display: flex !important; gap: 28px; align-items: center; }
    .mobile-menu-btn { display: none; }
    .lang-switcher { margin-left: 16px; }
    .lang-pill { padding: 6px 10px; font-size: 0.78rem; }

    .hero { padding: calc(var(--section-pad) + 60px) 0 var(--section-pad); }
    .hero-container { padding: 0 24px; text-align: left; }
    .hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
    .hero-description { font-size: 1.1rem; margin-left: 0; margin-right: 0; }
    .hero-ctas { flex-direction: row; }
    .hero-ctas .btn { width: auto; }
    .hero-stats { justify-content: flex-start; gap: 32px; }
    .hero-stat { background: none; padding: 0; padding-left: 20px; border-left: 2px solid var(--border); }
    .hero-stat:first-child { border-left: none; padding-left: 0; }
    .hero-stat-number { font-size: 2rem; }
    .hero-card { padding: 36px; }
    .hero-card-icon { width: 52px; height: 52px; }
    .marker-grid { gap: 12px; }
    .marker-symbol { font-size: 1.4rem; }
    .marker-name { font-size: 0.75rem; }

    .container { padding: 0 24px; }
    .section-header { margin-bottom: 50px; }
    .section-title { font-size: clamp(2rem, 3.5vw, 2.5rem); }
    .section-subtitle { font-size: 1.05rem; }

    .trust-badges { padding: 36px 0; }
    .badges-grid { display: flex; flex-direction: row; justify-content: center; gap: 40px; flex-wrap: wrap; }
    .badge-icon { font-size: 1.7rem; }
    .badge-text strong { font-size: 0.9rem; }
    .badge-text span { font-size: 0.78rem; }

    .testimonials-grid-home { flex-direction: row; gap: 20px; }
    .testimonials-footer { flex-direction: row; justify-content: space-between; text-align: left; }

    .blog-grid { flex-direction: row; flex-wrap: wrap; }
    .blog-card { flex: 1 1 calc(50% - 12px); }

    .footer { padding: 60px 0 30px; }
    .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; text-align: left; }
    .footer-brand .logo { justify-content: flex-start; }
    .footer-brand .logo img { margin: 0; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
    .footer-legal { justify-content: flex-start; }

    .why-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }

    .page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
    .page-content h2 { font-size: 1.7rem; margin: 36px 0 14px; }

    .comparison-table { border-radius: 16px; }
    .comparison-header { padding: 16px 24px; font-size: 0.85rem; }
    .comparison-row { padding: 16px 24px; font-size: 0.88rem; }

    .faq-question { font-size: 1.1rem; padding: 24px 0; }
    .faq-answer p { font-size: 0.95rem; }
}

/* ── DESKTOP (1024px+) ──────────────────────────────────────── */
@media (min-width: 1024px) {
    :root { --section-pad: clamp(80px, 10vw, 120px); }

    .hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
    .hero-content { order: 1; }
    .hero-visual { order: 2; max-width: 500px; padding: 40px; overflow: visible; }
    .hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1.15; }

    .hero-floating {
        display: block; position: absolute; background: white;
        padding: 16px 20px; border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        animation: float 6s ease-in-out infinite; z-index: 100;
    }
    .hero-floating-1 { top: 5px; right: 5px; animation-delay: 0s; }
    .hero-floating-2 { bottom: 60px; left: 5px; animation-delay: -2s; }
    @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

    .test-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; overflow: visible; scroll-snap-type: none; margin: 0; padding: 0; }
    .test-category { flex: none; min-width: 0; padding: 36px; }
    .test-category:hover { transform: translateY(-5px); }
    .test-category h3 { font-size: 1.4rem; }

    .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; overflow: visible; scroll-snap-type: none; margin: 0; padding: 20px 0 0; }
    .step-card { flex: none; min-width: 0; padding: 32px; }
    .step-card h3 { font-size: 1.2rem; }
    .step-icon { width: 70px; height: 70px; margin: 20px auto; }
    .step-icon svg { width: 32px; height: 32px; }

    .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; overflow: visible; scroll-snap-type: none; max-width: 1100px; margin: 0 auto; padding: 20px 0 0; }
    .pricing-card { flex: none; min-width: 0; padding: 40px; }
    .pricing-card.featured { transform: scale(1.03); padding: 44px 40px; }
    .pricing-card.featured:hover { transform: scale(1.03) translateY(-5px); }
    .pricing-amount { font-size: 3rem; }
    .pricing-name { font-size: 1.5rem; }

    .why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

    .testimonials-grid-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

    .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .blog-card { flex: none; }

    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
    .footer-brand .logo img { height: 70px; }

    .nav-links { gap: 32px; }
    .logo img { height: 80px; }

    .page-hero { padding: calc(var(--section-pad) + 60px) 0 60px; }
    .page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
    .page-content h2 { font-size: 1.8rem; margin: 40px 0 16px; }
    .page-content h3 { font-size: 1.3rem; margin: 24px 0 12px; }

    .cta-content h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
    .cta-content p { font-size: 1.15rem; }
}

/* ── WIDE (1280px+) ─────────────────────────────────────────── */
@media (min-width: 1280px) {
    .hero-card { padding: 40px; }
    .hero-card-icon { width: 56px; height: 56px; }
    .hero-card-icon svg { width: 28px; height: 28px; }
    .badges-grid { gap: 48px; }
    .badge-icon { font-size: 1.8rem; }
    .badge-text strong { font-size: 0.95rem; }
    .badge-text span { font-size: 0.8rem; }
}
