/* Podstrona „Praxis-App” (app.php) – omówienie aplikacji. Kolory i czcionki jak na stronie (style.css). */
.app-page { background: var(--bg); }
.ap-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Nagłówek */
.ap-header { position: sticky; top: 0; z-index: 60; background: rgba(11, 46, 48, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.ap-header__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.ap-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.ap-brand img { border-radius: 11px; }
.ap-brand strong { display: block; font: 800 1rem/1.1 var(--serif); }
.ap-brand small { display: block; font-size: .74rem; color: rgba(255, 255, 255, .65); }
.ap-nav { display: none; gap: 2px; margin-left: auto; }
.ap-nav a { padding: 8px 12px; border-radius: 999px; color: rgba(255, 255, 255, .78); font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ap-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ap-header__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ap-nav + .ap-header__end { margin-left: 8px; }
@media (min-width: 1024px) { .ap-nav { display: flex; } }

/* Przyciski */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; background: linear-gradient(135deg, var(--accent-400), var(--accent-500)); color: #fff; font-weight: 800; font-size: 1rem; text-decoration: none; box-shadow: 0 14px 30px rgba(16, 132, 90, .35); transition: transform .2s var(--ease), box-shadow .2s; }
.ap-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(16, 132, 90, .45); }
.ap-btn .icon { width: 20px; height: 20px; }
.ap-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; box-shadow: none; }
.ap-btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.ap-btn--sm { min-height: 40px; padding: 0 16px; font-size: .88rem; box-shadow: none; display: none; }
@media (min-width: 640px) { .ap-btn--sm { display: inline-flex; } }
.ap-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-actions--center { justify-content: center; }

/* Nagłówki sekcji */
.ap-kicker { margin: 0 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-500); }
.ap-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.ap-head h2 { margin: 0 0 14px; font: 800 clamp(2rem, 5vw, 3.2rem)/1.08 var(--serif); letter-spacing: -.01em; color: var(--brand-900); }
.ap-head p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.ap-head--left { margin: 0; text-align: left; }

