/* =========================================
   DR4.LIFE - Premium Medical Landing Page
   Deep Emerald → Light Mint Theme Transition
   ========================================= */

:root {
    --green-900: #022c22;
    --green-800: #064e3b;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-400: #34d399;
    --green-300: #6ee7b7;
    --green-200: #a7f3d0;
    --green-100: #d1fae5;
    --mint-50: #f0fdf4;
    --mint-100: #dcfce7;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gradient-primary: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 50%, var(--green-400) 100%);
    --gradient-dark: linear-gradient(180deg, var(--green-900) 0%, #011912 100%);
    --gradient-glow: radial-gradient(ellipse at center, var(--green-500) 0%, transparent 70%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 60px rgba(16, 185, 129, 0.3);
    --shadow-light: 0 4px 20px rgba(16, 185, 129, 0.1);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-theme: 600ms ease;
    --z-background: -1;
    --z-base: 1;
    --z-elevated: 10;
    --z-nav: 100;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--white);
    background: var(--gradient-dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.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; }
:focus-visible { outline: 2px solid var(--green-400); outline-offset: 2px; }

/* Section Theme Transitions */
.section-dark { background: var(--gradient-dark); color: var(--white); }
.section-transition { background: linear-gradient(180deg, #011912 0%, var(--green-800) 50%, var(--mint-100) 100%); }
.section-light { background: var(--mint-50); color: var(--gray-800); }
.section-light .section-title, .section-light .step-title, .section-light .feature-title { color: var(--green-900); }
.section-light .section-subtitle, .section-light .step-desc, .section-light .feature-desc { color: var(--gray-600); }
.section-light .section-tag { background: rgba(16, 185, 129, 0.15); border-color: var(--green-500); color: var(--green-700); }
.section-light .step-card, .section-light .feature-card { background: var(--white); border-color: rgba(16, 185, 129, 0.15); box-shadow: var(--shadow-light); }
.section-light .step-icon, .section-light .feature-icon { background: var(--mint-100); }
.section-light .step-icon svg, .section-light .feature-icon svg { color: var(--green-600); }
.section-light .safety-list li { border-color: rgba(16, 185, 129, 0.15); }
.section-light .safety-list span { color: var(--gray-700); }
.section-light .catr-node { background: var(--white); border-color: rgba(16, 185, 129, 0.2); }
.section-light .catr-node span { color: var(--gray-800); }
.section-light .catr-arrow { color: var(--green-500); }
.section-light .deployment-card { background: var(--white); border-color: rgba(16, 185, 129, 0.15); box-shadow: var(--shadow-light); }
.section-light .deployment-card h3 { color: var(--green-700); }
.section-light .deployment-card p, .section-light .deployment-stats li { color: var(--gray-600); }
.section-light .deployment-stats strong { color: var(--green-800); }
.section-light .timeline { background: var(--white); border-color: rgba(16, 185, 129, 0.15); box-shadow: var(--shadow-light); }
.section-light .timeline-title { color: var(--green-700); }
.section-light .timeline-label { color: var(--gray-600); }

/* Blobs */
.blob-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: var(--z-background); overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; will-change: transform; }
.blob-1 { width: 600px; height: 600px; background: var(--green-600); top: -200px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--green-500); bottom: 20%; left: -100px; }
.blob-3 { width: 300px; height: 300px; background: var(--green-400); top: 50%; right: 10%; }

/* Navigation */
.main-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: var(--z-nav); padding: var(--space-md) 0; background: rgba(2, 44, 34, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); transition: background var(--transition-theme); }
.main-nav.nav-light { background: rgba(255, 255, 255, 0.9); border-color: rgba(16, 185, 129, 0.1); }
.main-nav.nav-light .nav-links a { color: var(--gray-600); }
.main-nav.nav-light .nav-links a:hover { color: var(--green-700); }
.main-nav.nav-light .nav-btn-kiosk { color: var(--green-700); border-color: var(--green-500); }
.main-nav.nav-light .mobile-menu-toggle span { background: var(--green-800); }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-xl); display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.logo { text-decoration: none; }
.logo-img { height: 32px; width: auto; transition: opacity var(--transition-base); }
.footer-brand .logo-img { height: 28px; margin-bottom: var(--space-sm); }
.nav-links { display: flex; align-items: center; gap: var(--space-xl); list-style: none; }
.nav-links a { color: var(--gray-300); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color var(--transition-fast); }
.nav-links a:hover { color: var(--white); }
.nav-btn-kiosk { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 10px 18px; background: transparent; border: 1px solid rgba(16, 185, 129, 0.45); border-radius: var(--radius-full); color: var(--green-400); font-size: 0.85rem; font-weight: 500; font-family: inherit; cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; }
.nav-btn-kiosk:hover { background: rgba(16, 185, 129, 0.12); box-shadow: 0 0 24px rgba(16, 185, 129, 0.35); }
.nav-btn-kiosk svg { flex-shrink: 0; }
.nav-cta { padding: var(--space-sm) var(--space-lg); background: var(--gradient-primary); color: var(--white); text-decoration: none; font-size: 0.9rem; font-weight: 600; border-radius: var(--radius-full); transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: var(--space-sm); }
.mobile-menu-toggle span { width: 24px; height: 2px; background: var(--white); transition: var(--transition-fast); }

