/* ============ Działa.ai — design system ============ */
:root {
  --paper: #F6F3EC;
  --paper-2: #EFEAE0;
  --card: #FFFDF8;
  --ink: #182430;
  --ink-soft: #4A5763;
  --line: #E3DDD0;
  --accent: #0F766E;
  --accent-soft: #E4F0EE;
  --bronze: #A16D3F;
  --dark: #0B1B20;
  --dark-2: #10262D;
  --on-dark: #E8EEF0;
  --on-dark-soft: #A9BBC0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(24, 36, 48, .08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.15rem; margin-bottom: .45rem; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .7rem;
}
.eyebrow-light { color: #6FC7BC; }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  text-decoration: none;
}
.logo em { font-style: normal; color: var(--accent); }
.logo-mark { width: 22px; height: 22px; color: var(--bronze); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.lang-link {
  text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; background: var(--card);
}
.lang-link:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ============ buttons & chips ============ */
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1.5px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-small { padding: 9px 18px; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-block { display: block; text-align: center; margin-top: 1rem; }

.badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.chips li {
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--card);
  padding: 6px 13px; border-radius: 999px;
}

/* ============ hero ============ */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lead { font-size: 1.13rem; color: var(--ink-soft); margin-top: 1.2rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.7rem; }

/* chat mock */
.chat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(24, 36, 48, .13);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: #FBF9F3;
}
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #2FBF71; box-shadow: 0 0 0 3px rgba(47,191,113,.18); }
.chat-title { font-weight: 600; font-size: .9rem; }
.chat-tag { margin-left: auto; font-size: .72rem; color: var(--ink-soft); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.chat-body { padding: 20px 18px; min-height: 275px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 14px; font-size: .93rem; line-height: 1.5; }
.msg-q { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.msg-a { align-self: flex-start; background: #F4F1E8; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-src {
  align-self: flex-start; font-size: .78rem; color: var(--accent); font-weight: 600;
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px;
}
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.caret::after { content: "▍"; animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat-input {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line); padding: 12px 18px; color: var(--ink-soft); font-size: .9rem;
  background: #FBF9F3;
}
.chat-send {
  margin-left: auto; border: none; background: var(--accent); color: #fff;
  width: 34px; height: 34px; border-radius: 50%; font-size: .85rem;
}
.demo-note { font-size: .8rem; color: var(--ink-soft); margin-top: .8rem; text-align: center; }

/* ============ sections ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-2); }
.section h2 { max-width: 44rem; }

/* bento / cards */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 2.2rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card-big { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; margin-bottom: .5rem; color: var(--accent); }
.card-photo { padding: 0; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-icon { font-size: 1.7rem; margin-bottom: .6rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2.2rem; }

/* steps */
.steps-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; margin-top: 2.2rem; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 20px; }
.step-no { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--bronze); line-height: 1; min-width: 58px; }
.step p { color: var(--ink-soft); }
.side-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.side-photo figcaption {
  margin-top: 14px; font-size: .95rem; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 14px 18px;
}

/* examples */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2.2rem; }
.example-tag { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); margin-bottom: .9rem; }
.bubble { padding: 11px 15px; border-radius: 13px; font-size: .92rem; margin-bottom: 10px; }
.bubble-q { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; margin-left: 1.4rem; }
.bubble-a { background: #F4F1E8; border: 1px solid var(--line); border-bottom-left-radius: 4px; margin-right: 1.4rem; }
.source { font-size: .78rem; color: var(--accent); font-weight: 600; }

/* dark / security */
.section-dark {
  background: linear-gradient(rgba(11, 27, 32, .88), rgba(11, 27, 32, .94)), url("assets/security-data.jpg") center/cover;
  color: var(--on-dark);
}
.section-dark h2 { color: #fff; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 2.2rem; }
.checklist li {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 18px 20px 18px 52px; position: relative;
  color: var(--on-dark-soft); font-size: .95rem;
}
.checklist li strong { color: var(--on-dark); display: block; margin-bottom: 2px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 18px; top: 18px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: .8rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.dark-note { margin-top: 2rem; color: var(--on-dark-soft); max-width: 46rem; font-size: .95rem; }
.dark-note em { color: #6FC7BC; font-style: normal; }

/* photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 2.6rem; }
.photo-strip img { border-radius: 14px; aspect-ratio: 16/10; object-fit: cover; filter: saturate(.9); }

/* pricing */
.pricing { align-items: stretch; }
.price { display: flex; flex-direction: column; }
.price-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin-top: .6rem; }
.price-num-2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-top: .9rem; }
.price-sub { font-size: .87rem; color: var(--ink-soft); }
.price-hot { border: 2px solid var(--accent); position: relative; box-shadow: 0 18px 44px rgba(15, 118, 110, .16); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.fineprint { font-size: .82rem; color: var(--ink-soft); margin-top: 1.6rem; }

/* FAQ */
.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 22px; margin-top: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--ink-soft); }

/* CTA */
.section-cta { padding-bottom: 96px; }
.cta-card {
  background: var(--dark); color: var(--on-dark);
  border-radius: 24px; padding: clamp(36px, 6vw, 64px);
  background-image: radial-gradient(700px 320px at 85% -10%, rgba(15, 118, 110, .35), transparent);
}
.cta-card h2 { color: #fff; }
.cta-card p { color: var(--on-dark-soft); max-width: 36rem; }
.cta-note { font-size: .84rem; margin-top: 1rem; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer em { font-style: normal; color: var(--accent); }
.footer-fine { font-size: .8rem; color: var(--ink-soft); }
.footer-fine a { color: var(--ink-soft); }

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

/* ============ responsive ============ */
@media (max-width: 980px) {
  .hero-grid, .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cols-3, .examples { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }

  /* Nawigacja na mobile: nie znika, tylko schodzi pod logo jako poziomo
     przewijalny pasek. Wcześniej był tu display:none bez hamburgera — na
     telefonie znikał dostęp do sekcji i do przełącznika EN, a strona ma
     ~10 000 px wysokości. Bez JS, żeby nie dokładać zależności. */
  .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 0 8px; gap: 10px 16px; }
  .nav-inner > .btn-small { margin-left: auto; }
  .nav-links {
    order: 3; width: 100%; margin-left: 0; gap: 18px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: .88rem; }
  /* wygaszenie przy prawej krawędzi = sygnał, że pasek ma dalszy ciąg
     (poza widokiem zostają Cennik, FAQ i przełącznik EN) */
  @supports (mask-image: linear-gradient(#000, #000)) {
    .nav-links {
      -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
      mask-image: linear-gradient(to right, #000 88%, transparent);
    }
  }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
}
