/* ===========================================================
   KOMPENDIUM.IVF — material redesign (BRIEF 2.0)
   Full tonal scale · Bricolage display · Inter body · mono labels
   Palette 4+1: sage · sand · bone · brick(CTA) · espresso(+water)
   =========================================================== */

:root {
  /* — Light surfaces — */
  --bone:   #F2EDE0;   /* base light (kość/almond) */
  --bone-2: #EAE3D2;
  --sand:   #D9CDB8;   /* desert sand */
  --sand-2: #E1D7C3;
  --card:   #FBF8F0;   /* panels on light */
  --line:   #DDD3BF;
  --line-soft: #E6DECC;

  /* — Sage (signature) — */
  --sage:      #75846A;
  --sage-deep: #5C6A52;
  --sage-ink:  #424E37;

  /* — Deep surfaces (full tonal scale) — */
  --water:     #2E3B2C;   /* deep water green */
  --water-2:   #212B1F;
  --espresso:  #2E2218;   /* cocoa / leather */
  --espresso-2:#221910;

  /* — Brick / persian orange (CTA + accent only) — */
  --clay:      #B4592F;
  --clay-deep: #9C4A24;
  --clay-soft: #C76C40;

  /* — Ink / neutrals on light — */
  --ink:      #221B11;
  --ink-soft: #594F3E;
  --taupe:    #9A8F79;

  /* — On dark surfaces — */
  --on-dark:      #F1ECDD;
  --on-dark-soft: #BBB09A;
  --on-water:     #ECEAD7;
  --on-water-soft:#AEB69C;

  /* — Type — */
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;

  /* — Rhythm — */
  --maxw:      1240px;
  --gutter:    clamp(20px, 5vw, 64px);
  --section-y: clamp(84px, 10vw, 168px);
  --head-gap:  clamp(38px, 5vw, 72px);
  --grid-gap:  clamp(18px, 2vw, 28px);

  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(34,27,17,.05), 0 2px 10px rgba(34,27,17,.05);
  --shadow-md: 0 2px 6px rgba(34,27,17,.06), 0 22px 50px -18px rgba(34,27,17,.22);
  --shadow-lg: 0 4px 14px rgba(34,27,17,.08), 0 54px 96px -34px rgba(34,27,17,.34);

  --grain: url("tex/grain.png");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--clay); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

/* skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bone);
  padding: 10px 18px; border-radius: 8px; font-size: 14px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap    { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.section { padding-block: var(--section-y); position: relative; isolation: isolate; }

/* ---------- Surfaces (the tonal scale) ---------- */
.s-bone     { background: var(--bone); }
.s-sand     { background: var(--sand); }
.s-sand-tex { background: var(--sand) url("tex/sand.png") center/cover; }
.s-espresso { background: var(--espresso) url("tex/espresso.png") center/cover; color: var(--on-dark); }
.s-water    { background: var(--water) url("tex/water.png") center/cover; color: var(--on-water); }

/* universal grain — sits above bg, below content */
.section::after,
.reload-band::after,
.site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 240px;
  opacity: .5; mix-blend-mode: overlay;
}
body.no-grain .section::after,
body.no-grain .reload-band::after,
body.no-grain .site-footer::after { display: none; }

/* light-wash atmosphere (top-corner light), toggleable */
.window-light::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 82% -6%, rgba(255,253,246,.9) 0%, transparent 60%);
}
body.no-window-light .window-light::before { display: none; }

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
  margin: 0;
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .6; flex: none; }
.on-dark .eyebrow, .s-espresso .eyebrow { color: var(--clay-soft); }
.s-water .eyebrow { color: var(--on-water-soft); }

.mono-note {
  font-family: var(--mono); font-size: 13px; letter-spacing: .01em;
  color: var(--ink-soft); line-height: 1.55;
}

/* ---------- Section head + oversized index ---------- */
.sec-head { max-width: 30ch; margin-bottom: var(--head-gap); position: relative; }
.sec-head--wide { max-width: 60ch; }
.sec-head .eyebrow { margin-bottom: 22px; }
.sec-head h2 { margin: 0; }
.sec-head .lead { margin-top: 22px; }

