/* ==========================================================================
   Hexplora - Marketing & Landing Page Stylesheet
   Brand Colors:
     Slate:        #323237
     World Blue:   #15A9E7
     Arctic White: #FFFFFF
     Strava:       #FC4C02
   ========================================================================== */

:root {
    --slate: #323237;
    --slate-dark: #27272b;
    --world-blue: #15a9e7;
    --world-blue-dark: #0d83b9;
    --white: #ffffff;
    --strava-orange: #fc4c02;
    --strava-orange-hover: #e54400;
    --light-gray: #f8f9fa;
    --section-alt: #f4f6f8;
    --border-color: #e5e7eb;
    --border-subtle: rgba(50, 50, 55, 0.08);
    --text-muted: #6b7280;
    --text-white-muted: rgba(255, 255, 255, 0.8);
    --font-main: 'Overpass', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Crimson Pro', Georgia, serif;
    --max-width: 1200px;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--slate);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-blue { color: var(--world-blue); }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-white-muted { color: var(--text-white-muted) !important; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded-frame,
.hero-visual img,
.reveal-visual img,
.unique-visual img,
.badges-visual img {
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rounded-frame:hover,
.hero-visual img:hover,
.reveal-visual img:hover,
.unique-visual img:hover,
.badges-visual img:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.12);
}

/* Shared Buttons & CTAs */
.cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.cta-buttons-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-strava {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-strava img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 100%;
}

.btn-strava:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(252, 76, 2, 0.28);
}

