/* =========================================================================
   Zakoduj Przyszłość — Shared chrome (used on every page)
   Tokens from colors_and_type.css are inlined below for performance
   (eliminates @import chain and external font dependency)
   ========================================================================= */

/* =========================================================================
   Colors & Type tokens (inlined from colors_and_type.css)
   ========================================================================= */

/* Webfonts — self-hosted, no external DNS lookup */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin-ext.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: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin.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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.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 {
  /* ---------- Brand color ---------- */
  --zp-raspberry-50:  #FDF1F4;
  --zp-raspberry-100: #FAD9E1;
  --zp-raspberry-200: #F4B0BF;
  --zp-raspberry-300: #EC8299;
  --zp-raspberry-400: #DC4F6F;
  --zp-raspberry-500: #C2274B;
  --zp-raspberry-600: #A41E3F;
  --zp-raspberry-700: #841731;
  --zp-raspberry-800: #5E1023;
  --zp-raspberry-900: #380A15;
  --zp-cream:        #FFFBF6;
  --zp-mist:         #ECF3FB;
  --zp-sand:         #F6EFE3;
  --zp-charcoal:     #1F1A1F;
  --zp-ink:          #2A1F25;
  --zp-white:        #FFFFFF;
  --zp-gray-50:      #F8F6F7;
  --zp-gray-100:     #EFEAEC;
  --zp-gray-200:     #DCD3D6;
  --zp-gray-300:     #BFB1B6;
  --zp-gray-400:     #968388;
  --zp-gray-500:     #6E5A60;
  --zp-gray-600:     #4F3F44;
  --zp-gray-700:     #3A2D31;
  --zp-gray-800:     #261E22;
  --zp-gray-900:     #161013;
  --zp-success: #2E9E5C;
  --zp-warning: #E8A92B;
  --zp-info:    #2A6FDB;
  --zp-danger:  #C2274B;
  --zp-course-roblox:    #2E5BFF;
  --zp-course-minecraft: #6BAE3D;
  --zp-course-python:    #3776AB;
  --zp-course-2d:        #F08A2C;
  --fg-1: var(--zp-ink);
  --fg-2: var(--zp-gray-600);
  --fg-3: var(--zp-gray-500);
  --fg-4: var(--zp-gray-400);
  --fg-on-brand: var(--zp-white);
  --fg-link: var(--zp-raspberry-500);
  --bg-1: var(--zp-white);
  --bg-2: var(--zp-cream);
  --bg-3: var(--zp-gray-50);
  --bg-4: var(--zp-mist);
  --bg-brand: var(--zp-raspberry-500);
  --bg-brand-soft: var(--zp-raspberry-50);
  --border-1: var(--zp-gray-100);
  --border-2: var(--zp-gray-200);
  --border-strong: var(--zp-charcoal);
  --font-sans:    "Nunito", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Nunito", "Open Sans", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "Fira Code", ui-monospace, Menlo, monospace;
  --fs-hero:    clamp(40px, 6vw, 72px);
  --fs-h1:      clamp(32px, 4.4vw, 52px);
  --fs-h2:      clamp(26px, 3.2vw, 40px);
  --fs-h3:      22px;
  --fs-h4:      18px;
  --fs-body-lg: 18px;
  --fs-body:    16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-eyebrow: 13px;
  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-normal: 1.45;
  --lh-loose:  1.65;
  --tracking-tight:   -0.02em;
  --tracking-normal:   0;
  --tracking-eyebrow:  0.16em;
  --sp-1:  4px; --sp-2:  8px; --sp-3:  12px; --sp-4:  16px; --sp-5:  24px;
  --sp-6:  32px; --sp-7:  48px; --sp-8:  64px; --sp-9:  96px; --sp-10: 128px;
  --radius-xs:  6px; --radius-sm:  10px; --radius-md:  16px;
  --radius-lg:  24px; --radius-xl:  32px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(56, 10, 21, 0.06);
  --shadow-2: 0 4px 12px rgba(56, 10, 21, 0.08);
  --shadow-3: 0 12px 28px rgba(56, 10, 21, 0.12);
  --shadow-4: 0 24px 48px rgba(56, 10, 21, 0.18);
  --shadow-brand: 0 12px 24px rgba(194, 39, 75, 0.28);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    140ms; --dur-base:    220ms; --dur-slow:    420ms;
}