.sec-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(96px, 15vw, 210px);
  line-height: .8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.4px color-mix(in srgb, var(--sage) 52%, transparent);
  margin: 0 0 -0.06em -0.03em;
  pointer-events: none; user-select: none;
}
.s-espresso .sec-num { -webkit-text-stroke-color: color-mix(in srgb, var(--clay-soft) 60%, transparent); }
.s-water .sec-num    { -webkit-text-stroke-color: color-mix(in srgb, var(--on-water) 38%, transparent); }

/* ---------- Type scale (oversized 2026) ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
h1.display { font-size: clamp(40px, 5.2vw, 84px); font-weight: 700; line-height: 1.0; }
h2.display { font-size: clamp(34px, 4.6vw, 68px); }
.s-espresso .display, .s-water .display { color: var(--on-dark); }
.accent { color: var(--clay); }
.s-espresso .accent, .s-water .accent { color: var(--clay-soft); }

.lead {
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.56;
  color: var(--ink-soft);
  max-width: 52ch;
  text-wrap: pretty;
  margin: 0;
}
.s-espresso .lead { color: var(--on-dark-soft); }
.s-water .lead { color: var(--on-water-soft); }

/* hand-drawn underline accent */
.hand-underline {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='16' viewBox='0 0 200 16'%3E%3Cpath d='M3 9c34-6 70-7 98-5 30 2 64 1 96-3' fill='none' stroke='%23B4592F' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% .42em;
  padding-bottom: .12em;
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; font-size: 15px; color: var(--ink); white-space: nowrap;
}
.wordmark .dot { color: var(--sage); }

/* ---------- Buttons (brick = CTA) ---------- */
.btn {
  --bg-btn: var(--clay); --fg-btn: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: .01em;
  padding: 16px 30px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg-btn); color: var(--fg-btn);
  cursor: pointer; text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .2s;
  box-shadow: 0 1px 2px rgba(34,27,17,.14), 0 12px 26px -10px rgba(156,74,36,.5);
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 2px 5px rgba(34,27,17,.16), 0 20px 40px -12px rgba(156,74,36,.58); background: var(--clay-deep); }
.btn:active { transform: translateY(0); }
.btn .arrow { width: 19px; height: 19px; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--lg  { padding: 18px 38px; font-size: 17.5px; }
.btn--sm  { padding: 11px 21px; font-size: 14px; }
.btn--ghost {
  --bg-btn: transparent; --fg-btn: var(--ink); border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--card); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.on-dark .btn--ghost, .s-espresso .btn--ghost, .s-water .btn--ghost {
  --fg-btn: var(--on-dark); border-color: rgba(241,236,221,.28);
}
.on-dark .btn--ghost:hover, .s-water .btn--ghost:hover { background: rgba(241,236,221,.08); }
body.cta-sage .btn:not(.btn--ghost) {
  --bg-btn: var(--sage);
  box-shadow: 0 1px 2px rgba(34,27,17,.14), 0 12px 26px -10px rgba(92,106,82,.55);
}
body.cta-sage .btn:not(.btn--ghost):hover { background: var(--sage-deep); }

/* ---------- Mono chip ---------- */
.mono-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--sage-deep);
  background: color-mix(in srgb, var(--sage) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--sage) 24%, var(--line));
  padding: 7px 14px; border-radius: 999px;
}
.icon-chip {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--sage) 13%, var(--card));
  border: 1px solid color-mix(in srgb, var(--sage) 24%, var(--line));
  color: var(--sage-deep); flex: none;
}
.icon-chip svg { width: 27px; height: 27px; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--taupe);
}