/* Hero */
.hero { min-height: 100vh; padding: calc(80px + var(--space-3xl)) var(--space-xl) var(--space-3xl); display: flex; align-items: center; }
.hero-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4xl); align-items: center; }
.hero-content { max-width: 600px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; line-height: 1.1; margin-bottom: var(--space-lg); letter-spacing: -0.02em; }
.title-line { display: block; }
.title-accent { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; background-size: 200% 200%; animation: gradientShift 5s ease infinite; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-subtitle { font-size: 1.125rem; color: var(--gray-300); margin-bottom: var(--space-xl); max-width: 500px; }
.hero-buttons { display: flex; gap: var(--space-md); margin-bottom: var(--space-xl); flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-xl); font-size: 1rem; font-weight: 600; text-decoration: none; border-radius: var(--radius-full); transition: all var(--transition-fast); cursor: pointer; border: none; }
.btn-primary { background: var(--gradient-primary); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.btn-large { padding: var(--space-lg) var(--space-2xl); font-size: 1.125rem; }
.hero-disclaimer { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.85rem; color: var(--gray-400); }

/* Phone Mockup */
.hero-phone { position: relative; display: flex; justify-content: center; perspective: 1000px; }
.phone-frame { width: 320px; height: 660px; background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%); border-radius: 45px; padding: 12px; position: relative; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1); transform-style: preserve-3d; transition: transform var(--transition-slow); }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 28px; background: #000; border-radius: 0 0 20px 20px; z-index: 10; }
.phone-notch::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: #1a1a1a; border-radius: var(--radius-full); }
.phone-screen { width: 100%; height: 100%; background: linear-gradient(180deg, var(--green-900) 0%, #011912 100%); border-radius: 35px; overflow: hidden; overflow-y: auto; padding: var(--space-md); padding-top: 45px; display: flex; flex-direction: column; }
.phone-screen::-webkit-scrollbar { width: 3px; }
.phone-screen::-webkit-scrollbar-thumb { background: var(--green-600); border-radius: 3px; }
.phone-glow { position: absolute; width: 400px; height: 400px; background: var(--gradient-glow); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; opacity: 0.5; filter: blur(60px); }

/* App Header */
.app-header { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--space-sm); flex-shrink: 0; }
.app-logo-img { width: 70px; height: auto; }
.app-step { font-size: 0.7rem; color: var(--gray-400); font-weight: 500; }

/* Step Panels */
.step-panel { display: none; flex-direction: column; gap: var(--space-sm); flex: 1; overflow-y: auto; animation: fadeIn 0.3s ease; }
.step-panel.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

/* Body Selector */
.body-selector-container { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); }
.body-silhouette { width: 90px; height: 180px; }
.body-zone { fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.2); stroke-width: 1; cursor: pointer; transition: all var(--transition-fast); }
.body-zone:hover, .body-zone:focus { fill: rgba(16, 185, 129, 0.2); stroke: var(--green-400); }
.body-zone.active { fill: rgba(16, 185, 129, 0.4); stroke: var(--green-400); stroke-width: 2; }
.body-zone-connector { fill: rgba(255,255,255,0.05); }
.body-hint { font-size: 0.6rem; color: var(--gray-500); text-align: center; }