html { font-family: var(--font-sans); color: var(--fg-1); -webkit-font-smoothing: antialiased; }
body { font-size: var(--fs-body); line-height: var(--lh-normal); background: var(--bg-2); }
.zp-hero, h1.zp-hero { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-hero); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); color: var(--fg-1); }
.zp-h1, h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1); line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); color: var(--fg-1); }
.zp-h2, h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2); line-height: var(--lh-snug); color: var(--fg-1); }
.zp-h3, h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.3; color: var(--fg-1); }
.zp-h4, h4 { font-weight: 700; font-size: var(--fs-h4); line-height: 1.35; color: var(--fg-1); }
.zp-body, p { font-size: var(--fs-body); line-height: var(--lh-loose); color: var(--fg-2); }
.zp-body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-loose); color: var(--fg-2); }
.zp-body-sm { font-size: var(--fs-body-sm); line-height: var(--lh-normal); color: var(--fg-2); }
.zp-caption { font-size: var(--fs-caption); color: var(--fg-3); }
.zp-eyebrow { font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--zp-raspberry-500); }
.zp-mono, code, kbd { font-family: var(--font-mono); font-size: 0.92em; }
a { color: var(--fg-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg-2); color: var(--fg-1); overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }

/* =================== Buttons =================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn--primary { background: var(--zp-raspberry-500); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--zp-raspberry-600); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(194,39,75,0.36); text-decoration: none; }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--fg-1); border: 2px solid var(--zp-charcoal); padding: 14px 24px; }
.btn--ghost:hover { background: var(--zp-charcoal); color: #fff; text-decoration: none; }
.btn--white { background: #fff; color: var(--zp-raspberry-600); box-shadow: var(--shadow-2); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); text-decoration: none; }
.btn--lg { padding: 20px 32px; font-size: 17px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* =================== Eyebrow / pills =================== */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--zp-raspberry-50); color: var(--zp-raspberry-600);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--zp-raspberry-100);
}
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--zp-success); box-shadow: 0 0 0 4px rgba(46,158,92,0.18); }

/* =================== Topbar =================== */
#zp-header { min-height: 72px; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 246, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-1);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--zp-raspberry-500); font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { display: none; }
@media (min-width: 480px) { .brand span { display: inline; } }
.nav { display: none; gap: 28px; align-items: center; }
.nav a { color: var(--fg-1); font-weight: 600; font-size: 15px; text-decoration: none; position: relative; }
.nav a:hover { color: var(--zp-raspberry-500); }
.nav a.is-active { color: var(--zp-raspberry-500); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 3px; background: var(--zp-raspberry-500); border-radius: 3px 3px 0 0; }
@media (min-width: 980px) { .nav { display: flex; } }
.topbar__cta { display: flex; gap: 8px; align-items: center; }
.topbar__cta .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 480px) { .topbar__cta .btn { padding: 9px 14px; font-size: 13px; } }

/* burger */
.burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.burger:hover { background: var(--zp-gray-100); }
@media (min-width: 980px) { .burger { display: none; } }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(31,26,31,0.5); }
.drawer__panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(320px, 84vw);
  background: var(--bg-1); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
.drawer__panel a { padding: 14px 12px; font-weight: 700; color: var(--fg-1); border-radius: 10px; text-decoration: none; }
.drawer__panel a:hover { background: var(--bg-3); }
.drawer__close { align-self: flex-end; }

/* =================== Sections =================== */
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--alt { background: var(--bg-1); }
.section--mist { background: var(--bg-4); }
.section__head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section__head .zp-eyebrow { margin-bottom: 14px; display: inline-block; }
.section__head h2 { margin: 0 0 16px; }
.section__head p { font-size: 18px; }