/* ---------- Reveals ---------- */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].in { animation: reveal-in .85s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--reveal-delay, 0ms); }
}
@keyframes reveal-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bone) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-lockup .mark { width: 34px; height: 34px; color: var(--sage); flex: none; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--clay); }
@media (max-width: 1080px) { .nav-links { gap: 20px; } }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; overflow: hidden; background: linear-gradient(176deg, var(--bone) 0%, var(--bone-2) 100%); }
.hero-rings {
  position: absolute; z-index: 0; right: -16vw; top: 50%; transform: translateY(-50%);
  width: min(118vh, 1000px); height: min(118vh, 1000px);
  color: var(--sage); opacity: .14; pointer-events: none;
}
.hero .grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(34px, 4vw, 68px); align-items: center;
  padding-block: clamp(56px, 8vw, 124px) clamp(64px, 9vw, 128px);
}
.hero-copy { max-width: 100%; }
.hero .eyebrow { margin-bottom: 30px; }
.hero h1 { margin: 0 0 30px; }
.hero .lead { margin-bottom: 40px; max-width: 34ch; font-size: clamp(19px, 1.55vw, 24px); }
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ===== Hero live chat frame ===== */
.hero-chat {
  width: 100%; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
}
.hl-chrome { display: flex; align-items: center; gap: 13px; padding: 15px 20px; background: linear-gradient(180deg,#fff,var(--card)); border-bottom: 1px solid var(--line-soft); }
.hl-dots { display: inline-flex; gap: 7px; flex: none; }
.hl-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hl-url { font-family: var(--mono); font-size: 12px; color: var(--taupe); background: var(--bone); border: 1px solid var(--line-soft); padding: 5px 15px; border-radius: 999px; }
.hl-head { display: flex; align-items: center; gap: 13px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.hl-ic { width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--sage) 15%, var(--card)); color: var(--sage-deep); display: grid; place-items: center; flex: none; }
.hl-ic svg { width: 23px; height: 23px; }
.hl-nm { font-weight: 600; font-size: 17px; color: var(--ink); }
.hl-st { font-family: var(--mono); font-size: 11.5px; color: var(--sage-deep); margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.hl-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: livePulse 2s infinite; }
@keyframes livePulse { 0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--sage) 60%,transparent);} 70%{box-shadow:0 0 0 7px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }
.hl-body { padding: 28px 22px; display: flex; flex-direction: column; gap: 16px; min-height: clamp(330px, 34vw, 432px); }
.hl-bub { max-width: 90%; padding: 15px 19px; border-radius: 19px; font-size: 16px; line-height: 1.52; }
.hl-bub.user { align-self: flex-end; background: color-mix(in srgb, var(--sage) 15%, var(--card)); border: 1px solid color-mix(in srgb, var(--sage) 24%, var(--line)); color: var(--ink); border-bottom-right-radius: 6px; }
.hl-bub.bot  { align-self: flex-start; background: var(--bone); border: 1px solid var(--line); color: var(--ink-soft); border-bottom-left-radius: 6px; }
.hl-cite { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--sage-deep); line-height: 1.5; }
.hl-cite svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.hl-typing { align-self: flex-start; display: inline-flex; gap: 6px; padding: 16px 19px; background: var(--bone); border: 1px solid var(--line); border-radius: 19px; border-bottom-left-radius: 6px; }
.hl-typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--taupe); animation: blink 1.2s infinite; }
.hl-typing i:nth-child(2){ animation-delay: .2s; } .hl-typing i:nth-child(3){ animation-delay: .4s; }
.hl-input { display: flex; align-items: center; gap: 10px; margin: 4px 20px 20px; padding: 12px 12px 12px 19px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.hl-ph { font-size: 14.5px; color: var(--taupe); flex: 1; display: inline-flex; align-items: center; }
.hl-ph::after { content: ""; width: 1.5px; height: 1.05em; margin-left: 2px; background: var(--sage); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 0%,50%{opacity:1;} 51%,100%{opacity:0;} }
.hl-send { width: 38px; height: 38px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; flex: none; }
.hl-send svg { width: 18px; height: 18px; }
@keyframes blink { 0%,60%,100%{opacity:.3;transform:translateY(0);} 30%{opacity:1;transform:translateY(-3px);} }

/* ===========================================================
   PROOF-PAS — honest trust strip (absorbs enterprise/RODO)
   =========================================================== */
.proof-pas { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; isolation: isolate; }
.proof-pas::after { content:""; position:absolute; inset:0; z-index:-1; background-image:var(--grain); background-size:240px; opacity:.45; mix-blend-mode:overlay; pointer-events:none; }
body.no-grain .proof-pas::after { display:none; }
.proof-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px,3vw,48px); padding-block: clamp(30px,3.6vw,46px); }
.proof-item { display: flex; align-items: flex-start; gap: 13px; }
.proof-item .pi { width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--sage) 16%, var(--sand-2)); border: 1px solid color-mix(in srgb, var(--sage) 26%, var(--line)); color: var(--sage-deep); display: grid; place-items: center; flex: none; }
.proof-item .pi svg { width: 21px; height: 21px; }
.proof-item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.proof-item strong { color: var(--ink); font-weight: 600; }
@media (max-width: 880px){ .proof-row { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 520px){ .proof-row { grid-template-columns: 1fr; } }

/* ===========================================================
   01 PROBLEM — espresso, editorial list
   =========================================================== */
.problem .wrap { display: block; }
.problem .sec-head { margin-bottom: var(--head-gap); }
.problem-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px,2.6vw,40px) clamp(40px,5vw,84px); }
.pain {
  display: block; padding-top: clamp(22px,2.2vw,30px);
  border-top: 1px solid rgba(241,236,221,.18);
}
.pain-no { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--clay-soft); margin-bottom: 14px; }
.pain h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px,2.5vw,38px); line-height: 1.06; color: var(--on-dark); letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.pain p { margin: 0; font-size: clamp(15px,1.2vw,18px); line-height: 1.58; color: var(--on-dark-soft); max-width: 38ch; }
.problem-close { margin-top: clamp(48px,6vw,88px); max-width: 70ch; display: flex; gap: 26px; align-items: flex-start; }
.problem-close .qmark { font-family: var(--display); font-weight: 700; font-size: clamp(56px,6vw,92px); line-height: .68; color: var(--clay-soft); flex: none; }
.problem-close p { font-family: var(--display); font-weight: 500; font-size: clamp(24px,2.8vw,40px); line-height: 1.2; color: var(--on-dark); margin: 0; letter-spacing: -0.018em; text-wrap: balance; }
@media (max-width: 760px){ .problem-list { grid-template-columns: 1fr; gap: 0; } .pain { padding-block: clamp(20px,5vw,26px); } }