/* Selected Areas */
.selected-areas { display: flex; flex-direction: column; gap: var(--space-xs); }
.areas-label { font-size: 0.6rem; color: var(--gray-400); font-weight: 500; }
.areas-chips { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.area-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: rgba(16, 185, 129, 0.2); border: 1px solid var(--green-500); border-radius: var(--radius-full); font-size: 0.55rem; color: var(--green-300); }
.area-chip button { background: none; border: none; color: var(--green-300); cursor: pointer; font-size: 0.65rem; padding: 0; line-height: 1; }

/* Symptom Input */
.symptom-input-panel { display: flex; flex-direction: column; gap: var(--space-xs); }
.input-label { font-size: 0.6rem; color: var(--gray-400); font-weight: 500; }
.input-wrapper { display: flex; gap: 4px; }
.input-wrapper input { flex: 1; padding: 6px 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); color: var(--white); font-size: 0.65rem; font-family: inherit; }
.input-wrapper input::placeholder { color: var(--gray-500); }
.input-wrapper input:focus { outline: none; border-color: var(--green-500); background: rgba(255,255,255,0.08); }
.add-symptom-btn { width: 28px; height: 28px; background: var(--green-600); border: none; border-radius: var(--radius-md); color: var(--white); font-size: 1rem; cursor: pointer; transition: background var(--transition-fast); }
.add-symptom-btn:hover { background: var(--green-500); }
.quick-symptoms { display: flex; flex-wrap: wrap; gap: 4px; }
.quick-chip { padding: 3px 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-full); color: var(--gray-300); font-size: 0.55rem; cursor: pointer; transition: all var(--transition-fast); font-family: inherit; }
.quick-chip:hover { background: rgba(16, 185, 129, 0.1); border-color: var(--green-500); color: var(--green-300); }
.quick-chip.added { background: rgba(16, 185, 129, 0.2); border-color: var(--green-500); color: var(--green-300); }

/* Selected Symptoms */
.selected-symptoms-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-md); padding: var(--space-sm); }
.symptoms-label { font-size: 0.6rem; color: var(--gray-400); font-weight: 500; display: block; margin-bottom: var(--space-xs); }
.symptoms-list { display: flex; flex-wrap: wrap; gap: 4px; min-height: 18px; }
.symptoms-list .empty-state { font-size: 0.55rem; color: var(--gray-600); font-style: italic; }
.symptom-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: rgba(52, 211, 153, 0.15); border: 1px solid var(--green-400); border-radius: var(--radius-full); font-size: 0.55rem; color: var(--green-200); }
.symptom-chip button { background: none; border: none; color: var(--green-300); cursor: pointer; font-size: 0.65rem; padding: 0; line-height: 1; }

/* Vitals Grid */
.vitals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vital-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.vital-label { font-size: 0.55rem; color: var(--gray-400); font-weight: 500; }
.vital-input { width: 100%; padding: 6px 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); color: var(--white); font-size: 0.75rem; font-family: inherit; text-align: center; }
.vital-input:focus { outline: none; border-color: var(--green-500); }
.vital-input.small { width: 45%; padding: 4px 6px; }
.vital-input.error { border-color: #ef4444; }
.bp-inputs { display: flex; align-items: center; gap: 4px; }
.bp-separator { color: var(--gray-500); font-size: 0.8rem; }
.vital-unit { font-size: 0.5rem; color: var(--gray-500); text-align: right; }
.bmi-display { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--green-500); border-radius: var(--radius-md); padding: 8px; display: flex; justify-content: space-between; align-items: center; }
.bmi-label { font-size: 0.65rem; color: var(--green-300); font-weight: 500; }
.bmi-value { font-size: 1rem; font-weight: 700; color: var(--green-400); }
.mock-capture-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); width: 100%; padding: 8px; background: rgba(255,255,255,0.05); border: 1px dashed var(--green-500); border-radius: var(--radius-md); color: var(--green-400); font-size: 0.65rem; font-family: inherit; cursor: pointer; transition: all var(--transition-fast); }
.mock-capture-btn:hover { background: rgba(16, 185, 129, 0.1); }
.vital-error { font-size: 0.55rem; color: #f87171; min-height: 14px; text-align: center; }

/* History Form */
.history-form { display: flex; flex-direction: column; gap: 10px; }
.form-row { display: flex; gap: 8px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.half { flex: 1; }
.form-label { font-size: 0.6rem; color: var(--gray-400); font-weight: 500; }
.form-input, .form-select { width: 100%; padding: 6px 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); color: var(--white); font-size: 0.65rem; font-family: inherit; }
.form-select { cursor: pointer; }
.form-select option { background: var(--green-900); color: var(--white); }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--green-500); }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.checkbox-label, .radio-label { display: flex; align-items: center; gap: 6px; font-size: 0.6rem; color: var(--gray-300); cursor: pointer; }
.checkbox-label input, .radio-label input { accent-color: var(--green-500); }
.radio-group { display: flex; gap: var(--space-md); }
.pregnancy-group { padding: 8px; background: rgba(16, 185, 129, 0.1); border-radius: var(--radius-sm); }