/* =================== Page header (interior pages) =================== */
.pagehead {
  position: relative;
  padding: 80px 0 64px;
  background: linear-gradient(180deg, var(--zp-cream), transparent), var(--bg-2);
  overflow: hidden;
}
.pagehead::before {
  content: ""; position: absolute; right: -120px; top: -100px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, var(--zp-raspberry-100), transparent 70%);
  filter: blur(60px); opacity: 0.6; pointer-events: none;
}
.pagehead__inner { position: relative; max-width: 820px; }
.pagehead h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 18px; font-weight: 900; }
.pagehead h1 .accent { color: var(--zp-raspberry-500); }
.pagehead p.lead { font-size: 19px; line-height: 1.55; color: var(--fg-2); max-width: 620px; margin: 0; }
.crumbs { font-size: 13px; color: var(--fg-3); display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--zp-raspberry-500); }
.crumbs span.sep { opacity: 0.5; }

/* =================== Footer =================== */
.footer { background: var(--zp-charcoal); color: rgba(255,255,255,0.75); padding: 64px 0 32px; font-size: 14px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 600px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__about { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer__about { grid-column: auto; } }
.footer__brand { color: #fff; font-weight: 900; font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-decoration: none; }
.footer__col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 16px; font-weight: 800; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(255,255,255,0.7); font-weight: 500; text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 13px; }
.footer__bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer__bottom a:hover { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #fff; transition: background var(--dur-base); text-decoration: none; }
.socials a:hover { background: var(--zp-raspberry-500); }

/* =================== Sticky mobile CTA =================== */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: flex; gap: 8px; align-items: stretch;
  transform: translateY(120%); transition: transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.sticky-cta.is-visible { transform: none; pointer-events: auto; }
.sticky-cta__main {
  flex: 1; padding: 16px 20px; border-radius: var(--radius-pill);
  background: var(--zp-raspberry-500); color: #fff; font-weight: 800;
  text-align: center; text-decoration: none; box-shadow: 0 12px 30px rgba(194,39,75,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.sticky-cta__call {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--zp-charcoal); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: var(--shadow-3); text-decoration: none;
}
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* =================== Misc =================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* Visual placeholder (replaces stock photos) */
.placeholder-img {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(135deg, var(--zp-raspberry-100), var(--zp-raspberry-300));
  display: grid; place-items: center; color: var(--zp-raspberry-700);
}
.placeholder-img::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.06) 25%, transparent 25%);
  background-size: 24px 24px;
}
.placeholder-img__inner {
  position: relative; z-index: 1; text-align: center; padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.placeholder-img__inner svg { opacity: 0.6; }
.placeholder-img__label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.85); color: var(--zp-raspberry-700);
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.placeholder-img--blue { background: linear-gradient(135deg, #BBD3F4, #6E9CFF); color: #1A3A7A; }
.placeholder-img--blue .placeholder-img__label { color: #1A3A7A; }
.placeholder-img--green { background: linear-gradient(135deg, #C8E8D2, #6BAE3D); color: #1F5530; }
.placeholder-img--green .placeholder-img__label { color: #1F5530; }
.placeholder-img--orange { background: linear-gradient(135deg, #FFD08A, #F08A2C); color: #6B3D0A; }
.placeholder-img--orange .placeholder-img__label { color: #6B3D0A; }
.placeholder-img--python { background: linear-gradient(135deg, #BCD9F0, #3776AB); color: #112B4A; }
.placeholder-img--python .placeholder-img__label { color: #112B4A; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--zp-charcoal); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* tag colors used across pages */
.tag-roblox    { color: var(--zp-course-roblox); }
.tag-minecraft { color: var(--zp-course-minecraft); }
.tag-python    { color: var(--zp-course-python); }
.tag-2d        { color: var(--zp-course-2d); }

/* shared course/feature/problem cards */
.card-soft { background: var(--bg-1); padding: 32px 28px; border-radius: var(--radius-lg); border: 1px solid var(--border-1); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

/* CTA strip used in footers of inner pages */
.cta-strip {
  background: linear-gradient(135deg, var(--zp-raspberry-500), var(--zp-raspberry-700));
  color: #fff; border-radius: var(--radius-xl); padding: 56px 48px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
}
@media (min-width: 760px) { .cta-strip { grid-template-columns: 1fr auto; } }
.cta-strip::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.cta-strip h2 { color: #fff; margin: 0 0 8px; font-size: 28px; }
.cta-strip p { color: rgba(255,255,255,0.85); margin: 0; max-width: 580px; }
.cta-strip > * { position: relative; z-index: 1; }
