/* Strona publiczna „O projekcie” (core/about.html). Czcionki z własnego serwera (CSP). */
@font-face { font-family: "Lexend"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/lexend-latin-ext-wght-normal.3c963a23460f.woff2") format("woff2-variations");
  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: "Lexend"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/lexend-latin-wght-normal.2077a5271e5c.woff2") format("woff2-variations");
  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; }
@font-face { font-family: "Caveat"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("../fonts/caveat-latin-ext-wght-normal.2a8768f8ef1f.woff2") format("woff2-variations");
  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: "Caveat"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("../fonts/caveat-latin-wght-normal.2d9de14f93a2.woff2") format("woff2-variations");
  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; }

/* Układ: „zeszyt w kratkę” – kratka w tle, zrzuty z telefonu jak naklejki, odręczne dopiski na marginesie. */
:root {
  --paper: #f7f7fc;
  --grid: rgba(91, 79, 233, 0.075);
  --margin-line: rgba(229, 72, 77, 0.28);
  --surface: #ffffff;
  --ink: #16162a;
  --muted: #5e5e78;
  --line: #e3e3ee;
  --brand: #5b4fe9;
  --brand-strong: #4a3ed6;
  --brand-soft: #eeecff;
  --on-brand: #ffffff;
  --marker: #ffe066;
  --sun: #f59e0b;
  --sun-soft: #fff5db;
  --ok: #16a34a;
  --bezel: #1b1b2e;
  --shadow: 0 18px 40px -18px rgba(40, 30, 120, 0.35), 0 4px 12px -6px rgba(40, 30, 120, 0.18);
  --font-display: "Lexend", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: "Lexend", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0f1b; --grid: rgba(138, 128, 255, 0.08); --margin-line: rgba(251, 113, 133, 0.25);
    --surface: #171726; --ink: #ececf8; --muted: #a6a6c4; --line: #2b2b44;
    --brand: #8a80ff; --brand-strong: #a49cff; --brand-soft: #25224a; --on-brand: #0e0e19;
    --marker: rgba(251, 191, 36, 0.38); --sun: #fbbf24; --sun-soft: #3a2e10; --ok: #34d399; --bezel: #000000;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 4px 12px -6px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0f1b; --grid: rgba(138, 128, 255, 0.08); --margin-line: rgba(251, 113, 133, 0.25);
  --surface: #171726; --ink: #ececf8; --muted: #a6a6c4; --line: #2b2b44;
  --brand: #8a80ff; --brand-strong: #a49cff; --brand-soft: #25224a; --on-brand: #0e0e19;
  --marker: rgba(251, 191, 36, 0.38); --sun: #fbbf24; --sun-soft: #3a2e10; --ok: #34d399; --bezel: #000000;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 4px 12px -6px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 12px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(48px, 8vw, 96px); }

.hand { font-family: var(--font-hand); font-weight: 700; color: var(--brand); line-height: 1.1; }
.hl { background: linear-gradient(transparent 56%, var(--marker) 56%, var(--marker) 90%, transparent 90%); padding: 0 0.08em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
}
.section-head { display: grid; gap: 0.75rem; max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Pasek górny */
.topbar { padding-block: 18px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 36px; height: 36px; }
.topbar .who { font-size: 0.9rem; color: var(--muted); }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -12px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }

/* Hero */
.hero { padding-block: clamp(24px, 5vw, 64px) clamp(48px, 7vw, 88px); position: relative; }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.025em; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34rem; }
.hero .lead b { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.facts li {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500;
}
.facts li span { color: var(--brand); font-weight: 700; }

.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; min-width: 0; padding-top: 8px; }
.hero-phones figure { margin: 0; display: grid; justify-items: center; gap: 0.6rem; width: min(250px, 48%); }
.hero-phones figure:first-child { transform: rotate(-4deg); z-index: 2; margin-right: -6%; }
.hero-phones figure:last-child { transform: rotate(3.5deg) translateY(36px); }
.hero-phones figcaption { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

/* Telefon */
.phone {
  background: var(--bezel); padding: 6px; border-radius: 30px; box-shadow: var(--shadow);
  width: 100%; max-width: 100%;
}
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 24px; background: #f6f6fb; }

/* Znamy to */
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pain {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.25rem 1.35rem;
  display: grid; gap: 0.85rem; align-content: start; min-width: 0;
}
.pain .before { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.15; color: var(--muted); }
.pain .before s { text-decoration-color: rgba(229, 72, 77, 0.75); text-decoration-thickness: 2px; }
.pain .after { font-size: 0.95rem; }
.pain .after b { display: block; font-weight: 600; margin-bottom: 0.15rem; }

/* Jak to działa */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.step { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.step .phone { max-width: 270px; justify-self: center; }
.step-text { display: grid; gap: 0.4rem; }
.step-no { display: flex; align-items: center; gap: 0.75rem; }
.step-no .n {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 1.15rem;
}
.step-no .when { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.2rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 0.97rem; }
.step .hand { font-size: 1.35rem; transform: rotate(-2deg); justify-self: start; }

.exam {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center;
  background: var(--sun-soft); border: 2px solid var(--sun); border-radius: 22px; padding: clamp(18px, 3vw, 28px);
}
.exam .n { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--sun); color: #2a1a00; font-weight: 700; font-size: 1.15rem; }
.exam h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.3rem; }
.exam p { font-size: 0.97rem; }

/* Dla rodzica / dla dziecka */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.ticks li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.6rem; }
.ticks li::before {
  content: ""; width: 1.6rem; height: 1.6rem; border-radius: 8px; margin-top: 0.1rem;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4fe9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.ticks b { font-weight: 600; }
.ticks span { color: var(--muted); }
.ticks .soon { display: inline-block; margin-left: 0.3rem; padding: 0 0.5rem; border-radius: 999px; font-size: 0.75rem; background: var(--sun-soft); color: var(--ink); border: 1px solid var(--sun); vertical-align: 1px; }
.duo { display: flex; justify-content: center; gap: clamp(12px, 3vw, 28px); align-items: flex-start; }
.duo figure { margin: 0; width: min(260px, 48%); display: grid; gap: 0.6rem; justify-items: center; }
.duo figure:nth-child(2) { margin-top: 48px; }
.duo figcaption { font-size: 1.35rem; }

.avatars-note { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--muted); }
.avatars-note .count { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink); }

