/* Aktywni Akademia: the liga.aktywni.app look, re-typed (white paper, ink as the one strong colour,
   12 px corners, no decorative shadows), with the app's type: Plus Jakarta Sans and JetBrains Mono
   (OFL, /fonts). Accent: the association's kids green. Served same-origin only (CSP style-src 'self'). */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/PlusJakartaSans_400Regular.ttf) format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/PlusJakartaSans_600SemiBold.ttf) format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/PlusJakartaSans_800ExtraBold.ttf) format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/JetBrainsMono_500Medium.ttf) format("truetype"); }

:root {
  color-scheme: light;
  --paper: #FFFFFF; --mist: #EEF2FA;
  --ink: #12161F; --ink2: #4B5565; --ink3: #6B7383;
  --line: #E4E8EE; --line2: #CDD3DD;
  --c: #17864A; --ct: #0F6A39; --cs: #E3F4EA;
  --amber-t: #9A4A00; --amber-s: #FDF0DC;
  --red: #B42318; --red-s: #FDECEA;
  --r: 12px; --r-s: 8px;
  --wrap: 76rem;
  --text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--text); -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
img { max-width: 100%; }
a { color: var(--ct); text-underline-offset: .18em; }
h1 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; border-radius: var(--r-s); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; font-weight: 600; border-radius: var(--r-s); }
.skip:focus { left: 1rem; top: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* header */
.hd { background: var(--paper); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand img { display: block; flex: none; }
.brand b { display: block; font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.15; }
.brand small { display: block; font-size: .75rem; color: var(--ink3); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.875rem; padding: .7rem 1.2rem; border-radius: var(--r); font: inherit; font-weight: 600; font-size: .9375rem; line-height: 1.2; text-align: center; text-decoration: none; border: 0; cursor: pointer; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ink:hover { background: #2A303D; }
.btn.line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.line:hover { background: var(--mist); }
.btn.big { min-height: 3.25rem; padding: .9rem 1.5rem; font-size: 1rem; }

/* home: „wkrótce” */
.hero { padding: 3rem 0 3.5rem; }
.hero-in { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .hero { padding: 5rem 0 5.5rem; } .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; } }
.hero-txt { display: grid; gap: 1.5rem; justify-items: start; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: .98; max-width: 12ch; }
.hero h1::after { content: ""; display: block; width: 6rem; height: 4px; margin-top: 1.5rem; border-radius: 2px; background: var(--c); }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--ink2); max-width: 32rem; }
.contact { font-weight: 600; color: var(--ink); }
.hero-pic { display: grid; place-items: center; aspect-ratio: 5 / 4; border-radius: var(--r); background: var(--cs); }
.hero-pic img { display: block; width: 44%; height: auto; }
@media (max-width: 40rem) { .hero-pic { aspect-ratio: 16 / 9; } .hero-pic img { width: 30%; } }

/* single-card pages: invite, invalid link, 404 */
.panel { padding: 3rem 0 4rem; }
@media (min-width: 48rem) { .panel { padding: 5rem 0 6rem; } }
.card { display: grid; gap: 1.25rem; justify-items: start; max-width: 34rem; margin: 0 auto; }
.card h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); }
.card .lede { font-size: 1.0625rem; }
.code-box { display: grid; gap: .35rem; width: 100%; padding: 1rem 1.25rem; border-radius: var(--r); background: var(--mist); }
.code-box span { font-size: .8125rem; font-weight: 600; color: var(--ink3); }
.code { font-family: var(--mono); font-weight: 500; font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: .08em; color: var(--ink); overflow-wrap: anywhere; }
.card .btn.big { width: 100%; }
.hint { font-size: .9375rem; color: var(--ink2); }
.stores { display: grid; gap: .75rem; width: 100%; }
@media (min-width: 30rem) { .stores { grid-template-columns: 1fr 1fr; } }
.note { width: 100%; font-size: .875rem; color: var(--ink2); background: var(--cs); border-radius: var(--r-s); padding: .7rem .9rem; }