/* Review */
.review-container { display: flex; flex-direction: column; gap: 10px; }
.review-section { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 8px; }
.review-title { font-size: 0.6rem; color: var(--green-400); font-weight: 600; margin-bottom: 4px; }
.review-content { font-size: 0.6rem; color: var(--gray-300); line-height: 1.4; }
.catr-safety-box { display: flex; gap: 8px; padding: 10px; background: rgba(16, 185, 129, 0.1); border: 1px solid var(--green-500); border-radius: var(--radius-md); }
.catr-icon { color: var(--green-400); flex-shrink: 0; }
.catr-text { display: flex; flex-direction: column; gap: 2px; }
.catr-text strong { font-size: 0.65rem; color: var(--green-300); }
.catr-text span { font-size: 0.55rem; color: var(--gray-400); }
.disclaimer-checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 0.55rem; color: var(--gray-300); cursor: pointer; padding: 8px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); }
.disclaimer-checkbox input { accent-color: var(--green-500); margin-top: 2px; }

/* Success */
.success-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); text-align: center; padding: var(--space-xl) 0; }
.success-icon { color: var(--green-400); }
.success-title { font-size: 1rem; font-weight: 600; color: var(--white); }
.success-text { font-size: 0.75rem; color: var(--gray-400); }
.view-result-btn, .restart-btn { width: 100%; padding: 10px; border-radius: var(--radius-md); font-size: 0.75rem; font-family: inherit; cursor: pointer; transition: all var(--transition-fast); }
.view-result-btn { background: var(--gradient-primary); border: none; color: var(--white); font-weight: 600; }
.view-result-btn:hover { box-shadow: var(--shadow-glow); }
.restart-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--gray-400); }
.restart-btn:hover { border-color: var(--green-500); color: var(--green-400); }

/* Phone CTAs */
.phone-ctas { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: auto; padding-top: var(--space-sm); flex-shrink: 0; }
.phone-btn-primary { width: 100%; padding: 10px; background: var(--gradient-primary); border: none; border-radius: var(--radius-md); color: var(--white); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast); font-family: inherit; }
.phone-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.phone-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.phone-btn-secondary { width: 100%; padding: 8px; background: transparent; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-md); color: var(--gray-400); font-size: 0.65rem; cursor: pointer; transition: all var(--transition-fast); font-family: inherit; }
.phone-btn-secondary:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }
.phone-microcopy { font-size: 0.5rem; color: var(--gray-500); text-align: center; flex-shrink: 0; }

/* Trust Strip */
.trust-strip { padding: var(--space-3xl) var(--space-xl); border-top: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.05); }
.trust-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.trust-card { text-align: center; padding: var(--space-lg); background: var(--gradient-card); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-lg); backdrop-filter: blur(10px); }
.trust-number { display: block; font-family: var(--font-display); font-size: 1.75rem; color: var(--green-400); margin-bottom: var(--space-xs); }
.trust-label { font-size: 0.85rem; color: var(--gray-400); }

/* Section Styles */
.section-container { max-width: 1280px; margin: 0 auto; padding: var(--space-4xl) var(--space-xl); }
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-tag { display: inline-block; padding: var(--space-xs) var(--space-md); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; color: var(--green-400); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-md); }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin-bottom: var(--space-md); letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-400); max-width: 600px; margin: 0 auto; }

