/* Strona z listą oczekujących. Kolory, czcionka i przyciski jak na stronie głównej
   (tailwind.config.js, resources/css/app.css → .platform-page): wszystko w Montserrat. */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(fonts/montserrat-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #163055;
    --ink-2: #0f2240;
    --pink: #e0238d;
    --pink-dark: #b81a72;
    --yellow: #fdd80d;
    --text: #1d2737;
    --muted: #5b6678;
    --line: #e2e7ef;
    --bg: #ffffff;
    --tint: #f4f6fa;
    --ok: #0f7a4f;
    --ok-bg: #e5f6ee;
    --warn-bg: #fff8d6;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(22, 48, 85, .06), 0 8px 28px rgba(22, 48, 85, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
/* Jak na stronie głównej: h1 i h2 w Montserrat 800, zwykłymi literami. */
h1, h2 { font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--pink-dark); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--pink); }

/* Header / footer */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.01em; }
.site-footer { background: var(--ink); color: #c9d3e3; padding: 32px 0; font-size: .9rem; }
.site-footer .wordmark { color: #fff; font-size: 1.1rem; }
.logo-footer img { border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.site-footer a { color: #fff; }
.site-footer .muted { color: #9fb0c9; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Buttons */
.btn {
    display: inline-block; border: 2px solid var(--ink); color: var(--ink); background: #fff;
    padding: .7em 1.3em; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .3px; text-decoration: none;
    cursor: pointer; transition: background .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .4em 1em; font-size: .875rem; }
.btn-primary { background: var(--pink-dark); border-color: var(--pink-dark); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); filter: brightness(1.1); }
.btn-block { display: block; width: 100%; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(224, 35, 141, .45); outline-offset: 2px;
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%); color: #e6ecf5; padding: 56px 0 72px; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; gap: 40px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--pink); }
.hero .eyebrow { color: #ffb3dc; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(224, 35, 141, .25); }
.lead { font-size: 1.15rem; color: #d3dcea; }
.hero-points { list-style: none; padding: 0; margin: 0 0 24px; }
.hero-points li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.hero-points li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--pink); border-bottom: 3px solid var(--pink); transform: rotate(-45deg); }
.founder { border-left: 4px solid var(--yellow); background: rgba(253, 216, 13, .10); padding: 12px 16px; border-radius: 0 10px 10px 0; color: #fff; font-size: .95rem; }
.founder strong { color: var(--yellow); }

.card { background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.hero-form h2 { font-size: 1.35rem; }
.count { color: var(--muted); font-size: .95rem; }

/* Form */
.field { margin-bottom: 14px; }
.field label, legend { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
input[type=email], input[type=text], input[type=password], input:not([type]), select, textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
    border: 1.5px solid #cbd3df; border-radius: 10px; padding: .7em .85em;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 6px 0 16px; line-height: 1.45; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--pink); }
.field-hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.squad-hint { display: none; }
.signup-form:has(select[name="role"] option[value="organizer"]:checked) .squad-hint { display: block; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.form-error { background: #fdecef; border: 1px solid #f3b8c4; color: #8a1730; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }
.form-error p { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-cta { background: linear-gradient(180deg, var(--tint), #fff); }
.split { display: grid; gap: 40px; align-items: center; }
.pains { list-style: none; padding: 0; margin: 0; }
.pains li { background: var(--tint); border-radius: 14px 14px 14px 4px; padding: 12px 16px; margin-bottom: 12px; font-style: italic; color: var(--ink); max-width: 30em; }

/* Phone mockup: kolejka */
.phone { background: #fff; border: 10px solid var(--ink); border-radius: 32px; padding: 18px 16px; box-shadow: var(--shadow); max-width: 360px; width: 100%; justify-self: center; }
.phone-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.phone-head strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.phone-head span { font-size: .8rem; color: var(--muted); }
.phone-day { background: var(--ink); color: #cfd8e6; border-radius: 10px; padding: 6px 10px; font-size: .7rem; text-align: center; line-height: 1.1; font-weight: 700; }
.phone-day b { display: block; color: #fff; font-weight: 800; font-size: 1.4rem; }
.queue { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.queue li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.queue li span { width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--ink); font-weight: 700; font-size: .72rem; display: grid; place-items: center; flex: none; }
.queue li em { margin-left: auto; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .78rem; }
.queue li.gap { justify-content: center; color: var(--muted); padding: 2px 0; }
.badge { font-style: normal; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.badge.ok { background: #fde4f1; color: var(--pink-dark); }
.badge.wait { background: var(--yellow); color: #4a3f00; }
.toast { margin-top: 14px; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; font-size: .8rem; }
.toast b { color: var(--yellow); }

/* Steps / features / plans */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.steps li { background: var(--tint); border-radius: var(--radius); padding: 24px; }
.steps b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
.steps p, .features p, .plan p { color: var(--muted); font-size: .95rem; margin: 0; }
.features { display: grid; gap: 16px; margin-top: 32px; }
.features div { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid var(--line); }
.features h3 { margin-bottom: .3em; }
.plans { display: grid; gap: 16px; margin-top: 28px; }
.plan { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; }
.plan-featured { border-color: var(--pink); box-shadow: var(--shadow); }
.plan .price { font-weight: 800; font-size: 2rem; color: var(--ink); margin: 0 0 .3em; }
.plans-group { margin: 36px 0 0; font-size: 1.1rem; }
.plan .soon, .features .soon { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink); vertical-align: middle; }

/* FAQ */
details { background: #fff; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--pink); }
details[open] summary::after { content: '–'; }
details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }
.addons { margin: 20px 0 0; font-size: .9rem; }

/* Thank-you page */
.position { font-weight: 800; font-size: clamp(3rem, 12vw, 5rem); color: var(--pink); margin: .1em 0 .2em; }
.ok-note { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.warn-note { background: var(--warn-bg); border-radius: 10px; padding: 12px 14px; text-align: left; }
.survey fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; border: 1.5px solid #cbd3df; border-radius: 999px; padding: .4em .9em; font-size: .9rem; cursor: pointer; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid rgba(224, 35, 141, .45); outline-offset: 2px; }
.field-row { display: grid; gap: 0 16px; }
.share input { font-size: .9rem; background: var(--tint); }

/* Prose (privacy) */
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }

/* Admin */
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stats div { background: var(--tint); border-radius: 12px; padding: 14px; }
.stats b { display: block; font-weight: 800; font-size: 2rem; color: var(--ink); }
.stats span { font-size: .85rem; color: var(--muted); }
.breakdowns { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 16px; }
.admin table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin td, .admin th { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.signups td.pain { min-width: 220px; }
.link-danger { background: none; border: 0; color: #b42318; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

@media (min-width: 720px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: repeat(2, 1fr); }
    .plans-1 { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
    .hero { padding: 80px 0 96px; }
    .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
    .split { grid-template-columns: 1fr 1fr; }
    .features { grid-template-columns: repeat(4, 1fr); }
    .plans { grid-template-columns: repeat(4, 1fr); }
    .plans-2 { grid-template-columns: repeat(2, 1fr); }
    .plans-3 { grid-template-columns: repeat(3, 1fr); }
    .plans-1 { grid-template-columns: 1fr; max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
.danger-zone { margin-top: 24px; }
.danger-zone .reset-form { padding: 0 18px 16px; }
.danger-zone .reset-form p { padding: 0; margin: 0 0 12px; }
.section-video video.video-square { max-width: 560px; aspect-ratio: 1 / 1; }
.section-video video { display: block; width: 100%; max-width: 880px; height: auto; aspect-ratio: 16 / 9; margin: 24px auto 0; border-radius: var(--radius); background: #12284a; box-shadow: var(--shadow); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Strona „Umów pokaz” (2026-11-10) */
.header-nav { display: flex; align-items: center; gap: 16px; }
.header-link { color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.header-link:hover { color: var(--pink-dark); }
/* Przełącznik języka PL/EN (?lang=pl / ?lang=en), taki sam jak na stronie głównej aplikacji. */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font-size: .75rem; font-weight: 700; }
.lang-switch a { padding: 3px 9px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.optional { font-weight: 500; color: var(--muted); }
.slots { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.slots legend { padding: 0; }
.slots .chip span { padding: .35em .8em; font-size: .85rem; }
.agenda { list-style: none; padding: 0; margin: 0 0 20px; }
.agenda li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--muted); }
.agenda li b { color: var(--ink); }
.agenda li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--pink); border-bottom: 3px solid var(--pink); transform: rotate(-45deg); }
.hero-form { scroll-margin-top: 80px; }
.section-cta .muted { margin-top: 8px; }
@media (max-width: 480px) {
    .header-link { display: none; }
    .wordmark { font-size: 1.2rem; }
    .header-nav { gap: 8px; }
    .header-nav .btn-small { white-space: nowrap; }
}
@media (max-width: 400px) {
    /* Przy przełączniku języka zostaje sam znak marki, żeby przycisk „Umów pokaz” zmieścił się w jednej linii. */
    .site-header .wordmark { display: none; }
}

/* Odświeżenie strony pokazu (2026-11-12): kod QR do formularza i link do samodzielnego startu. */
.hero-alt { margin: 16px 0 0; font-size: .95rem; color: #d3dcea; }
.hero-alt a { color: #fff; font-weight: 600; }
.qr-handoff { display: none; }
@media (min-width: 960px) {
    .qr-handoff { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
    .qr-handoff img { flex: none; border-radius: 8px; border: 1px solid var(--line); }
    .qr-handoff p { margin: 0; font-size: .85rem; color: var(--muted); }
    .qr-handoff strong { color: var(--ink); }
}
