/* eneagramtest.pl – style
   Paleta: mgła (tło), atrament (tekst), sosna (akcent) + 9 kolorów typów. */

:root {
  --bg: #F8FBFA;
  --surface: #FFFFFF;
  --ink: #213033;
  --muted: #5B6B68;
  --line: #E4ECE8;
  --accent: #2F7468;
  --accent-ink: #FFFFFF;
  --accent-soft: #E7F4F0;
  --growth: #2E8A62;
  --stress: #C2604A;

  --t1: #5B7DB1; --t2: #C46A86; --t3: #CF962F;
  --t4: #8A6BB8; --t5: #3E8A9A; --t6: #6F8F4E;
  --t7: #D46A4C; --t8: #A9443F; --t9: #4F9C83;

  --font-display: 'Lora', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Raleway', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 1px 2px rgba(33, 48, 51, .04), 0 18px 44px -26px rgba(33, 48, 51, .22);
  --shadow-hover: 0 2px 4px rgba(33, 48, 51, .05), 0 26px 50px -24px rgba(33, 48, 51, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}



*, *::before, *::after { box-sizing: border-box; }
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  min-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.012em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--muted); max-width: 58ch; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, opacity .2s, transform .12s var(--ease);
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn-link { background: none; border: 0; padding: 6px 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* ---------- Nagłówek / stopka ---------- */
.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a { position: relative; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s, background-color .2s; }
.main-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.main-nav a[aria-current="page"] { color: var(--accent); }
.main-nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.logo svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; }
.lang-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.flag { width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.lang-switch button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.lang-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); }
.site-footer { display: grid; gap: 10px; padding-block: 32px 40px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); margin-top: 64px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a, .footer-consent { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; font-weight: 500; font-size: inherit; padding: 4px 0; }
.footer-links a:hover, .footer-consent:hover { text-decoration-color: currentColor; }

/* ---------- Przejścia ekranów ---------- */
.screen.is-entering { animation: screen-in .4s var(--ease); }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Landing ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(32px, 7vw, 96px); }
.hero-copy { display: grid; gap: 24px; }
.hero-copy h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.hero-meta { color: var(--muted); font-size: .95rem; }
.resume { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; border-radius: var(--radius-md); background: var(--accent-soft); width: fit-content; }
.hero-figure { justify-self: center; width: min(100%, 420px); }