/* Steps Grid */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.step-card { padding: var(--space-xl); background: var(--gradient-card); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-xl); backdrop-filter: blur(10px); position: relative; transition: transform var(--transition-base), box-shadow var(--transition-base); }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-icon { width: 60px; height: 60px; background: rgba(16, 185, 129, 0.1); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-lg); }
.step-icon svg { width: 32px; height: 32px; color: var(--green-400); }
.step-number { position: absolute; top: var(--space-lg); right: var(--space-lg); font-size: 0.75rem; font-weight: 700; color: var(--green-600); opacity: 0.5; }
.step-title { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--space-sm); }
.step-desc { font-size: 0.9rem; color: var(--gray-400); line-height: 1.5; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.feature-card { padding: var(--space-lg); background: var(--gradient-card); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-lg); backdrop-filter: blur(10px); transition: all var(--transition-base); }
.feature-card:hover { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.05); }
.feature-primary { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%); border-color: rgba(16, 185, 129, 0.2); }
.feature-wide { grid-column: span 2; }
.feature-icon { width: 48px; height: 48px; background: rgba(16, 185, 129, 0.1); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md); }
.feature-icon svg { width: 28px; height: 28px; color: var(--green-400); }
.feature-title { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-xs); }
.feature-desc { font-size: 0.85rem; color: var(--gray-400); }

/* Safety Section */
.safety-content { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4xl); align-items: center; }
.safety-text { max-width: 500px; }
.safety-list { list-style: none; margin-top: var(--space-xl); }
.safety-list li { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.safety-list li:last-child { border-bottom: none; }
.safety-list svg { width: 24px; height: 24px; color: var(--green-400); flex-shrink: 0; margin-top: 2px; }
.safety-list span { font-size: 1rem; color: var(--gray-200); }

/* CATR Diagram */
.catr-diagram { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; justify-content: center; }
.catr-node { padding: var(--space-lg); background: var(--gradient-card); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); text-align: center; backdrop-filter: blur(10px); }
.catr-node span { display: block; font-weight: 600; font-size: 0.9rem; }
.catr-node small { display: block; font-size: 0.75rem; color: var(--gray-400); margin-top: var(--space-xs); }
.catr-input { border-color: var(--gray-600); }
.catr-process { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%); border-color: var(--green-500); }
.catr-outputs { display: flex; flex-direction: column; gap: var(--space-sm); }
.catr-accept { border-color: var(--green-500); background: rgba(16, 185, 129, 0.1); }
.catr-accept span { color: var(--green-400); }
.catr-reject { border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.1); }
.catr-reject span { color: #f87171; }
.catr-arrow { font-size: 1.5rem; color: var(--gray-500); }

/* Deployment */
.deployment-content { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); }
.deployment-info { display: flex; flex-direction: column; gap: var(--space-xl); }
.deployment-card { padding: var(--space-xl); background: var(--gradient-card); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-xl); backdrop-filter: blur(10px); }
.deployment-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--space-md); color: var(--green-400); }
.deployment-card p { color: var(--gray-300); font-size: 0.95rem; }
.deployment-stats { list-style: none; }
.deployment-stats li { padding: var(--space-sm) 0; font-size: 0.95rem; color: var(--gray-300); border-bottom: 1px solid rgba(255,255,255,0.05); }
.deployment-stats li:last-child { border-bottom: none; }
.deployment-stats strong { color: var(--white); font-size: 1.25rem; margin-right: var(--space-sm); }

