/* Pan Bazyli — landing (tokeny jak panel) */
:root {
  color-scheme: light;
  --bg: #FAF8F4;
  --bg2: #F3EEE6;
  --card: #FFFFFF;
  --line: #E4DDD1;
  --acc: #A63B2E;
  --acc2: #8C2F24;
  --acc-muted: rgba(166, 59, 46, 0.10);
  --acc-border: rgba(166, 59, 46, 0.30);
  --txt: #211C18;
  --mut: #7A6F5F;
  --ok: #15803D;
  --shadow: rgba(33, 28, 24, .08);
  --max: 1080px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
}
a { color: var(--acc); }
*:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.brand img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; color: var(--acc);
}
.nav-mid { display: none; gap: 20px; }
.nav-mid a {
  text-decoration: none; color: var(--mut); font-weight: 500; font-size: .95rem;
}
.nav-mid a:hover { color: var(--txt); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  border-radius: 10px; padding: 10px 16px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-ghost {
  background: transparent; color: var(--mut); border-color: transparent;
}
.btn-ghost:hover { color: var(--txt); background: var(--acc-muted); }
.btn-primary {
  background: var(--acc); color: #fff; border-color: var(--acc);
}
.btn-primary:hover { background: var(--acc2); }
.btn-outline {
  background: var(--card); color: var(--acc); border-color: var(--acc-border);
}
.btn-outline:hover { background: var(--acc-muted); }

@media (min-width: 720px) {
  .nav-mid { display: flex; }
  .brand-name { font-size: 1.5rem; }
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 20px 56px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(166, 59, 46, .12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(166, 59, 46, .06), transparent 50%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 32px; align-items: center;
  text-align: center;
}
.hero-mark {
  width: 140px; height: 140px; margin: 0 auto 8px;
  border-radius: 50%;
  box-shadow: 0 12px 40px var(--shadow);
  animation: markIn .7s cubic-bezier(.2,.8,.2,1) both;
}
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1; letter-spacing: .01em; color: var(--acc);
  animation: rise .6s .1s both;
}
.hero-lead {
  max-width: 34em; margin: 12px auto 0;
  color: var(--mut); font-size: 1.1rem; line-height: 1.55;
  animation: rise .6s .18s both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 24px;
  animation: rise .6s .26s both;
}
.hero-cta .btn { min-width: 160px; padding: 12px 20px; font-size: 1rem; }

@keyframes markIn {
  from { opacity: 0; transform: scale(.86) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ── Value strip (atut cena/wartość) ── */
.value {
  padding: 0 20px;
  margin-top: -28px;
  position: relative; z-index: 2;
}
.value-card {
  max-width: var(--max); margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 36px var(--shadow);
  padding: 22px 24px;
  display: grid; gap: 16px;
}
@media (min-width: 800px) {
  .value-card {
    grid-template-columns: 1.1fr 1fr 1fr;
    align-items: center;
    padding: 28px 32px;
  }
}
.value-kicker {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--acc); margin-bottom: 6px;
}
.value-card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.65rem; font-weight: 700; line-height: 1.15;
}
.value-card p { color: var(--mut); font-size: .98rem; margin-top: 6px; }
.value-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.6rem; font-weight: 700; color: var(--acc); line-height: 1;
}
.value-price small {
  display: block; font-family: 'Barlow', sans-serif;
  font-size: .85rem; font-weight: 500; color: var(--mut); margin-top: 6px;
}
.value-points { list-style: none; display: grid; gap: 8px; }
.value-points li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: .95rem; color: var(--txt);
}
.value-points li::before {
  content: '';
  width: 8px; height: 8px; margin-top: 7px; flex-shrink: 0;
  border-radius: 50%; background: var(--acc);
}