.symbol { display: block; width: 100%; height: auto; overflow: visible; }
.sym-ring { fill: none; stroke: var(--line); stroke-width: 2; }
.sym-line { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linejoin: round; opacity: .55; }
.node circle { fill: var(--c); stroke: var(--bg); stroke-width: 4; transition: r .3s var(--ease); }
.node text { fill: #fff; font: 700 14px var(--font-body); text-anchor: middle; pointer-events: none; }
.node-wing circle { fill: var(--surface); stroke: var(--c); stroke-width: 3.5; }
.node-wing text { fill: var(--ink); }
.node-arrow circle { fill: var(--surface); stroke: var(--muted); stroke-width: 2; }
.node-arrow text { fill: var(--ink); }
.node-dim circle { fill: var(--line); }
.node-dim text { fill: var(--muted); }
.node-primary text { font-size: 17px; }
.sym-growth { stroke: var(--growth); stroke-width: 2.5; }
.sym-stress { stroke: var(--stress); stroke-width: 2.5; stroke-dasharray: 6 5; }
.mk-growth { fill: var(--growth); }
.mk-stress { fill: var(--stress); }

/* Jedyny „wejściowy” moment: symbol rysuje się przy pierwszym wczytaniu */
.symbol-hero .sym-ring, .symbol-hero .sym-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) .15s forwards; }
.symbol-hero .sym-line { animation-delay: .6s; }
.symbol-hero .node { opacity: 0; animation: node-in .5s var(--ease) forwards; animation-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes node-in { from { opacity: 0; } to { opacity: 1; } }

.landing-body { display: grid; gap: clamp(56px, 9vw, 104px); }
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px 48px; padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.about-text { display: grid; gap: 16px; max-width: 62ch; }

.steps { display: grid; gap: 28px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps-list li { counter-increment: step; display: grid; gap: 10px; align-content: start; }
.steps-list li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font: 600 1rem var(--font-display);
}
.steps-list p { color: var(--muted); }

.types { display: grid; gap: 28px; justify-items: start; }
.types-grid { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.types-grid li { border-bottom: 1px solid var(--line); }
.types-grid a { display: flex; gap: 14px; align-items: flex-start; padding: 20px 16px 20px 6px; text-decoration: none; border-radius: 14px; transition: background-color .25s, transform .25s var(--ease); }
.types-grid a:hover { background: color-mix(in srgb, var(--c) 9%, transparent); transform: translateX(4px); }
.types-grid a:hover .type-num { transform: scale(1.12) rotate(-6deg); }
.type-num { transition: transform .35s var(--spring); }
.types-grid strong { display: block; font-weight: 600; }
.types-grid li span span { color: var(--muted); font-size: .95rem; }
.type-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font: 700 .95rem var(--font-body); }

/* ---------- Quiz ---------- */
.quiz { max-width: 720px; padding-block: clamp(16px, 4vw, 48px) 32px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.quiz-count { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 10px 0 clamp(32px, 7vw, 64px); }
.progress-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .45s var(--ease); }

.question { transition: opacity .18s ease, transform .18s ease; }
.question.is-out { opacity: 0; transform: translateY(-6px); }
.question-scale { color: var(--muted); margin-bottom: 14px; }
.question-text { font-size: clamp(1.6rem, 4.4vw, 2.35rem); line-height: 1.18; min-height: 2.4em; max-width: 24ch; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: clamp(32px, 6vw, 52px); }
.lk {
  display: grid; justify-items: center; align-content: start; gap: 12px; padding: 16px 6px 14px;
  border: 0; border-radius: var(--radius-md); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer; transition: box-shadow .2s, background-color .2s;
}
.lk:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.lk-dot { border-radius: 50%; border: 2px solid var(--accent); transition: background-color .2s, transform .2s var(--ease); }
.lk-1 .lk-dot, .lk-5 .lk-dot { width: 30px; height: 30px; }
.lk-2 .lk-dot, .lk-4 .lk-dot { width: 24px; height: 24px; }
.lk-3 .lk-dot { width: 18px; height: 18px; }
.lk-label { font-size: .86rem; line-height: 1.25; text-align: center; color: var(--muted); }
.lk[aria-checked="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.lk[aria-checked="true"] .lk-dot { background: var(--accent); transform: scale(1.08); }
.lk[aria-checked="true"] .lk-label { color: var(--ink); font-weight: 600; }
.likert-hint { margin-top: 20px; color: var(--muted); font-size: .88rem; }
@media (hover: none) { .likert-hint { display: none; } }

/* ---------- Ad wall ---------- */
.adwall { max-width: 640px; padding-block: clamp(16px, 5vw, 56px); }
.adwall-card { display: grid; gap: 20px; justify-items: center; text-align: center; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(28px, 6vw, 48px) clamp(20px, 5vw, 44px); }
.adwall-card h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.adwall-card .lead { margin-inline: auto; }
.ad-timer { position: relative; width: 72px; height: 72px; --progress: 0; }
.ad-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line); stroke-width: 5; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--progress)); transition: stroke-dashoffset 1s linear; }
.ad-timer span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.3rem var(--font-display); font-variant-numeric: tabular-nums; }
.ad-timer.is-done .ring-fill { stroke: var(--growth); }
.ad-timer.is-done span { color: var(--growth); }
.ad-box { width: 100%; display: grid; gap: 6px; }
.ad-label { font-size: .78rem; color: var(--muted); text-align: left; }
.ad-slot { display: grid; place-items: center; min-height: 250px; border-radius: var(--radius-md); border: 1.5px dashed var(--line); background: var(--bg); color: var(--muted); font-size: .95rem; }
.ad-status { min-height: 1.6em; color: var(--muted); }
.adwall-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ad-note { font-size: .85rem; color: var(--muted); }

