/* ─── Design tokens ─── */
:root {
    --green: #1E4D35;
    --green-mid: #2D6A4F;
    --green-light: #52855E;
    --cream: #F5F0E8;
    --cream-dark: #EDE7D8;
    --orange: #E07B39;
    --red: #C0392B;
    --text: #1A2E1E;
    --text-muted: #6B7C6E;
    --strava: #FC4C02;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

/* ─── Accessibility ─── */
.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;
}

/* ─── Scroll-triggered animation ─── */
.animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.animate.visible {
    opacity: 1;
    transform: none;
}

/* ─── Container ─── */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    background: var(--cream);
    overflow: hidden;
}

/* ─── Background (absolute within hero) ─── */
.bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(30,77,53,0.08) 0%, transparent 70%);
}

.contour-lines {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 38px,
        var(--green) 38px,
        var(--green) 39px
    );
}

.mountain-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    animation: fadeUp 1s 0.4s ease both;
}

/* ─── Hero inner layout ─── */
.hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ─── Header ─── */
header {
    padding-top: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeDown 0.7s ease both;
}

.logo-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--green);
}

/* ─── Hero content ─── */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30,77,53,0.1);
    color: var(--green-mid);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 28px;
    animation: fadeUp 0.6s 0.1s ease both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse 2.5s ease infinite;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(44px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--green);
    margin-bottom: 8px;
    animation: fadeUp 0.6s 0.2s ease both;
}

h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--green-light);
}

.tagline {
    font-size: clamp(16px, 2.5vw, 18px);
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 36px;
    animation: fadeUp 0.6s 0.3s ease both;
}

/* ─── Waitlist form ─── */
.waitlist-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin-bottom: 20px;
    animation: fadeUp 0.6s 0.4s ease both;
}

.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 13px 18px;
    border: 1.5px solid var(--cream-dark);
    border-radius: 100px;
    background: rgba(255,255,255,0.85);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

.waitlist-form button {
    padding: 13px 22px;
    background: var(--green);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.waitlist-form button:hover {
    background: var(--green-mid);
}

.waitlist-form button:active {
    transform: scale(0.97);
}

.waitlist-form button:focus-visible {
    outline: 2px solid var(--green-mid);
    outline-offset: 3px;
}

/* ─── Store badges ─── */
.store-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.5s ease both;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 10px;
    background: var(--text);
    color: white;
    text-decoration: none;
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.store-btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.store-btn__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-btn__text span {
    font-size: 9px;
    letter-spacing: 0.04em;
    opacity: 0.75;
    text-transform: uppercase;
}

.store-btn__text strong {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ─── Hero scroll indicator ─── */
.hero-scroll {
    display: flex;
    justify-content: center;
    padding-bottom: 28px;
    animation: fadeUp 0.6s 1s ease both;
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
    color: var(--green-light);
    animation: scrollBounce 2s ease infinite;
}

/* ─── Altitude marker (absolute within hero) ─── */
.altitude-marker {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
    animation: fadeRight 0.7s 0.9s ease both;
}

.alt-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--green-light), transparent);
}

.alt-value {
    font-family: 'Playfair Display', serif;
    font-size: 11px;
    color: var(--green-light);
    writing-mode: vertical-lr;
    letter-spacing: 0.1em;
}

/* ─── Difficulty chips (absolute within hero) ─── */
.difficulty-chips {
    position: absolute;
    bottom: 36px;
    right: 36px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeLeft 0.7s 0.8s ease both;
    z-index: 2;
}

.chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: white;
    border-radius: 100px;
    padding: 5px 12px 5px 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   SECTION COMMON
══════════════════════════════════════════ */
.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 14px;
}

.section-label--light {
    color: rgba(245,240,232,0.55);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--green);
    margin-bottom: 60px;
}

.section-title--light {
    color: var(--cream);
}

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.features {
    padding: 96px 0;
    background: #ffffff;
}

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

.feature-card {
    padding: 32px 28px 36px;
    border: 1px solid var(--cream-dark);
    border-radius: 20px;
    background: var(--cream);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(30,77,53,0.2);
    box-shadow: 0 8px 32px rgba(30,77,53,0.08);
    transform: translateY(-3px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(30,77,53,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--green);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    font-weight: 300;
}

/* ══════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════ */
.stats-strip {
    background: var(--cream-dark);
    padding: 64px 0;
}

.stats-strip__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    flex-wrap: wrap;
}

.stat-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.stat-big__value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    color: var(--green);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-big__label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.03em;
}

.stat-big__divider {
    width: 1px;
    height: 48px;
    background: rgba(30,77,53,0.15);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   STRAVA BAND
══════════════════════════════════════════ */
.strava-band {
    background: rgba(30,77,53,0.03);
    border-top: 1px solid rgba(30,77,53,0.08);
    border-bottom: 1px solid rgba(30,77,53,0.08);
    padding: 56px 0;
}

.strava-content {
    display: flex;
    align-items: center;
    gap: 48px;
}

.strava-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: white;
    border-radius: 100px;
    padding: 10px 20px 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--strava);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    white-space: nowrap;
    flex-shrink: 0;
}

.strava-pill svg {
    width: 20px;
    height: 20px;
}

.strava-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--green);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.strava-text p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
    max-width: 500px;
}

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.steps {
    padding: 96px 0;
    background: var(--cream);
}

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

/* Dashed connector line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 23px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--cream-dark) 0,
        var(--cream-dark) 8px,
        transparent 8px,
        transparent 16px
    );
    pointer-events: none;
}

.step {
    display: flex;
    flex-direction: column;
}

.step__number {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    background: white;
    border: 1.5px solid var(--cream-dark);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
}

/* ══════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════ */
.cta-section {
    background: var(--green);
    padding: 96px 0;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-sub {
    font-size: clamp(16px, 2vw, 18px);
    color: rgba(245,240,232,0.65);
    font-weight: 300;
    line-height: 1.6;
    max-width: 420px;
    margin-top: -36px;
    margin-bottom: 36px;
}

/* CTA form overrides */
.waitlist-form--light {
    animation: none;
}

.waitlist-form--light input[type="email"] {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--cream);
}

.waitlist-form--light input[type="email"]::placeholder {
    color: rgba(245,240,232,0.45);
}

.waitlist-form--light input[type="email"]:focus {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.waitlist-form--light button {
    background: var(--cream);
    color: var(--green);
}

.waitlist-form--light button:hover {
    background: var(--cream-dark);
}

/* Light store badges */
.store-badges--light {
    animation: none;
    margin-top: 28px;
}

.store-badges--light .store-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--cream);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
    background: var(--cream-dark);
    border-top: 1px solid rgba(30,77,53,0.1);
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo img {
    object-fit: contain;
}

.footer-logo span {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--green);
    letter-spacing: -0.02em;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--green-mid);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%       { transform: translateY(5px); opacity: 1; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps-grid::before {
        display: none;
    }

    .step {
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }

    .step__number {
        margin-bottom: 0;
    }

    .strava-content {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .stats-strip__inner {
        gap: 36px;
    }

    .stat-big__divider {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .store-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-badges--light {
        align-items: center;
    }
}

@media (max-width: 580px) {
    .difficulty-chips,
    .altitude-marker { display: none; }

    .container { padding: 0 20px; }

    .features,
    .steps,
    .cta-section { padding: 72px 0; }

    .stats-strip { padding: 48px 0; }

    .waitlist-form { flex-direction: column; }
    .waitlist-form button { width: 100%; }

    .store-btn { width: 100%; max-width: 220px; }
}

/* ══════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .animate {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
