/* =============================================================
   CoachMe — Stylesheet
   Shared across all language versions (/, /fr/, /de/, /es/)
   ============================================================= */

:root {
    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F5F7;
    --color-text: #1D1D1F;
    --color-text-sub: #6E6E73;
    --color-accent: #0071E3;
    --color-border: #D2D2D7;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ── HEADER ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
}

.site-header .brand img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

.site-header .brand span {
    font-size: 17px;
    font-weight: 600;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.lang-switcher a {
    color: var(--color-text-sub);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.15s ease;
}

.lang-switcher a:hover {
    color: var(--color-text);
}

.lang-switcher a[aria-current="page"] {
    color: var(--color-text);
    font-weight: 600;
}

.lang-switcher span {
    color: var(--color-border);
    user-select: none;
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 980px;
    white-space: nowrap;
}

.btn-sm {
    font-size: 14px;
    padding: 8px 20px;
}

.btn-lg {
    font-size: 17px;
    padding: 14px 32px;
}

/* ── HERO ── */
.hero {
    background: var(--color-bg);
    text-align: center;
    padding: 80px 24px 64px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 16px;
}

.hero .subtitle {
    font-size: 21px;
    color: var(--color-text-sub);
    margin-bottom: 40px;
}

.hero-screenshot {
    margin: 48px auto 0;
    max-width: 820px;
    width: 100%;
}

.hero-screenshot img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    display: block;
}

/* ── SECTIONS ── */
section {
    padding: 80px 24px;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-white {
    background: var(--color-bg);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.section-inner {
    max-width: 1040px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card .emoji {
    font-size: 32px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 600;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-sub);
}

.feature-card img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    margin-top: auto;
}

/* ── GALLERY GRID ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 16px);
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.2s ease;
    display: block;
}

.gallery-item img:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
}

.gallery-item figcaption {
    font-size: 14px;
    color: var(--color-text-sub);
    text-align: center;
}

/* ── PRIVACY ── */
.legal-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 15px;
    color: var(--color-text-sub);
}

.legal-content .effective-date {
    text-align: center;
    margin-bottom: 32px;
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.legal-content h4 {
    color: var(--color-text);
    margin: 20px 0 8px;
    font-size: 15px;
    font-weight: 600;
}

.legal-content p {
    line-height: 1.6;
}

.legal-content code {
    font-family: ui-monospace, "SF Mono", monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-footer-note {
    margin-top: 32px;
    font-size: 13px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

/* ── SUPPORT ── */
.support-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.support-content p {
    color: var(--color-text-sub);
}

.support-content .btn-support {
    display: inline-block;
    margin-top: 24px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 980px;
}

.support-content .tracker-link {
    display: block;
    margin-top: 20px;
    font-size: 13px;
}

.support-content .tracker-link a {
    color: var(--color-accent);
    text-decoration: none;
}

.support-content .tracker-link a:hover {
    text-decoration: underline;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    text-align: center;
    padding: 32px 24px;
    font-size: 13px;
    color: var(--color-text-sub);
}

footer p+p {
    margin-top: 6px;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.lightbox-overlay.is-open {
    display: flex;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    cursor: default;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    background: none;
    border: none;
    padding: 4px 8px;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Make images visually clickable */
.feature-card img,
.gallery-item img {
    cursor: zoom-in;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }

    .privacy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-header {
        height: auto;
        flex-wrap: wrap;
        padding: 8px 16px;
        gap: 6px;
    }

    .site-header .brand {
        flex: 1;
    }

    .site-header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .lang-switcher {
        gap: 6px;
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 17px;
    }

    .btn-lg {
        font-size: 15px;
        padding: 12px 24px;
    }
}