.pmx-hero{color-scheme: dark;

  
  --bg:            #191919;
  --navbar:        #242424;
  --text:          #f3f4f2;
  --text-muted:    #a6adb1;
  --accent:        #e5823a;
  --accent-strong: #ed9452;
  --btn:           rgba(239,116,53,.86);
  --btn-hover:     rgba(239,116,53,1);
  --btn-text:      #fff5ee;
  --line:          rgba(255,255,255,.08);

  
  --app-bg:        #2d2d2d;
  --app-head:      #2a2a2a;
  --app-pill:      #4a3a2e;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:    "Instrument Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  
  --phone-w: min(290px, 32vh);
  --phone-h: calc(var(--phone-w) * 2.149);
  --stage-min: 240px;

  --ease: cubic-bezier(.2,.75,.25,1);}
.pmx-hero .hero{position:relative;
  min-height:calc(100svh - var(--pm-nav-h));
  display:flex;
  flex-direction:column;
  isolation:isolate;}
.pmx-hero .bg{position:absolute;
  inset:0;
  z-index:-2;
  overflow:hidden;}
.pmx-hero .bg-img{position:absolute;
  inset:-4% 0 -9% 0;
  background-image:url("../new/hero-bg-xl.jpg");
  background-size:cover;
  background-position:50% 38%;
  transform-origin:50% 40%;
  will-change:transform;}
.pmx-hero .dawn{position:absolute;
  inset:0;
  background:rgba(8,6,4,.3);
  opacity:0;
  pointer-events:none;}
.pmx-hero .glow{position:absolute;
  inset:0;
  background:radial-gradient(40% 46% at 45% 22%, rgba(255,168,78,.55), rgba(255,168,78,0) 72%);
  mix-blend-mode:screen;
  opacity:.22;
  pointer-events:none;}
.pmx-hero .shade{position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(70% 46% at 50% 30%, rgba(16,12,8,.58), rgba(16,12,8,0) 72%),
    linear-gradient(to bottom,
      rgba(16,12,8,.42) 0%,
      rgba(16,12,8,.18) 38%,
      rgba(16,12,8,.10) 54%,
      rgba(25,25,25,.5) 74%,
      rgba(25,25,25,.86) 90%,
      var(--bg) 100%);}
.pmx-hero .copy{position:relative;
  width:100%;
  max-width:1000px;
  margin:0 auto;
  padding-left:max(20px, env(safe-area-inset-left,0px));
  padding-right:max(20px, env(safe-area-inset-right,0px));
  padding-top:clamp(28px, 6.5vh, 84px);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;}
.pmx-hero h1{font-family:var(--display);
  font-weight:500;
  font-size:clamp(2.3rem, min(4.4vw, 7.6vh), 4.25rem);
  line-height:1.06;
  letter-spacing:-.012em;
  margin:0;
  max-width:26ch;
  text-wrap:balance;
  text-shadow:0 2px 30px rgba(0,0,0,.35);}
.pmx-hero h1 .l1,
.pmx-hero h1 .l2{display:block}
.pmx-hero h1{position:relative}
.pmx-hero h1 .w{white-space:nowrap}
.pmx-hero h1.typing .c{opacity:0}
.pmx-hero h1.typing .c.on{opacity:1}
.pmx-hero .caret{position:absolute;
  left:0;top:0;
  width:3px;
  border-radius:2px;
  background:#f0a05c;
  box-shadow:0 0 14px rgba(240,160,92,.7);
  opacity:0;
  pointer-events:none;}