/* Timeline */
.timeline { padding: var(--space-xl); background: var(--gradient-card); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-xl); backdrop-filter: blur(10px); }
.timeline-title { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--space-xl); color: var(--green-400); }
.timeline-track { position: relative; padding-left: var(--space-xl); }
.timeline-track::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--green-500) 0%, var(--green-800) 100%); }
.timeline-item { position: relative; padding-bottom: var(--space-xl); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { position: absolute; left: calc(-1 * var(--space-xl) + 1px); top: 4px; width: 12px; height: 12px; background: var(--green-500); border-radius: 50%; border: 2px solid var(--green-900); }
.timeline-content { display: flex; flex-direction: column; gap: 2px; }
.timeline-date { font-size: 0.75rem; font-weight: 700; color: var(--green-400); text-transform: uppercase; letter-spacing: 0.1em; }
.timeline-label { font-size: 0.9rem; color: var(--gray-300); }

/* Kiosk Map */
.kiosk-map-section { border-top: 1px solid rgba(16, 185, 129, 0.1); }
.map-wrapper { max-width: 1000px; margin: 0 auto; }
.map-container { position: relative; background: var(--white); border: 1px solid rgba(16, 185, 129, 0.15); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-light); }
.demo-map { width: 100%; height: 400px; display: block; background: var(--mint-50); }
.kiosk-marker { transition: transform var(--transition-fast); }
.kiosk-marker.active:hover { transform: scale(1.1); }
.map-legend { position: absolute; bottom: var(--space-lg); left: var(--space-lg); display: flex; gap: var(--space-lg); padding: var(--space-sm) var(--space-md); background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.legend-item { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.8rem; color: var(--gray-600); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; }
.legend-dot.active { background: var(--green-500); box-shadow: 0 0 8px var(--green-500); }
.legend-dot.upcoming { background: transparent; border: 2px dashed var(--green-400); }
.map-highlight { animation: pulseGlow 1.2s ease-out; }
@keyframes pulseGlow { 0% { box-shadow: var(--shadow-light); } 50% { box-shadow: 0 0 80px rgba(16, 185, 129, 0.5); } 100% { box-shadow: var(--shadow-light); } }

/* Contact */
.contact-section { padding: var(--space-4xl) var(--space-xl); background: linear-gradient(180deg, var(--mint-50) 0%, var(--mint-100) 100%); }
.contact-content { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; margin-bottom: var(--space-md); color: var(--green-900); }
.contact-subtitle { font-size: 1.125rem; color: var(--gray-600); margin-bottom: var(--space-xl); }

/* Footer */
.main-footer { background: var(--green-900); border-top: 1px solid rgba(255,255,255,0.05); padding: var(--space-3xl) var(--space-xl) var(--space-xl); }
.footer-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 3fr; gap: var(--space-3xl); }
.footer-brand p { font-size: 0.9rem; color: var(--gray-400); margin-top: var(--space-sm); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.footer-column h4 { font-size: 0.85rem; font-weight: 600; color: var(--white); margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: var(--space-sm); font-size: 0.9rem; color: var(--gray-400); }
.footer-column a { color: var(--gray-400); text-decoration: none; font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-column a:hover { color: var(--green-400); }
.footer-bottom { grid-column: 1 / -1; padding-top: var(--space-xl); margin-top: var(--space-xl); border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom p { font-size: 0.85rem; color: var(--gray-500); }
.footer-disclaimer { font-style: italic; }

/* Reveal Animations */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-up.revealed { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: var(--space-3xl); text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-disclaimer { justify-content: center; }
    .trust-container { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-wide { grid-column: span 1; }
    .safety-content { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .safety-text { max-width: 100%; }
    .deployment-content { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta, .nav-btn-kiosk { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero { padding-top: calc(70px + var(--space-2xl)); }
    .phone-frame { width: 280px; height: 580px; }
    .trust-container { grid-template-columns: 1fr 1fr; }
    .steps-grid, .features-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; gap: var(--space-lg); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .demo-map { height: 300px; }
    .map-container { border-radius: var(--radius-lg); }
    .map-legend { bottom: var(--space-sm); left: var(--space-sm); flex-direction: column; gap: var(--space-xs); }
}

@media (max-width: 480px) {
    :root { font-size: 14px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .trust-container { grid-template-columns: 1fr; }
    .phone-frame { width: 260px; height: 540px; }
}

@media (prefers-reduced-motion: reduce) {
    .title-accent, .map-highlight { animation: none; }
}

/* =========================================
   ADDITIONS FOR PHP/MAP INTEGRATION
   ========================================= */

/* Contact Form Styles */
.contact-form {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: left;
    margin-top: var(--space-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.full-width {
    grid-column: span 2;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-field input,
.form-field textarea {
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.success-message-box {
    background: var(--mint-100);
    border: 1px solid var(--green-300);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: var(--green-800);
}

.success-message-box svg {
    color: var(--green-600);
}

/* Google Maps Specifics */
#google-map {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-xl);
    background: var(--gray-200); /* Loading state placeholder */
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-field.full-width {
        grid-column: span 1;
    }
}


/* =========================================
   MODERN CONTACT FORM STYLES
   ========================================= */

.contact-form-modern {
    background: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(6, 78, 59, 0.15); /* Soft deep green shadow */
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    z-index: 10;
}

.form-header {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%); /* Green-800 to Green-700 */
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    color: #ffffff;
}

.form-header h3 {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.form-header p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151; /* Gray-700 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #f9fafb; /* Gray-50 */
    border: 1px solid #e5e7eb; /* Gray-200 */
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #1f2937;
    transition: all 0.2s ease;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #9ca3af;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #10b981; /* Green-500 */
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-footer {
    padding: 0 2rem 2rem 2rem;
}

.btn-submit-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: #10b981; /* Green-500 */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-submit-modern:hover {
    background: #059669; /* Green-600 */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-submit-modern:active {
    transform: translateY(0);
}

/* Success Message Styling */
.success-message-box {
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 40px -10px rgba(6, 78, 59, 0.1);
}

.success-icon-large {
    color: #10b981;
    background: #ecfdf5;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-message-box h3 {
    color: #064e3b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-message-box p {
    color: #4b5563;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-header, .form-body, .form-footer {
        padding: 1.5rem;
    }
}

/* Add to end of style.css */

.kiosk-panel {
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px dashed rgba(16, 185, 129, 0.5);
}

.kiosk-input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: inherit;
    color: #333;
}

.kiosk-btn {
    margin-top: 5px;
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.kiosk-status {
    font-size: 0.75rem;
    margin-top: 5px;
    min-height: 1rem;
}

.mock-capture-btn {
    /* Ensure existing style matches */
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   FIX FOR BODY MAP & BUTTONS (Add to bottom)
   ========================================= */

/* 1. Force buttons to sit ON TOP of the body map so they are clickable */
.map-controls-toolbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 50; /* CRITICAL: Puts buttons above the image */
}

/* 2. Style the buttons (Since .gender-btn was missing from your CSS) */
.gender-btn, .view-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4b5563;
    transition: all 0.2s;
}

.gender-btn.active, .view-btn.active {
    background: #10b981; /* Green-500 */
    color: white;
    border-color: #10b981;
    font-weight: 600;
}

/* 3. Ensure the Body Diagram behaves and doesn't block clicks */
.body-diagram-wrapper {
    position: relative;
    z-index: 1; /* Low priority */
    width: 100%;
    max-width: 300px; /* Restrict width so it looks like a phone app */
    margin: 0 auto;
    min-height: 400px; /* Reserve space so layout doesn't jump */
}

/* 4. Make sure the SVG scales correctly */
.body-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Version 8 Step 1 Fixes */
.map-controls-toolbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 50; /* Ensures buttons are above the SVG map */
}

.gender-btn, .view-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--gray-300);
    transition: all 0.2s;
}

.gender-btn.active, .view-btn.active {
    background: var(--green-500);
    color: white;
    border-color: var(--green-400);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.body-diagram-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    min-height: 400px;
}

/* Step 1 Control Visibility */
.view-switch {
    display: none; /* Hidden by default */
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 50;
}

/* This class will be added by JavaScript */
.view-switch.visible {
    display: flex !important;
    opacity: 1;
}

/* Ensure the container is hidden initially */
.view-switch {
    display: none; 
   /* opacity: 0;*/
    transition: opacity 0.3s ease;
}

/* Logic to show it when gender is selected */
.view-switch.visible {
    display: flex !important;
    opacity: 1 !important;
    z-index: 100 !important;
}

/* Ensure the controls are always on top and clickable */
.map-controls-toolbar {
    position: relative;
    z-index: 100 !important; /* Higher than .body-diagram-wrapper */
    display: flex;
    justify-content: center;
    min-height: 40px;
}

.qr-box { background: white; padding: 4px; border-radius: 4px; }
.qr-img { height: 40px; width: 40px; }
