/* ============================================
   trenerzy.ai - landing (smoke test MVP)
   Taste pass: Terracotta + Slate, all-soft radius,
   one accent, light + dark tokens. Dials 6 / 3 / 4.
   ============================================ */
:root {
    color-scheme: light dark;

    /* Slate neutrals (cool, not warm cream) */
    --bg: #f4f4f6;
    --surface: #ffffff;
    --surface-2: #ececef;
    --border: #dcdce1;

    /* Off-black ink (never pure black) */
    --ink: #1b1b1f;
    --ink-soft: #5c5c66;

    /* Single accent: terracotta. Change here to re-skin. */
    --accent: #df533c;
    --accent-strong: #c5432d;
    --accent-soft: rgba(223, 83, 60, 0.10);
    --on-accent: #ffffff;

    --shadow-sm: 0 1px 2px rgba(27, 27, 31, 0.05);
    --shadow-md: 0 12px 40px rgba(27, 27, 31, 0.08);
    --shadow-lg: 0 24px 70px rgba(27, 27, 31, 0.12);

    /* Spacing */
    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
    --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
    --space-8: 2rem; --space-10: 3rem; --space-12: 4rem;
    --space-16: 5.5rem; --space-20: 7rem;

    /* One radius system: all-soft */
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 22px;

    --font-display: 'Manrope', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --container: 1080px;
    --pad: 1.5rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #151518;
        --surface: #1e1e22;
        --surface-2: #27272c;
        --border: #34343b;
        --ink: #f3f3f4;
        --ink-soft: #a2a2ac;
        --accent: #f0664f;
        --accent-strong: #df533c;
        --accent-soft: rgba(240, 102, 79, 0.14);
        --on-accent: #1b1b1f;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.6);
    }
}

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

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

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================ LAYOUT */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--space-20) 0; }
.section--tint { background: var(--surface); }

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    max-width: 22ch;
    margin-bottom: var(--space-10);
}

.title--center { margin-left: auto; margin-right: auto; text-align: center; max-width: 26ch; }
.title--lead { margin-bottom: var(--space-4); }
.title em { font-style: normal; color: var(--accent); }

.section-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 56ch;
    margin-bottom: var(--space-10);
}

/* ============================================ BUTTONS (soft, locked label) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.95rem 1.6rem;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { font-size: 1rem; padding: 1.05rem 2rem; }

.btn--ghost {
    background: var(--on-accent);
    color: var(--accent);
}
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================ NAV (one line, <=72px) */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 68px;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}
.nav--scrolled { border-bottom-color: var(--border); }

.nav__container {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--pad);
    display: flex; align-items: center; height: 100%; gap: var(--space-8);
}
.nav__logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.nav__logo span { color: var(--accent); }

.nav__links { display: flex; gap: var(--space-6); margin-left: auto; align-items: center; }
.nav__links a { font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { padding: 0.6rem 1.1rem; font-size: 0.8125rem; }
.nav__links a.nav__cta { color: var(--on-accent); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

/* ============================================ HERO (split, left-aligned, <=4 elements) */
.hero {
    padding-top: calc(68px + var(--space-12));
    padding-bottom: var(--space-16);
    overflow: hidden;
}
.hero__grid {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--pad);
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-12); align-items: center;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: var(--space-5);
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 42ch;
    margin-bottom: var(--space-8);
}
.hero__media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: var(--shadow-lg);
}
.hero__media picture { display: contents; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================ STATEMENT (manifest band) */
.statement {
    background: var(--accent-soft);
    padding: var(--space-16) 0;
    text-align: center;
}
.statement__text {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.2vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.32;
    max-width: 34ch;
    margin: 0 auto;
    color: var(--ink);
}
.statement__text em { font-style: normal; color: var(--accent); }

/* ============================================ STEPS (numbered cards) */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.step {
    display: flex; gap: var(--space-4);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: var(--space-6);
}
.section--tint .step { background: var(--bg); }
.step__num {
    flex-shrink: 0; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800;
    color: var(--accent); background: var(--accent-soft); border-radius: var(--r-sm);
}
.step__title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; margin-bottom: var(--space-1); }
.step__text { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); }

/* ============================================ VS (comparison, sparowane wiersze) */
.vs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.vs__head, .vs__cell { overflow-wrap: break-word; }
.vs__head {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    padding: var(--space-5) var(--space-6);
}
.vs__head--old { background: var(--surface-2); color: var(--ink-soft); }
.vs__head--new { background: var(--accent); color: var(--on-accent); }
.vs__cell {
    padding: var(--space-5) var(--space-6);
    font-size: 0.9375rem;
    line-height: 1.45;
    border-top: 1px solid var(--border);
}
.vs__cell--old { background: var(--surface-2); color: var(--ink-soft); }
.vs__cell--new { background: var(--accent-soft); color: var(--ink); font-weight: 500; }

