/* eWspólnota — strona główna. Bez zewnętrznych zasobów (szybko, prywatnie, zgodnie z CSP). */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f7f6;
  --text: #16211f;
  --muted: #55625f;
  --line: #dbe4e2;
  --brand: #0f766e;
  --brand-dark: #0b5953;
  --brand-soft: #e2f3f1;
  --card: #ffffff;
  --warn: #b45309;  --warn-bg: #fef3c7;
  --info: #1d4ed8;  --info-bg: #dbeafe;
  --ok: #15803d;    --ok-bg: #dcfce7;
  --shadow: 0 1px 2px rgba(16, 24, 23, .06), 0 8px 24px rgba(16, 24, 23, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514;
    --bg-alt: #151d1c;
    --text: #e6eeec;
    --muted: #9fb0ac;
    --line: #26332f;
    --brand: #2dd4bf;
    --brand-dark: #5eead4;
    --brand-soft: #123330;
    --card: #182220;
    --warn: #fbbf24;  --warn-bg: #3b2a0a;
    --info: #93c5fd;  --info-bg: #172a4d;
    --ok: #86efac;    --ok-bg: #12351f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { justify-content: center; }

/* nagłówek */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.logo svg { width: 28px; height: 28px; color: var(--brand); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.menu a:hover { color: var(--text); }

/* przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.top .btn { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-light { background: #fff; color: #0b5953; }
.btn-light:hover { background: #e2f3f1; }
.btn-outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline:hover { border-color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #06201d; }
}
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

/* hero */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--brand-soft), var(--bg) 85%); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.note { color: var(--muted); font-size: .92rem; }

/* makieta aplikacji */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 10px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.mock-body { padding: 10px; display: grid; gap: 10px; }
.mock-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.mock-item p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.mock-item strong { color: var(--text); }
.mock-item em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tag-warn { color: var(--warn); background: var(--warn-bg); }
.tag-info { color: var(--info); background: var(--info-bg); }
.tag-ok { color: var(--ok); background: var(--ok-bg); }

/* sekcje */
.section { padding: 80px 0; }
.alt { background: var(--bg-alt); }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 42em; margin-bottom: 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.card svg { width: 30px; height: 30px; fill: var(--brand); margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.role { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; border-top: 4px solid var(--brand); }
.role ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.role li { margin-bottom: 6px; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 14px; }
.steps b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 1.05rem; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.safe { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.safe .sub { margin-bottom: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 14px 16px 14px 48px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f766e' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7-7 1.4 1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

.price { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.price-card { background: var(--card); border: 2px solid var(--brand); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.price-big { font-size: 3rem; font-weight: 800; color: var(--brand); margin: 0 0 16px; line-height: 1; }
.price-card .checks { margin-bottom: 18px; }
.price-more { color: var(--muted); font-size: .95rem; }
.price-contact { font-size: .95rem; margin-bottom: 20px; }
.foot-in > div { line-height: 1.7; }
.foot-in > div a { color: var(--brand); }

details { border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; background: var(--card); }
summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 6px; }

.final { background: var(--brand); color: #fff; padding: 72px 0; text-align: center; }
@media (prefers-color-scheme: dark) { .final { background: #0b5953; } }
.final h2 { margin-bottom: 8px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* telefon i tablet */
@media (max-width: 900px) {
  .hero-in, .safe, .price { grid-template-columns: 1fr; gap: 40px; }
  .grid, .roles, .steps { grid-template-columns: 1fr 1fr; }
  .menu { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .grid, .roles, .steps { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .mock-item { grid-template-columns: 1fr; gap: 6px; }
}
