:root {
  --ink: #17352a;
  --ink-2: #27493c;
  --muted: #718078;
  --paper: #f5f1e9;
  --paper-2: #ece6da;
  --surface: #fffdf9;
  --line: #ddd7cc;
  --accent: #7ca56d;
  --accent-2: #5f8754;
  --accent-soft: #e8efe3;
  --danger: #a94f42;
  --shadow: 0 18px 55px rgba(33, 55, 43, .10);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--paper); }
body {
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 5%, rgba(124,165,109,.17), transparent 28rem),
    radial-gradient(circle at 92% 96%, rgba(193,161,105,.12), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.hidden { display: none !important; }

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 10px max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  flex: none;
}
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn {
  border: 0; background: rgba(255,253,249,.72); box-shadow: 0 4px 18px rgba(30,54,42,.06);
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 23px; height: 23px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.topbar-spacer { width: 42px; }

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 32px, 760px);
  margin: 2px auto 0;
}
.progress-track { height: 5px; flex: 1; border-radius: 999px; background: rgba(23,53,42,.09); overflow: hidden; }
.progress-fill { width: 0%; height: 100%; border-radius: inherit; background: var(--accent-2); transition: width .35s ease; }
.progress-label { font-size: 12px; color: var(--muted); font-weight: 700; min-width: 42px; text-align: right; }

.stage {
  flex: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}