/* ============================================ PRICING (centered card) */
.price {
    max-width: 460px; margin: 0 auto;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: var(--space-12) var(--space-10);
    text-align: center; box-shadow: var(--shadow-lg);
}
.section--tint .price { background: var(--bg); }
.price__amount { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
.price__per { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price__list { margin: var(--space-8) 0; text-align: left; display: inline-block; }
.price__list li { position: relative; padding-left: 1.8rem; margin-bottom: var(--space-3); font-size: 0.9375rem; }
.price__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.price__cancel { font-weight: 700; margin-bottom: var(--space-3); }
.price__note { font-size: 0.875rem; color: var(--ink-soft); margin-top: var(--space-5); }

/* ============================================ QUOTES (opinie, PLACEHOLDER) */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.quote {
    display: flex; flex-direction: column; gap: var(--space-6);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: var(--space-8);
}
.quote__text { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.quote__person { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.quote__avatar {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    font-family: var(--font-display); font-weight: 800;
}
.quote__name { display: block; font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.quote__role { display: block; font-size: 0.8125rem; color: var(--ink-soft); }

/* ============================================ FIT (two-col yes/no) */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.fit__card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: var(--space-8); border-top: 3px solid var(--border); }
.section--tint .fit__card { background: var(--bg); }
.fit__card--yes { border-top-color: var(--accent); }
.fit__h { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-5); }
.fit__list li { position: relative; padding-left: 1.6rem; margin-bottom: var(--space-3); font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
.fit__list li::before { position: absolute; left: 0; font-weight: 800; }
.fit__list--yes li::before { content: "✓"; color: var(--accent); }
.fit__list--no li::before { content: "✕"; color: var(--ink-soft); opacity: 0.6; }

/* ============================================ FAQ (narrow list) */
.faq { max-width: 720px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--border); padding: var(--space-6) 0; }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__q { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; margin-bottom: var(--space-2); }
.faq__a { font-size: 0.9375rem; line-height: 1.65; color: var(--ink-soft); }

/* ============================================ CTA (full-width color block) */
.cta { background: var(--accent); color: var(--on-accent); }
.cta__inner { max-width: 720px; margin: 0 auto; padding: var(--space-16) var(--pad); text-align: center; }
.cta__title { font-family: var(--font-display); font-size: clamp(1.85rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; margin-bottom: var(--space-4); }
.cta__sub { font-size: 1.0625rem; line-height: 1.6; opacity: 0.92; max-width: 46ch; margin: 0 auto var(--space-8); }

/* ============================================ FOOTER */
.footer { padding: var(--space-12) 0 var(--space-8); background: var(--surface); border-top: 1px solid var(--border); }
.footer__top { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; padding-bottom: var(--space-8); }
.footer__logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.footer__logo span { color: var(--accent); }
.footer__tagline { font-size: 0.875rem; color: var(--ink-soft); margin-top: var(--space-2); max-width: 34ch; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-4); }
.footer__col a { display: block; font-size: 0.875rem; color: var(--ink-soft); margin-bottom: var(--space-2); transition: color 0.2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { padding-top: var(--space-8); border-top: 1px solid var(--border); text-align: center; font-size: 0.8125rem; color: var(--ink-soft); }

/* ============================================ RESPONSIVE */
@media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .hero__media { order: -1; aspect-ratio: 4 / 5; max-width: 300px; margin-inline: auto; }
    .hero .btn { display: flex; width: fit-content; margin-inline: auto; }
    .steps { grid-template-columns: 1fr; }
    .quotes { grid-template-columns: 1fr; }
    .fit { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    :root { --pad: 1.25rem; }
    .section { padding: var(--space-12) 0; }
    /* Hero: CTA nad zgięciem na telefonie - mniej odstępów, mniejsze zdjęcie */
    .hero { padding-top: calc(68px + var(--space-4)); padding-bottom: var(--space-8); }
    .hero__grid { gap: var(--space-5); }
    .hero__media { max-width: none; aspect-ratio: 16 / 10; }
    .hero__title { font-size: 1.85rem; line-height: 1.14; margin-bottom: var(--space-3); }
    .hero__sub { font-size: 1rem; margin-bottom: var(--space-5); }
    .nav__toggle { display: flex; }
    .nav__links {
        position: fixed; top: 68px; left: 0; right: 0;
        background: color-mix(in srgb, var(--bg) 97%, transparent);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        flex-direction: column; align-items: stretch;
        padding: var(--space-6) var(--pad); gap: var(--space-4);
        transform: translateY(-130%); visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
        border-bottom: 1px solid var(--border);
    }
    .nav__links--open { transform: translateY(0); visibility: visible; }
    .nav__links a.nav__cta { text-align: center; }
    .price, .cta__inner { padding: var(--space-8); }
    .vs__head, .vs__cell { padding: var(--space-3) var(--space-4); }
    .vs__head { font-size: 0.9375rem; }
    .vs__cell { font-size: 0.8125rem; }
    .footer__top { flex-direction: column; gap: var(--space-6); }
}

/* ============================================ MOTION (intensity 3, reduced-motion safe) */
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
    [data-reveal].is-in { opacity: 1; transform: none; }
}
