/* Strona pokazowa w barwach Gminy Przywidz: kolory z jej serwisu i herbu, ta sama rodzina czcionek. */
.lp {
  --navy: #114273;
  --navy-deep: #0c2f54;
  --sky: #148dc9;
  --herb: #006da5;
  --gold: #e9a500;
  --mist: #f2f5f9;
  background: var(--mist);
  color: #12263d;
  font-size: 18px;
  overflow-x: clip;
}
.lp .in { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.lp .narrow { max-width: 880px; }
.lp h1, .lp h2, .lp h3 { letter-spacing: -.022em; }
.lp h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; font-weight: 800; color: var(--navy); }
.lp h3 { font-size: 22px; font-weight: 750; color: var(--navy); }
.lp a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
html:has(body.lp) { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* Górny pasek: biały, jak w serwisie gminy, żeby herb stał na swoim tle */
.lp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 8px clamp(16px, 4vw, 40px); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(17, 66, 115, .12); }
.lp-logos { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.lp-logos img { height: 64px; width: auto; display: block; }
.lp-logos-sep { width: 1px; height: 30px; background: #cfd8e3; }
.lp-wordmark { font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -.02em; }
.lp-nav { display: flex; gap: 24px; margin-left: auto; }
.lp-nav a { color: #2b3f56; text-decoration: none; font-weight: 600; font-size: 16.5px; }
.lp-nav a:hover { color: var(--herb); }
.lp-cta { background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; transition: background .2s; }
.lp-cta:hover { background: var(--herb); }

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(1100px 620px at 82% 8%, rgba(20, 141, 201, .75), transparent 70%), linear-gradient(160deg, var(--navy-deep), var(--navy) 62%, #15568f); overflow: hidden; }
.hero-in { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(44px, 7vw, 92px) clamp(16px, 4vw, 40px) clamp(120px, 14vw, 190px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.kicker { display: inline-block; font-weight: 700; font-size: 15.5px; letter-spacing: .02em; color: #ffd878; margin: 0 0 16px; padding: 5px 13px; border: 1px solid rgba(255, 216, 120, .5); border-radius: 999px; }
.kicker.dark { color: var(--herb); border-color: rgba(0, 109, 165, .32); background: #fff; }
.hero h1 { font-size: clamp(42px, 6.4vw, 82px); line-height: .99; font-weight: 800; letter-spacing: -.032em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.38; color: #dbe8f5; margin: 24px 0 32px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-lg { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: 10px 26px; border-radius: 999px; font-weight: 700; font-size: 18px; text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s; }
.btn-lg:hover { transform: translateY(-2px); }
.btn-lg.gold { background: var(--gold); color: #231a00; box-shadow: 0 10px 28px rgba(233, 165, 0, .35); }
.btn-lg.ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-lg.ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-lg.navy { background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(17, 66, 115, .28); }
.btn-lg.navy:hover { background: var(--herb); }
.hero-visual { position: relative; justify-self: center; width: min(310px, 100%); margin-bottom: -40px; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 12vw, 170px); z-index: 3; display: block; pointer-events: none; }

/* Telefon z prawdziwym zrzutem aplikacji */
.phone { position: relative; background: #081a2e; border-radius: 42px; padding: 11px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22), 0 34px 70px rgba(4, 18, 38, .45); }
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.phone-sm { width: min(300px, 80vw); margin: 0 auto; box-shadow: 0 0 0 1.5px rgba(17, 66, 115, .15), 0 30px 60px rgba(17, 66, 115, .25); }
.float { position: absolute; z-index: 4; background: #fff; color: #12263d; box-shadow: 0 16px 36px rgba(4, 18, 38, .32); animation: bob 6s ease-in-out infinite; }
.float-sms { left: -128px; top: 21%; width: 232px; padding: 11px 15px 13px; border-radius: 18px 18px 18px 5px; font-size: 16px; line-height: 1.28; }
.float-sms small { display: block; color: #5d7086; font-size: 13px; margin-bottom: 2px; }
.float-ok { right: -42px; top: 60%; padding: 9px 16px 10px 11px; border-radius: 999px; font-weight: 700; font-size: 16.5px; display: flex; gap: 8px; align-items: center; animation-delay: -3s; white-space: nowrap; }
.float-ok span { display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--st-ok-bg); color: var(--st-ok); border-radius: 50%; font-weight: 800; font-size: 14px; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* Sekcje */
.sec { padding: clamp(60px, 8vw, 112px) 0; }
.sec-white { background: #fff; }
.sec-head { margin-bottom: clamp(30px, 4vw, 54px); max-width: 780px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.lp .lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.42; color: #40566d; margin: 18px 0 0; max-width: 38em; }
.lp .center-text { text-align: center; margin-inline: auto; }

/* Co zostaje */
.same { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.same li { background: #fff; border-radius: 18px; padding: 24px 22px 26px; box-shadow: 0 1px 2px rgba(17, 66, 115, .06), 0 14px 34px rgba(17, 66, 115, .07); }
.same svg { width: 34px; height: 34px; fill: none; stroke: var(--sky); stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 14px; display: block; }
.same h3 { font-size: 20.5px; margin-bottom: 6px; }
.same p { margin: 0; color: #40566d; font-size: 17px; line-height: 1.36; }

/* Trzy różnice */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trio article { position: relative; border-radius: 22px; padding: 30px 28px 32px; background: linear-gradient(165deg, #f4f8fc, #e7f0f9); overflow: hidden; }
.trio .num { display: block; font-size: 70px; line-height: 1; font-weight: 800; color: var(--sky); opacity: .28; letter-spacing: -.04em; margin-bottom: 8px; }
.trio h3 { font-size: 26px; margin-bottom: 10px; }
.trio p { margin: 0; color: #38506a; line-height: 1.42; }

/* Układ tekst + telefon */
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.split-rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.ticks-lg { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.ticks-lg li { position: relative; padding-left: 36px; line-height: 1.38; color: #2e445c; }
.ticks-lg li::before { content: '✓'; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; }
.ticks-lg strong { color: var(--navy); }
.flow { list-style: none; counter-reset: f; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.flow li { counter-increment: f; position: relative; background: #fff; border-radius: 14px; padding: 13px 18px 14px 58px; box-shadow: 0 8px 24px rgba(17, 66, 115, .07); line-height: 1.34; color: #2e445c; }
.flow li::before { content: counter(f); position: absolute; left: 15px; top: 13px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #231a00; font-weight: 800; }
.flow b { color: var(--navy); }

/* Kontrole */
.sec-navy { background: radial-gradient(900px 500px at 10% 0, rgba(20, 141, 201, .4), transparent 70%), var(--navy-deep); color: #e8f0f8; }
.sec-navy h2 { color: #fff; }
.lp .sec-navy .lead { color: #c5d6e8; }
.funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.funnel div { border-radius: 20px; padding: 24px 26px 26px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); }
.funnel b { display: block; font-size: clamp(50px, 7vw, 78px); line-height: 1; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.funnel span { display: block; margin-top: 10px; color: #c5d6e8; line-height: 1.32; font-size: 18px; }
.funnel .hl { background: var(--gold); border-color: var(--gold); }
.funnel .hl b, .funnel .hl span { color: #231a00; }
.fine { margin: 14px 0 0; font-size: 15px; color: #a4b8cf; }
.screen { margin: 36px 0 0; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(2, 12, 28, .5); }
.screen img { display: block; width: 100%; height: auto; }

/* Pomysły */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { background: var(--mist); border: 1px solid #d6e0ec; color: var(--navy); font-weight: 600; padding: 10px 18px 11px; border-radius: 999px; font-size: 17.5px; }

/* Film */
.film { border-radius: 18px; overflow: hidden; background: var(--navy-deep); box-shadow: 0 30px 70px rgba(17, 66, 115, .3); }
.film video { display: block; width: 100%; height: auto; }

/* Autor */
.author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: start; }
.monogram { width: clamp(110px, 16vw, 190px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 28%; background: linear-gradient(150deg, var(--navy), var(--sky)); color: #fff; font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.04em; box-shadow: 0 20px 44px rgba(17, 66, 115, .28); }
.skills { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { background: var(--mist); color: var(--navy); font-weight: 600; font-size: 16px; padding: 5px 13px 6px; border-radius: 999px; }
.author-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.author-contact { color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }

/* Wejścia do demo */
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.demo-tile { font: inherit; text-align: left; background: #fff; border: 1px solid #d6e0ec; border-radius: 16px; padding: 18px 22px 20px; cursor: pointer; display: grid; gap: 2px; color: #12263d; transition: transform .16s, border-color .16s, box-shadow .16s; }
.demo-tile:hover { transform: translateY(-2px); border-color: var(--sky); box-shadow: 0 12px 28px rgba(17, 66, 115, .13); }
.demo-tile strong { font-size: 20.5px; color: var(--navy); }
.demo-tile span { color: #40566d; font-size: 16px; }

.lp-foot { background: var(--navy-deep); color: #b3c6da; padding: 30px 0 34px; font-size: 15px; }
.lp-foot .in { display: flex; align-items: center; gap: 22px; }
.lp-foot img { height: 56px; width: auto; background: #fff; border-radius: 10px; padding: 3px 8px; flex: 0 0 auto; }
.lp-foot p { margin: 0; line-height: 1.4; }
.lp-foot #stat-note { margin-top: 16px; font-size: 13px; opacity: .8; }

/* Wejście sekcji: tylko gdy działa skrypt, więc bez JS treść i tak jest widoczna */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  html:has(body.lp) { scroll-behavior: auto; }
}

@media (max-width: 1040px) {
  .lp-nav { display: none; }
  .lp-cta { margin-left: auto; }
  .same { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-sms { left: -56px; }
  .float-ok { right: -22px; }
}
@media (max-width: 860px) {
  .hero-in, .split, .split-rev { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { margin-top: 12px; }
  .trio, .funnel { grid-template-columns: minmax(0, 1fr); }
  .split-rev .split-media { order: 2; }
  .author { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .lp { font-size: 17px; }
  .lp-logos img { height: 44px; }
  .lp-logos-sep, .lp-wordmark { display: none; }
  .same, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn-lg { width: 100%; }
  .hero-visual { width: min(250px, 72vw); }
  .float-sms { left: -28px; width: 190px; font-size: 14.5px; }
  .float-ok { right: -14px; font-size: 15px; }
  .lp-foot .in { flex-direction: column; align-items: flex-start; }
}