.screen {
  width: min(100%, 820px);
  min-height: calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 28px 20px max(26px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  animation: enter .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.eyebrow {
  display: inline-flex; align-items:center; gap:7px; align-self:flex-start;
  color: var(--accent-2); background: rgba(255,253,249,.75);
  border: 1px solid rgba(95,135,84,.15); border-radius:999px;
  padding: 7px 10px; font-size: 12px; font-weight: 800; letter-spacing:.02em; text-transform:uppercase;
}
.hero { justify-content: center; padding-top: 22px; }
.hero-art {
  width: 100%; height: 180px; margin: 12px 0 8px; position: relative; overflow:hidden;
}
.hero-art .pot { position:absolute; left:50%; bottom:14px; transform:translateX(-50%); width:102px; height:66px; background:#b47b50; border-radius:8px 8px 38px 38px; box-shadow: inset 0 8px 0 rgba(255,255,255,.13); }
.hero-art .stem { position:absolute; width:7px; height:86px; background:var(--ink-2); border-radius:99px; left:50%; bottom:73px; transform:translateX(-50%); }
.hero-art .leaf { position:absolute; width:74px; height:39px; background:var(--accent); border-radius:100% 8% 100% 8%; }
.hero-art .leaf.a { left:calc(50% - 70px); bottom:119px; transform:rotate(17deg); }
.hero-art .leaf.b { left:calc(50% - 2px); bottom:142px; transform:rotate(-18deg) scaleX(-1); background:#92b37f; }
.hero-art .leaf.c { left:calc(50% - 64px); bottom:157px; transform:rotate(45deg) scale(.72); background:#5e8755; }
.hero-art:before, .hero-art:after { content:""; position:absolute; border-radius:50%; background:rgba(124,165,109,.16); }
.hero-art:before { width:215px; height:215px; left:50%; bottom:-65px; transform:translateX(-50%); }
.hero-art:after { width:320px; height:120px; left:50%; bottom:-70px; transform:translateX(-50%); background:rgba(23,53,42,.045); }

h1, h2, h3, p { margin-top:0; }
h1 { margin-bottom: 14px; font-size: clamp(38px, 11vw, 66px); line-height:.98; letter-spacing:-.055em; max-width: 760px; }
h2 { margin-bottom: 12px; font-size: clamp(31px, 8vw, 48px); line-height:1.02; letter-spacing:-.045em; }
h3 { margin-bottom: 8px; font-size: 18px; letter-spacing:-.02em; }
.lead { color: var(--ink-2); font-size: clamp(16px, 4.5vw, 19px); line-height:1.55; max-width:660px; }
.subtle { color:var(--muted); line-height:1.55; }

.actions { margin-top:auto; padding-top:24px; display:grid; gap:10px; }
.btn {
  min-height: 56px; border:0; border-radius:17px; padding:14px 18px;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-weight:800; cursor:pointer; transition:transform .12s ease, background .15s ease, opacity .15s ease;
  text-decoration:none;
}
.btn:active { transform:scale(.985); }
.btn-primary { background:var(--ink); color:#fff; box-shadow:0 12px 30px rgba(23,53,42,.18); }
.btn-primary:hover { background:#102c22; }
.btn-soft { background:rgba(255,253,249,.76); border:1px solid var(--line); color:var(--ink); }
.btn-ghost { background:transparent; color:var(--muted); }
.btn svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.btn[disabled] { opacity:.46; cursor:not-allowed; }

.choice-grid { display:grid; gap:12px; margin-top:26px; }
.choice {
  width:100%; text-align:left; border:1px solid rgba(23,53,42,.10); background:rgba(255,253,249,.82);
  box-shadow:0 7px 28px rgba(32,54,43,.055); border-radius:22px; padding:19px;
  display:grid; grid-template-columns:48px minmax(0,1fr) 26px; align-items:center; gap:14px; cursor:pointer;
  transition:transform .15s ease, border .15s ease, background .15s ease;
}
.choice:active { transform:scale(.992); }
.choice:hover { border-color:rgba(95,135,84,.45); background:#fffefa; }
.choice-icon { width:48px; height:48px; border-radius:15px; display:grid; place-items:center; background:var(--accent-soft); color:var(--ink); }
.choice-icon svg, .choice-arrow svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.choice-title { display:block; font-size:16px; font-weight:850; margin-bottom:4px; }
.choice-copy { display:block; color:var(--muted); font-size:13px; line-height:1.4; }
.choice-arrow { color:#8b968f; display:grid; place-items:center; }

.form-stack { display:grid; gap:15px; margin-top:22px; }
.field { display:grid; gap:8px; }
.field label, .field-label { font-size:13px; font-weight:800; color:var(--ink-2); }
.field small { color:var(--muted); line-height:1.4; }
.input, .select, .textarea {
  width:100%; border:1.5px solid var(--line); background:rgba(255,253,249,.94); color:var(--ink);
  border-radius:16px; padding:15px 16px; min-height:54px; outline:none; transition:border-color .15s, box-shadow .15s, background .15s;
  font-size:16px;
}
.textarea { min-height:120px; resize:vertical; line-height:1.5; }
.input:focus, .select:focus, .textarea:focus { border-color:var(--accent-2); box-shadow:0 0 0 4px rgba(95,135,84,.11); background:#fff; }
.input.invalid, .select.invalid, .textarea.invalid { border-color:var(--danger); }
.error { color:var(--danger); font-size:12px; font-weight:700; min-height:0; }

.plant-list { display:grid; gap:14px; margin-top:22px; }
.plant-card {
  background:rgba(255,253,249,.89); border:1px solid rgba(23,53,42,.10); border-radius:22px; padding:17px;
  box-shadow:0 9px 26px rgba(33,55,43,.045);
}
.plant-card-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.plant-number { display:inline-flex; align-items:center; gap:8px; font-weight:850; }
.plant-dot { width:9px; height:9px; background:var(--accent-2); border-radius:50%; }
.remove-btn { border:0; background:transparent; color:var(--danger); font-weight:800; font-size:13px; cursor:pointer; padding:7px; }
.plant-grid { display:grid; gap:12px; }
.inline-grid { display:grid; grid-template-columns:minmax(0, .75fr) minmax(0,1.25fr); gap:10px; }
.add-plant {
  width:100%; min-height:56px; border:1.5px dashed rgba(95,135,84,.52); border-radius:18px; background:rgba(232,239,227,.45);
  color:var(--ink); font-weight:850; display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer;
}
.add-plant svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; }

.info-card { margin-top:22px; padding:18px; border-radius:20px; background:rgba(232,239,227,.66); border:1px solid rgba(95,135,84,.16); }
.info-card strong { display:block; margin-bottom:5px; }
.info-card p { margin:0; color:var(--ink-2); line-height:1.5; font-size:14px; }

.segmented { display:grid; gap:10px; margin-top:22px; }
.segment {
  border:1.5px solid var(--line); border-radius:19px; background:rgba(255,253,249,.88); padding:16px;
  display:flex; align-items:center; gap:12px; cursor:pointer; text-align:left;
}
.segment input { position:absolute; opacity:0; pointer-events:none; }
.radio-ui { width:22px; height:22px; border-radius:50%; border:2px solid #aab3ad; display:grid; place-items:center; flex:none; }
.radio-ui:after { content:""; width:10px; height:10px; border-radius:50%; background:var(--accent-2); transform:scale(0); transition:.15s; }
.segment.selected { border-color:var(--accent-2); background:#fbfdf9; box-shadow:0 0 0 3px rgba(95,135,84,.08); }
.segment.selected .radio-ui { border-color:var(--accent-2); }
.segment.selected .radio-ui:after { transform:scale(1); }
.segment-copy strong { display:block; margin-bottom:3px; }
.segment-copy span { color:var(--muted); font-size:13px; }

.summary { display:grid; gap:12px; margin-top:22px; }
.summary-card { background:rgba(255,253,249,.88); border:1px solid rgba(23,53,42,.09); border-radius:21px; padding:17px; }
.summary-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.summary-head strong { font-size:15px; }
.edit-link { border:0; background:transparent; color:var(--accent-2); font-weight:850; cursor:pointer; padding:4px; }
.summary-row { display:flex; justify-content:space-between; gap:18px; padding:6px 0; color:var(--ink-2); font-size:14px; }
.summary-row span:first-child { color:var(--muted); }
.summary-plants { display:grid; gap:9px; }
.summary-plant { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:start; padding:9px 0; border-top:1px solid rgba(23,53,42,.07); }
.summary-plant:first-child { border-top:0; padding-top:0; }
.summary-plant b { font-size:14px; }
.summary-plant small { color:var(--muted); display:block; margin-top:2px; }

.checkline { margin-top:18px; display:flex; align-items:flex-start; gap:11px; color:var(--ink-2); font-size:13px; line-height:1.5; }
.checkline input { width:20px; height:20px; accent-color:var(--ink); flex:none; margin-top:1px; }

.success { justify-content:center; text-align:center; align-items:center; }
.success-orbit { width:150px; height:150px; border-radius:50%; background:var(--accent-soft); display:grid; place-items:center; position:relative; margin-bottom:28px; }
.success-orbit:before, .success-orbit:after { content:""; position:absolute; border:1px solid rgba(95,135,84,.22); border-radius:50%; }
.success-orbit:before { inset:-14px; }
.success-orbit:after { inset:-28px; opacity:.5; }
.success-icon { width:80px; height:80px; border-radius:50%; background:var(--ink); color:#fff; display:grid; place-items:center; z-index:1; }
.success-icon svg { width:38px; height:38px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.success h2 { max-width:580px; }
.success .lead { max-width:580px; }
.ref-pill { margin-top:16px; padding:10px 14px; background:rgba(255,253,249,.84); border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:13px; }

.spinner { width:18px; height:18px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.toast { position:fixed; left:50%; bottom:calc(18px + env(safe-area-inset-bottom)); transform:translate(-50%, 18px); background:var(--ink); color:#fff; padding:12px 16px; border-radius:14px; font-size:13px; font-weight:750; opacity:0; pointer-events:none; transition:.2s; z-index:99; box-shadow:var(--shadow); max-width:calc(100% - 30px); text-align:center; }
.toast.show { opacity:1; transform:translate(-50%, 0); }

@media (min-width: 700px) {
  .topbar { min-height:78px; }
  .brand { font-size:15px; }
  .screen { padding:44px 28px 40px; }
  .hero { min-height:calc(100dvh - 80px); }
  .hero-art { height:210px; }
  .choice-grid { grid-template-columns:repeat(3,1fr); }
  .choice { grid-template-columns:1fr; align-content:start; min-height:180px; }
  .choice-arrow { display:none; }
  .choice-icon { width:54px; height:54px; }
  .plant-card { padding:20px; }
  .plant-grid { grid-template-columns:minmax(0,1.7fr) minmax(120px,.7fr) minmax(180px,1fr); align-items:end; }
  .inline-grid { display:contents; }
  .actions { grid-template-columns:1fr; }
  .btn { min-height:58px; }
}

@media (min-width: 980px) {
  .screen { width:min(100%,900px); }
  body:before { content:""; position:fixed; inset:0; pointer-events:none; background:linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.09) 18% 18.1%, transparent 18.1% 82%, rgba(255,255,255,.09) 82% 82.1%, transparent 82.1%); }
}

@media (max-height: 700px) and (max-width:699px) {
  .screen { padding-top:20px; }
  .hero { justify-content:flex-start; }
  .hero-art { height:125px; margin-top:2px; }
  .hero-art .pot { transform:translateX(-50%) scale(.8); transform-origin:bottom center; }
  .hero-art .stem, .hero-art .leaf { transform-origin:bottom center; }
  h1 { font-size:38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* v3.2 — bezpieczny nagłówek + pełniejszy ekran startowy */
.brand {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  overflow: hidden;
}
.brand span:last-child {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-screen {
  justify-content: flex-start;
  gap: 22px;
  padding-top: 18px;
  padding-bottom: 30px;
}
.home-intro { display: grid; gap: 14px; }
.home-hero-grid { display: grid; gap: 10px; }
.home-copy h1 { margin-top: 18px; }
.home-art {
  height: 142px;
  margin: 0;
}
.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.home-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,253,249,.82);
  border: 1px solid rgba(23,53,42,.09);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
}
.home-pills svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-explainer {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,253,249,.72);
  border: 1px solid rgba(23,53,42,.08);
  box-shadow: 0 12px 32px rgba(33,55,43,.045);
}
.home-section-head { margin-bottom: 14px; }
.home-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-section-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}
.home-process { display: grid; gap: 4px; }
.process-card {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(23,53,42,.07);
}
.process-card:first-child { border-top: 0; }
.process-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.process-card strong {
  display: block;
  margin: 1px 0 4px;
  font-size: 14px;
}
.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.home-callout {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  gap: 13px;
  align-items: start;
  padding: 17px;
  border-radius: 20px;
  background: rgba(232,239,227,.68);
  border: 1px solid rgba(95,135,84,.15);
}
.home-callout-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  color: var(--ink);
}
.home-callout-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-callout strong { display:block; margin: 1px 0 4px; font-size: 14px; }
.home-callout p { margin:0; color:var(--ink-2); font-size:13px; line-height:1.45; }
.home-actions { margin-top: 0; padding-top: 2px; }
.home-disclaimer { text-align:center; font-size:12px; margin:2px 4px 0; }

@media (max-width: 390px) {
  .topbar {
    grid-template-columns: 38px minmax(0,1fr) 38px;
    gap: 5px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .topbar-spacer { width: 38px; }
  .icon-btn { width: 38px; height: 38px; }
  .brand { gap: 7px; font-size: 12.5px; }
  .brand-mark { width: 27px; height: 27px; }
  .brand-mark svg { width: 16px; height: 16px; }
  .home-screen { padding-left: 16px; padding-right: 16px; }
  .home-copy h1 { font-size: 39px; }
  .home-art { height: 126px; }
}

@media (min-width: 700px) {
  .home-screen { gap: 26px; padding-top: 30px; }
  .home-hero-grid {
    grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr);
    align-items: center;
    gap: 28px;
  }
  .home-art { height: 230px; }
  .home-copy h1 { margin-top: 18px; }
  .home-process { grid-template-columns: repeat(3,1fr); gap: 12px; }
  .process-card {
    display: block;
    border-top: 0;
    border-left: 1px solid rgba(23,53,42,.07);
    padding: 8px 14px;
  }
  .process-card:first-child { border-left: 0; padding-left: 0; }
  .process-number { margin-bottom: 10px; }
  .home-explainer { padding: 24px; }
  .home-actions { max-width: 520px; width:100%; margin: 0 auto; }
}


/* v3.3 — tylko ikonka w nagłówku, bez ucinania */
.topbar {
  grid-template-columns: 44px auto 1fr;
}
.brand {
  width: auto;
  max-width: none;
  justify-self: start;
  justify-content: flex-start;
  overflow: visible;
  gap: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  overflow: visible;
}
.brand-mark svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}
@media (max-width: 390px) {
  .topbar {
    grid-template-columns: 38px auto 1fr;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .brand-mark svg {
    width: 18px;
    height: 18px;
  }
}


/* v3.4 — bez ilustracji rośliny na ekranie startowym */
.home-hero-grid {
  display: block;
}
.home-copy {
  max-width: 760px;
}
@media (min-width: 700px) {
  .home-hero-grid {
    display: block;
  }
}


/* v3.5 — CTA nad foldem + mobilne sticky CTA */
.home-copy .lead {
  max-width: 650px;
  margin-bottom: 0;
}
.home-primary-action {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  max-width: 560px;
}
.home-primary-btn {
  width: 100%;
  min-height: 60px;
  font-size: 16px;
}
.home-cta-meta {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.home-cta-meta strong { color: var(--ink-2); }
.home-pills { margin-top: 14px; }
.home-secondary-cta { width: 100%; }
.home-sticky-cta { display: none; }

@media (max-width: 699px) {
  .home-screen {
    padding-top: 10px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
    gap: 20px;
  }
  .home-copy h1 {
    margin-top: 14px;
    margin-bottom: 12px;
  }
  .home-copy .lead {
    font-size: 15px;
    line-height: 1.48;
  }
  .home-primary-action { margin-top: 18px; }
  .home-primary-btn { min-height: 58px; }
  .home-pills {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .home-pills span {
    width: fit-content;
    min-height: 30px;
    padding: 5px 9px;
    background: transparent;
    border-color: transparent;
  }
  .home-sticky-cta {
    position: fixed;
    z-index: 70;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: linear-gradient(to top, rgba(245,241,233,.98) 72%, rgba(245,241,233,0));
    opacity: 0;
    transform: translateY(110%);
    pointer-events: none;
    transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1);
  }
  .home-sticky-cta.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .home-sticky-cta .btn {
    width: min(100%, 520px);
    margin: 0 auto;
    min-height: 56px;
    box-shadow: 0 12px 34px rgba(23,53,42,.23);
  }
}

@media (max-width: 390px) {
  .home-copy h1 { font-size: 37px; }
  .home-primary-action { margin-top: 16px; }
}

@media (min-width: 700px) {
  .home-primary-action { margin-top: 25px; }
  .home-primary-btn { width: auto; min-width: 330px; }
  .home-cta-meta { justify-content: flex-start; padding-left: 2px; }
}


/* v3.6 — prywatność, dokumenty i dane spółki */
.privacy-locked { overflow: hidden !important; }
.privacy-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: stretch;
  background: rgba(15, 31, 24, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.privacy-panel {
  width: 100%; min-height: 100dvh; overflow-y: auto;
  background: var(--paper);
  display: flex; justify-content: center;
}
.privacy-main {
  width: min(100%, 720px); min-height: 100dvh;
  padding: max(28px, calc(20px + env(safe-area-inset-top))) 20px max(24px, calc(18px + env(safe-area-inset-bottom)));
  display: flex; flex-direction: column; justify-content: center;
}
.privacy-badge {
  align-self: flex-start; padding: 7px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-2); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
}
.privacy-main h2 { margin: 18px 0 14px; font-size: clamp(34px, 9vw, 52px); }
.privacy-lead { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.58; }
.privacy-facts { display: grid; gap: 9px; margin: 24px 0 2px; }
.privacy-facts > div, .privacy-setting-row {
  padding: 15px 16px; border: 1px solid rgba(23,53,42,.09); border-radius: 18px; background: rgba(255,253,249,.8);
}
.privacy-facts strong, .privacy-setting-row strong { display:block; margin-bottom:4px; font-size:14px; }
.privacy-facts span, .privacy-setting-row span { display:block; color:var(--muted); font-size:12.5px; line-height:1.45; }
.privacy-actions { display:grid; gap:10px; margin-top:24px; }
.privacy-customize { min-height:44px; }
.privacy-links { display:flex; justify-content:center; flex-wrap:wrap; gap:8px 15px; margin-top:18px; }
.privacy-links a { color:var(--ink-2); font-size:12px; font-weight:750; text-underline-offset:3px; }
.privacy-company { margin:18px 0 0; text-align:center; color:var(--muted); font-size:11px; line-height:1.5; }
.privacy-settings-view { justify-content:flex-start; }
.privacy-back { align-self:flex-start; border:0; background:transparent; color:var(--ink-2); font-weight:800; padding:7px 0 18px; cursor:pointer; }
.privacy-setting-row { margin-top:10px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; }
.privacy-setting-row > div span { margin-top:4px; }
.privacy-always, .privacy-off { color:var(--accent-2) !important; font-weight:850; white-space:nowrap; }
.disabled-setting { opacity:.72; }
.privacy-toggle-row { cursor:pointer; position:relative; }
.privacy-toggle-row input { position:absolute; opacity:0; pointer-events:none; }
.toggle-ui { width:48px; height:28px; border-radius:999px; background:#cfd5d0; position:relative; transition:.18s; }
.toggle-ui:after { content:""; position:absolute; width:22px; height:22px; left:3px; top:3px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.16); transition:.18s; }
.privacy-toggle-row input:checked + .toggle-ui { background:var(--accent-2); }
.privacy-toggle-row input:checked + .toggle-ui:after { transform:translateX(20px); }
.legal-footer { margin-top: 4px; padding: 20px 4px 4px; border-top:1px solid rgba(23,53,42,.08); text-align:center; }
.legal-footer-links { display:flex; justify-content:center; flex-wrap:wrap; gap:8px 15px; }
.legal-footer a, .legal-footer button { border:0; background:transparent; padding:0; color:var(--ink-2); font-size:12px; font-weight:750; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.legal-footer p { margin:14px auto 0; max-width:600px; color:var(--muted); font-size:10.5px; line-height:1.55; }
.legal-summary-note { margin-top:18px; padding:16px; border-radius:18px; background:var(--accent-soft); border:1px solid rgba(95,135,84,.16); }
.legal-summary-note strong { display:block; margin-bottom:6px; }
.legal-summary-note p { margin:0 0 8px; color:var(--ink-2); font-size:13px; line-height:1.5; }
.legal-summary-note a, .legal-accept a { color:var(--ink); font-weight:800; text-underline-offset:3px; }
.legal-accept { margin-top:14px; }
@media (min-width:700px) {
  .privacy-gate { padding:28px; place-items:center; }
  .privacy-panel { width:min(100%,760px); min-height:0; max-height:calc(100dvh - 56px); border-radius:30px; box-shadow:0 30px 90px rgba(0,0,0,.22); }
  .privacy-main { min-height:0; padding:40px; }
  .privacy-actions { grid-template-columns:1fr 1fr; }
  .privacy-customize { grid-column:1/-1; }
}

/* strony dokumentów prawnych */
.legal-doc-body { min-height:100dvh; overflow:auto; }
.legal-doc-shell { width:min(100% - 28px, 820px); margin:0 auto; padding:28px 0 56px; }
.legal-doc-top { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:28px; }
.legal-doc-back { color:var(--ink); text-decoration:none; font-weight:850; font-size:14px; }
.legal-doc-version { color:var(--muted); font-size:12px; }
.legal-doc-card { background:rgba(255,253,249,.9); border:1px solid rgba(23,53,42,.08); border-radius:28px; padding:22px 18px; box-shadow:0 18px 55px rgba(33,55,43,.07); }
.legal-doc-card h1 { font-size:clamp(34px,9vw,52px); margin:6px 0 12px; }
.legal-doc-card h2 { font-size:22px; margin:30px 0 10px; letter-spacing:-.025em; }
.legal-doc-card h3 { font-size:16px; margin:20px 0 7px; }
.legal-doc-card p, .legal-doc-card li { color:var(--ink-2); font-size:14px; line-height:1.65; }
.legal-doc-card ul, .legal-doc-card ol { padding-left:22px; }
.legal-doc-card a { color:var(--ink); font-weight:750; text-underline-offset:3px; }
.legal-doc-card .legal-lead { font-size:16px; color:var(--ink-2); }
.legal-company-box { margin:18px 0 24px; padding:16px; border-radius:18px; background:var(--accent-soft); border:1px solid rgba(95,135,84,.15); }
.legal-company-box p { margin:0; }
.legal-table-wrap { overflow-x:auto; margin:14px 0; }
.legal-table { width:100%; border-collapse:collapse; min-width:620px; }
.legal-table th, .legal-table td { text-align:left; vertical-align:top; padding:12px 10px; border-bottom:1px solid rgba(23,53,42,.1); font-size:13px; line-height:1.5; }
.legal-table th { color:var(--ink); }
.legal-note { padding:14px 16px; border-left:4px solid var(--accent-2); background:rgba(232,239,227,.56); border-radius:0 14px 14px 0; }
.legal-note p { margin:0; }
.legal-doc-footer { margin-top:22px; text-align:center; color:var(--muted); font-size:11px; line-height:1.55; }
@media (min-width:700px) { .legal-doc-shell{padding-top:44px}.legal-doc-card{padding:38px 42px}.legal-doc-card h2{margin-top:36px} }

/* v3.9 — załączniki */
.upload-zone {
  margin-top: 24px;
  min-height: 190px;
  border: 1.5px dashed rgba(95,135,84,.55);
  border-radius: 24px;
  background: rgba(232,239,227,.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  padding: 24px 18px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.upload-zone:hover, .upload-zone.dragging {
  border-color: var(--accent-2);
  background: rgba(232,239,227,.72);
}
.upload-zone.dragging { transform: scale(.995); }
.upload-zone input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.upload-zone-icon {
  width: 52px; height: 52px; border-radius: 17px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  margin-bottom: 4px;
}
.upload-zone-icon svg { width: 24px; height: 24px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.upload-zone strong { font-size: 16px; }
.upload-zone > span:not(.upload-zone-icon):not(.upload-zone-button) { color: var(--muted); font-size: 12px; line-height: 1.45; }
.upload-zone-button {
  margin-top: 6px; padding: 9px 13px; border-radius: 12px;
  background: rgba(255,253,249,.92); border: 1px solid var(--line);
  font-size: 12px; font-weight: 850; color: var(--ink);
}
.attachment-list { display: grid; gap: 9px; margin-top: 14px; }
.attachment-item {
  display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: center;
  padding: 11px 12px; border-radius: 16px;
  background: rgba(255,253,249,.88); border: 1px solid rgba(23,53,42,.09);
}
.attachment-file-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .04em;
}
.attachment-file-copy { min-width: 0; display: grid; gap: 3px; }
.attachment-file-copy strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-file-copy span { color: var(--muted); font-size: 11px; }
.attachment-remove { border: 0; background: transparent; color: var(--danger); font-size: 12px; font-weight: 850; padding: 8px 4px; cursor: pointer; }
.attachment-total { margin: 9px 2px 0; color: var(--muted); font-size: 11px; text-align: right; }
.attachment-draft-note { margin: 12px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.summary-files { display: grid; gap: 7px; }
.summary-files span { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 750; }
.summary-files small { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.upload-warning { margin-top: 16px; width: min(100%,520px); padding: 13px 15px; border-radius: 16px; background: #f7e9d9; color: #7b4a20; text-align: left; }
.upload-warning strong { display:block; font-size: 13px; margin-bottom: 3px; }
.upload-warning span { font-size: 12px; line-height: 1.45; }