/* ---------- Wyniki ---------- */
.result { --type: var(--accent); max-width: 960px; display: grid; gap: clamp(40px, 6vw, 64px); padding-block: clamp(16px, 4vw, 40px); }
.result-hero {
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 32px;
  padding: clamp(28px, 5vw, 52px); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--type) 13%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--type) 25%, transparent);
}
.result-hero-copy { display: grid; gap: 16px; }
.result-kicker { color: var(--muted); font-weight: 500; }
.result-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); }
.result-hero .lead { color: var(--ink); opacity: .78; }
.result-facts { display: flex; gap: 32px; margin: 8px 0 0; }
.result-facts dt { font-size: .9rem; color: var(--muted); }
.result-facts dd { margin: 2px 0 0; font: 500 2.1rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.result-figure { margin: 0; display: grid; gap: 12px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: .82rem; color: var(--muted); }
.lg::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; }
.lg-primary::before { background: var(--type); }
.lg-wing::before { box-shadow: inset 0 0 0 2.5px var(--muted); }
.lg-growth::before { width: 16px; height: 3px; border-radius: 2px; vertical-align: 3px; background: var(--growth); }
.lg-stress::before { width: 16px; height: 0; border-radius: 0; vertical-align: 4px; border-top: 3px dashed var(--stress); }

.core { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.core > div { padding: 22px 24px; border-radius: var(--radius-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.core dt { color: var(--muted); font-size: .92rem; margin-bottom: 6px; }
.core dd { margin: 0; font: 500 1.25rem/1.35 var(--font-display); letter-spacing: -.01em; }

.result-section { display: grid; gap: 16px; align-content: start; }
.prose { max-width: 66ch; }
.result-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); }
.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 60ch; }
.marks li { position: relative; padding-left: 26px; }
.marks li::before { content: ''; position: absolute; left: 0; top: .72em; width: 14px; height: 3px; border-radius: 2px; background: var(--type); }

.arrows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.arrow { display: grid; gap: 8px; padding: 22px 24px; border-radius: var(--radius-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-left: 5px solid var(--growth); }
.arrow-stress { border-left-color: var(--stress); }
.arrow p { color: var(--muted); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 48px; align-items: center; gap: 14px; }
.bar-label { font-size: .95rem; }
.bar-track { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--v); border-radius: inherit; background: color-mix(in srgb, var(--c) 45%, var(--line)); }
.bars li.is-primary .bar-fill { background: var(--c); }
.bars li.is-primary .bar-label { font-weight: 600; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .95rem; }

.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.email-form { display: grid; gap: 12px; max-width: 560px; }
.email-form > label:first-child { font-weight: 600; }
.email-row { display: flex; gap: 10px; }
.email-row input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--surface); color: var(--ink); font: inherit; box-shadow: inset 0 0 0 1.5px var(--line);
}
.email-row input:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.email-status { min-height: 1.5em; font-size: .95rem; }

