/* ==========================================================================
   Meridian — meridianapp.pl
   Kolorystyka zgodna z mockupami aplikacji (public/images/screens)
   ========================================================================== */

:root {
  /* Brand */
  --sky: #4a8bf5;            /* kolor logo */
  --primary: #1f5fdb;        /* przyciski w aplikacji */
  --primary-hover: #174cb5;
  --primary-ink: #123d94;

  /* Tła (sidebar / nagłówki kart z aplikacji) */
  --sky-25: #f7faff;
  --sky-50: #eef4fe;
  --sky-100: #e4eefd;
  --sky-200: #d5e4fb;
  --sky-300: #b9d1f7;

  /* Tekst */
  --ink: #0e1a3a;
  --ink-2: #26345a;
  --muted: #56638a;
  --muted-2: #7a86a8;

  /* Linie */
  --border: #d9e4f5;
  --border-strong: #c3d4ef;

  /* Statusy (jak w aplikacji) */
  --danger: #b42318;
  --danger-bg: #fde6e6;
  --success: #1f8a3b;
  --success-bg: #e3f4e7;
  --warn: #b0570c;
  --warn-bg: #fdecd8;

  --white: #ffffff;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 58, .06);
  --shadow: 0 8px 24px -8px rgba(31, 95, 219, .18), 0 2px 6px rgba(14, 26, 58, .05);
  --shadow-lg: 0 30px 60px -20px rgba(31, 95, 219, .28), 0 10px 20px -10px rgba(14, 26, 58, .12);

  --container: 1200px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(31, 95, 219, .6); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--sky-50); color: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--primary); padding-left: 0; padding-right: 0; white-space: normal; text-align: center; line-height: 1.4; }