/* Zasady */
.faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.qa h3 { font-size: 1.02rem; font-weight: 600; }
.qa p { color: var(--muted); font-size: 0.94rem; }

/* Dołącz */
.join {
  background: var(--brand); color: var(--on-brand); border-radius: 28px; padding: clamp(24px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start;
}
.join h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
.join .sub { opacity: 0.88; margin-top: 0.75rem; font-size: 1.05rem; }
.join ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.join li {
  counter-increment: s; display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0.8rem; align-items: start;
  background: color-mix(in oklab, var(--on-brand) 10%, transparent); border-radius: 16px; padding: 0.9rem 1rem;
}
.join li::before {
  content: counter(s); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 12px;
  background: var(--on-brand); color: var(--brand); font-weight: 700;
}
.join li b { display: block; font-weight: 600; }
.join li span { opacity: 0.88; font-size: 0.95rem; }
.join code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: color-mix(in oklab, var(--on-brand) 18%, transparent); padding: 0.05rem 0.4rem; border-radius: 6px; }
.contact { margin-top: 1.5rem; display: grid; gap: 0.3rem; }
.contact .hand { color: var(--on-brand); font-size: 1.9rem; }
.contact a { color: var(--on-brand); font-weight: 600; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin-top: 0.7rem; }
.contact .btn-light { background: var(--on-brand); color: var(--brand); }
.contact .btn-light:hover { transform: translateY(-1px); }
.contact .tel { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; text-decoration: none; }

footer { padding-block: 32px 48px; color: var(--muted); font-size: 0.85rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }

@media (max-width: 960px) {
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero .wrap, .split, .join { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .step { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: 1.25rem; }
  .step .phone { max-width: 100%; }
}
@media (max-width: 560px) {
  .pains, .faq { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step .phone { max-width: 260px; }
  .exam { grid-template-columns: minmax(0, 1fr); }
  .hero-phones figure:last-child { transform: rotate(3.5deg) translateY(24px); }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.topbar-right { display: inline-flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: 0.92rem; }
@media (max-width: 560px) { .topbar .who { display: none; } }
