/* ═══════════════════════════════════════════════════════════════
   Grynd — Website Design System
   Colors: Pure White #FFF + Pure Blue #0000FF
   Philosophy: Quiet Luxury — Clean, Minimal, Premium (Light Mode)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* ── DARK THEME — premium OLED (cała strona ciemna) ──────── */
    --bg-primary: #060608;
    --bg-card: rgba(255,255,255,0.045);
    --bg-card-alt: rgba(255,255,255,0.07);
    --text-primary: #F4F4F6;
    --text-secondary: #A6A6B4;
    --text-muted: #70707E;
    --border: rgba(255,255,255,0.10);
    --accent: #2527C9;
    --accent-light: #3D40D8;
    --accent-glow: rgba(37,39,201,0.32);
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --emerald: #10B981;
    --purple: #8B5CF6;
    --warmup: #FF9500;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --max-width: 1100px;

    /* ═══════════════════════════════════════════════════════════
       APP DESIGN TOKENS — wyciągnięte 1:1 z app/src/theme/*.ts
       Light theme apki | Single source of truth dla mockupów iPhone
       Prefiks --app-* żeby nie kolidować z tokenami strony.
       ═══════════════════════════════════════════════════════════ */

    /* ── App Colors (lightColors z colors.ts) ───────────────── */
    --app-bg-primary: #F2F2F7;        /* Apple systemGroupedBackground */
    --app-bg-card: #FFFFFF;           /* Czyste białe karty */
    --app-bg-card-alt: #E8E8ED;       /* tertiaryGroupedBackground */
    --app-bg-floating: #FFFFFF;
    --app-text-primary: #0A0A0A;      /* prawie-czerń, WCAG AA */
    --app-text-secondary: #555D66;    /* 6.0:1 kontrast */
    --app-text-muted: #6E7681;        /* 4.59:1 kontrast */
    --app-on-accent: #FFFFFF;
    --app-border: rgba(0,0,0,0.10);
    --app-border-active: rgba(37,99,235,0.40);
    --app-accent: #2563EB;            /* sportowy kobalt */
    --app-accent-light: #3B82F6;
    --app-accent-glow: rgba(37,99,235,0.15);

    /* Set Types (z workout) */
    --app-set-warmup: #FF9500;        /* pomarańczowy */
    --app-set-normal: #8E8E93;        /* szary */
    --app-set-drop: #8B5CF6;          /* fiolet */
    --app-set-failure: #EF4444;       /* czerwień */

    /* Semantic (light) */
    --app-success: #16A34A;
    --app-warning: #D97706;
    --app-danger: #DC2626;

    /* AI Coach */
    --app-ai: #16A34A;                /* zielony Trener AI */
    --app-ai-bg: rgba(22, 163, 74, 0.08);

    /* ── App Spacing (z spacing.ts, base values) ────────────── */
    --app-sp-xxs: 2px;
    --app-sp-xs: 4px;
    --app-sp-xs2: 6px;
    --app-sp-sm: 8px;
    --app-sp-sm2: 10px;
    --app-sp-md: 12px;
    --app-sp-md2: 14px;
    --app-sp-lg: 16px;
    --app-sp-lg2: 20px;
    --app-sp-xl: 24px;
    --app-sp-xl2: 28px;
    --app-sp-xxl: 32px;
    --app-sp-xxxl: 40px;
    --app-screen-padding: 12px;
    --app-card-padding: 16px;
    --app-section-gap: 20px;

    /* ── App Border Radius ──────────────────────────────────── */
    --app-radius-sm: 8px;
    --app-radius-md: 12px;
    --app-radius-lg: 16px;
    --app-radius-xl: 24px;
    --app-radius-full: 999px;

    /* ── App Typography (iOS HIG mapping z typography.ts) ────
       Używamy systemowego stacka SF Pro / Inter dla zgodności */
    --app-font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
    --app-fs-display-lg: 48px;
    --app-fs-display: 34px;
    --app-fs-display-md: 32px;
    --app-fs-heading: 28px;
    --app-fs-title-lg: 26px;
    --app-fs-title: 22px;
    --app-fs-title-sm: 20px;
    --app-fs-body-lg: 17px;
    --app-fs-body: 15px;
    --app-fs-body-sm: 14px;
    --app-fs-caption-lg: 13px;
    --app-fs-footnote: 12px;
    --app-fs-label: 11px;
    --app-fs-nano: 9px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Clash Display', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }

.dot { color: var(--accent); }

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

section {
    padding: 100px 0;
    position: relative;
}

section + section { border-top: 1px solid var(--border); }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 20px;
    background: transparent;
    transition: top 0.3s ease;
}

.nav-inner {
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 9px 14px 9px 22px;
    background: rgba(18,18,22,0.55);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 999px;
    box-shadow: 0 10px 34px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-brand {
    font-family: 'Clash Display', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links { display: flex; gap: 24px; list-style: none; margin-left: auto; }

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

/* ── Language Switcher ────────────────────────────────────── */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.lang-switch:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.06);
}

.lang-switch svg { flex-shrink: 0; }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

/* Logo środkowe = białe G (przezroczyste tło). Czysto — bez poświaty,
   bez cienia. Rozmiar i odstępy ustawione przy obrazie w HTML. */
.hero-logo { }

/* Intro (logo w centrum → jedzie na miejsce → reszta dochodzi od góry)
   sterowane w script.js — wymaga pomiaru pozycji loga, więc JS, nie CSS.
   Fallback bez JS / reduced-motion: wszystko widoczne od razu (failsafe). */

.hero h1 { 
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 20px; 
}

.hero-tagline {
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    color: var(--text-secondary);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 36px;
    margin-top: 56px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--accent-light), var(--accent));
    color: #fff;
    padding: 16px 36px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 10px 28px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 16px 44px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.32);
    transform: translateY(-2px);
}

/* ── Section Headers ───────────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(37,39,201,0.10);
    border: 1px solid rgba(37,39,201,0.22);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.section-title { 
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    margin-bottom: 16px; 
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-header {
    margin-bottom: 64px;
}

.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* ── Cards Grid ────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
/* Bento — pierwsza karta szeroka (na całą szerokość), kolejne dwie pod nią. */
.cards-grid .card:first-child { grid-column: span 2; }

.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(37,39,201,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.09),
                0 24px 50px -12px rgba(37,39,201,0.20),
                0 8px 22px rgba(0,0,0,0.45);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { font-size: 0.9rem; line-height: 1.7; }

/* ── Feature Tabs (Przewodnik) ─────────────────────────────── */
.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    font-family: 'Geist', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                color 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.16);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(180deg, var(--accent-light), var(--accent));
    border-color: var(--accent-light);
    color: #fff;
    box-shadow: 0 8px 24px -6px var(--accent-glow);
}

.tab-panel { display: none; animation: fadeUp 0.4s ease; }
.tab-panel.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Single-column, centered — text-only Przewodnik (mockupy usunięte 2026-05-27).
   Max-width 720px = optymalny readability (≈75 znaków/wiersz).
   Container daje już padding 24px po bokach, więc tu padding zero. */
.tab-content {
    max-width: 720px;
    margin: 0 auto;
}

