/* =========================================================
   Niezależna Analiza Decyzji — styles
   Boutique advisory: serious, clean, trustworthy.
   Palette: ink navy + warm paper + single gold accent.
   ========================================================= */

:root {
  --paper:      #FBFAF7;
  --paper-2:    #F3F0E9;
  --ink:        #14202E;
  --ink-soft:   #2B3A4B;
  --muted:      #5C6775;
  --line:       #E4DED2;
  --navy:       #0F2942;
  --navy-2:     #16364F;
  --gold:       #B98A2E;
  --gold-soft:  #C9A24B;
  --negative:   #B23A2E;
  --gain:       #4FCB95;
  --white:      #ffffff;

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(20,32,46,.06), 0 4px 12px rgba(20,32,46,.05);
  --shadow-md: 0 8px 30px rgba(15,41,66,.10), 0 2px 8px rgba(15,41,66,.06);
  --shadow-lg: 0 24px 60px rgba(15,41,66,.16);

  --ff-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--ff-serif);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}

.serif { font-family: var(--ff-serif); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.eyebrow {
  font-family: var(--ff-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 1rem 0 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #a87a25; }
.btn-on-dark { background: var(--paper); color: var(--ink); }
.btn-on-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 2px 14px rgba(20,32,46,.04); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--ff-serif); font-weight: 500; font-size: 1.08rem; letter-spacing: -.01em; }
.brand span { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--ff-sans); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { margin: 1.6rem 0 2.2rem; max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { margin-top: 2.4rem; display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .92rem; }
.hero-trust b { color: var(--ink); font-weight: 600; }

/* credibility blurb under the photo */
.hero-cred { margin: 3.6rem 0 0; max-width: 440px; }
.hero-cred strong { display: block; font-family: var(--ff-serif); font-size: 1.18rem; color: var(--ink); letter-spacing: -.01em; margin-bottom: .35rem; }
.hero-cred span { display: block; font-size: .94rem; color: var(--muted); line-height: 1.55; }
.hero-cred b { color: var(--ink); font-weight: 600; }

/* portrait + floating stat */
.hero-figure { position: relative; }
.portrait {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--paper-2); aspect-ratio: 1/1;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.stat-float {
  position: absolute; left: -28px; bottom: -26px;
  background: var(--navy); color: #fff;
  border-radius: 16px; padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-lg);
  max-width: 272px;
}
.stat-float .num {
  font-family: var(--ff-serif); font-size: 2.2rem; line-height: 1; color: var(--gain);
  display: flex; align-items: baseline; gap: .15em;
}
.stat-float .lbl { font-size: .82rem; color: #C9D2DD; margin-top: .45rem; line-height: 1.4; }
.stat-float .stat-roi {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  margin-top: .85rem; padding-top: .8rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .78rem; color: #AEB9C6;
}
.stat-float .stat-roi b { color: #fff; font-weight: 600; }
.stat-float .roi-pill {
  background: rgba(63,185,132,.16); color: var(--gain);
  border: 1px solid rgba(63,185,132,.38);
  border-radius: 999px; padding: .2rem .6rem; font-weight: 600; white-space: nowrap;
}

/* ---------- "dla kogo" cards ---------- */
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.dcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7cdb9; }
.dcard .q { font-family: var(--ff-serif); font-size: 1.12rem; color: var(--ink); margin-bottom: .35rem; }
.dcard p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- problem (dark band) ---------- */
.band { background: var(--navy); color: var(--paper); }
.band .eyebrow { color: var(--gold-soft); }
.band h2 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.band p { color: #C9D2DD; }
.problem-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.gap-viz {
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: 1.6rem; background: rgba(255,255,255,.04);
}
.gap-row { display: flex; align-items: baseline; justify-content: space-between; padding: .85rem 0; border-bottom: 1px dashed rgba(255,255,255,.14); }
.gap-row:last-child { border-bottom: 0; }
.gap-row .t { color: #DCE3EA; font-size: .98rem; }
.gap-row .v { font-family: var(--ff-serif); color: var(--gold-soft); font-size: 1.15rem; white-space: nowrap; padding-left: 1rem; }
.gap-row.you .v { color: #fff; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; counter-reset: step; }
.steps-4 { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.steps-4 .step { padding: 2.1rem 1.3rem 1.5rem; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
}
.step .n {
  position: absolute; top: -22px; left: 1.6rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--ff-serif); font-size: 1.25rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step .dur { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
.how-outcome {
  margin-top: 2.5rem; text-align: center; font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink); line-height: 1.4;
}
.how-outcome em { font-style: italic; color: var(--muted); }
.how-outcome .arrow-big { color: var(--gold); }

/* ---------- case study / proof ---------- */
.proof { background: var(--paper-2); }
.proof-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.bignum {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(3.4rem, 11vw, 6.6rem); line-height: .9;
  color: var(--negative); letter-spacing: -.03em;
}
.bignum small { display:block; font-size: 1rem; font-family: var(--ff-sans); font-weight:600; color: var(--ink-soft); letter-spacing:.02em; margin-top: .6rem; }
.proof-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.2rem); box-shadow: var(--shadow-md); }
.proof-card .ctx { color: var(--muted); font-size: .98rem; margin: 0 0 1.4rem; }
.ledger { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.ledger li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger .k { color: var(--ink-soft); }
.ledger .v { font-family: var(--ff-serif); font-size: 1.15rem; white-space: nowrap; }
.ledger .pos { color: var(--muted); }
.ledger .neg { color: var(--negative); }
.ledger .total { border-top: 2px solid var(--ink); margin-top: .3rem; padding-top: .9rem; }
.ledger .total .k { font-weight: 700; color: var(--ink); }
.ledger .total .v { font-size: 1.5rem; color: var(--negative); }
.proof-note { font-size: .92rem; color: var(--muted); margin: 0; }
.proof-note a { color: var(--gold); font-weight: 600; }

/* ---------- sample analyses section (demo PDFs) ---------- */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.samples-section { background: var(--navy); color: #fff; }
.samples-section .eyebrow { color: var(--gold-soft); }
.samples-section h2 { color: #fff; }
.samples-section .section-head p { color: #C9D2DD; }

.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.doc-card { display: flex; flex-direction: column; gap: .9rem; text-decoration: none; color: var(--ink); transition: transform .22s ease; }
.doc-card:hover { transform: translateY(-6px); }
.doc-page {
  display: flex; flex-direction: column; flex: 1; min-height: 290px;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.30);
  transition: box-shadow .22s ease;
}
.doc-card:hover .doc-page { box-shadow: 0 26px 62px rgba(0,0,0,.42); }
.doc-mast {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: var(--ink); color: #fff; padding: .65rem .95rem;
  font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.doc-mast-l { display: inline-flex; align-items: center; gap: .45rem; }
.doc-mark { width: 13px; height: 13px; border-radius: 3px; background: var(--gold-soft); flex: none; }
.doc-pages { color: var(--gold-soft); white-space: nowrap; }
.doc-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem 1.2rem 1.4rem; flex: 1; }
.doc-cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.doc-title { font-family: var(--ff-serif); font-size: 1.28rem; line-height: 1.18; color: var(--ink); }
.doc-desc { font-size: .9rem; color: var(--muted); }
.doc-lines { display: flex; flex-direction: column; gap: .4rem; margin-top: auto; padding-top: 1rem; }
.doc-lines .ln { height: 7px; border-radius: 3px; background: var(--line); }
.doc-lines .ln.short { width: 58%; }
.doc-cta { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 600; font-size: .95rem; }
.doc-card:hover .doc-cta { color: var(--gold-soft); }

/* ---------- why me ---------- */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.why-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; background: var(--paper-2); }
.why-photo img { width:100%; height:100%; object-fit: cover; object-position: center 20%; }
.legs { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.legs li { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; align-items: start; }
.legs .ic { width: 28px; height: 28px; color: var(--gold); flex: none; margin-top: 2px; }
.legs b { display:block; color: var(--ink); }
.legs span { color: var(--muted); font-size: .96rem; }
.legs a { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }
.legs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.logos-strip { margin-top: 2.6rem; }
.logos-strip .cap { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); }
.logos img { height: 26px; width: auto; opacity: .55; filter: grayscale(1); transition: opacity .2s; }
.logos img:hover { opacity: .9; }

/* ---------- price ---------- */
.price { text-align: center; }
.price-card {
  max-width: 640px; margin: 0 auto; background: var(--navy); color: #fff;
  border-radius: 24px; padding: clamp(2.2rem, 5vw, 3.4rem); box-shadow: var(--shadow-lg);
}
.price-card .eyebrow { color: var(--gold-soft); }
.price-card .tag { font-family: var(--ff-serif); font-size: clamp(2.2rem,6vw,3.4rem); margin: .3rem 0 .2rem; }
.price-card .tag span { color: var(--gold-soft); }
.price-card .frame { color: #C9D2DD; max-width: 42ch; margin: 1rem auto 2rem; }
.price-card .pct { display:inline-flex; align-items:center; gap:.5rem; font-size:.9rem; color:#C9D2DD; margin-bottom: 1.8rem; }
.price-card .pct b { color: var(--gold-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--ff-serif); font-size: 1.2rem; color: var(--ink);
  padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--ff-sans); font-size: 1.6rem; color: var(--gold); font-weight: 300; transition: transform .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { margin: 0 0 1.4rem; color: var(--muted); padding-right: 2.5rem; }

/* ---------- final CTA ---------- */
.final { background: var(--ink); color: var(--paper); text-align: center; }
.final h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; margin: 0 auto 1rem; }
.final p { color: #B7C0CC; max-width: 48ch; margin: 0 auto 2rem; }
.final .hero-cta { justify-content: center; }
.final .or { color: #8C97A6; font-size: .95rem; margin-top: 1.6rem; }
.final .or a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #8C97A6; padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .9rem; }
.footer a { color: #B7C0CC; text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .problem-grid, .proof-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .hero-figure { max-width: 380px; margin: 0 auto; }
  .hero-cred { max-width: 480px; margin: 2rem auto 1.5rem; text-align: center; }
  .stat-float { left: auto; right: -10px; }
  .deck { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .bignum { text-align: center; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); padding: 1.6rem 24px 2rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav-cta .btn { display: inline-flex; }
  .nav.open .nav-cta { position: absolute; top: 200px; left: 24px; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .deck { grid-template-columns: 1fr; }
  .stat-float { position: static; margin-top: 1rem; max-width: none; }
  .hero-cta .btn, .final .hero-cta .btn { width: 100%; justify-content: center; }
}

/* 4-step "Jak to działa" — keep 2-up on tablet, 1-up on phone (overrides .steps rule above) */
@media (max-width: 1040px) { .steps-4 { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; row-gap: 2.6rem; } }
@media (max-width: 560px)  { .steps-4 { grid-template-columns: 1fr; gap: 2rem; } }

/* sample analysis (doc) cards */
@media (max-width: 920px) { .docs-grid { grid-template-columns: 1fr; gap: 1.8rem; max-width: 460px; margin: 0 auto; } }

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  max-width: 580px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 1.05rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: .85rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .88rem; line-height: 1.5; color: #C9D2DD; }
.cookie-actions { display: flex; gap: .6rem; justify-content: flex-end; flex: none; }
.cookie-btn {
  font-family: var(--ff-sans); font-weight: 600; font-size: .88rem;
  padding: .5em 1.1em; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.cookie-accept { background: var(--gold); color: #fff; border: 1.5px solid var(--gold); }
.cookie-accept:hover { background: #a87a25; border-color: #a87a25; transform: translateY(-1px); }
.cookie-reject { background: transparent; color: var(--paper); border: 1.5px solid rgba(255,255,255,.3); }
.cookie-reject:hover { border-color: #fff; }
@media (min-width: 600px) {
  .cookie-banner { flex-direction: row; align-items: center; }
  .cookie-banner p { flex: 1; }
}