.pmx-hero .caret.blink{animation:pmh-blink .42s steps(1,end) 3 both, pmh-caretOut .2s linear 1.26s forwards}
.pmx-hero h1 .hl{color:#f0a05c}
.pmx-hero h1.lit .hl{background:linear-gradient(105deg,#f0a05c 0%,#f0a05c 42%,#fff2da 50%,#f0a05c 58%,#f0a05c 100%);
  background-size:260% 100%;
  background-position:100% 0;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:none;}
.pmx-hero .sub{margin:clamp(14px,2.4vh,22px) 0 0;
  max-width:50ch;
  font-size:clamp(1rem, 1.18vw, 1.14rem);
  line-height:1.5;
  color:#ece6dd;
  text-wrap:balance;
  text-shadow:0 1px 18px rgba(0,0,0,.45);}
.pmx-hero .hl{color:var(--accent-strong)}
.pmx-hero h1 .hl{color:#f0a05c}
.pmx-hero .sub strong{font-weight:600}
.pmx-hero .btn .store{flex:0 0 auto}
.pmx-hero .ctas{margin-top:clamp(22px,3.6vh,34px);
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:12px 14px;}
.pmx-hero .btn{display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  padding:0 24px 0 26px;
  border-radius:7px;
  font-family:var(--sans);
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  transition:background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);}
.pmx-hero .btn-main{background:var(--btn);
  color:var(--btn-text);
  box-shadow:0 10px 30px rgba(239,116,53,.28);}
.pmx-hero .btn-main:hover{background:var(--btn-hover);transform:translateY(-1px)}
.pmx-hero .btn-main .arr{transition:transform .2s var(--ease)}
.pmx-hero .btn-main:hover .arr{transform:translateX(3px)}
.pmx-hero .btn-alt{color:var(--text);
  background:rgba(20,18,16,.32);
  border:1px solid rgba(243,244,242,.34);
  font-weight:500;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);}
.pmx-hero .btn-alt:hover{border-color:rgba(243,244,242,.7)}
.pmx-hero .micro{list-style:none;
  margin:18px 0 0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;}
.pmx-hero .micro li{display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 13px 6px 10px;
  border-radius:999px;
  background:rgba(18,15,12,.52);
  border:1px solid rgba(229,130,58,.32);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  font-size:13px;
  font-weight:500;
  line-height:1.2;
  color:#ece6dd;
  white-space:nowrap;}
.pmx-hero .micro svg{flex:0 0 auto;color:var(--accent-strong)}
.pmx-hero .stage{position:relative;
  flex:1 1 auto;
  min-height:var(--stage-min);
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding-top:clamp(22px,3.4vh,40px);
  z-index:2;}
.pmx-hero .phone-img{display:block;
  width:var(--phone-w);
  height:auto;
  aspect-ratio:846/1818;
  max-width:none;
  filter:drop-shadow(0 34px 50px rgba(0,0,0,.55)) drop-shadow(0 0 60px rgba(229,130,58,.10));
  will-change:transform;}
.pmx-hero .eyebrow{display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--accent);
  font-size:14px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;}
.pmx-hero .eyebrow::before,
.pmx-hero .eyebrow::after{content:"";
  width:28px;height:1px;
  background:currentColor;
  opacity:.7;}
