/* 
    Hexplora Standalone Stylesheet
    Colors: Slate (#323237), World Blue (#15A9E7), Arctic White (#FFFFFF), Strava Orange (#FC4C02)
*/

:root {
    --slate: #323237;
    --world-blue: #15a9e7;
    --white: #ffffff;
    --strava-orange: #fc4c02;
    --light-gray: #f4f4f4;
    --border: #dddddd;
    --font-main: 'Overpass', sans-serif;
    --font-heading: 'Crimson Pro', serif;
    --max-width: 1200px;
}

/* Base Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-main);
    color: var(--slate);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 900; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.25rem; }
.text-blue { color: var(--world-blue); }
.text-center { text-align: center; }
.lead { font-weight: 700; font-size: 1.25rem; }

/* Global Assets */
img { max-width: 100%; height: auto; display: block; }
.responsive-img { width: 100%; border-radius: 8px; }

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

.btn-strava img {
    display: block;
    width: min(345px, 100%);
    height: auto;
}

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

.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--world-blue);
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    padding: 14px 36px;
    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: #0d8bc4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 169, 231, 0.3);
}

.cta-group {
    margin-top: 28px;
}

/* Header */
.site-header {
    padding: 28px 0 32px;
    border-bottom: 1px solid rgba(50, 50, 55, 0.08);
}

.header-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 158px;
    width: auto;
    max-width: min(560px, 88vw);
}

.header-slogan {
    color: var(--world-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.85rem;
    line-height: 1.1;
}

/* Hero */
.hero { padding: 60px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-img-shadow { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* How It Works */
.how-it-works { padding: 80px 0; border-top: 1px solid var(--border); }
.process-grid { display: flex; align-items: center; gap: 40px; }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; flex: 2; }
.step { text-align: center; }
.step-num { 
    background-color: var(--world-blue); color: var(--white); 
    width: 32px; height: 32px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; font-weight: 700;
}
.step-icon { height: 60px; margin: 0 auto 15px; }
.process-label { flex: 1; text-align: right; border-left: 2px solid var(--border); padding-left: 40px; }

/* Map Reveal */
.map-reveal {
    background-color: var(--light-gray);
    padding: 72px 0;
}
.reveal-grid {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 50px;
    align-items: center;
}
.reveal-content { padding: 0; }
.label-box { background: var(--slate); color: white; padding: 5px 13px; font-size: 0.8rem; margin-bottom: 18px; display: inline-block; border-radius: 4px; font-weight: 700; }
.legend { list-style: none; margin-top: 30px; }
.legend li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-weight: 600; font-size: 1.02rem; }
.legend-hex { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
.reveal-visual { min-width: 0; }
.map-img { width: 100%; height: auto; max-height: 650px; object-fit: contain; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,0.10); }

/* Sports Bar */
.sports-bar { background-color: var(--slate); color: var(--white); padding: 80px 0; }
.sports-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.sport-card { background: var(--white); color: var(--slate); padding: 30px 20px; border-radius: 4px; text-align: center; }
.sport-icon { height: 45px; margin: 0 auto 15px; }
.sport-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

/* Adventure Slider */
.adventure-map { padding: 80px 0; }
.adventure-text { max-width: 800px; margin-bottom: 40px; }
.slider-wrapper {
    position: relative; width: 100%; max-width: 900px; aspect-ratio: 16/9; 
    margin: 0 auto; overflow: hidden; border-radius: 12px; --position: 50%;
}
.slider-before, .slider-after { position: absolute; top:0; left: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; top:0; left:0; width:100%; height:100%; 
    appearance: none; background: transparent; cursor: ew-resize; z-index: 10;
}
.slider-handle {
    position: absolute; top:0; bottom:0; left: var(--position); 
    width: 2px; background: white; z-index: 5; transform: translateX(-50%);
}
.handle-circle {
    position: absolute; top:50%; left:50%; transform: translate(-50%,-50%);
    width: 40px; height: 40px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--world-blue);
}

/* Leaderboard */
.leaderboard {
    padding: 80px 0;
    background-color: var(--slate);
    border-top: 0;
}

.leaderboard h2 {
    color: var(--world-blue);
}

.leaderboard .section-intro {
    max-width: 760px;
    margin: 0 auto;
    color: var(--white);
}

.leaderboard-ui {
    max-width: 860px;
    margin: 40px auto 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.lb-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 17px 25px;
    background: #fafafa;
    font-weight: 700;
    text-align: left;
}

.lb-link {
    color: var(--world-blue);
    text-decoration: none;
    white-space: nowrap;
}

.lb-row {
    display: grid;
    grid-template-columns: 40px minmax(120px, 1fr) 140px 84px;
    align-items: center;
    column-gap: 18px;
    padding: 16px 25px;
    border-top: 1px solid #eeeeee;
    text-align: left;
}

.lb-row.active {
    background: #e8f7ff;
    font-weight: 700;
}

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

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

.score {
    text-align: right;
    font-weight: 700;
}

.lb-row.active .name,
.lb-row.active .score {
    color: #0877c9;
}

/* Pricing */
.pricing { padding: 80px 0; background: #fafafa; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin: 40px 0; }
.price-card { 
    background: white; padding: 40px 30px; border-radius: 12px; 
    border: 1px solid var(--border); display: flex; flex-direction: column; 
}
.price-card.popular { border: 2px solid var(--strava-orange); transform: scale(1.05); position: relative; z-index: 2; }
.price-card.partner { border-color: rgba(39, 168, 68, 0.55); }
.price-note { margin-top: 6px; color: #666; font-size: 0.8rem; }
.popular-tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--strava-orange); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.price-card ul { list-style: none; margin: 20px 0; flex-grow: 1; text-align: left; }
.price-card li { margin-bottom: 10px; font-size: 0.9rem; padding-left: 20px; position: relative; }
.price-card li::before { content: '✓'; color: var(--strava-orange); position: absolute; left: 0; font-weight: 900; }
.price-amount { font-size: 2rem; font-weight: 900; margin-top: 20px; }

/* Footer */
.site-footer {
    padding: 70px 0 80px;
    border-top: 1px solid var(--border);
}

.footer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.footer-slogan {
    font-size: 2rem;
    margin: 0;
}

.footer-logo {
    height: 123px;
    width: auto;
    max-width: min(500px, 86vw);
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto; max-width: 600px; }
    .process-grid { flex-direction: column-reverse; }
    .process-label { text-align: center; border-left: 0; padding-left: 0; }
    .sports-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; gap: 40px; }
    .price-card.popular { transform: none; }
}

@media (max-width: 768px) {
    .header-wrap { flex-direction: column; gap: 12px; text-align: center; }
    .logo-img { height: 58px; }
    .header-slogan { font-size: 1.5rem; white-space: normal; }
    .reveal-grid { grid-template-columns: 1fr; gap: 30px; padding: 0 18px; }
    .reveal-content { text-align: center; }
    .legend { display: inline-block; text-align: left; }
    .process-steps { grid-template-columns: 1fr; }
    .lb-header { flex-direction: column; gap: 6px; }
    .lb-row { grid-template-columns: 32px minmax(85px, 1fr) 96px 58px; column-gap: 8px; padding: 14px; }
    .premium-badge img { height: 21px; max-width: 90px; }
    .score { font-size: 0.9rem; }
}