/* ── Sections ── */
.section { padding: 64px 20px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.2rem); font-weight: 700;
  text-align: center; margin-bottom: 8px;
}
.section-sub {
  text-align: center; color: var(--mut); max-width: 36em; margin: 0 auto 36px;
}
.pillars {
  display: grid; gap: 16px;
}
@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.pillar:hover {
  border-color: var(--acc-border);
  box-shadow: 0 6px 24px var(--shadow);
}
.pillar-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--acc-muted); color: var(--acc);
  display: grid; place-items: center; margin-bottom: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .95rem; letter-spacing: .04em;
}
.pillar h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem; font-weight: 700; margin-bottom: 6px;
}
.pillar p { color: var(--mut); font-size: .95rem; }

/* ── Pricing ── */
.pricing-bg {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 40%, var(--bg) 100%);
}
.billing-toggle {
  display: flex; justify-content: center; margin-bottom: 28px;
}
.toggle {
  display: inline-flex; padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.toggle button {
  font-family: inherit; font-weight: 600; font-size: .9rem;
  border: 0; background: transparent; color: var(--mut);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.toggle button.is-on {
  background: var(--acc); color: #fff;
}
.toggle-save {
  display: block; text-align: center; font-size: .85rem; color: var(--ok);
  font-weight: 600; margin: -18px 0 22px;
}
.plans {
  display: grid; gap: 14px;
  align-items: stretch;
}
@media (min-width: 860px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  /* Jeden plan nie ma się z czym zestawiać — nie rozciągaj go na trzecią część siatki. */
  .plans.plans-single { grid-template-columns: minmax(0, 30rem); justify-content: center; }
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.plan.is-featured {
  border-color: var(--acc);
  box-shadow: 0 0 0 1px var(--acc), 0 14px 40px var(--shadow);
}
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--acc); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.plan h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 700;
}
.plan-who { color: var(--mut); font-size: .9rem; min-height: 2.7em; }
.plan-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem; font-weight: 700; color: var(--txt); line-height: 1;
}
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--mut); }
.plan-price-note { font-size: .8rem; color: var(--mut); margin-top: 4px; }
.plan ul {
  list-style: none; display: grid; gap: 8px;
  font-size: .92rem; margin: 4px 0 8px; flex: 1;
}
.plan ul li::before { content: '✓ '; color: var(--acc); font-weight: 700; }
.plan .btn { width: 100%; margin-top: auto; }
.pricing-footnote {
  text-align: center; color: var(--mut); font-size: .88rem; margin-top: 22px;
}

/* ── FAQ ── */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--acc); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--mut); margin-top: 10px; font-size: .95rem; }

/* ── CTA band ── */
.cta-band {
  padding: 48px 20px 64px; text-align: center;
}
.cta-band h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 10px;
}
.cta-band p { color: var(--mut); margin-bottom: 20px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px 40px;
  background: var(--bg2);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  justify-content: space-between; align-items: flex-start;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: .88rem;
}
.footer-links a {
  color: var(--mut); text-decoration: none;
}
.footer-links a:hover { color: var(--acc); text-decoration: underline; }
.footer-meta { color: var(--mut); font-size: .85rem; max-width: 28em; }

/* ── Legal modal ── */
.modal-bg {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(33, 28, 24, .45);
  align-items: center; justify-content: center; padding: 16px;
}
.modal-bg.is-open { display: flex; }
.legal-sheet {
  background: var(--card); border-radius: 14px;
  width: min(720px, 100%); max-height: min(86dvh, 900px);
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.legal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.legal-head h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem;
}
.legal-body {
  padding: 16px; overflow: auto; white-space: pre-wrap;
  font-size: .9rem; line-height: 1.55; color: var(--txt);
}
.btn-icon {
  border: 0; background: transparent; font-size: 1.4rem;
  cursor: pointer; color: var(--mut); line-height: 1; padding: 4px 8px;
}
.btn-icon:hover { color: var(--txt); }

/* Przypis w karcie planu: druga stawka to zabezpieczenie, nie oferta. */
.plan ul li.plan-note { color: var(--mut); font-size: .85rem; }
