/* AIpodKlucz.pl v2 (05.10.2026) - „dwa kolory, dwie role”
   iris = to, co przygotowało AI; lime = to, co zatwierdził człowiek. Reszta: porcelana i atrament. */
:root {
  --porcelain: #f1f2ee;
  --paper: #fbfbf8;
  --ink: #0e1b17;
  --ink-2: #26332e;
  --sage: #5e6b65;
  --sage-2: #8d9892;
  --glass: #dde4e1;
  --line: #d9dfdb;
  --iris: #4d5bff;
  --iris-soft: #e6e8ff;
  --lime: #9be22d;
  --lime-deep: #4f7d0b;
  --lime-soft: #ecf9d6;
  --r-xl: 28px; --r-l: 20px; --r-m: 14px; --r-s: 10px;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --text: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; border-radius: 6px; }
html { scroll-behavior: smooth; }
body { font-family: var(--text); background: var(--porcelain); color: var(--ink); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1; font-variation-settings: "wdth" 92; }
h2 { font-size: clamp(36px, 5.2vw, 72px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; font-variation-settings: "wdth" 95; }
.lede { font-size: 20px; color: var(--sage); max-width: 34em; line-height: 1.55; }
.skip-link { position: absolute; top: -100px; left: 8px; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 8px; }
.ai { color: var(--iris); }
.ok { color: var(--lime-deep); }

/* NAV */
.topbar { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 8px 8px 22px;
  background: rgba(251, 251, 248, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(14, 27, 23, .08); border-radius: 999px; box-shadow: 0 10px 40px -18px rgba(14, 27, 23, .35); }
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 8px; }
.brand i { width: 28px; height: 28px; border-radius: 8px; background: url(/assets/logo-mark.svg) center / cover no-repeat; flex: none; }
.nav-links { display: flex; gap: 4px; font-size: 15px; font-weight: 500; }
.nav-links a { padding: 9px 14px; border-radius: 999px; color: var(--ink-2); }
.nav-links a:hover { background: rgba(14, 27, 23, .06); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* BUTTONS */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-family: var(--text);
  font-size: 16px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; line-height: 1.1; }
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 12px 30px -12px rgba(14, 27, 23, .6); }
.btn-ink .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.btn-soft { background: rgba(14, 27, 23, .06); color: var(--ink); }
.btn-soft:hover { background: rgba(14, 27, 23, .11); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #8fd420; }
.btn-line { border-color: rgba(14, 27, 23, .25); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }

/* SECTIONS */
section { padding: 120px 0; }
.sec-head { max-width: 900px; margin-bottom: 56px; }
.sec-head h2 { margin-bottom: 20px; }
.sec-head.split { max-width: none; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; }
.sec-head.split .lede { margin-bottom: 6px; }
.on-ink { background: var(--ink); color: var(--paper); }
.on-ink .lede { color: #a9b6b0; }
.on-paper { background: var(--paper); }

/* FOOTER */
footer { background: var(--ink); color: #a9b6b0; padding: 72px 0 40px; font-size: 15px; }
.foot-big { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 8vw, 120px); letter-spacing: -0.035em; line-height: .92; color: var(--paper); font-variation-settings: "wdth" 86; }
.foot-big .ai { color: var(--iris); }
.foot-big .ok { color: var(--lime); }
.foot-grid { margin-top: 56px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; line-height: 1.75; }
.foot-grid b { color: var(--paper); display: block; margin-bottom: 8px; font-weight: 600; }
.foot-grid a:hover { color: var(--lime); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }

/* COOKIES */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 640px; margin: 0 auto; background: var(--ink); color: var(--paper); padding: 18px 20px; border-radius: var(--r-l);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); z-index: 1000; display: none; font-size: 14px; line-height: 1.55; }
.cookie-banner.show { display: block; }
.cookie-banner p { margin-bottom: 14px; color: #c9d3ce; }
.cookie-banner a { color: var(--lime); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { padding: 10px 18px; border: 0; border-radius: 999px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cookie-btn-accept { background: var(--lime); color: var(--ink); }
.cookie-btn-essential { background: transparent; color: var(--paper); border: 1px solid rgba(255, 255, 255, .3); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

@media screen and (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  section { padding: 84px 0; }
  .sec-head.split { grid-template-columns: 1fr; gap: 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar { top: 10px; }
  .nav { padding: 6px 6px 6px 18px; position: relative; }
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 24px 50px -20px rgba(14, 27, 23, .35); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; font-size: 16px; }
  .nav-cta-mobile { display: block; background: var(--ink); color: var(--paper) !important; text-align: center; margin-top: 6px; }
  .nav .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .lede { font-size: 17.5px; }
  .foot-grid { grid-template-columns: 1fr; }
  footer { padding-bottom: 110px; }
}

/* NEWSLETTER „Czy to dla mnie?” (wspólny z blogiem) */
.nl-box { background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.nl-box h2, .nl-box h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; margin-bottom: 12px; color: var(--paper); }
.nl-box p { color: #a9b6b0; font-size: 16px; }
.nl-box .nl-name { color: var(--lime); }
.nl { display: grid; gap: 12px; }
.nl-row { display: flex; gap: 8px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px; }
.nl-row input[type="email"] { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--paper); font-family: inherit; font-size: 16px; padding: 10px 14px; }
.nl-row input[type="email"]::placeholder { color: #8d9892; }
.nl-row input[type="email"]:focus { outline: none; }
.nl-row:focus-within { box-shadow: 0 0 0 3px rgba(155,226,45,.45); }
.nl-row button { flex: none; background: var(--lime); color: var(--ink); border: 0; border-radius: 999px; padding: 12px 20px; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.nl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #a9b6b0; line-height: 1.5; cursor: pointer; }
.nl-consent input { margin-top: 3px; accent-color: var(--lime); width: 16px; height: 16px; flex: none; }
.nl-consent a { color: var(--paper); text-decoration: underline; }
.nl-msg { font-size: 15px; font-weight: 600; color: var(--lime); }
.nl-msg.err { color: #ffb4a8; }
.nl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media screen and (max-width: 760px) {
  .nl-box { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; }
  .nl-row { border-radius: var(--r-m); flex-direction: column; background: transparent; padding: 0; }
  .nl-row input[type="email"] { background: rgba(255,255,255,.08); border-radius: var(--r-m); padding: 14px 16px; }
  .nl-row button { padding: 14px; }
}

/* 11.10.2026: na telefonie baner cookies nie może zasłaniać formularza zapisu (strony zestawów pod reklamy) */
@media screen and (max-width: 640px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.35; }
  .cookie-banner p { margin-bottom: 8px; font-size: 12.5px; line-height: 1.35; }
  .cookie-banner-actions { flex-wrap: nowrap; gap: 8px; }
  .cookie-btn { padding: 8px 12px; font-size: 13px; flex: 1 1 auto; }
}
/* 11.10.2026: przycisk formularza zapisu pod zgodami (wymagana zgoda widoczna przed kliknięciem) */
.nl-submit { display: block; width: 100%; margin-top: 12px; background: var(--lime); color: var(--ink); border: 0; border-radius: 999px; padding: 14px 22px; font-family: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.nl-submit:hover { filter: brightness(1.05); }