/* footer */
.ft { position: relative; background: var(--mist); color: var(--ink3); font-size: .8125rem; padding: 1.75rem 0; }
.ft::before { content: ""; position: absolute; top: 0; left: max(1rem, calc((100% - var(--wrap)) / 2 + 1rem)); width: 6rem; height: 3px; background: var(--c); }
@media (min-width: 48rem) { .ft::before { left: max(2rem, calc((100% - var(--wrap)) / 2 + 2rem)); } }
.ft-in { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* enrollment /zapisy (C6, behind FORM_ENABLED): w1 desktop = lede column + form card, w2 mobile = one column */
.enroll-page { padding: 2rem 0 3rem; }
.enroll-grid { display: grid; gap: 2rem; grid-template-areas: "lede" "form" "app"; }
.enroll-lede { grid-area: lede; display: grid; gap: 1rem; align-content: start; justify-items: start; min-width: 0; }
.form-card { grid-area: form; min-width: 0; padding: 1.25rem; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.app-box { grid-area: app; display: grid; gap: .6rem; align-content: start; padding: 1rem 1.25rem; border-radius: var(--r); background: var(--mist); }
@media (min-width: 48rem) { .form-card { padding: 1.5rem; } }
@media (min-width: 60rem) {
  .enroll-page { padding: 3rem 0 4.5rem; }
  .enroll-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 32.5rem); grid-template-areas: "lede form" "app form"; column-gap: 3rem; align-items: start; }
}
.eyebrow { font-size: .8125rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); }
.enroll-lede h1 { font-size: clamp(1.75rem, 5.4vw, 2.75rem); }
.enroll-lede .lede { font-size: 1rem; }

.offers { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .75rem; width: 100%; }
@media (min-width: 40rem) { .offers { grid-template-columns: 1fr 1fr; } }
.offers li { min-width: 0; }
.offer { display: grid; gap: .4rem; height: 100%; padding: 1rem; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.offer:hover { box-shadow: inset 0 0 0 1px var(--line2); }
.offer.sel { box-shadow: inset 0 0 0 1.5px var(--ink); }
.offer-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .2rem; }
.offer-mark { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-s); background: var(--ink); color: #fff; font-weight: 800; }
.offer-name { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.offer-name b { font-weight: 800; overflow-wrap: anywhere; }
.offer-name small { font-size: .8125rem; color: var(--ink3); }
.offer-tick { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); }
.offer.sel .offer-tick { box-shadow: none; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; }
.offer-line { display: flex; align-items: center; gap: .45rem; font-size: .875rem; color: var(--ink2); min-width: 0; }
.ico { flex: none; color: var(--ink3); }
.offer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .3rem; }
.price { font-family: var(--mono); font-weight: 500; font-size: 1rem; white-space: nowrap; }
.price small { font-family: var(--text); font-size: .75rem; font-weight: 600; color: var(--ink3); }
.seats { padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.seats.ok { background: var(--cs); color: var(--ct); }
.seats.full { background: var(--amber-s); color: var(--amber-t); }
.fill-cta { width: 100%; }
@media (min-width: 60rem) { .fill-cta { display: none; } }

.enroll { display: grid; gap: 1rem; }
.enroll h2 { margin: 0; font-size: clamp(1.375rem, 4vw, 1.625rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.enroll h3 { margin: .5rem 0 0; font-size: 1rem; font-weight: 800; }
.grid2 { display: grid; gap: .875rem; }
@media (min-width: 36rem) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; align-content: start; min-width: 0; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--ink2); }
.field input, .field select { width: 100%; min-height: 3rem; padding: .7rem .85rem; border: 0; border-radius: var(--r-s); background-color: var(--paper); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); font: inherit; font-size: 1rem; }
.field select { appearance: none; padding-right: 2.25rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B7383' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .85rem center / 12px no-repeat; }
.field input::placeholder { color: var(--ink3); }
.field.err label { color: var(--red); }
.field.err input, .field.err select { box-shadow: inset 0 0 0 1.5px var(--red); }
.field-err { font-size: .8125rem; font-weight: 600; line-height: 1.4; color: var(--red); }
.alert { display: grid; gap: .2rem; padding: .8rem 1rem; border-radius: var(--r-s); font-size: .875rem; line-height: 1.5; }
.alert[hidden] { display: none; }
.alert.amber { background: var(--amber-s); color: var(--amber-t); }
.alert.red { background: var(--red-s); color: var(--red); font-weight: 600; }
.alert-title { font-weight: 800; }
.consents { display: grid; gap: .6rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .65rem; align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--ink); }
.check label { font-size: .875rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.check.err label { color: var(--red); }
.consent-doc { grid-column: 2; font-size: .8125rem; color: var(--ink2); }
.consent-doc summary { width: max-content; cursor: pointer; font-weight: 600; color: var(--ct); }
.consent-doc p { margin-top: .35rem; white-space: pre-line; overflow-wrap: anywhere; }
.cf-turnstile { min-height: 4.1rem; }
.submit { justify-self: start; min-width: min(100%, 16rem); }
@media (max-width: 35.99rem) { .submit { justify-self: stretch; } }
.app-box h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.app-box p { font-size: .9375rem; color: var(--ink2); }
.app-box .note { background: var(--paper); }

/* „Zgłoszenie wysłane!” */
.card.done { justify-items: center; text-align: center; }
.done-mark { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--cs); color: var(--ct); }
.kv { width: 100%; margin: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; }
.kv div + div { border-top: 1px solid var(--line); }
.kv dt { font-size: .875rem; color: var(--ink3); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
