/* edu.eco — statyczna implementacja systemu wizualnego (tokeny z src/index.css builda React) */

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 10%;
  --muted: 40 9% 91%;
  --muted-foreground: 40 3% 42%;
  --border: 40 9% 91%;
  --off-white: 40 9% 97%;
  --charcoal: 220 25% 10%;
  --navy: 220 60% 22%;
  --sage: 220 55% 28%;
  --sage-light: 220 50% 38%;
  --sage-glow: 220 60% 50%;
  --medium-gray-dark: 220 8% 55%;
  --gold-from: 38 72% 58%;
  --gold-to: 28 85% 45%;
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,.06);
  --shadow-glass-lg: 0 16px 48px 0 rgba(0,0,0,.08);
  --shadow-gold: 0 8px 24px -6px hsl(var(--gold-to) / .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground));
  font-family: var(--font-sans); font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }
::selection { background: hsl(var(--sage) / .2); }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.container-narrow { max-width: 800px; margin-inline: auto; padding-inline: 1.5rem; }
.view[hidden] { display: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: hsl(var(--navy)); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

.tag { display: inline-block; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 1rem; color: hsl(var(--sage)); }
.gradient-text {
  background: linear-gradient(135deg, hsl(var(--gold-from)), hsl(var(--gold-to)));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.divider-gold { width: 96px; height: 2px; margin: 1.5rem auto 2.5rem; background: linear-gradient(90deg, hsl(var(--gold-from)), hsl(var(--gold-to))); }
.divider-gold.left { margin-inline: 0; }

.section { padding: 5.5rem 0; }
.section.no-top { padding-top: 1.5rem; }
.section-offwhite { background: hsl(var(--off-white)); }
.section-dark { background: hsl(var(--charcoal)); color: #fff; }
.section-dark h2 { color: #fff; }
.center-head { text-align: center; }
.center-head h1, .center-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section-note { max-width: 640px; margin: 0 auto 2.5rem; color: hsl(var(--muted-foreground)); font-size: .98rem; }
.section-note.left { margin-inline: 0; }
.section-note.on-dark { color: hsl(0 0% 100% / .55); margin-top: 3rem; margin-bottom: 0; }
.section-note.center-text { margin-top: 3rem; margin-bottom: 0; text-align: center; }
.left-text { text-align: left; color: hsl(var(--muted-foreground)); }
.page-head { padding: 7.5rem 0 2.5rem; background: linear-gradient(180deg, hsl(var(--off-white)), hsl(var(--background))); }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.gold-link { color: hsl(var(--gold-to)); text-decoration: none; border-bottom: 1px solid hsl(var(--gold-to) / .4); }
.gold-link:hover { border-color: currentColor; }
.email-line { font-size: 1rem; }
.email-line .gold-link { font-size: 1.05rem; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  border-radius: 999px; padding: .95rem 1.9rem; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-sans); font-size: .8rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; transition: all .3s ease; position: relative; overflow: hidden;
}
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-navy { background: hsl(var(--navy)); color: #fff; box-shadow: var(--shadow-gold); }
.btn-navy::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, hsl(var(--gold-from)), hsl(var(--gold-to))); }
.btn-navy:hover { background: hsl(var(--sage)); transform: scale(1.03); }
.btn-gold-ghost { border-color: hsl(var(--gold-to) / .4); color: hsl(var(--foreground)); }
.btn-gold-ghost:hover { border-color: hsl(var(--gold-to) / .8); color: hsl(var(--gold-to)); transform: scale(1.03); }
.btn-ghost-on-dark { border-color: hsl(var(--sage-glow) / .35); color: hsl(0 0% 100% / .85); }
.btn-ghost-on-dark:hover { border-color: hsl(var(--sage-glow) / .7); }
.btn-block { width: 100%; }
.btn-small { padding: .55rem 1.2rem; font-size: .7rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: hsl(0 0% 100% / .8); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid hsl(var(--border) / .6);
}
.header-inner { max-width: 1200px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 1.5rem; }
.logo { height: 40px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a { font-size: .78rem; font-weight: 500; color: hsl(var(--muted-foreground)); text-decoration: none; transition: color .3s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: hsl(var(--foreground)); }
.nav-signin { color: hsl(var(--sage)) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: hsl(var(--foreground)); }
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.5rem; background: hsl(0 0% 100% / .95); backdrop-filter: blur(20px); box-shadow: var(--shadow-glass-lg); }
  .site-nav.open { display: flex; }
}

/* ---------- przełącznik audiencji ---------- */
.audience-wrap { padding: 6.5rem 1.5rem 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.audience-label { font-family: var(--font-mono); font-size: .65rem; letter-spacing: 2.5px; text-transform: uppercase; }
.audience-tabs {
  display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px;
  background: hsl(0 0% 100% / .6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--gold-to) / .25); box-shadow: var(--shadow-glass);
}
.audience-tabs [role="tab"] {
  border: 0; border-radius: 999px; padding: .45rem 1.6rem; cursor: pointer; background: transparent;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: hsl(var(--muted-foreground)); transition: background .3s ease, color .3s ease; min-height: 30px;
}
.audience-tabs [role="tab"]:hover { color: hsl(var(--foreground)); }
.audience-tabs [role="tab"][aria-selected="true"] { background: hsl(var(--navy)); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 2.5rem 0 4.5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.7rem); margin-bottom: 1.4rem; }
.hero-sub { max-width: 560px; color: hsl(var(--muted-foreground)); font-size: 1.05rem; margin-bottom: .5rem; }
.hero-image img { border-radius: 1.5rem; border: 1px solid hsl(var(--border) / .5); box-shadow: var(--shadow-glass); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 1023px) { .hero-image { display: none; } }
[data-audience-variant][hidden] { display: none; }

