/* AI dla przewodników. Tokeny i decyzje wizualne: docs/decisions.md. Mobile first. */
@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-variable.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --green: #0E7C6B;        /* akcent, przyciski, "AI" w logo */
    --green-dark: #0A5F52;
    --green-on-navy: #1FA38D;
    --navy: #16233F;         /* tekst, ciemne sekcje */
    --mustard: #F2A541;      /* tylko pinezka i drobne akcenty, nigdy tekst na białym */
    --muted: #4A5670;        /* tekst pomocniczy */
    --tint: #F4F5F7;         /* tło sekcji */
    --line: #DDE1E8;
    --white: #FFFFFF;
    --radius: 14px;
    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.6;
    color: var(--navy);
    background: var(--white);
    padding-bottom: 76px; /* miejsce na przyklejony przycisk na telefonie */
}
body[data-mode="closed"] { padding-bottom: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.045em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 5.2vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; letter-spacing: -0.03em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.lead { font-size: 1.2rem; font-weight: 600; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 10px 14px; border-radius: 8px; }

/* Warianty strony: przed terminem / po terminie, zapis otwarty / jeszcze bez linku */
body[data-mode="live"] .is-closed,
body[data-mode="closed"] .is-live,
body[data-signup="soon"] .if-open,
body[data-signup="open"] .if-soon { display: none !important; }

/* Przyciski */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 12px 26px;
    background: var(--green); color: var(--white);
    font: inherit; font-weight: 800; letter-spacing: -0.01em; text-decoration: none;
    border: 2px solid var(--green); border-radius: 999px; cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-header .home { display: block; flex: 0 1 auto; }
.logo { width: 208px; font-family: "Manrope", Arial, sans-serif; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav ul { display: none; list-style: none; gap: 22px; }
.site-header nav ul a { color: var(--navy); font-weight: 700; text-decoration: none; }
.site-header nav ul a:hover { color: var(--green); }
.site-header .btn { display: none; }

/* Hero */
.hero { padding: 44px 0 56px; }
.hero .wrap { display: grid; gap: 36px; }
.kicker { font-weight: 800; color: var(--green); font-size: .95rem; margin-bottom: 14px; }
.hero .intro { font-size: 1.15rem; color: var(--muted); font-weight: 600; margin: 20px 0 0; max-width: 34em; }

.ticket { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 26px 22px; }
.ticket .date { display: flex; align-items: baseline; gap: 12px; }
.ticket .date b { font-size: 4rem; font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.ticket .date em { font-style: normal; font-weight: 800; font-size: 1.25rem; color: var(--green-on-navy); }
.ticket .when { font-weight: 700; margin: 12px 0 14px; }
.facts { list-style: none; margin-bottom: 20px; }
.facts li { position: relative; padding-left: 22px; margin-bottom: 4px; color: #D9DEE8; }
.facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green-on-navy); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.countdown div { background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 10px 4px; text-align: center; }
.countdown span { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { font-size: .78rem; color: #D9DEE8; }
.closed-note { font-size: 1.25rem; font-weight: 800; }

/* Co będziesz umieć */
.skills { list-style: none; display: grid; gap: 18px; }
.skills li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.skills .num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; margin-bottom: 14px; }
.skills h3 { margin-bottom: 8px; }
.skills p { color: var(--muted); margin: 0; }

/* Dla kogo */
.fit { display: grid; gap: 18px; }
.fit > div { background: var(--white); border-radius: var(--radius); padding: 24px 22px; border-top: 5px solid var(--green); }
.fit .no { border-top-color: var(--muted); }
.fit h3 { margin-bottom: 14px; }
.fit ul { list-style: none; }
.fit li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.fit li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.fit .no li::before { background: transparent; border: 2px solid var(--muted); }

/* Program: oś z motywem trasy (kropki od punktu do pinezki) */
.route { list-style: none; position: relative; counter-reset: stop; margin-top: 8px; }
.route > li { position: relative; padding: 0 0 34px 48px; counter-increment: stop; }
.route > li::before { /* kropkowana trasa */
    content: ""; position: absolute; left: 12px; top: 30px; bottom: -2px; width: 5px;
    background: radial-gradient(circle, var(--green) 2.5px, transparent 3px) center top / 5px 14px repeat-y;
}
.route > li::after { /* przystanek */
    content: counter(stop); position: absolute; left: 0; top: 0;
    width: 29px; height: 29px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--green); color: var(--green);
    font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center;
}
.route > li:first-child::after { background: var(--navy); border-color: var(--navy); color: var(--white); }
.route > li.end { padding-bottom: 0; }
.route > li.end::before { display: none; }
.route > li.end::after { /* pinezka na końcu trasy */
    content: ""; border: 0; border-radius: 0; left: 1px; top: -3px; width: 27px; height: 37px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 46'%3E%3Cpath d='M16 2C8 2 2 8 2 16c0 11 14 28 14 28s14-17 14-28C30 8 24 2 16 2z' fill='%23F2A541'/%3E%3Ccircle cx='16' cy='16' r='5.5' fill='%2316233F'/%3E%3C/svg%3E") center / contain no-repeat;
}
.route h3 { margin-bottom: 6px; padding-top: 2px; }
.route p { color: var(--muted); margin: 0; }
.route ul { list-style: none; color: var(--muted); }
.route ul li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.route ul li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.tools-line { margin: 40px 0 12px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 2px solid var(--navy); border-radius: 999px; padding: 6px 16px; font-weight: 800; font-size: .95rem; }

/* Prowadzący */
.bio { display: grid; gap: 24px; background: var(--white); border-radius: var(--radius); padding: 22px; }
.bio img { width: 100%; max-width: 320px; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 10px; }
.bio .role { color: var(--green); font-weight: 800; margin: 6px 0 14px; }
.bio p:last-child { margin-bottom: 0; }

/* Opinie */
.quotes { display: grid; gap: 18px; }
.quotes blockquote { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.quotes footer { font-weight: 800; }
.quotes footer span { display: block; font-weight: 500; color: var(--muted); }

/* Zapis */
.signup { background: var(--navy); color: var(--white); }
.signup-card { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); color: var(--navy); }
.signup-card .amount { background: var(--green); color: var(--white); padding: 26px 22px; }
.signup-card .amount .label { font-weight: 800; font-size: .95rem; }
.signup-card .amount p { margin: 2px 0 0; }
.signup-card .amount b { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1.1; }
.signup-card .details { padding: 26px 22px; }
.signup-card ul { list-style: none; margin-bottom: 22px; }
.signup-card li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.signup-card li:first-child { padding-top: 0; }
.soon { background: var(--tint); border-radius: 10px; padding: 14px 16px; font-weight: 700; margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 800; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 500; color: var(--green); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 24px; }

/* Stopka */
.site-footer { background: var(--navy); color: var(--white); padding: 44px 0 36px; }
.site-footer .logo { width: 240px; margin-bottom: 22px; }
.site-footer .company { font-weight: 800; margin-bottom: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 22px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--green-on-navy); }
.site-footer .copy { color: #D9DEE8; font-size: .9rem; margin: 0; }

/* Przyklejony przycisk na telefonie */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }

/* Baner zgody (consent.js) */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 520px; background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 12px 40px rgba(22, 35, 63, .22); }
.consent-title { font-weight: 800; margin-bottom: 6px; }
.consent-text { font-size: .93rem; color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Strony dokumentów */
.page-head { background: var(--tint); padding: 44px 0 36px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 8px 0 12px; }
.page-head p { color: var(--muted); margin: 0; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.45rem; margin: 2em 0 .7em; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; font-size: .95rem; }
.legal thead { display: none; }
.legal tr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.legal td { display: block; padding: 4px 0; }
.legal td::before { content: attr(data-label) ": "; font-weight: 800; }
.legal .draft { background: #FFF6E5; border: 1px solid var(--mustard); border-radius: 10px; padding: 12px 16px; }

@media (min-width: 720px) {
    body { font-size: 18px; padding-bottom: 0; }
    .section { padding: 88px 0; }
    .sticky-cta { display: none; }
    .site-header .btn { display: inline-flex; }
    .logo { width: 250px; }
    .skills { grid-template-columns: repeat(3, 1fr); }
    .fit { grid-template-columns: 1fr 1fr; }
    .quotes { grid-template-columns: 1fr 1fr; }
    .bio { grid-template-columns: 280px 1fr; padding: 32px; gap: 36px; align-items: start; }
    .signup-card { grid-template-columns: 280px 1fr; }
    .signup-card .amount, .signup-card .details { padding: 34px 32px; }
    .legal thead { display: table-header-group; }
    .legal tr { display: table-row; border: 0; padding: 0; }
    .legal th, .legal td { display: table-cell; text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
    .legal th { background: var(--tint); }
    .legal td::before { content: none; }
}

@media (min-width: 980px) {
    .site-header nav ul { display: flex; }
    .hero { padding: 72px 0 88px; }
    .hero .wrap { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
    .ticket { padding: 32px 30px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