.btn-email-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    background-color: transparent;
    color: var(--slate);
    border: 2px solid var(--slate);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-email-signin:hover {
    background-color: var(--slate);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background-color: var(--world-blue);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-app:hover {
    background-color: var(--world-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 169, 231, 0.35);
}

/* Site Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.header-logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-signin-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--strava-orange) !important;
    border: 1px solid var(--strava-orange) !important;
    color: var(--white) !important;
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.btn-signin-nav:hover {
    background-color: var(--strava-orange-hover) !important;
    border-color: var(--strava-orange-hover) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(252, 76, 2, 0.3);
}

/* 1. Hero Section (White) */
.hero {
    background-color: var(--white);
    padding: 70px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 580px;
    color: #4b5563;
}

.hero-img-shadow {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

/* 2. How It Works Section (Light Gray) */
.how-it-works {
    background-color: var(--light-gray);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.process-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.step-card {
    text-align: center;
    background: var(--white);
    padding: 32px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.step-badge {
    background-color: var(--world-blue);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 auto 16px;
}

.step-icon {
    height: 55px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.step-card p {
    font-size: 0.95rem;
    color: #4b5563;
}

.process-title h2 {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    line-height: 1.15;
}

/* 3. Reveal My World Map Section (White) */
.map-reveal {
    background-color: var(--white);
    padding: 85px 0;
}

.reveal-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 50px;
    align-items: center;
}

.label-box {
    display: inline-block;
    background: rgba(21, 169, 231, 0.12);
    color: var(--world-blue);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.reveal-content h2 {
    margin-bottom: 20px;
}

.legend-list {
    list-style: none;
    margin-top: 24px;
}

.legend-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1.05rem;
}

.legend-hex {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

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

/* 4. Three Exploration Modalities Section (Dark Slate) */
.modalities-section {
    background-color: var(--slate);
    color: var(--white);
    padding: 90px 0 100px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modalities-header {
    max-width: 840px;
    margin: 0 auto 50px;
}

.modality-pill-label {
    display: inline-block;
    background: rgba(21, 169, 231, 0.16);
    color: var(--world-blue);
    border: 1px solid rgba(21, 169, 231, 0.35);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.modalities-header h2 {
    color: var(--white);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    margin-bottom: 16px;
}

.modalities-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-white-muted);
}

.modalities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 45px;
}

.modality-showcase-card {
    background: #252830;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.modality-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.modality-showcase-card.human-card:hover {
    border-color: rgba(21, 169, 231, 0.5);
}

.modality-showcase-card.overland-card:hover {
    border-color: rgba(249, 115, 22, 0.5);
}

.modality-showcase-card.marine-card:hover {
    border-color: rgba(20, 184, 166, 0.5);
}

.modality-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.modality-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modality-icon-wrap.human-icon {
    background: linear-gradient(135deg, rgba(21, 169, 231, 0.25), rgba(21, 169, 231, 0.08));
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.modality-icon-wrap.overland-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.08));
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.modality-icon-wrap.marine-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(20, 184, 166, 0.08));
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.modality-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 9999px;
}

.modality-badge.human-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.modality-badge.overland-badge {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.modality-badge.marine-badge {
    background: rgba(45, 212, 191, 0.15);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.modality-showcase-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.modality-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #94a3b8;
    margin-bottom: 24px;
    min-height: 66px;
}

.modality-sports-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.sport-tag {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

.sport-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.modalities-footer {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.modalities-footer p,
.modalities-footer-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white-muted);
    line-height: 1.6;
    margin: 0;
}

.modalities-footer-line {
    display: block;
}

/* 5. Adventure Map Slider Section (White) */
.adventure-map {
    background-color: var(--white);
    padding: 85px 0;
}

.adventure-text {
    max-width: 860px;
    margin: 0 auto 40px;
}

.adventure-text h2 {
    margin-bottom: 18px;
}

.adventure-text p {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: #374151;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 920px;
    aspect-ratio: 16 / 10;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
    --position: 50%;
}

.slider-before,
.slider-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slider-before img,
.slider-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-after {
    clip-path: inset(0 0 0 var(--position));
}

.slider-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: ew-resize;
    z-index: 10;
    opacity: 0;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 3px;
    background: var(--white);
    z-index: 5;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* 6. Unique Hexagons Section (Light Gray) */
.unique-hexagons {
    padding: 85px 0;
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.unique-content h2 {
    margin-bottom: 20px;
}

.unique-content > p:not(.callout-blue):not(.unique-premium-note) {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #374151;
}

.callout-blue {
    font-family: var(--font-heading);
    color: var(--world-blue);
    font-size: clamp(1.8rem, 2.8vw, 2.3rem);
    font-weight: 900;
    line-height: 1.25;
    margin: 28px 0;
}

.unique-premium-note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.unique-visual {
    width: 100%;
}

.unique-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* 7. Badges & Achievements Section (White) */
.badges-section {
    padding: 90px 0;
    background-color: var(--white);
    overflow: hidden;
}

.badges-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    min-width: 0;
}

/* Badges Card Component - Senior Designer Pixel-Perfect UI */
.badges-showcase-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.badges-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.badges-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.badges-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.trophy-icon-wrap {
    font-size: 1.6rem;
    color: #ea580c;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.badges-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    font-family: var(--font-body);
    letter-spacing: -0.02em;
    min-width: 0;
}

.badges-count-pill {
    background: #ffedd5;
    color: #c2410c;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid #fed7aa;
    flex-shrink: 0;
}

.badge-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.badge-row-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.badge-row-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.badge-left-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.badge-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-circle-slate {
    background: #f1f5f9;
    color: #475569;
}

.icon-circle-red {
    background: #fee2e2;
    color: #ef4444;
}

.icon-circle-gold {
    background: #fef3c7;
    color: #f59e0b;
}

.icon-circle-blue {
    background: #dbeafe;
    color: #2563eb;
}

.icon-circle-green {
    background: #dcfce7;
    color: #10b981;
}

.badge-info {
    min-width: 0;
    flex: 1;
}

.badge-info h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 3px 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.badge-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

.badge-tag-pill {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-left: 12px;
}

.tag-rank-slate {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.tag-milestone-red {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.tag-rank-gold {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.tag-milestone-blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.tag-milestone-green {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Badges Sidebar Cards */
.badges-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.info-card-modern {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.info-card-modern:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.info-card-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--world-blue);
    flex-shrink: 0;
}

.info-card-text {
    min-width: 0;
    flex: 1;
}

.info-card-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.info-card-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
    word-break: break-word;
}

/* 8. Leaderboard Section (Dark Slate) */
.leaderboard-section {
    background-color: var(--slate);
    padding: 90px 0 100px;
}

.lb-title-wrap {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 40px;
    color: var(--white);
}

.modality-pill-label-gold {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.35);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.lb-title-wrap h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.leaderboard-card {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.lb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 26px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 14px;
}

.lb-header-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.lb-tabs {
    display: flex;
    gap: 6px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 8px;
}

.lb-tab {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    color: #64748b;
    cursor: default;
    transition: all 0.2s ease;
}

.lb-tab.active {
    background: #ffffff;
    color: var(--world-blue-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lb-link {
    color: var(--world-blue);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.lb-link:hover {
    color: var(--world-blue-dark);
    text-decoration: underline;
}

.lb-body {
    padding: 8px 0;
}

.lb-row {
    display: grid;
    grid-template-columns: 44px 170px 1fr 120px;
    align-items: center;
    padding: 14px 26px;
    gap: 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.lb-row:last-child {
    border-bottom: none;
}

.lb-row:hover {
    background: #f8fafc;
}

.lb-row.active-user-row {
    background: #eef7fc;
    border-left: 4px solid var(--world-blue);
}

.lb-rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.rank-gold {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.rank-silver {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.rank-bronze {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.rank-slate {
    background: transparent;
    color: #94a3b8;
    font-weight: 700;
}

.lb-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
}

.you-badge {
    background: var(--world-blue);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.lb-bar-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.lb-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s ease;
}

.bar-gold {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.bar-silver {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

.bar-blue {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.bar-slate {
    background: #cbd5e1;
}

.lb-count {
    text-align: right;
    font-weight: 800;
    font-size: 1.1rem;
    color: #334155;
    font-family: var(--font-mono, monospace);
}

.lb-count small {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.lb-count.active-count {
    color: var(--world-blue-dark);
}

.premium-badge {
    display: flex;
    align-items: center;
}

.premium-badge img {
    height: 24px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

/* 9. Pricing Section (White) */
.pricing-section {
    padding: 85px 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 50px 0;
    align-items: stretch;
}

.price-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 42px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.price-card.featured {
    border: 2px solid var(--strava-orange);
    box-shadow: 0 10px 30px rgba(252, 76, 2, 0.1);
}

.price-card.partner {
    border-color: #86efac;
}

.badge-best-value {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--strava-orange);
    color: var(--white);
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.price-subtitle {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #374151;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--strava-orange);
    font-weight: 900;
}

.price-bottom {
    margin-top: auto;
}

.price-figure {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--slate);
}

.price-figure small {
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-main);
    color: #4b5563;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.pricing-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pricing-cta-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate);
}

/* 10. Footer (Dark Slate) */
.site-footer {
    background-color: var(--slate);
    color: var(--white);
    padding: 70px 0 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-slogan {
    font-size: 2rem;
    color: var(--world-blue);
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-white-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
}

/* ========================================================================== 
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .modalities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .process-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .process-title {
        order: -1;
    }
}

@media (max-width: 860px) {
    .hero-grid,
    .reveal-grid,
    .unique-grid,
    .badges-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .modalities-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content,
    .reveal-content,
    .unique-content {
        text-align: center;
    }
    
    .cta-group,
    .cta-buttons-wrap {
        justify-content: center;
    }
    
    .legend-list {
        display: inline-block;
        text-align: left;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .lb-row {
        grid-template-columns: 36px 1fr auto;
        gap: 12px;
        padding: 14px 18px;
    }

    .lb-bar-container {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .cta-group,
    .cta-buttons-wrap {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn-strava,
    .btn-email-signin,
    .btn-app {
        width: 100%;
        max-width: 320px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }

    .badges-section {
        padding: 60px 0;
    }

    .badges-card {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .badges-card-header {
        gap: 10px;
        margin-bottom: 16px;
    }

    .badges-card-title {
        font-size: 1.18rem;
    }

    .badges-count-pill {
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    .badge-row-item {
        padding: 12px 12px;
        border-radius: 10px;
        gap: 10px;
    }

    .badge-left-meta {
        gap: 12px;
        min-width: 0;
        flex: 1;
    }

    .badge-icon-circle {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .badge-info {
        min-width: 0;
        flex: 1;
    }

    .badge-info h4 {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .badge-info p {
        font-size: 0.78rem;
        line-height: 1.35;
        word-break: break-word;
    }

    .badge-tag-pill {
        font-size: 0.68rem;
        padding: 3px 9px;
        margin-left: 6px;
        flex-shrink: 0;
    }

    .info-card-modern {
        padding: 18px 14px;
        gap: 14px;
        border-radius: 12px;
    }

    .info-card-icon-badge {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .info-card-text {
        min-width: 0;
        flex: 1;
    }

    .info-card-text h4 {
        font-size: 1.05rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .info-card-text p {
        font-size: 0.88rem;
        line-height: 1.45;
        word-break: break-word;
    }

    .lb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .lb-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .lb-row {
        grid-template-columns: 30px 1fr auto;
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }
}