/* ===========================================================
   02 DEMO — light, interactive (legible UI)
   =========================================================== */
.demo-head { margin-bottom: var(--head-gap); max-width: 62ch; }
.demo-head .sec-num { margin-bottom: 6px; }
.demo-head .eyebrow { margin-bottom: 16px; }
.demo-head .mono-chip { margin-bottom: 20px; }
.demo-head h2 { margin: 0 0 18px; }
.demo-head .lead { margin: 0; }
.demo-body { display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(22px,3vw,44px); align-items: stretch; }
.demo-left { display: flex; flex-direction: column; }
.demo-q-intro { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin: 0 0 14px; height: 22px; display: flex; align-items: center; }
.demo-q-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.demo-q { display: flex; align-items: center; gap: 13px; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px; font-family: var(--sans); font-size: 15px; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, border-color .2s; }
.demo-q:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--sage) 40%, var(--line)); }
.demo-q[disabled] { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.demo-q .qic { width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--sage) 13%, var(--bone)); color: var(--sage-deep); display: grid; place-items: center; flex: none; }
.demo-q .qic svg { width: 18px; height: 18px; }
.demo-q > span:nth-child(2) { flex: 1; line-height: 1.3; }
.demo-q .qarrow { width: 18px; height: 18px; color: var(--taupe); flex: none; transition: transform .2s, color .2s; }
.demo-q:hover .qarrow { transform: translateX(3px); color: var(--clay); }
.demo-ask { display: flex; align-items: center; gap: 8px; margin-top: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 7px 7px 7px 16px; box-shadow: var(--shadow-sm); }
.demo-ask input { flex: 1; border: 0; background: transparent; outline: none; font-family: var(--sans); font-size: 15px; color: var(--ink); }
.demo-ask input::placeholder { color: var(--taupe); }
.demo-ask-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--sage); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .2s, transform .2s; }
.demo-ask-btn:hover { background: var(--sage-deep); transform: translateY(-1px); }
.demo-ask-btn svg { width: 18px; height: 18px; }
.demo-chat { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg,#fff,var(--card)); }
.chat-top .tic { width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--sage) 15%, var(--card)); color: var(--sage-deep); display: grid; place-items: center; flex: none; }
.chat-top .tic svg { width: 18px; height: 18px; }
.chat-top .nm { font-weight: 600; font-size: 14px; }
.chat-top .st { font-family: var(--mono); font-size: 10.5px; color: var(--sage-deep); margin-left: auto; display: flex; align-items: center; gap: 6px; }
.chat-top .st i { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.chat-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 384px; }
.chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; color: var(--taupe); padding: 20px; }
.chat-empty .ek { width: 64px; height: 64px; border-radius: 18px; background: color-mix(in srgb, var(--sage) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--sage) 18%, var(--line)); color: var(--sage-deep); display: grid; place-items: center; }
.chat-empty .ek svg { width: 32px; height: 32px; }
.chat-empty .et { font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.chat-empty .es { font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; color: var(--taupe); line-height: 1.5; }
.bubble { max-width: 86%; padding: 13px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference){ .bubble.show { animation: reveal-in .5s cubic-bezier(.2,.7,.2,1) both; } }
.bubble.user { align-self: flex-end; background: color-mix(in srgb, var(--sage) 15%, var(--card)); border: 1px solid color-mix(in srgb, var(--sage) 24%, var(--line)); color: var(--ink); border-bottom-right-radius: 5px; }
.bubble.bot  { align-self: flex-start; background: var(--bone); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.bot .cite { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 11px; color: var(--sage-deep); display: flex; align-items: flex-start; gap: 7px; letter-spacing: .01em; }
.bubble.bot .cite svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.bubble.disc { align-self: flex-start; max-width: 92%; background: transparent; border: none; padding: 2px 4px; font-family: var(--mono); font-size: 11px; color: var(--taupe); line-height: 1.5; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--bone); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--taupe); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay:.2s; } .typing i:nth-child(3){ animation-delay:.4s; }