.result-end { display: grid; gap: 20px; justify-items: start; padding-top: 32px; border-top: 1px solid var(--line); }
.disclaimer { font-size: .88rem; color: var(--muted); max-width: 70ch; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-figure { order: -1; width: min(52%, 210px); justify-self: start; }
  .about, .result-hero, .result-cols { grid-template-columns: 1fr; }
  .steps-list, .types-grid { grid-template-columns: 1fr 1fr; }
  .result-figure { max-width: 320px; justify-self: center; width: 100%; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .steps-list, .types-grid, .core, .arrows { grid-template-columns: 1fr; }
  .likert { grid-template-columns: 1fr; gap: 8px; }
  .lk { grid-template-columns: 30px 1fr; justify-items: start; align-items: center; padding: 14px 16px; }
  .lk-dot { justify-self: center; }
  .lk-label { text-align: left; font-size: 1rem; }
  .question-text { min-height: 3.6em; }
  .bars li { grid-template-columns: 1fr 44px; gap: 6px 10px; }
  .bar-label { grid-column: 1 / -1; }
  .email-row { flex-direction: column; }
  .hero { padding-block: 12px 40px; gap: 20px; }
  .hero-actions .btn, .types .btn { width: 100%; }
  .ad-slot { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .symbol-hero .sym-ring, .symbol-hero .sym-line { stroke-dashoffset: 0; }
  .symbol-hero .node { opacity: 1; }
}

/* ---------- Dokumenty prawne ---------- */
.legal { max-width: 820px; padding-block: 12px 24px; display: grid; gap: 20px; justify-items: start; }
.legal-body { display: grid; gap: 16px; max-width: 70ch; }
.legal-body h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-body h2 { font-size: 1.35rem; margin-top: 18px; }
.legal-body h3 { font-size: 1.05rem; margin-top: 6px; }
.legal-body ul, .legal-body ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.legal-body ol ol { margin-top: 8px; }
.legal-body a { color: var(--accent); text-underline-offset: 3px; }
.legal-meta { color: var(--muted); }
.legal-body code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; }
.legal-body table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .92rem; line-height: 1.5; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal-body th { font-weight: 600; background: var(--surface); }
.legal-body tr:last-child td { border-bottom: 0; }

/* ---------- Zgody ---------- */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0 clamp(12px, 3vw, 24px) calc(clamp(12px, 3vw, 24px) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.consent-inner {
  pointer-events: auto; max-width: 980px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 32px;
  padding: 22px clamp(18px, 3vw, 28px); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(29, 42, 44, .35);
  animation: banner-in .35s var(--ease);
}
@keyframes banner-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.consent-copy { display: grid; gap: 6px; }
.consent-copy h2 { font-size: 1.25rem; }
.consent-copy p { font-size: .94rem; color: var(--muted); max-width: 68ch; }
.consent-copy a, .consent-lead a { color: var(--accent); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.consent-actions .btn { min-height: 46px; padding: 0 22px; white-space: nowrap; }

.consent-dialog {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.consent-dialog::backdrop { background: rgba(18, 26, 27, .45); }
.consent-form { display: grid; gap: 14px; padding: clamp(22px, 4vw, 32px); }
.consent-form h2 { font-size: 1.5rem; }
.consent-lead { color: var(--muted); font-size: .95rem; }
.consent-cat { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
div.consent-cat { cursor: default; }
.consent-cat h3, .consent-cat-title { display: block; font: 600 1rem var(--font-body); margin-bottom: 4px; }
.consent-cat p, .consent-cat-desc { display: block; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.consent-always { flex: none; font-size: .85rem; font-weight: 600; color: var(--growth); padding-top: 2px; }
.switch { appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: background-color .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.consent-form .consent-actions { padding-top: 8px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .consent-inner { grid-template-columns: 1fr; }
  .consent-actions .btn { flex: 1 1 auto; padding: 0 16px; }
  .consent-inner { gap: 14px; padding: 18px; }
  .consent-copy h2 { font-size: 1.1rem; }
  .consent-copy p { font-size: .9rem; line-height: 1.55; }
}

/* =============== Jasna, żywsza odsłona + animacje =============== */
body { position: relative; }
.site-header, main, .site-footer { position: relative; z-index: 1; }
.aurora { position: absolute; inset: 0 0 auto 0; height: 760px; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { background: #CFEDE4; top: -180px; right: -80px; }
.aurora span:nth-child(2) { background: #E4DDF6; top: 120px; right: 22%; width: 380px; height: 380px; animation-duration: 22s; animation-delay: -6s; }
.aurora span:nth-child(3) { background: #FBE6D4; top: -120px; left: -160px; width: 440px; height: 440px; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } 100% { transform: translate(-30px, 50px) scale(.96); } }
[data-screen="landing"] { position: relative; }
.hero { position: relative; z-index: 1; }
.symbol-hero { animation: breathe 7s ease-in-out 2.2s infinite; transform-origin: center; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

/* Pojawianie się przy przewijaniu */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Węzły symbolu – interaktywne */
.node-link { cursor: pointer; }
.node-link .node circle { transition: r .3s var(--spring), stroke-width .3s; }
.node-link:hover .node circle, .node-link:focus-visible .node circle { r: 21; stroke-width: 6; }
.node-link:focus-visible { outline: none; }
.result-figure .node, #type-symbol .node, #compat-symbol .node { animation: pop .5s var(--spring) both; animation-delay: calc(var(--i) * 60ms + 150ms); }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.node { transform-box: fill-box; transform-origin: center; }
.sym-growth, .sym-stress { stroke-dasharray: 400; stroke-dashoffset: 400; animation: dash 1.1s var(--ease) .7s forwards; }
.sym-stress { stroke-dasharray: 6 5; stroke-dashoffset: 0; animation: fade-in .8s ease .9s both; }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sym-pair { stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) .2s forwards; }

/* Quiz: sprężyste zaznaczenie */
.lk[aria-checked="true"] .lk-dot { animation: tick .45s var(--spring); }
@keyframes tick { 0% { transform: scale(.6); } 100% { transform: scale(1.08); } }
.progress-fill { background: linear-gradient(90deg, var(--accent), #5FB3A3); }

/* Wyniki: paski rosną po pojawieniu się */
.bar-fill { width: 0; transition: width 1.1s var(--ease) .15s; }
.is-visible .bar-fill, .bars.is-visible .bar-fill, .result-section.is-visible .bar-fill { width: var(--v); }
.result-hero { background: linear-gradient(140deg, color-mix(in srgb, var(--type) 16%, #fff), color-mix(in srgb, var(--type) 5%, #fff) 70%); }
.result-links, .type-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Karty i przyciski – delikatne uniesienie */
.btn-primary { box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { background: var(--surface); }

/* Strony podrzędne */
.page { padding-block: clamp(16px, 4vw, 40px) 24px; display: grid; gap: clamp(32px, 5vw, 56px); }
.page-head { display: grid; gap: 14px; max-width: 760px; }

/* Biblioteka typów */
.types-explorer { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.symbol-pick { position: sticky; top: 24px; }
.type-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.type-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 22px 20px; border-radius: 22px; text-decoration: none; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, #fff), #fff 65%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, var(--line)), var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.type-card:hover, .type-card:focus-visible { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent), var(--shadow-hover); }
.type-card-num { position: absolute; right: 14px; top: -6px; font: 600 5.4rem/1 var(--font-display); color: color-mix(in srgb, var(--c) 20%, transparent); transition: transform .5s var(--spring), color .3s; }
.type-card:hover .type-card-num { transform: translateY(6px) rotate(-6deg); color: color-mix(in srgb, var(--c) 34%, transparent); }
.type-card-name { position: relative; font: 600 1.35rem/1.2 var(--font-display); }
.type-card-tag { position: relative; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.type-card-more { position: relative; margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .9rem; color: color-mix(in srgb, var(--c) 75%, var(--ink)); }

/* Strona typu */
.type-page { --type: var(--accent); max-width: 980px; }
.back-link { justify-self: start; }
.type-hero {
  position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 28px; overflow: hidden;
  padding: clamp(28px, 5vw, 52px); border-radius: var(--radius-lg);
  background: linear-gradient(140deg, color-mix(in srgb, var(--type) 18%, #fff), color-mix(in srgb, var(--type) 4%, #fff) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--type) 22%, transparent);
  animation: screen-in .6s var(--ease);
}
.type-hero-copy { position: relative; display: grid; gap: 12px; }
.type-kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.type-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--type); color: #fff; font: 600 1.6rem/1 var(--font-display); box-shadow: 0 10px 24px -10px var(--type); animation: pop .6s var(--spring) .1s both; }
.back-link { margin-bottom: -24px; }
.type-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.type-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 10px 0 0; }
.type-facts dt { font-size: .85rem; color: var(--muted); }
.type-facts dd { margin: 2px 0 0; font-weight: 600; }
.type-facts a { color: inherit; text-decoration-color: color-mix(in srgb, var(--type) 60%, transparent); text-underline-offset: 3px; }
.type-hero .symbol { max-width: 300px; justify-self: center; }

.love-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.love-card { display: grid; gap: 8px; align-content: start; padding: 22px 24px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--type, var(--accent)) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--type, var(--accent)) 18%, var(--line)); }
.love-card h3 { font-size: 1.05rem; }
.love-card p { color: var(--muted); }
.love-card-tip { background: #FFF8EC; box-shadow: inset 0 0 0 1px #F3E2C2; }
.love-need { font-size: .93rem; padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--type) 25%, var(--line)); }
.love-note { display: grid; gap: 8px; padding: 22px 24px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--type) 8%, #fff); }
.love-note p { color: var(--muted); }
.love-tip { font-style: italic; }

.howto-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
.checks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li, .crosses li { position: relative; padding-left: 34px; }
.checks li::before, .crosses li::before { position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; font-weight: 700; }
.checks li::before { content: '✓'; background: #E3F4EC; color: var(--growth); }
.crosses li::before { content: '✕'; background: #FBE9E4; color: var(--stress); }
.avoid { display: grid; gap: 14px; padding: 22px 24px; border-radius: var(--radius-md); background: #FFF7F5; box-shadow: inset 0 0 0 1px #F6DDD6; }

.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.level { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; padding: 16px 20px; border-radius: 16px; }
.level h3 { font: 600 1rem var(--font-body); }
.level-h { background: #E6F5EE; }
.level-a { background: #F1F4F3; }
.level-u { background: #FBECE8; }
.levels-scale { grid-template-columns: repeat(3, 1fr); }
.levels-scale .level { grid-template-columns: 1fr; text-align: center; }

.type-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.type-nav a { display: grid; gap: 2px; padding: 18px 20px; border-radius: 18px; text-decoration: none; background: color-mix(in srgb, var(--c) 8%, #fff); transition: transform .3s var(--ease), background-color .3s; }
.type-nav a:last-child { text-align: right; }
.type-nav a:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--c) 15%, #fff); }
.type-nav span { font-size: .85rem; color: var(--muted); }
.type-nav strong { font: 600 1.1rem var(--font-display); }

/* Relacje */
.compat-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.picker { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.picker h2 { font-size: 1.1rem; }
.chips { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.chip { aspect-ratio: 1; min-width: 34px; border: 0; border-radius: 50%; cursor: pointer; font: 700 1rem var(--font-body); color: color-mix(in srgb, var(--c) 80%, var(--ink)); background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, transparent); transition: transform .3s var(--spring), background-color .2s, color .2s; }
.chip:hover { transform: scale(1.1); }
.chip[aria-checked="true"] { background: var(--c); color: #fff; transform: scale(1.12); box-shadow: 0 6px 16px -6px var(--c); }
.compat-result { --type: var(--accent); display: grid; gap: 20px; }
.compat-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: clamp(20px, 4vw, 36px); border-radius: var(--radius-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--ca) 15%, #fff), color-mix(in srgb, var(--cb) 15%, #fff)); animation: screen-in .5s var(--ease); }
.compat-head h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.compat-plus { color: var(--accent); }
.compat-block { display: grid; gap: 14px; padding: 22px 24px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.compat-result > .disclaimer { padding: 0 4px; }
.compat-block h3 { font-size: 1.2rem; }

/* Wiedza */
.learn-section { display: grid; gap: 16px; }
.learn-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.learn-card { display: grid; gap: 10px; align-content: start; padding: 22px 24px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.learn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.learn-card p { color: var(--muted); font-size: .96rem; }
.mini-chips { display: flex; gap: 8px; margin-top: 4px; }
.mini-chips a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; text-decoration: none; transition: transform .3s var(--spring); }
.mini-chips a:hover { transform: scale(1.15) rotate(-8deg); }

@media (max-width: 860px) {
  .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .site-header { flex-wrap: wrap; }
  .types-explorer, .type-hero, .howto-grid, .compat-pickers, .compat-head { grid-template-columns: 1fr; }
  .symbol-pick { position: static; max-width: 280px; justify-self: center; }
  .learn-cards { grid-template-columns: 1fr; }
  .type-hero .symbol { max-width: 240px; }
  .compat-head .symbol { max-width: 200px; justify-self: center; }
}
@media (max-width: 600px) {
  .level { grid-template-columns: 1fr; gap: 4px; }
  .levels-scale { grid-template-columns: 1fr; }
  .type-nav { grid-template-columns: 1fr; }
  .type-nav a:last-child { text-align: left; }
  .type-facts { grid-template-columns: 1fr 1fr; }
  .chips { gap: 4px; }
  .chip { min-width: 0; font-size: .9rem; }
  .main-nav a { padding: 8px 12px; font-size: .92rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .aurora span, .symbol-hero { animation: none; }
  .bar-fill { width: var(--v); }
}

/* ---------- Miejsca na reklamy AdSense ---------- */
.ad-unit { display: grid; gap: 6px; width: 100%; margin-block: 8px; }
.ad-unit-label { font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.ad-unit-slot { min-height: 120px; display: grid; place-items: center; }
.ad-unit-slot ins { width: 100%; }
.ad-unit-ph { display: grid; place-items: center; width: 100%; min-height: 160px; border-radius: var(--radius-md); border: 1.5px dashed #CFDCD7; background: repeating-linear-gradient(135deg, #FBFDFC 0 12px, #F3F8F6 12px 24px); color: var(--muted); font-size: .9rem; }
.ad-unit[data-ad="inArticle"] .ad-unit-ph { min-height: 120px; }
/* AdSense oznacza puste wyświetlenia – wtedy chowamy całe miejsce, żeby nie zostawała dziura */
.ad-unit:has(ins[data-ad-status="unfilled"]) { display: none; }
.landing-body > .ad-unit, .types-explorer + .ad-unit { max-width: 970px; justify-self: center; }