/* Ekran startowy */
.ap-hero { position: relative; overflow: clip; background: radial-gradient(60% 60% at 75% 40%, rgba(31, 133, 119, .45), transparent 70%), radial-gradient(40% 50% at 15% 90%, rgba(16, 132, 90, .25), transparent 70%), var(--brand-950); color: #fff; }
.ap-hero__in { display: grid; gap: 40px; align-items: center; padding: 56px 0 64px; }
.ap-hero h1 { margin: 0 0 18px; font: 800 clamp(2.5rem, 7vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.02em; }
.ap-lead { margin: 0 0 28px; max-width: 560px; font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: rgba(255, 255, 255, .84); }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.ap-chips li { display: inline-flex; align-items: center; gap: 6px; }
.ap-chips .icon { width: 16px; height: 16px; color: var(--accent-300); }
.ap-hero__phone { margin: 0; display: grid; justify-items: center; gap: 14px; }
.ap-hero__phone figcaption { font-size: .9rem; color: rgba(255, 255, 255, .7); text-align: center; }
@media (min-width: 960px) { .ap-hero__in { grid-template-columns: 1.1fr .9fr; padding: 80px 0 90px; } }

/* Telefon z prawdziwą aplikacją */
.ap-phone { position: relative; width: min(330px, 86vw); aspect-ratio: 330 / 690; padding: 30px 11px 12px; border-radius: 52px; background: #111617; box-shadow: 0 0 0 2px #39403f, 0 0 0 9px rgba(255, 255, 255, .04), 0 40px 90px rgba(0, 0, 0, .45), 0 0 120px rgba(31, 133, 119, .35); }
.ap-phone::before { content: ""; position: absolute; top: 11px; left: 50%; z-index: 2; width: 74px; height: 9px; margin-left: -37px; border-radius: 999px; background: #2a3132; pointer-events: none; }
.ap-phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 26px 26px 40px 40px; background: #f4f7f6; }


/* Funkcje */
.ap-feats { padding: 96px 0; }
.ap-feats__grid { display: grid; gap: 16px; }
.ap-feat { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.ap-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ap-feat__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 16px; background: var(--brand-50); color: var(--brand-800); }
.ap-feat__ico .icon { width: 26px; height: 26px; }
.ap-feat h3 { margin: 0 0 6px; font: 800 1.2rem/1.25 var(--serif); color: var(--brand-900); }
.ap-feat p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (min-width: 640px) { .ap-feats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ap-feats__grid { grid-template-columns: repeat(3, 1fr); } }

/* Prywatność */
.ap-privacy { padding: 96px 0; background: var(--brand-950); color: #fff; }
.ap-privacy .ap-head h2 { color: #fff; }
.ap-privacy__in { display: grid; gap: 40px; align-items: start; }
.ap-link { display: inline-block; margin-top: 8px; color: var(--accent-300); font-weight: 700; text-decoration: none; }
.ap-link:hover { text-decoration: underline; }
.ap-privacy__list { display: grid; gap: 14px; }
.ap-priv { display: flex; gap: 18px; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.ap-priv__n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(95, 211, 155, .15); color: #8fe0b8; font: 800 1.1rem/1 var(--serif); }
.ap-priv h3 { margin: 0 0 4px; font: 800 1.2rem/1.25 var(--serif); }
.ap-priv p { margin: 0; color: rgba(255, 255, 255, .78); }
@media (min-width: 960px) { .ap-privacy__in { grid-template-columns: .9fr 1.1fr; gap: 70px; } }

/* Instalacja */
.ap-install { padding: 96px 0; background: var(--bg-2); }
.ap-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.ap-tabs button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 700 .95rem var(--sans); cursor: pointer; }
.ap-tabs button[aria-selected="true"] { background: var(--brand-800); color: #fff; }
.ap-pane { display: grid; justify-items: center; gap: 26px; }
.ap-pane[hidden] { display: none; }
.ap-install__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; width: 100%; }
.ap-install__steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ap-install__steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 1.05rem; }
.ap-install__steps b { color: var(--ink); }
.ap-step__n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-800); color: #fff; font: 800 1.05rem/1 var(--serif); }
@media (min-width: 900px) { .ap-install__steps { grid-template-columns: repeat(3, 1fr); } .ap-install__steps li { flex-direction: column; } }
.ap-qr { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); max-width: 640px; }
.ap-qr svg { width: 180px; height: 180px; }
.ap-qr p { margin: 0; max-width: 300px; color: var(--ink-2); font-size: 1.05rem; }

/* FAQ */
.ap-faq { padding: 96px 0; }
.ap-faq__in { display: grid; gap: 30px; }
.ap-faq__list { display: grid; gap: 10px; }
.ap-faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ap-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 800; font-size: 1.05rem; color: var(--brand-900); cursor: pointer; list-style: none; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand-800); font-size: 1.3rem; font-weight: 600; transition: transform .25s var(--ease); }
.ap-faq details[open] summary::after { transform: rotate(45deg); }
.ap-faq details p { margin: 0; padding: 0 22px 22px; color: var(--ink-2); }
@media (min-width: 960px) { .ap-faq__in { grid-template-columns: .7fr 1.3fr; gap: 70px; } }

/* Zakończenie i stopka */
.ap-end { padding: 90px 0; background: radial-gradient(50% 70% at 50% 0%, rgba(31, 133, 119, .4), transparent 70%), var(--brand-950); color: #fff; text-align: center; }
.ap-end__in { display: grid; justify-items: center; gap: 10px; }
.ap-end img { border-radius: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); margin-bottom: 8px; }
.ap-end h2 { margin: 0; font: 800 clamp(2rem, 5vw, 3rem)/1.1 var(--serif); }
.ap-end p { margin: 0 0 18px; color: rgba(255, 255, 255, .8); }
.ap-footer { padding: 26px 0; background: #071f20; color: rgba(255, 255, 255, .65); font-size: .88rem; }
.ap-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.ap-footer a { color: rgba(255, 255, 255, .85); }
@media (prefers-reduced-motion: reduce) { .ap-step, .ap-feat, .ap-btn { transition: none; } }
.ap-step__time { align-self: flex-start; width: max-content; }

/* ===== Większy telefon ===== */
.ap-hero__stage { position: relative; display: grid; justify-items: center; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
@media (min-width: 960px) {
  .ap-hero__in { grid-template-columns: 1fr 1fr; }
}

/* ===== Pływające karty przy telefonie ===== */
.ap-badge { position: absolute; z-index: 3; display: none; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--brand-900); font: 700 .9rem/1.2 var(--sans); white-space: nowrap; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); pointer-events: none; }
.ap-badge__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--brand-50); color: var(--brand-800); }
.ap-badge__ico .icon { width: 18px; height: 18px; }
.ap-badge--1 { top: 11%; left: -48%; }
.ap-badge--2 { top: 46%; right: -42%; }
.ap-badge--2 .ap-badge__ico { background: #fde8e8; color: #c02626; }
.ap-badge--3 { bottom: 14%; left: -44%; }
.ap-badge--3 .ap-badge__ico { background: #fff3d6; color: #9a6400; }
@media (min-width: 720px) { .ap-badge { display: inline-flex; } }

/* ===== Animacje ===== */
@keyframes apUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes apRise { from { opacity: 0; transform: translateY(70px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes apFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes apPop { from { opacity: 0; transform: scale(.6) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes apBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes apGlow { 0% { transform: translate(-6%, -4%) scale(1); } 100% { transform: translate(8%, 6%) scale(1.15); } }
@keyframes apSwap { 0% { transform: scale(1); } 40% { transform: scale(.975); } 100% { transform: scale(1); } }

.ap-hero::before { content: ""; position: absolute; inset: -25%; background: radial-gradient(30% 30% at 70% 35%, rgba(71, 196, 170, .28), transparent 70%), radial-gradient(25% 25% at 25% 70%, rgba(31, 133, 119, .3), transparent 70%); pointer-events: none; }
.ap-hero__in { position: relative; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .ap-hero::before { animation: apGlow 16s ease-in-out infinite alternate; }
  .js .ap-hero__text > * { animation: apUp .8s var(--ease) both; }
  .js .ap-hero__text > :nth-child(2) { animation-delay: .1s; }
  .js .ap-hero__text > :nth-child(3) { animation-delay: .2s; }
  .js .ap-hero__text > :nth-child(4) { animation-delay: .3s; }
  .js .ap-hero__text > :nth-child(5) { animation-delay: .4s; }
  .js .ap-hero__stage .ap-dev { animation: apRise 1.1s var(--ease) .15s both, apFloat 6s ease-in-out 1.3s infinite; }
  .js .ap-hero__phone figcaption { animation: apUp .8s var(--ease) .9s both; }
  .js .ap-badge { animation: apPop .6s var(--ease) both, apBob 5s ease-in-out infinite; }
  .js .ap-badge--1 { animation-delay: .9s, 1.5s; }
  .js .ap-badge--2 { animation-delay: 1.15s, 2.3s; }
  .js .ap-badge--3 { animation-delay: 1.4s, 3.1s; }

  /* Pojawianie się przy przewijaniu */
  .js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .ap-feat.is-done { transition: transform .25s var(--ease), box-shadow .25s; }
  .js .ap-feat.is-done:hover { transform: translateY(-6px); }
  .ap-feat__ico { transition: transform .35s var(--ease); }
  .ap-feat:hover .ap-feat__ico { transform: rotate(-8deg) scale(1.1); }
}

/* ===== Jeden dzień: przypięta scena – kółko myszy przełącza kroki jak slajdy ===== */
html { scroll-padding-top: 68px; }
.ap-day { --H: calc(100vh - 68px); position: relative; height: calc((var(--n, 6) + 1) * var(--H)); background: var(--bg-2); }
@supports (height: 100svh) { .ap-day { --H: calc(100svh - 68px); } }
.ap-day__stage { position: sticky; top: 68px; height: var(--H); overflow: clip; display: flex; align-items: center; }
.ap-day__in { width: min(1200px, 100% - 32px); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 56px; }
.ap-day__texts { display: grid; align-items: center; }
.ap-day__intro, .ap-steps { grid-area: 1 / 1; }
.ap-steps { margin: 0; padding: 0; list-style: none; display: grid; align-items: center; }
.ap-step { grid-area: 1 / 1; display: flex; flex-direction: column; }
.ap-day__intro, .ap-step { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.ap-day__intro.is-on, .ap-step.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.ap-day__intro h2 { margin: 0 0 16px; font: 800 clamp(2.2rem, 5vw, 3.8rem)/1.05 var(--serif); letter-spacing: -.01em; color: var(--brand-900); }
.ap-day__intro p:not(.ap-kicker) { margin: 0; max-width: 520px; color: var(--ink-2); font-size: 1.12rem; }
.ap-step__time { display: inline-block; align-self: flex-start; width: max-content; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px; background: var(--brand-50); color: var(--t-brand-800); font: 800 .95rem/1.4 var(--serif); }
.ap-step h3 { margin: 0 0 12px; font: 800 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.01em; color: var(--brand-900); }
.ap-step p { margin: 0; max-width: 460px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
@keyframes apIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .is-on > .ap-step__time, .ap-day__intro.is-on > .ap-kicker { animation: apIn .45s var(--ease) both; }
  .is-on > h3, .ap-day__intro.is-on > h2 { animation: apIn .5s var(--ease) .04s both; }
  .is-on > p:not(.ap-kicker) { animation: apIn .55s var(--ease) .14s both; }
}

.ap-day__device { display: grid; justify-items: center; gap: 18px; }
.ap-phone--day { width: min(360px, calc((var(--H) - 150px) * .478)); overflow: hidden; }
/* aplikacja renderowana w rozmiarze zwykłego telefonu i pomniejszona – napisy nie są ściśnięte */
.ap-phone--day iframe { width: 125%; height: 125%; transform: scale(.8); transform-origin: 0 0; border-radius: 33px 33px 50px 50px; }
.ap-day__cta { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 20px 10px 16px; border: 0; border-radius: 999px; background: var(--brand-900); color: #fff; font: 700 .95rem/1.2 var(--sans); cursor: pointer; box-shadow: 0 12px 28px rgba(11, 46, 48, .25); transition: transform .2s var(--ease), background .2s; }
.ap-day__cta[hidden] { display: none; }
.ap-day__cta:hover { transform: translateY(-2px); background: var(--brand-800); }
.ap-day__cta:focus-visible { outline: 3px solid #1f9d8a; outline-offset: 3px; }
.ap-day__dot { width: 9px; height: 9px; border-radius: 50%; background: #3fd0a8; }
@keyframes apDot { 0% { box-shadow: 0 0 0 0 rgba(63, 208, 168, .7); } 70% { box-shadow: 0 0 0 10px rgba(63, 208, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 208, 168, 0); } }
@keyframes apCta { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ap-day__dot { animation: apDot 1.5s ease-out infinite; }
  .ap-day__cta.is-new { animation: apCta .45s var(--ease) both; }
}

.ap-times { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ap-times button { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 6px; border: 0; background: none; color: var(--muted); font: 700 .92rem/1 var(--sans); cursor: pointer; border-radius: 8px; }
.ap-times button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; transition: transform .3s var(--ease), background .3s; }
.ap-times button:hover { color: var(--brand-800); }
.ap-times .is-on button { color: var(--brand-900); }
.ap-times .is-on button::before { background: var(--brand-800); border-color: var(--brand-800); transform: scale(1.4); }
.ap-snap { display: none; }

@media (max-width: 959px) {
  .ap-day__in { grid-template-columns: 1fr; justify-items: center; gap: 14px; text-align: center; }
  .ap-day__device { order: -1; gap: 12px; }
  .ap-phone--day { width: min(60vw, 280px, calc((var(--H) - 270px) * .478)); padding: 22px 8px 9px; border-radius: 40px; overflow: hidden; }
  .ap-phone--day::before { top: 8px; height: 7px; width: 56px; margin-left: -28px; }
  .ap-phone--day iframe { width: 165%; height: 165%; transform: scale(.6061); transform-origin: 0 0; border-radius: 28px 28px 44px 44px; }
  .ap-times { display: none; }
  .ap-day__texts { width: 100%; max-width: 480px; min-height: 150px; align-items: start; }
  .ap-step { align-items: center; }
  .ap-step__time { align-self: center; margin-bottom: 6px; }
  .ap-step h3 { margin-bottom: 6px; font-size: 1.35rem; }
  .ap-step p, .ap-day__intro p:not(.ap-kicker) { font-size: .95rem; line-height: 1.45; margin: 0 auto; }
  .ap-day__intro h2 { font-size: 1.7rem; margin-bottom: 8px; }
  .ap-day__cta { min-height: 40px; padding: 8px 16px 8px 13px; font-size: .88rem; }
  /* na dotyku: delikatne dociąganie do każdego kroku */
  .ap-snap { display: block; position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; }
}
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) { html { scroll-snap-type: y proximity; } }

/* ===== Podgląd z boku telefonu (PDF, połączenie, recepcja) ===== */
.ap-peek { position: fixed; z-index: 90; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow: auto; padding: 20px; border-radius: 22px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(8, 30, 32, .3); }
.ap-peek[hidden] { display: none; }
@keyframes apPeek { from { opacity: 0; transform: translateX(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes apPeekUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .ap-peek { animation: apPeek .4s var(--ease) both; } }
.ap-peek__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink); font: 400 1.5rem/1 var(--sans); cursor: pointer; }
.ap-peek__x:hover { background: var(--brand-50); }
.ap-peek__kick { margin: 0 44px 12px 0; font: 800 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--t-brand-800); }
.ap-peek__note { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 959px) {
  .ap-peek { left: 16px !important; right: 16px; top: auto !important; bottom: 16px; width: auto; max-height: 70vh; }
}
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) { .ap-peek { animation-name: apPeekUp; } }
/* kartka z wydrukiem (te same klasy co w druku aplikacji) */
.ap-paper { padding: 16px 16px 12px; border: 1px solid #e3ebe8; border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); color: #142629; font: 10px/1.45 var(--sans); }
.ap-paper .ph { display: flex; gap: 8px; align-items: center; padding-bottom: 8px; border-bottom: 2px solid #145c55; }
.ap-paper .ph img { width: 28px; height: 28px; border-radius: 7px; }
.ap-paper .ph h1 { margin: 0; font: 800 13px/1.2 var(--serif); }
.ap-paper .ph p { margin: 0; color: #5d6f72; font-size: 8px; }
.ap-paper .ph__r { margin-left: auto; text-align: right; font-size: 7.5px; color: #5d6f72; }
.ap-paper h2 { margin: 10px 0 4px; padding-bottom: 2px; border-bottom: 1px solid #c9d8d4; font: 800 11px/1.3 var(--serif); color: #0b2e30; }
.ap-paper h2 small { margin-left: 4px; font: 400 8px var(--sans); color: #5d6f72; }
.ap-paper .pmeta { margin: 6px 0 0; }
.ap-paper .pgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; align-items: start; }
.ap-paper .pgrid svg { width: 100%; height: auto; }
.ap-paper .pstat { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 6px; font-size: 8.5px; }
.ap-paper .pstat dt { color: #5d6f72; }
.ap-paper .pstat dd { margin: 0; font-weight: 700; text-align: right; }
.ap-paper .leg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 7.5px; color: #5d6f72; }
.ap-paper .leg i { display: inline-block; width: 10px; height: 3px; margin-right: 3px; vertical-align: middle; }
.ap-paper table.pt { width: 100%; margin-top: 4px; border-collapse: collapse; font-size: 8.5px; }
.ap-paper table.pt th { padding: 3px 4px; background: #eef4f2; text-align: left; font-size: 7px; text-transform: uppercase; letter-spacing: .04em; color: #5d6f72; }
.ap-paper table.pt td { padding: 2px 4px; border-bottom: 1px solid #e6ecea; }
.ap-paper .pf { margin-top: 10px; padding-top: 4px; border-top: 1px solid #c9d8d4; font-size: 7px; color: #7b8b8a; }
.ap-paper svg .ln { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.ap-paper svg .pt { opacity: 1; animation: none; }
/* połączenie / recepcja */
.ap-call { display: grid; justify-items: center; gap: 6px; padding: 18px 10px 8px; text-align: center; }
.ap-call__ico { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: #1f9d6a; color: #fff; }
.ap-call__ico .icon { width: 30px; height: 30px; }
.ap-call--rez .ap-call__ico { background: #d7342a; }
@keyframes apRing { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 106, .5); } 100% { box-shadow: 0 0 0 26px rgba(31, 157, 106, 0); } }
@media (prefers-reduced-motion: no-preference) { .ap-call:not(.ap-call--rez) .ap-call__ico { animation: apRing 1.4s ease-out infinite; } }
.ap-call b { font: 800 1.6rem/1.2 var(--serif); color: var(--brand-900); }
.ap-call span { color: var(--ink-2); }

/* ===== Telefon w wymiarach iPhone 15 Pro =====
   Ekran 393 × 852 pkt (rogi ekranu r = 55), pasek statusu 54 pkt, Dynamic Island 126 × 37 (11 pkt od góry),
   pasek „home” 134 × 5 (8 pkt od dołu). Obudowa 70,6 × 146,6 mm ≈ 427 × 887 pkt, czyli ramka 17 pkt.
   Telefon rysujemy w skali 1:1 i pomniejszamy (--s ustawia skrypt do wielkości okna). */
.ap-dev { --s: .7; position: relative; flex: none; width: calc(427px * var(--s)); height: calc(887px * var(--s)); }
.ap-dev__body { position: absolute; left: 0; top: 0; box-sizing: border-box; width: 427px; height: 887px; padding: 17px; border-radius: 72px; background: #0c1011; box-shadow: inset 0 0 0 2px #6b7476, inset 0 0 0 4px #2b3233, inset 0 0 0 6px #0c1011, 0 50px 90px rgba(6, 30, 32, .32), 0 18px 34px rgba(6, 30, 32, .18); transform: scale(var(--s)); transform-origin: 0 0; }
.ap-dev__screen { position: relative; width: 393px; height: 852px; border-radius: 55px; overflow: hidden; background: #f4f7f6; isolation: isolate; }
.ap-dev__status { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 44px; background: #f4f7f6; color: #0b1415; font: 600 17px/1 -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; }
.ap-dev__time { width: 62px; text-align: center; letter-spacing: -.01em; }
.ap-dev__icons { display: flex; align-items: center; gap: 6px; }
.ap-dev__icons svg { fill: currentColor; }
.ap-dev__island { position: absolute; z-index: 3; top: 11px; left: 50%; width: 126px; height: 37px; margin-left: -63px; border-radius: 19px; background: #000; }
.ap-dev iframe { position: absolute; left: 0; top: 54px; display: block; width: 393px; height: 798px; border: 0; background: #f4f7f6; }
.ap-dev__home { position: absolute; z-index: 3; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #0b1415; pointer-events: none; }
.ap-hero .ap-dev__body { box-shadow: inset 0 0 0 2px #6b7476, inset 0 0 0 4px #2b3233, inset 0 0 0 6px #0c1011, 0 50px 100px rgba(0, 0, 0, .45), 0 0 140px rgba(31, 133, 119, .35); }


/* ===== Podpis czynności pod telefonem (pokaz leci sam) ===== */
.ap-day__note { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; max-width: min(100%, 380px); margin: 0; padding: 9px 18px 9px 14px; border-radius: 999px; background: var(--brand-900); color: #fff; font: 700 .92rem/1.3 var(--sans); box-shadow: 0 12px 28px rgba(11, 46, 48, .22); opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s var(--ease); }
.ap-day__note.is-on { opacity: 1; transform: none; }
@keyframes apNote { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .ap-day__note.is-new [data-note] { animation: apNote .45s var(--ease) both; } }
@media (max-width: 959px) { .ap-day__note { min-height: 34px; padding: 6px 14px 6px 11px; font-size: .82rem; } }

/* ===== Co się dzieje w telefonie: lista czynności pod opisem godziny ===== */
.ap-beats { counter-reset: beat; margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; max-width: 470px; }
.ap-beats li { counter-increment: beat; position: relative; display: flex; align-items: center; min-height: 44px; padding: 9px 14px 9px 50px; border-radius: 14px; color: var(--muted); font: 600 .95rem/1.35 var(--sans); transition: background .35s, color .35s, box-shadow .35s, transform .35s var(--ease); }
.ap-beats__i { position: absolute; left: 13px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; border: 2px solid #cfdcd8; background: var(--bg-2); display: grid; place-items: center; font: 800 .72rem/1 var(--sans); color: var(--muted); transition: background .35s, border-color .35s, color .35s; }
.ap-beats__i::before { content: counter(beat); }
.ap-beats li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: calc(50% + 14px); width: 2px; height: calc(100% - 24px); background: #dbe6e2; border-radius: 2px; transition: background .35s; }
.ap-beats li.is-now { background: var(--surface, #fff); color: var(--brand-900); font-weight: 700; box-shadow: 0 10px 26px rgba(11, 46, 48, .1), 0 0 0 1px rgba(20, 92, 85, .12); }
.ap-beats li.is-now .ap-beats__i { border-color: var(--brand-800); background: #fff; color: var(--brand-800); }
.ap-beats li.is-done { color: var(--ink-2); }
.ap-beats li.is-done .ap-beats__i { border-color: var(--brand-800); background: var(--brand-800); color: #fff; }
.ap-beats li.is-done .ap-beats__i::before { content: "✓"; font-size: .8rem; }
.ap-beats li.is-done::after { background: var(--brand-800); }
@keyframes apBeat { 0% { box-shadow: 0 0 0 0 rgba(20, 92, 85, .35); } 70% { box-shadow: 0 0 0 9px rgba(20, 92, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 92, 85, 0); } }
@keyframes apBeatIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ap-beats li.is-now .ap-beats__i { animation: apBeat 1.5s ease-out infinite; }
  .ap-step.is-on .ap-beats li { animation: apBeatIn .45s var(--ease) both; }
  .ap-step.is-on .ap-beats li:nth-child(2) { animation-delay: .06s; }
  .ap-step.is-on .ap-beats li:nth-child(3) { animation-delay: .12s; }
  .ap-step.is-on .ap-beats li:nth-child(4) { animation-delay: .18s; }
  .ap-step.is-on .ap-beats li:nth-child(5) { animation-delay: .24s; }
  .ap-step.is-on .ap-beats li:nth-child(6) { animation-delay: .3s; }
}
/* komórka: tylko bieżąca czynność, jedna linijka pod opisem */
@media (max-width: 959px) {
  .ap-beats { margin: 10px auto 0; max-width: 340px; }
  .ap-beats li { display: none; min-height: 38px; padding: 7px 12px 7px 44px; font-size: .86rem; text-align: left; }
  .ap-beats li.is-now { display: flex; }
  .ap-beats li::after { display: none; }
  .ap-beats__i { left: 14px; width: 14px; height: 14px; margin-top: -7px; }
  .ap-beats li .ap-beats__i::before { content: ""; }
}

/* ===== Efekty pokazu ===== */
.ap-dev__body { z-index: 1; }
/* Wydruk: kartka A4 wysuwa się zza telefonu */
.ap-a4 { position: absolute; z-index: 0; top: 3%; right: 50%; width: calc(610px * var(--s)); aspect-ratio: 210 / 297; overflow: hidden; background: #fff; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 26px 56px rgba(8, 30, 32, .24); transform: rotate(-4deg); }
.ap-a4 .ap-paper { width: 420px; transform-origin: 0 0; border: 0; border-radius: 0; box-shadow: none; }
.ap-a4::after { content: "PDF"; position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 5px; background: #d7342a; color: #fff; font: 800 .65rem/1.4 var(--sans); letter-spacing: .06em; }
@keyframes apA4In { from { transform: translateX(55%) rotate(0); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .ap-a4 { animation: apA4In .9s var(--ease) both; } }
@media (max-width: 959px) {
  .ap-a4 { z-index: 5; right: auto; left: 50%; top: 10%; width: min(76vw, 300px); margin-left: calc(min(76vw, 300px) / -2); transform: rotate(-3deg); }
  @keyframes apA4Up { from { transform: translateY(30%) rotate(0); opacity: 0; } to { transform: rotate(-3deg); opacity: 1; } }
}
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) { .ap-a4 { animation-name: apA4Up; } }

/* Połączenie: Dynamic Island rozszerza się jak w iPhonie, potem zwija do pigułki z licznikiem (wymiary w punktach ekranu) */
.ap-isl { position: absolute; z-index: 4; top: 11px; left: 50%; width: 126px; height: 37px; transform: translateX(-50%); overflow: hidden; border-radius: 19px; background: #000; color: #fff; font-family: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; transition: width .55s cubic-bezier(.3, 1.25, .5, 1), height .55s cubic-bezier(.3, 1.25, .5, 1), border-radius .55s ease; }
.ap-isl.is-big { width: 371px; height: 84px; border-radius: 42px; }
.ap-isl.is-mini { width: 168px; }
.ap-isl > span:not(.ap-isl__mini) { position: absolute; top: 50%; opacity: 0; transition: opacity .25s ease; }
.ap-isl.is-big > span:not(.ap-isl__mini) { opacity: 1; transition-delay: .25s; }
.ap-isl__av { left: 16px; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: #3a4446; }
.ap-isl__av .icon { width: 24px; height: 24px; }
.ap-isl__txt { left: 82px; right: 82px; margin-top: -22px; }
.ap-isl__txt small { display: block; font-size: 14px; color: #a1a8aa; }
.ap-isl__txt b { display: block; margin-top: 2px; font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-isl__end { right: 16px; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: #eb4d3d; }
.ap-isl__end .icon { width: 24px; height: 24px; transform: rotate(135deg); }
.ap-isl__mini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; opacity: 0; transition: opacity .25s ease; }
.ap-isl.is-mini .ap-isl__mini { opacity: 1; transition-delay: .3s; }
.ap-isl__mini i { display: grid; place-items: center; color: #34c759; }
.ap-isl__mini .icon { width: 18px; height: 18px; }
.ap-isl__mini em { font-style: normal; font-size: 15px; font-weight: 600; color: #34c759; font-variant-numeric: tabular-nums; }
.ap-isl__wave { display: none; }

/* Recepcja online: arkusz od dołu (wymiary w punktach ekranu) */
.ap-shade { position: absolute; z-index: 4; inset: 0; background: rgba(0, 0, 0, .35); }
.ap-sheet { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 10px 22px 44px; border-radius: 30px 30px 0 0; background: #fff; font-family: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; }
.ap-sheet__grab { display: block; width: 40px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: #d1d1d6; }
.ap-sheet__k { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #145c55; }
.ap-sheet h3 { margin: 4px 0 14px; font: 800 26px/1.2 var(--serif); color: #0b2e30; }
.ap-sheet__row { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 14px; border-radius: 16px; background: #f2f6f5; }
.ap-sheet__row i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fde8e8; color: #c02626; flex: none; }
.ap-sheet__row .icon { width: 22px; height: 22px; }
.ap-sheet__row b { display: block; font-size: 18px; color: #0b2e30; }
.ap-sheet__row small { font-size: 14px; color: #5f7370; }
@keyframes apSheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes apShade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .ap-sheet { animation: apSheet .5s cubic-bezier(.2, .9, .3, 1) both; } .ap-shade { animation: apShade .4s ease both; } }

/* ===== Powrót na stronę główną ===== */
.ap-nav a.ap-nav__home { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; color: #fff; background: rgba(255, 255, 255, .08); }
.ap-nav a.ap-nav__home:hover { background: rgba(255, 255, 255, .16); }
.ap-nav__home .icon { width: 16px; height: 16px; }
.ap-homebtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.ap-homebtn:hover { background: rgba(255, 255, 255, .18); }
.ap-homebtn .icon { width: 19px; height: 19px; }
@media (min-width: 1024px) { .ap-homebtn { display: none; } }

/* ===== „Przewiń dalej” po zakończonym pokazie godziny ===== */
.ap-next { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--brand-800); font: 700 .92rem/1.2 var(--sans); opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s var(--ease); }
.ap-step.is-done .ap-next { opacity: 1; transform: none; }
.ap-next__mouse { position: relative; width: 20px; height: 30px; border: 2px solid currentColor; border-radius: 11px; }
.ap-next__mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: currentColor; }
@keyframes apWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .ap-step.is-done .ap-next__mouse::after { animation: apWheel 1.4s ease-in-out infinite; } }
@media (max-width: 959px) { .ap-next { margin-top: 10px; align-self: center; font-size: .85rem; } .ap-next__mouse { width: 16px; height: 24px; } }

/* ===== Połączenie na cały ekran, jak w iPhonie (wymiary w punktach ekranu) ===== */
.ap-callx { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 118px; background: linear-gradient(180deg, #5b6b6d 0%, #2c3637 55%, #161d1e 100%); color: #fff; font-family: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; }
.ap-callx p { margin: 0; }
.ap-callx__st { font-size: 18px; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.ap-callx__n { margin-top: 8px !important; padding: 0 20px; font-size: 40px; font-weight: 400; letter-spacing: .01em; text-align: center; }
.ap-callx__l { margin-top: 4px !important; font-size: 17px; color: rgba(255, 255, 255, .72); }
.ap-callx__grid { display: grid; grid-template-columns: repeat(3, 80px); gap: 30px 30px; margin-top: auto; margin-bottom: 92px; }
.ap-callx__b { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .92); }
.ap-callx__b i { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ap-callx__b--end i { background: #eb4d3d; }
.ap-callx__b--end .icon { width: 32px; height: 32px; transform: rotate(135deg); }
@keyframes apCallIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .ap-callx { animation: apCallIn .45s ease both; } }
/* w trakcie rozmowy pasek statusu i wyspa zostają, jak w iPhonie – tylko na ciemnym tle */
.ap-dev__screen:has(.ap-callx) .ap-dev__status { background: transparent; color: #fff; }
/* „Przewiń dalej” jako kolejny punkt na osi kroków (ta sama kolumna co kółka, połączony linią) */
.ap-next { position: relative; display: flex; align-self: stretch; min-height: 44px; margin: 4px 0 0; padding: 9px 14px 9px 50px; max-width: 470px; }
.ap-next__mouse { position: absolute; left: 15px; top: 50%; width: 20px; height: 30px; margin-top: -15px; }
.ap-next::before { content: ""; position: absolute; left: 24px; top: -18px; width: 2px; height: 20px; background: repeating-linear-gradient(to bottom, var(--brand-800) 0 4px, transparent 4px 7px); transform-origin: top; transform: scaleY(0); transition: transform .35s ease .1s; }
.ap-step.is-done .ap-next::before { transform: scaleY(1); }
@media (max-width: 959px) {
  .ap-next { align-self: center; justify-content: flex-start; min-height: 34px; margin-top: 8px; padding: 6px 12px 6px 40px; max-width: none; }
  .ap-next__mouse { left: 12px; width: 16px; height: 24px; margin-top: -12px; }
  .ap-next::before { display: none; }
}

/* ===== Płynność ===== */
/* nagłówek bez rozmycia tła – przy przewijaniu rozmycie liczy się w każdej klatce */
.ap-header { background: #0b2e30; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* ruchome elementy na własnych warstwach */
.ap-hero::before, .ap-hero__stage .ap-dev, .ap-badge { will-change: transform; }
/* gdy góra strony jest poza ekranem, jej animacje stoją */
.ap-hero.is-off::before, .ap-hero.is-off .ap-dev, .ap-hero.is-off .ap-badge { animation-play-state: paused; }
.ap-hero.is-off .ap-dev, .ap-hero.is-off .ap-badge, .ap-hero.is-off::before { will-change: auto; }
/* telefon w sekcji „Jeden dzień” jest przypięty i stoi – jedna warstwa */
.ap-dev--day .ap-dev__body { will-change: transform; }