/* ===========================================================
   FOUNDER NOTE — sand, editorial
   =========================================================== */
.founder .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px,5.5vw,88px); align-items: center; }
.founder-photo { position: relative; }
.founder-photo image-slot { display: block; width: 100%; height: auto; aspect-ratio: 4/5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--water) url("tex/water.png") center/cover; }
.founder-photo .frame-note { position: absolute; bottom: 16px; left: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--bone); background: rgba(34,27,17,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 6px 11px; border-radius: 8px; }
.founder-copy .eyebrow { margin-bottom: 26px; }
.founder-copy .note { font-size: clamp(20px,1.85vw,27px); line-height: 1.5; color: var(--ink); max-width: 30ch; margin: 0; font-weight: 500; letter-spacing: -0.01em; }
.founder-copy blockquote { margin: clamp(32px,3.4vw,52px) 0 0; }
.founder-copy blockquote p { font-family: var(--display); font-weight: 600; font-size: clamp(34px,4.4vw,66px); line-height: 1.04; color: var(--ink); margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
.founder-copy blockquote .accent { color: var(--clay); }

/* ===========================================================
   03 JAK DZIAŁA — fundament (wide) + two tools
   =========================================================== */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: var(--grid-gap); }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(26px,2.6vw,40px); display: flex; flex-direction: column; gap: 16px; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.how-card--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(28px,4vw,64px); }
.how-card--wide .how-main { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.how-card--wide .icon-chip { width: 64px; height: 64px; border-radius: 18px; }
.how-card--wide .icon-chip svg { width: 34px; height: 34px; }
.how-card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(28px,2.6vw,42px); margin: 0; color: var(--ink); letter-spacing: -0.02em; }
.how-card .sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--sage-deep); line-height: 1.45; margin: -8px 0 0; }
.how-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.how-card .uses { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.how-card .use { font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 9px; align-items: baseline; }
.how-card .use b { color: var(--ink); font-weight: 600; }
.how-card .use::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); flex: none; transform: translateY(-2px); }
.how-card .foot { font-family: var(--mono); font-size: 11px; color: var(--sage-deep); letter-spacing: .03em; margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 9px; }
.how-card .foot::before { content: ""; width: 18px; height: 1px; background: var(--sage); flex: none; }
@media (max-width: 860px){ .how-grid { grid-template-columns: 1fr; } .how-card--wide { flex-direction: column; align-items: flex-start; } }

/* ===========================================================
   04 ŹRÓDŁA — flow + update strip (kept; restyled)
   =========================================================== */