/* ---------- karty ---------- */
.card-grid { display: grid; gap: 1.25rem; text-align: left; }
@media (min-width: 700px) { .card-grid.two { grid-template-columns: repeat(2, 1fr); } .card-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.three { grid-template-columns: repeat(3, 1fr); } }
.glass-card {
  background: hsl(0 0% 100% / .6); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid hsl(var(--border) / .8); border-radius: 1.5rem; padding: 2rem;
  box-shadow: var(--shadow-glass); transition: box-shadow .5s ease, transform .3s ease;
}
.glass-card:hover { box-shadow: var(--shadow-glass-lg); }
.glass-card.center { text-align: center; }
.glass-card h3 { font-family: var(--font-sans); font-weight: 400; font-size: 1.2rem; margin-bottom: .7rem; }
.glass-card p { color: hsl(var(--muted-foreground)); font-size: .9rem; margin: 0; }
.big-num { display: block; font-family: var(--font-serif); font-size: 2.4rem; margin-bottom: .9rem; }
.linked { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.linked:hover { transform: translateY(-4px); }

.dark-card {
  background: hsl(0 0% 100% / .05); border: 1px solid hsl(0 0% 100% / .1); border-radius: 1.5rem; padding: 1.9rem;
  text-align: left; transition: border-color .4s ease, background .4s ease, transform .3s ease;
}
.dark-card:hover { border-color: hsl(0 0% 100% / .22); background: hsl(0 0% 100% / .08); }
.dark-card h3 { font-family: var(--font-sans); font-weight: 400; font-size: 1.12rem; color: #fff; margin-bottom: .7rem; }
.dark-card p { color: hsl(0 0% 100% / .6); font-size: .88rem; margin: 0 0 1rem; }
.dark-card .bullets { color: hsl(0 0% 100% / .7); }
.badge { display: inline-block; margin-bottom: 1.1rem; padding: .3rem .8rem; border-radius: 999px; font-family: var(--font-mono); font-size: .6rem; letter-spacing: 2px; text-transform: uppercase; }
.badge-soon { background: hsl(0 0% 100% / .07); color: hsl(var(--medium-gray-dark)); }
.glass-card .badge-soon { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.badge-featured { background: linear-gradient(90deg, hsl(var(--gold-from)), hsl(var(--gold-to))); color: hsl(var(--charcoal)); }
.view-course { display: inline-block; margin-top: .9rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; }

.course-card { display: flex; flex-direction: column; }
.course-card p { flex: 1; margin-bottom: 1.1rem; }
.course-head { display: flex; justify-content: flex-end; }
.course-card[hidden] { display: none; }
.tag-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.tag-row span { border: 1px solid hsl(var(--sage-glow) / .25); border-radius: 6px; padding: .15rem .55rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: 1.5px; text-transform: uppercase; color: hsl(var(--muted-foreground)); }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
.filter-bar button {
  border: 1px solid hsl(var(--border)); background: transparent; cursor: pointer; border-radius: .6rem; padding: .55rem 1.2rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: 2.5px; text-transform: uppercase; color: hsl(var(--muted-foreground)); transition: all .25s ease;
}
.filter-bar button:hover { color: hsl(var(--sage-glow)); }
.filter-bar button[aria-pressed="true"] { background: hsl(var(--navy)); border-color: hsl(var(--navy)); color: #fff; }

/* ---------- kroki / scenariusze ---------- */
.steps { display: grid; gap: 1rem; }
.step { display: flex; gap: 1.3rem; align-items: flex-start; padding: 1.5rem 1.8rem; }
.step .big-num { font-size: 1.7rem; margin: 0; width: 2rem; flex: none; }
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.scenario-domain { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: 2px; text-transform: uppercase; color: hsl(var(--sage)); margin-bottom: .5rem; }
.format-kicker { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: 2px; text-transform: uppercase; color: hsl(var(--sage-glow)); margin-bottom: 1rem; }
.format-note { font-size: .78rem; font-style: italic; color: hsl(0 0% 100% / .45) !important; }
.bullets { margin: 0 0 1.3rem; padding-left: 1.1rem; font-size: .88rem; }
.bullets li { margin-bottom: .45rem; }
.dark-card .btn { margin-top: .4rem; }

/* ---------- creator box (wyjątek P-2) ---------- */
.creator-box { display: flex; gap: 1.3rem; align-items: flex-start; margin-top: 2.5rem; text-align: left; }
.creator-box .monogram { width: 52px; height: 52px; border-radius: 14px; background: hsl(var(--navy)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.25rem; flex: none; }
.creator-box .tag { margin-bottom: .3rem; }
.creator-box h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: .5rem; }
.creator-box p { font-size: .92rem; }
.creator-box a { color: hsl(var(--sage)); }

/* ---------- waitlist / formularze ---------- */
.waitlist-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .waitlist-grid { grid-template-columns: .95fr 1.05fr; } }
.waitlist-image img { border-radius: 1.5rem; border: 1px solid hsl(var(--border) / .5); box-shadow: var(--shadow-glass); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 1023px) { .waitlist-image { display: none; } }
.waitlist-grid h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.wl-form { max-width: 560px; }
.wl-form .field { margin-bottom: 1.15rem; }
.wl-form label { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: hsl(var(--medium-gray-dark)); margin-bottom: .45rem; }
.wl-form input, .wl-form textarea, .wl-form select {
  width: 100%; background: transparent; border: 1px solid hsl(var(--border)); border-radius: .6rem;
  padding: .8rem 1rem; font-family: var(--font-sans); font-size: .9rem; color: inherit; min-height: 44px;
}
.wl-form textarea { resize: vertical; }
.wl-form input:focus, .wl-form textarea:focus, .wl-form select:focus { outline: none; box-shadow: 0 0 0 1px hsl(var(--sage-glow) / .5); }
.wl-form .btn { margin-top: .6rem; }
.form-alert { margin: 1rem 0 0; border: 1px solid hsl(0 72% 51% / .3); background: hsl(0 72% 51% / .06); color: hsl(0 60% 40%); border-radius: .6rem; padding: .8rem 1rem; font-size: .85rem; }
.form-alert[hidden] { display: none; }
.wl-success { max-width: 560px; text-align: center; }
.wl-success[hidden] { display: none; }
.wl-success h3 { font-size: 1.4rem; }
.wl-success p { color: hsl(var(--muted-foreground)); font-size: .9rem; margin: 0; }

/* ---------- legal ---------- */
.legal { text-align: left; }
.legal h2 { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; margin: 2.6rem 0 .8rem; display: flex; gap: .7rem; align-items: baseline; }
.legal h2 span { font-family: var(--font-mono); font-weight: 400; font-size: .8rem; color: hsl(var(--sage-glow)); }
.legal p, .legal ul { color: hsl(var(--foreground) / .75); font-size: .95rem; line-height: 1.7; }
.legal ul { padding-left: 1.3rem; }
.legal a { color: hsl(var(--sage)); }
.legal-updated { font-size: .85rem; color: hsl(var(--muted-foreground)); margin-top: .5rem; }

/* ---------- stopka ---------- */
.site-footer { background: hsl(var(--foreground)); color: hsl(var(--background)); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; filter: invert(1); }
.footer-brand p { font-size: .875rem; color: hsl(0 0% 100% / .4); max-width: 300px; }
.footer-col h4 { font-family: var(--font-mono); font-size: .65rem; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: hsl(0 0% 100% / .4); margin-bottom: 1.3rem; }
.footer-col a { display: block; font-size: .875rem; color: hsl(0 0% 100% / .5); text-decoration: none; margin-bottom: .75rem; transition: color .3s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid hsl(0 0% 100% / .1); font-family: var(--font-mono); font-size: .6rem; letter-spacing: 1px; color: hsl(0 0% 100% / .3); }

/* ---------- baner cookies ---------- */
.cookie-banner {
  position: fixed; inset: auto 1rem 1rem 1rem; z-index: 60; max-width: 720px; margin-inline: auto;
  display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: hsl(0 0% 100% / .92); backdrop-filter: blur(20px); border: 1px solid hsl(var(--border));
  border-radius: 1rem; padding: 1rem 1.3rem; box-shadow: var(--shadow-glass-lg);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .82rem; color: hsl(var(--muted-foreground)); }
.cookie-banner a { color: hsl(var(--sage)); }

/* ---------- animacje ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}