.pmx-hero :focus-visible{outline:2px solid var(--accent-strong);outline-offset:3px}
@keyframes pmh-pullback{ from{transform:scale(1.34)} to{transform:scale(1)} }
@keyframes pmh-dawn{ 0%,25%{opacity:1} 100%{opacity:0} }
@keyframes pmh-glow{ 0%{opacity:0} 50%{opacity:.8} 100%{opacity:.22} }
@keyframes pmh-rise{ from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
@keyframes pmh-sweep{ from{background-position:100% 0} to{background-position:0 0} }
@keyframes pmh-blink{ 0%{opacity:1} 50%{opacity:0} }
@keyframes pmh-caretOut{ to{opacity:0} }
@keyframes pmh-phoneIn{ from{opacity:0;transform:translateY(110px)} to{opacity:1;transform:none} }
.pmx-hero.intro:not(.go) .bg,
.pmx-hero.intro:not(.go) h1,
.pmx-hero.intro:not(.go) .sub,
.pmx-hero.intro:not(.go) .ctas,
.pmx-hero.intro:not(.go) .micro li,
.pmx-hero.intro:not(.go) .phone-in{opacity:0}
.pmx-hero.go .bg-img{transform-origin:58% 30%;animation:pmh-pullback 1.5s cubic-bezier(.25,.6,.22,1) both}
.pmx-hero.go .dawn{animation:pmh-dawn 1.2s ease-out both}
.pmx-hero.go .glow{animation:pmh-glow 1.7s ease-in-out both}
.pmx-hero.go h1.lit .hl{animation:pmh-sweep .75s cubic-bezier(.45,0,.25,1) both}
.pmx-hero.go .sub{animation:pmh-rise .45s var(--ease) 1.5s both}
.pmx-hero.go .ctas{animation:pmh-rise .45s var(--ease) 1.57s both}
.pmx-hero.go .micro li{animation:pmh-rise .42s var(--ease) 1.67s both}
.pmx-hero.go .micro li:nth-child(2){animation-delay:1.73s}
.pmx-hero.go .micro li:nth-child(3){animation-delay:1.79s}
.pmx-hero.go .phone-in{animation:pmh-phoneIn .75s var(--ease) 1.8s both}
@media (max-width:767px){
.pmx-hero{--phone-w:236px;
    --stage-min:220px;}
.pmx-hero .bg-img{background-image:url("../new/hero-bg-m.jpg");background-position:57% 50%}
.pmx-hero .shade{background:
      linear-gradient(to bottom,
        rgba(16,12,8,.62) 0%,
        rgba(16,12,8,.40) 45%,
        rgba(16,12,8,.14) 60%,
        rgba(25,25,25,.55) 78%,
        rgba(25,25,25,.88) 92%,
        var(--bg) 100%);}
.pmx-hero .copy{padding-top:clamp(28px,6vh,56px)}
.pmx-hero h1{font-size:clamp(1.95rem, 8.4vw, 2.35rem);max-width:none}
.pmx-hero .ctas{width:100%;flex-direction:column;align-items:stretch;max-width:340px}
.pmx-hero .btn{width:100%}
.pmx-hero .card{height:226px}
.pmx-hero .back{padding:10px 14px 8px;font-size:12.5px}
.pmx-hero .app-head{height:52px}
.pmx-hero .status{height:38px}
.pmx-hero .meta{padding:12px 10px 6px}
.pmx-hero .rounds span{width:27px;height:27px}
.pmx-hero .coords{font-size:11px}
}
@media (prefers-reduced-motion:reduce){
.pmx-hero *::before,
.pmx-hero *::after{animation:none!important;transition:none!important}
}

/* ---------- układ: treść na środku ekranu, telefon wyłania się zza dolnej krawędzi ---------- */
.pmx-hero{
  --phone-w: min(350px, 38vh);
  --peek: clamp(130px, 19vh, 200px);           /* ile telefonu widać na starcie */
}
.pmx-hero .hero{
  height:100svh;                               /* pigułka nawigacji unosi się nad zdjęciem */
  min-height:560px;
  justify-content:center;
  padding-bottom:calc(var(--peek) - 3vh);      /* środek liczony nad wystającym telefonem */
}
.pmx-hero .copy{padding-top:0}
.pmx-hero .stage{
  position:absolute;
  left:0;right:0;
  top:calc(100% - var(--peek));
  min-height:0;
  padding-top:0;
}
/* pas przejścia pod hero musi pomieścić resztę telefonu */
.pmx-hero .hero-tail{height:max(34vh, calc(var(--phone-h) - var(--peek) - 110px))}
@media (max-width:767px){
  .pmx-hero{ --phone-w:250px; --peek:120px; }
  .pmx-hero .hero{min-height:600px;padding-bottom:calc(var(--peek) - 1vh)}
  .pmx-hero .copy{padding-top:0}
}