.tab-text h3 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 800;
    margin-bottom: 18px;
    font-size: clamp(1.5rem, 3.2vw, 1.9rem);
    letter-spacing: -0.02em;
}
.tab-text p {
    margin-bottom: 24px;
    font-size: clamp(0.98rem, 1.5vw, 1.08rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

.feature-list { list-style: none; }
.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-list li:last-child { border: none; }

.feature-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 8px;
    flex-shrink: 0;
}

/* ── Showcase Gallery — slajdy App Store (immersive) ───────────
   Ciemne slajdy z gotowymi nagłówkami jako zaokrąglone karty na
   białym tle. Tła NIE wycinamy (gradient + tekst są wbudowane) —
   pokazujemy cały slajd. Przesuwanie: natywny snap + ciągła skala
   i przyciemnienie sąsiadów liczone w script.js (scroll-linked).
   Bez nagłówka sekcji — nagłówki są już na grafikach.
   ─────────────────────────────────────────────────────────── */
.showcase {
    padding: 64px 0;
    /* BEZ overflow:hidden — przycinało miękki cień slajdów twardą linią
       ("biała ściana"). html/body mają overflow-x:hidden, więc nic nie
       wycieka w bok mimo to. */
}

.showcase-track {
    display: flex;
    gap: clamp(14px, 3vw, 28px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Pionowy padding 56px MIEŚCI cień (reach ~50px) — przez to nie jest
       ucinany i rozmywa się płynnie w biel. Boczny padding centruje
       pierwszy i ostatni slajd. */
    padding: 56px max(20px, calc(50% - clamp(230px, 60vw, 330px) / 2));
    cursor: grab;
}

.showcase-track::-webkit-scrollbar { display: none; }

.showcase-track.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
}

.showcase-slide {
    flex: 0 0 auto;
    width: clamp(230px, 60vw, 330px);
    scroll-snap-align: center;
    border-radius: clamp(30px, 6vw, 46px);
    overflow: hidden;
    /* skala + opacity sterowane JS-em (scroll-linked, śledzą palec 1:1)
       — bez transition na transform; animujemy tylko cień */
    transform: scale(0.84);
    opacity: 0.5;
    box-shadow: 0 12px 28px rgba(0,0,0,0.13);
    transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* will-change ustawiany dynamicznie w script.js tylko na czas przewijania
       (surgical promotion) — zamiast 7 stałych warstw GPU dławiących mobile. */
}

.showcase-slide.is-active {
    box-shadow: 0 16px 34px rgba(0,0,255,0.10), 0 8px 20px rgba(0,0,0,0.16);
}

.showcase-slide img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Kropki nawigacyjne — subtelne, aktywna rozciąga się w pigułkę */
.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.showcase-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
}

.showcase-dot.active {
    background: var(--accent);
    width: 22px;
}