.src-flow { display: grid; grid-template-columns: 1fr auto 1.02fr auto 1fr; gap: clamp(12px,1.8vw,26px); align-items: center; margin-bottom: clamp(24px,3vw,44px); }
.src-col { display: flex; flex-direction: column; gap: 12px; }
.src-in { display: inline-flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 15px 18px; font-size: 16px; color: var(--ink); box-shadow: var(--shadow-sm); }
.src-in svg { width: 19px; height: 19px; color: var(--sage); flex: none; }
.src-mid-card { background: linear-gradient(160deg, var(--sage), var(--sage-deep)); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(30px,3.4vw,48px); text-align: center; box-shadow: var(--shadow-md); }
.src-mid-card .mc-label { font-family: var(--display); font-weight: 600; font-size: clamp(30px,3vw,46px); letter-spacing: -0.02em; line-height: 1; }
.src-mid-card .mc-sub { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--on-dark-soft); margin-top: 12px; }
.src-out { display: flex; align-items: center; gap: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.src-out .ic { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--sage) 13%, var(--bone)); color: var(--sage-deep); display: grid; place-items: center; flex: none; }
.src-out .ic svg { width: 27px; height: 27px; }
.src-out h4 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.src-out p { margin: 3px 0 0; font-size: 14px; color: var(--ink-soft); }
.src-arrow { display: grid; place-items: center; color: var(--clay); }
.src-arrow svg { width: 30px; height: 30px; }
.update-strip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(30px,3.2vw,46px); }
.update-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.update-head .ic { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--sage) 13%, var(--card)); border: 1px solid color-mix(in srgb, var(--sage) 24%, var(--line)); color: var(--sage-deep); display: grid; place-items: center; flex: none; }
.update-head .ic svg { width: 26px; height: 26px; }
.update-head h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px,2.3vw,36px); color: var(--ink); letter-spacing: -0.015em; }
.update-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,3vw,48px); }
.update-col { padding-left: 22px; border-left: 3px solid var(--line); }
.update-col.is-gov { border-left-color: var(--sage); }
.update-col.is-clinic { border-left-color: var(--clay); }
.update-col .who { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 11px; }
.update-col p { margin: 0; font-size: 16px; line-height: 1.56; color: var(--ink-soft); }
.update-strip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(26px,2.8vw,38px); }
.update-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.update-head .ic { width: 42px; height: 42px; border-radius: 11px; background: color-mix(in srgb, var(--sage) 13%, var(--card)); border: 1px solid color-mix(in srgb, var(--sage) 24%, var(--line)); color: var(--sage-deep); display: grid; place-items: center; flex: none; }
.update-head .ic svg { width: 23px; height: 23px; }
.update-head h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px,2vw,30px); color: var(--ink); letter-spacing: -0.01em; }
.update-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,2.4vw,40px); }
.update-col { padding-left: 18px; border-left: 2px solid var(--line); }
.update-col.is-gov { border-left-color: var(--sage); }
.update-col.is-clinic { border-left-color: var(--clay); }
.update-col .who { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 9px; }
.update-col p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 880px){ .src-flow { grid-template-columns: 1fr; gap: 14px; } .src-arrow { transform: rotate(90deg); } .src-col { flex-direction: row; flex-wrap: wrap; } .src-col.src-out-col { flex-direction: column; } .update-two { grid-template-columns: 1fr; gap: 22px; } }

/* ===========================================================
   PAS WODNY — full-bleed water band
   =========================================================== */
.reload-band { position: relative; isolation: isolate; background: var(--water) url("assets/water-band.jpg") center/cover; min-height: clamp(300px, 38vw, 520px); display: flex; }
.reload-band image-slot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.reload-band .overlay { position: relative; z-index: 2; pointer-events: none; align-self: flex-end; width: 100%; display: flex; flex-direction: column; padding: clamp(32px,6vw,84px); background: linear-gradient(0deg, rgba(20,28,18,.72) 0%, rgba(20,28,18,.42) 55%, rgba(20,28,18,.10) 100%); }
.reload-band .overlay .eyebrow { color: var(--on-water-soft); }
.reload-band .overlay p { font-family: var(--display); font-weight: 600; font-size: clamp(28px,4vw,60px); line-height: 1.05; color: var(--on-water); margin: 16px 0 0; max-width: 20ch; letter-spacing: -0.02em; }
.reload-band .overlay .accent { color: var(--clay-soft); }

/* ===========================================================
   05 RZETELNOŚĆ — deep water surface (colour moment)
   =========================================================== */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px,3.4vw,52px); }