.btn-ghost:hover { color: var(--primary-hover); }
.btn-ghost .arrow { transition: transform .2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 18px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 30px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 12px 18px; font-size: .95rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.section-tint { background: var(--sky-50); }
.section-tint-soft { background: linear-gradient(180deg, var(--sky-25), #fff); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--sky); border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 120px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(74, 139, 245, .18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(74, 139, 245, .10), transparent 60%),
    linear-gradient(180deg, var(--sky-50), #fff 85%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-grid > *, .statement > *, .monthend-grid > *, .feature > *, .grow > *, .final-grid > * { min-width: 0; }
.hero h1 .accent { color: var(--primary); }
.hero .lead { margin: 26px 0 18px; max-width: 560px; }
.hero-tagline { font-weight: 600; color: var(--ink-2); margin-bottom: 34px; font-size: 1.08rem; }
.hero-tagline span { display: inline-block; margin-right: 10px; }
.hero-tagline span::before { content: "✓"; color: var(--primary); margin-right: 6px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.hero-note { font-size: .92rem; color: var(--muted); }
.hero-note strong { color: var(--ink-2); font-weight: 600; }

.hero-visual { position: relative; }
.browser {
  background: #fff; border-radius: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: var(--sky-50); border-bottom: 1px solid var(--border);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--sky-300); }
.browser-bar .url {
  margin-left: 12px; flex: 1; max-width: 260px; height: 22px; border-radius: 6px;
  background: #fff; border: 1px solid var(--border); font-size: .7rem; color: var(--muted-2);
  display: flex; align-items: center; padding: 0 10px;
}
.hero-visual .browser { transform: perspective(1800px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; width: 112%; }

.float-card {
  position: absolute; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; font-size: .82rem; line-height: 1.35;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .label { color: var(--muted); font-size: .74rem; }
.float-card .value { font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.float-card .value small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.float-kpi { left: -28px; bottom: 54px; min-width: 196px; }
.float-alert { right: -6px; top: -22px; background: var(--danger-bg); border-color: #f6c9c9; color: var(--danger); max-width: 270px; animation-delay: -3s; }
.float-alert strong { display: block; font-weight: 600; }
.float-alert span { color: #9a2a20; font-size: .75rem; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: .74rem; font-weight: 600;
}
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-info { background: var(--sky-100); color: var(--primary); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Problem (statement) ---------- */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.statement h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.statement-body p { font-size: 1.15rem; color: var(--ink-2); }
.statement-body p.highlight {
  margin-top: 28px; padding: 22px 24px; background: var(--sky-50); border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-weight: 500;
}
.scatter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.scatter span {
  font-size: .85rem; font-weight: 600; padding: 7px 12px; border-radius: var(--radius-sm);
  background: #fff; border: 1px dashed var(--border-strong); color: var(--muted);
}

/* ---------- Tiles (problems) ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  grid-column: span 2; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tile:nth-child(4), .tile:nth-child(5) { grid-column: span 3; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-300); }
.tile-icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--sky-100); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 6px;
}
.tile-icon svg { width: 24px; height: 24px; }
.tile p { color: var(--muted); margin: 0; }
.tiles-cta { margin-top: 40px; text-align: center; }

/* ---------- Month end ---------- */
.monthend {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(74, 139, 245, .35), transparent 60%),
    linear-gradient(160deg, #0f2a66 0%, #0e1a3a 70%);
  color: #fff; overflow: hidden;
}
.monthend h2, .monthend h3 { color: #fff; }
.monthend .eyebrow { color: #9cc0ff; }
.monthend .eyebrow::before { background: #9cc0ff; }
.monthend-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.monthend p { color: #c9d7f3; font-size: 1.12rem; }
.monthend .big { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; }
.monthend .big em { font-style: normal; color: #9cc0ff; }

.flow { list-style: none; margin: 34px 0 30px; padding: 0; display: grid; gap: 10px; }
.flow li {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  color: #dbe6fb; font-weight: 500; transition: all .4s;
}
.flow li .dot {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1.5px solid rgba(156, 192, 255, .5); font-size: .8rem; font-weight: 700; color: #9cc0ff; transition: all .4s;
}
.flow li.is-done .dot { background: #9cc0ff; color: #0e1a3a; border-color: #9cc0ff; }
.flow li.is-active { background: rgba(74, 139, 245, .22); border-color: rgba(156, 192, 255, .55); color: #fff; transform: translateX(6px); }
.flow li.is-active .dot { background: var(--sky); border-color: var(--sky); color: #fff; }
.monthend .footnote { font-size: 1rem; color: #9fb3dc; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; }

.settle-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.settle-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; background: var(--sky-100); }
.settle-head h4 { font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.settle-head .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--sky-200); color: var(--primary); display: grid; place-items: center; }
.settle-head .ic svg { width: 16px; height: 16px; }
.settle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--border); font-size: .9rem; }
.settle-row .t { font-weight: 600; }
.settle-row .s { color: var(--primary); font-size: .8rem; }
.settle-row .r { text-align: right; font-size: .78rem; color: var(--muted); display: grid; gap: 4px; justify-items: end; }
.settle-progress { padding: 18px 22px 22px; border-top: 1px solid var(--border); background: var(--sky-25); }
.settle-progress .lbl { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.bar { height: 8px; border-radius: 999px; background: var(--sky-200); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Owner value (questions) ---------- */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.q {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; font-weight: 600; color: var(--ink-2); line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.q:hover { border-color: var(--sky-300); box-shadow: var(--shadow-sm); }
.q::before {
  content: "?"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky-100); color: var(--primary); font-weight: 700; font-size: .9rem;
}
.quote-band {
  margin-top: 56px; text-align: center; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.35; color: var(--ink); max-width: 880px; margin-left: auto; margin-right: auto;
}
.quote-band span { color: var(--primary); }

/* ---------- Features ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.reverse { grid-template-columns: 1.25fr 1fr; }
.feature.reverse .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.025em; margin-bottom: 16px; }
.feature-text > p { color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: var(--sky-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fdb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.feature-tag { font-size: .8rem; font-weight: 700; color: var(--primary); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.feature-shot .browser { box-shadow: var(--shadow-lg); }
.feature-shot img { width: 100%; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 30px;
  display: flex; flex-direction: column; position: relative;
}
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  letter-spacing: .04em; white-space: nowrap;
}
.plan h3 { font-size: 1.25rem; }
.plan .plan-desc { color: var(--muted); font-size: .95rem; margin: 8px 0 22px; min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price strong { font-size: 2.6rem; letter-spacing: -.035em; line-height: 1; }
.price span { color: var(--muted); font-size: .95rem; }
.price-note { color: var(--muted-2); font-size: .85rem; margin-bottom: 24px; }
.plan .checks { margin: 0 0 30px; font-size: .95rem; flex: 1; }
.compare { margin-top: 64px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.compare th, .compare td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--sky-100); font-weight: 700; font-size: .9rem; }
.compare thead th.hl { background: var(--primary); color: #fff; }
.compare td.hl { background: var(--sky-25); font-weight: 600; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--success); font-weight: 700; }
.no { color: var(--muted-2); }

/* ---------- Grows with you ---------- */
.grow {
  border-radius: 24px; padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  background:
    radial-gradient(600px 300px at 100% 100%, rgba(74, 139, 245, .25), transparent 60%),
    var(--sky-100);
  border: 1px solid var(--sky-200);
}
.grow h2 { margin-bottom: 20px; }
.grow p { color: var(--ink-2); font-size: 1.12rem; }
.grow-list { display: grid; gap: 14px; }
.grow-item {
  background: #fff; border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow-sm); font-weight: 600;
}
.grow-item small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.grow-item .tile-icon { margin: 0; flex: none; width: 40px; height: 40px; }
.grow-item .tile-icon svg { width: 20px; height: 20px; }

/* ---------- Security ---------- */
.security { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sec-item { padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.sec-item h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.sec-item p { color: var(--muted); font-size: .95rem; margin: 0; }
.center-link { text-align: center; margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--sky-300); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fdb' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Final CTA + form ---------- */
.final { background: linear-gradient(180deg, #fff, var(--sky-50)); }
.final-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.final h2 { margin-bottom: 20px; }
.final .lead { margin-bottom: 32px; }
.self-start {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 18px;
}
.self-start h3 { margin-bottom: 6px; }
.self-start p { color: var(--muted); font-size: .95rem; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-weight: 600; font-size: .9rem; margin: 26px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.form-card-head { background: var(--sky-100); padding: 22px 30px; }
.form-card-head h3 { font-size: 1.3rem; }
.form-card-head p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.form { padding: 28px 30px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--muted-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink); width: 100%;
  padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--sky-25);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(31, 95, 219, .14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fff8f8; }
.field .error { color: var(--danger); font-size: .8rem; display: none; }
.field.has-error .error { display: block; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; font-size: .82rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.consent.has-error { color: var(--danger); }
.form .btn { grid-column: 1 / -1; }
.form-success { display: none; padding: 48px 30px; text-align: center; }
.form-success .tile-icon { margin: 0 auto 18px; background: var(--success-bg); color: var(--success); width: 56px; height: 56px; border-radius: 50%; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--muted); }
.form-card.is-sent .form { display: none; }
.form-card.is-sent .form-success { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aebbd9; padding: 70px 0 34px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 28px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #aebbd9; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Subpages ---------- */
.page-hero { padding: 90px 0 70px; background: linear-gradient(180deg, var(--sky-50), #fff); }
.page-hero .lead { margin-top: 22px; max-width: 720px; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 8px; color: var(--muted-2); }

.problem-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.problem-card + .problem-card { margin-top: 24px; }
.problem-card-head { display: flex; align-items: center; gap: 16px; padding: 22px 28px; background: var(--sky-100); }
.problem-card-head .tile-icon { margin: 0; background: #fff; flex: none; }
.problem-card-head h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.problem-card-head .num { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--primary); }
.pidf { display: grid; grid-template-columns: repeat(4, 1fr); }
.pidf > div { padding: 24px 26px; border-right: 1px solid var(--border); }
.pidf > div:last-child { border-right: 0; background: var(--sky-25); }
.pidf h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pidf h4 i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--sky-100); display: grid; place-items: center; font-size: .7rem; }
.pidf p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.legend span { font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--ink-2); }

.sec-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.sec-detail .sec-item h3 { font-size: 1.15rem; }
.sec-detail .sec-item ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: .95rem; }
.sec-detail .sec-item li + li { margin-top: 6px; }

.cta-band {
  border-radius: 24px; padding: 56px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 50% 0%, rgba(74, 139, 245, .45), transparent 70%), linear-gradient(160deg, #0f2a66, #0e1a3a);
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #c9d7f3; font-size: 1.1rem; margin-bottom: 30px; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 760px; margin: 20px auto 0; }
  .hero-visual .browser { transform: none; width: 100%; }
  .float-kpi { left: -10px; }
  .security { grid-template-columns: repeat(2, 1fr); }
  .questions { grid-template-columns: repeat(2, 1fr); }
  .pidf { grid-template-columns: repeat(2, 1fr); }
  .pidf > div:nth-child(2) { border-right: 0; }
  .pidf > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s;
  }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .header-cta .btn-outline { display: none; }

  section { padding: 80px 0; }
  .statement, .monthend-grid, .feature, .feature.reverse, .grow, .final-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-text { order: 0; }
  .feature + .feature { margin-top: 80px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile, .tile:nth-child(4), .tile:nth-child(5) { grid-column: span 1; }
  .tile:nth-child(5) { grid-column: 1 / -1; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan.featured { transform: none; }
  .grow { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec-detail { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-inner { height: 68px; }
  .main-nav { inset: 68px 0 auto 0; padding: 8px 16px 20px; }
  .brand img { height: 26px; }
  .header-cta .btn-primary { padding: 10px 14px; font-size: .88rem; }
  .hero { padding: 48px 0 80px; }
  .hero-actions .btn { width: 100%; }
  .float-card { display: none; }
  .tiles, .questions, .security { grid-template-columns: 1fr; }
  .tile:nth-child(5) { grid-column: auto; }
  .form { grid-template-columns: 1fr; padding: 22px 20px 26px; }
  .form-card-head { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pidf { grid-template-columns: 1fr; }
  .pidf > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .pidf > div:last-child { border-bottom: 0; }
  .problem-card-head { padding: 18px 20px; }
  .problem-card-head .num { display: none; }
  .cta-band { padding: 40px 22px; }
  .settle-row { flex-direction: column; align-items: flex-start; }
  .settle-row .r { justify-items: start; text-align: left; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* CTA w menu mobilnym */
.main-nav .nav-mobile-cta { display: none; }
@media (max-width: 600px) {
  .header-cta .btn { display: none; }
  .main-nav .nav-mobile-cta { display: inline-flex; margin-top: 16px; color: #fff; border-bottom: 0; padding: 15px 24px; }
}
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
}

/* Przycisk w hero */
.hero-actions .btn-primary { background: #2764E9; }
.hero-actions .btn-primary:hover { background: var(--primary-hover); }

/* Hero: mniejszy nagłówek, odstęp do przycisku, mniejsza grafika */
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero h1 + .hero-actions { margin-top: 32px; }
.hero-visual .browser { width: 100%; }

/* Koniec miesiąca: mniejsze hasło */
.monthend .big { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; }
.settle-card + .footnote { margin-top: 28px; }
.monthend .eyebrow::before { display: none; }

/* Bezpieczeństwo: klucz kancelarii */
.sec-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sec-key-item {
  padding: 32px 28px; border-radius: var(--radius-lg); background: #fff;
  border: 2px solid var(--sky-300); box-shadow: var(--shadow);
}
.sec-key-item .tile-icon { background: var(--primary); color: #fff; }
.sec-key-item h3 { font-size: 1.25rem; margin: 16px 0 8px; }
.sec-key-item p { color: var(--muted); margin: 0; }
.sec-quote {
  margin: 40px 0 0; padding: 32px 36px; border-radius: var(--radius-lg); text-align: center;
  background: linear-gradient(160deg, #0f2a66 0%, #0e1a3a 80%); color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.4;
}
.sec-quote span { color: #9cc0ff; }
.sec-more-title { margin: 56px 0 20px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
@media (max-width: 920px) {
  .sec-key { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sec-quote { padding: 26px 22px; }
}
#funkcje .eyebrow::before { display: none; }

/* Cennik: wyróżniona liczba użytkowników */
.plan-users {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 26px; padding: 12px 16px;
  background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: var(--radius);
  color: var(--ink-2); font-weight: 600; font-size: 1rem;
}
.plan-users svg { width: 22px; height: 22px; flex: none; color: var(--primary); }
.plan-users strong { font-size: 1.3rem; color: var(--primary); letter-spacing: -.02em; }
.plan.featured .plan-users { background: var(--primary); border-color: var(--primary); color: #fff; }
.plan.featured .plan-users svg, .plan.featured .plan-users strong { color: #fff; }

/* Cennik: mniejsze ceny, elementy kart wyrównane do jednego poziomu */
.price strong { font-size: 2.1rem; }
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .plan .price { align-self: end; }
  .plan .checks { align-self: start; }
  .plan > .btn { align-self: end; }
  .plan.featured { padding: 33px 29px; }
}
#kontakt .eyebrow::before { display: none; }
@media (min-width: 1081px) {
  #bezpieczenstwo .security { grid-template-columns: repeat(3, 1fr); }
}

/* Zacznij teraz: ciemna sekcja z formularzem (wzorowana na zenqa.pl) */
#kontakt.final { background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%); color: var(--ink); }
#kontakt .final-grid { align-items: start; }
#kontakt .eyebrow { color: var(--primary); }
#kontakt h2 { color: var(--ink); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.2; margin: 18px 0 20px; }
#kontakt .final-desc { color: var(--ink-2); font-size: 1.15rem; line-height: 1.6; font-weight: 400; }
.final-image { margin-top: 30px; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 35px rgba(3, 8, 30, .45); border: 1px solid rgba(156, 192, 255, .18); }
.final-image img { width: 100%; }

#kontakt .form-card {
  border: 1px solid rgba(31, 95, 219, .25); border-radius: 18px; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(520px 420px at 85% 10%, rgba(156, 192, 255, .55), transparent 65%),
    radial-gradient(520px 520px at 10% 100%, rgba(23, 76, 181, .7), transparent 70%),
    var(--primary);
}
#kontakt .form { padding: 30px 30px 34px; gap: 18px; }
#kontakt .field label { color: #fff; font-weight: 500; font-size: .95rem; }
#kontakt .field label .opt { color: #d6e4ff; }
#kontakt .field input, #kontakt .field select, #kontakt .field textarea {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 8px;
}
#kontakt .field select option { color: var(--ink); }
#kontakt .field textarea::placeholder { color: rgba(255, 255, 255, .7); }
#kontakt .field input:focus, #kontakt .field select:focus, #kontakt .field textarea:focus {
  border-color: rgba(156, 192, 255, .6); box-shadow: 0 0 0 3px rgba(156, 192, 255, .18); background: rgba(255, 255, 255, .2);
}
#kontakt .field.has-error input, #kontakt .field.has-error select, #kontakt .field.has-error textarea { border-color: #ff8a80; background: rgba(120, 20, 20, .25); }
#kontakt .field .error { color: #ffb4ab; }
#kontakt .consent { color: #eaf1ff; }
#kontakt .consent a { color: #fff; text-decoration: underline; }
#kontakt .consent.has-error { color: #ffb4ab; }
#kontakt .form .btn { grid-column: 1 / -1; justify-self: start; background: #fff; color: var(--primary-ink); border-radius: 8px; }
#kontakt .form .btn:hover { background: var(--sky-100); color: var(--primary-ink); transform: translateY(-1px); }
#kontakt .form-success h3 { color: #fff; }
#kontakt .form-success p { color: #dbe5fb; }
@media (max-width: 600px) {
  #kontakt .form { padding: 22px 20px 26px; }
  #kontakt .form .btn { justify-self: stretch; }
}

/* Stopka: te same linki co w menu */
.footer-grid.footer-simple { grid-template-columns: 1fr auto; align-items: start; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer-nav a { color: #aebbd9; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
@media (max-width: 920px) {
  .footer-grid.footer-simple { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .footer-nav ul { flex-direction: column; gap: 12px; }
}

/* Funkcje: wycinek ekranu jako karta */
.shot-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; }
.shot-card img { width: 100%; border-radius: var(--radius); }
.shot-alert {
  position: absolute; right: 18px; top: -30px; padding: 12px 16px; border-radius: 12px;
  background: var(--danger-bg); border: 1px solid #f6c9c9; color: var(--danger); box-shadow: var(--shadow); font-size: .85rem;
}
.shot-alert strong { display: block; font-weight: 600; }
.shot-alert span { color: #9a2a20; font-size: .78rem; }
@media (max-width: 600px) {
  .shot-alert { position: static; margin-top: 10px; }
}

/* Polityka prywatności */
.legal-section { padding-top: 40px; }
.legal { color: var(--ink-2); font-size: 1.02rem; }
.legal-date { color: var(--muted); font-size: .9rem; }
.legal h2 { font-size: 1.3rem; letter-spacing: -.015em; margin: 40px 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li + li { margin-top: 6px; }

/* Formularz: pole-pułapka na boty i komunikat błędu */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: 8px; background: rgba(180, 35, 24, .18); border: 1px solid rgba(255, 180, 171, .5); color: #fff; font-size: .9rem; }

/* Stopka: social media */
.site-footer .footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #aebbd9; transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

/* Menu mobilne: social media */
.main-nav .nav-social { display: none; }
@media (max-width: 920px) {
  .main-nav .nav-social { display: flex; gap: 10px; padding-top: 18px; }
  .main-nav .nav-social a {
    width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 10px;
    display: grid; place-items: center; color: var(--primary); background: var(--sky-50);
  }
  .main-nav .nav-social svg { width: 20px; height: 20px; }
}

/* Zacznij teraz: social media */
.final-social { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.final-social p { color: var(--ink-2); margin: 0 0 14px; }
.final-social p a { font-weight: 600; }
.final-social-icons { display: flex; gap: 10px; }
.final-social-icons a {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border); color: var(--primary); transition: background .2s, color .2s, border-color .2s;
}
.final-social-icons a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.final-social-icons svg { width: 18px; height: 18px; }

/* Przycisk „Wróć na górę” */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; background: var(--primary); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(31, 95, 219, .6);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-hover); }
.to-top:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 3px; }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 600px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* Informacja o cookies */
.cookie-note {
  position: fixed; left: 24px; bottom: 24px; z-index: 45; max-width: 400px;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  font-size: .82rem; color: var(--muted);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.cookie-note.is-visible { opacity: 1; visibility: visible; transform: none; }
.cookie-note p { margin: 0; line-height: 1.45; }
.cookie-note a { font-weight: 600; white-space: nowrap; }
.cookie-ok {
  flex: none; border: 0; cursor: pointer; padding: 7px 14px; border-radius: 8px;
  background: var(--sky-100); color: var(--primary-ink); font: inherit; font-weight: 700;
}
.cookie-ok:hover { background: var(--sky-200); }
@media (max-width: 600px) {
  .cookie-note { left: 12px; right: 72px; bottom: 16px; max-width: none; font-size: .78rem; }
}

/* Nagłówek: menu przy przycisku „Zamów demo” (desktop) */
@media (min-width: 921px) {
  .main-nav { margin-left: auto; margin-right: 12px; }
}