@media (max-width: 680px) {
    .showcase { padding: 56px 0; }
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-brand {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

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

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Stagger children */
.reveal.visible .card {
    opacity: 0;
    transform: translateY(40px);
    animation: cardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal.visible .card:nth-child(1) { animation-delay: 0.1s; }
.reveal.visible .card:nth-child(2) { animation-delay: 0.25s; }
.reveal.visible .card:nth-child(3) { animation-delay: 0.4s; }

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Store Buttons ─────────────────────────────────────────── */
.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 28px;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    cursor: pointer;
}

.store-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(37,39,201,0.35);
    box-shadow: 0 18px 40px -10px rgba(37,39,201,0.18), 0 6px 16px rgba(0,0,0,0.4);
}

.store-btn svg { flex-shrink: 0; }

.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-btn-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.store-btn-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── Legal Pages ───────────────────────────────────────────── */
.legal-page {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 48px;
    transition: color 0.2s;
}

.legal-back:hover { color: var(--text-primary); }

.legal-back svg { flex-shrink: 0; }

.legal-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.legal-header h1 {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.legal-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.legal-body h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 16px;
}

.legal-body ul {
    list-style: none;
    margin-bottom: 16px;
    padding: 0;
}

.legal-body ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.legal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-body .legal-note {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-body .legal-contact {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legal-body .legal-contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.legal-body .legal-contact a:hover { opacity: 0.7; }

/* ── Cross-Platform Compatibility ─────────────────────────── */
/* iOS Safari: fix 100vh issue with address bar */
@supports (height: 100dvh) {
    .hero { min-height: 100dvh; }
}

/* iOS: remove tap highlight */
* { -webkit-tap-highlight-color: transparent; }

/* Notched devices (iPhone X+, Android punch-hole) */
@supports (padding: env(safe-area-inset-top)) {
    .nav { padding-top: calc(16px + env(safe-area-inset-top)); }
    .hero { padding-top: calc(80px + env(safe-area-inset-top)); }
    .footer { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* Touch targets: scoped to mobile only — desktop untouched */
@media (max-width: 680px) {
    .tab-btn, .store-btn, .nav-hamburger, .lang-switch, .btn-primary {
        min-height: 44px;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ── Hamburger Animation ──────────────────────────────────── */
.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Responsive: Tablet ───────────────────────────────────── */
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid .card:first-child { grid-column: auto; }
    section { padding: 72px 0; }
    .hero { min-height: auto; padding: 120px 0 80px; }
}

/* ── Responsive: Mobile ───────────────────────────────────── */
@media (max-width: 680px) {
    /* Navigation */
    .nav-links { display: none; }
    .nav-hamburger { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(14,14,18,0.92);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--border);
        animation: menuSlideDown 0.3s ease;
    }

    .nav-links.open a {
        font-size: 1rem;
        padding: 8px 0;
    }

    @keyframes menuSlideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Show lang-switch inside mobile menu */
    .lang-switch {
        position: relative;
        margin-left: auto;
    }

    /* Layout */
    .container { padding: 0 20px; }
    section { padding: 56px 0; }
    .section-header { margin-bottom: 40px; }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        overflow: visible;
    }

    .hero-content { padding: 0 8px; }

    .hero-tagline {
        font-size: 0.9rem;
        margin-top: 24px;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    /* Store Buttons */
    .store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Tabs */
    .tabs-nav {
        gap: 6px;
        margin-bottom: 32px;
        padding: 0 4px 8px;
        /* Visual scroll hint */
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.78rem;
    }

    .tab-text h3 { font-size: 1.3rem; }

    /* Cards */
    .card { padding: 24px 20px; }
    .card h3 { font-size: 1.05rem; }
    .card p { font-size: 0.85rem; }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    /* Section descriptions */
    .section-desc { font-size: 0.95rem; }
}

/* ── Responsive: Small Phones (iPhone SE, Galaxy S series) ── */
@media (max-width: 400px) {
    .container { padding: 0 16px; }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.5rem; }

    .nav-brand { font-size: 1.8rem; }
    .nav { padding: 12px 16px; }

    .hero { padding: 90px 0 48px; }
    .hero-tagline { font-size: 0.8rem; letter-spacing: 0.08em; }
    .hero-desc { font-size: 0.9rem; line-height: 1.7; }
    .btn-primary { padding: 14px 28px; font-size: 0.88rem; }

    .store-btn { padding: 12px 20px; }
    .store-btn-name { font-size: 0.95rem; }

    section { padding: 44px 0; }
    .section-header { margin-bottom: 32px; }
    .section-label { font-size: 0.7rem; }

    .tab-btn { padding: 8px 12px; font-size: 0.72rem; }
    .tab-text h3 { font-size: 1.15rem; }
    .tab-text p { font-size: 0.88rem; }
    .feature-list li { font-size: 0.82rem; padding: 10px 0; }

    .card { padding: 20px 16px; }
    .card-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }

    .footer-brand { font-size: 1.3rem; }
    .footer-copy { font-size: 0.7rem; }
}

/* ── Landscape mode on phones ─────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    .hero::before { display: none; }
    section { padding: 40px 0; }
}

/* ── New content elements ─────────────────────────────────── */
.hero-proof {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    text-align: center;
    line-height: 1.6;
}

.problem-list {
    list-style: none;
    padding: 0;
    margin: 24px auto 0;
    max-width: 600px;
    text-align: left;
}
.problem-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}
.problem-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.pricing-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pricing-block {
    margin-top: 48px;
    padding: 32px 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-block-main {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.pricing-block-main strong {
    color: var(--text-primary);
}
.pricing-block-cta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.pricing-block-cta strong {
    color: var(--accent);
}

.footer-email {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.5;
    letter-spacing: 0.02em;
    user-select: all;
}