.principle { display: flex; flex-direction: column; gap: 16px; }
.principle .pic { width: 50px; height: 50px; color: var(--on-water); display: grid; place-items: center; border-radius: 13px; border: 1px solid rgba(236,234,215,.26); background: rgba(236,234,215,.07); }
.principle .pic svg { width: 27px; height: 27px; }
.principle h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px,2.1vw,30px); margin: 0; color: var(--on-water); line-height: 1.12; letter-spacing: -0.015em; }
.principle p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-water-soft); }

/* ===========================================================
   06 KROKI — steps
   =========================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px,2.2vw,30px); }
.step-card { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.step-card .snum { font-family: var(--display); font-weight: 700; font-size: clamp(34px,3vw,48px); color: var(--clay); letter-spacing: -0.03em; position: absolute; top: -8px; left: 0; line-height: 1; }
.step-card .snum::after { content: ""; position: absolute; top: -22px; left: 2px; width: 40px; height: 3px; background: var(--clay); }
.step-card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px,1.8vw,26px); margin: 14px 0 10px; color: var(--ink); letter-spacing: -0.01em; }
.step-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.work-note { margin: clamp(36px,4vw,56px) 0 0; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); letter-spacing: .01em; }
@media (max-width: 760px){ .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; } }
@media (max-width: 460px){ .steps { grid-template-columns: 1fr; } }

/* ===========================================================
   07 KONTAKT — clean, no photo
   =========================================================== */
.kontakt { overflow: hidden; }
.kontakt .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px,5vw,80px); align-items: center; }
.kontakt-rings { justify-self: center; width: min(40vw, 360px); height: min(40vw, 360px); color: var(--sage); opacity: .26; }
.kontakt-copy .sec-num { margin-bottom: 4px; }
.kontakt-copy h2 { margin: 14px 0 0; }
.kontakt-copy .lead { margin: 22px 0 0; }
.kontakt-cta { margin-top: 32px; }
.kontakt-note { margin-top: 18px; }
@media (max-width: 860px){ .kontakt .wrap { grid-template-columns: 1fr; gap: 40px; } .kontakt-rings { display: none; } }

/* ===========================================================
   FOOTER — espresso
   =========================================================== */
.site-footer { background: var(--espresso) url("tex/espresso.png") center/cover; color: var(--on-dark-soft); padding-block: clamp(52px,6vw,80px); position: relative; isolation: isolate; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: flex-start; justify-content: space-between; }
.footer-brand { max-width: 32ch; }
.site-footer .brand-lockup .mark { color: var(--on-dark); }
.site-footer .wordmark { color: var(--on-dark); }
.site-footer .wordmark .dot { color: var(--sage); }
.site-footer .meta { font-size: 13.5px; line-height: 1.7; margin: 18px 0 0; }
.site-footer .meta strong { color: var(--on-dark); font-weight: 600; }
.site-footer a { color: var(--on-dark-soft); }
.footer-cols { display: flex; gap: clamp(32px,4vw,64px); flex-wrap: wrap; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); opacity: .8; margin: 0 0 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; text-decoration: none; }
.footer-col a:hover { color: var(--clay-soft); }
.footer-legal { width: 100%; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(241,236,221,.14); }
.footer-legal .legal { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: rgba(241,236,221,.5); line-height: 1.6; margin: 0; max-width: 80ch; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero .grid { grid-template-columns: 1fr; gap: clamp(34px,7vw,52px); padding-block: clamp(44px,8vw,72px); }
  .hero-rings { right: -34vw; opacity: .1; }
  .hero .lead { max-width: 54ch; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-chat { order: 2; }
  .chat-body { min-height: 320px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .founder .wrap { grid-template-columns: 1fr; gap: clamp(28px,6vw,44px); }
  .founder-photo { max-width: 420px; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero .grid { padding-block: 28px 44px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .demo-q { font-size: 14px; padding: 13px 14px; }
  .footer-cols { gap: 28px 40px; }
  .site-header .bar { height: 62px; }
  .brand-lockup { gap: 8px; }
  .brand-lockup .mark { width: 27px; height: 27px; }
  .wordmark { font-size: 12px; letter-spacing: .13em; }
  .site-header .btn--sm { padding: 10px 16px; font-size: 13px; }
}

/* AI Act note (art. 50) pod zasadą "To nie porada medyczna" */
.rz-note { margin: clamp(28px,4vw,44px) auto 0; padding-top: 18px; border-top: 1px solid rgba(236,234,215,.18); font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--on-water-soft); max-width: 66ch; }
