/* =========================================================================
   LP randkowe — split-screen (foto | treść). Mobile-first.
   Paleta "spicy": magenta/róż/pomarańcz na ciemnym tle.
   ========================================================================= */

:root {
  --bg:        #140a11;
  --bg-panel:  #1c0e18;
  --surface:   #271424;
  --line:      rgba(255,255,255,.10);

  --text:      #f7edf4;
  --text-dim:  #c3a8ba;
  --text-mute: #8d7484;

  --accent:      #ff2d78;
  --accent-2:    #ff7a3d;
  --accent-soft: rgba(255,45,120,.14);
  --online:      #3ddc84;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

img { display: block; max-width: 100%; }

/* ============================ UKŁAD ===================================== */

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ---------- Panel ze zdjęciem ---------- */

.photo-panel {
  position: relative;
  width: 100%;
  height: 44svh;          /* niżej niż 58 — CTA musi zmieścić się nad zgięciem */
  min-height: 260px;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}

.photo-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transition: opacity .5s ease;
}
.photo-main.is-loaded { opacity: 1; }

/* Przyciemnienie dołu zdjęcia, żeby imię było czytelne */
.photo-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(20,10,17,.35) 0%,
      rgba(20,10,17,0)   28%,
      rgba(20,10,17,.55) 68%,
      var(--bg)          100%);
}

.photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  background: rgba(12,6,10,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(61,220,132,.65);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0  rgba(61,220,132,0); }
}

.photo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
}

.photo-name {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}

.photo-loc {
  margin: 5px 0 0;
  font-size: .92rem;
  color: var(--text-dim);
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}

/* ---------- Panel treści ---------- */

.content-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px calc(14px + env(safe-area-inset-bottom));
  background: var(--bg);
}

.content-inner {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* Nagłówek w prawej kolumnie — tylko desktop */
.desk-header { display: none; }

.pitch {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text);
}

/* ---------- Podgląd rozmowy ---------- */

.chat {
  margin: 0 0 14px;
  padding: 11px;
  border-radius: var(--r-md);
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.chat-msgs { display: flex; flex-direction: column; gap: 8px; }

.chat-msg {
  align-self: flex-start;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 5px;
  background: var(--surface);
  font-size: .93rem;
  line-height: 1.42;
  opacity: 0;
  transform: translateY(6px);
  animation: msgIn .35s ease forwards;
}
@keyframes msgIn { to { opacity: 1; transform: none; } }

/* [hidden] musi wygrać z display:flex, inaczej kropki zostają po ostatniej wiadomości */
.chat-typing[hidden] { display: none; }

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 11px 14px;
  width: fit-content;
  margin-top: 8px;
  border-radius: 16px 16px 16px 5px;
  background: var(--surface);
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-mute);
  animation: blink 1.3s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity:.3 } 30% { opacity:1 } }

/* ---------- CTA ---------- */

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 17px 22px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(255,45,120,.32);
  animation: ctaPulse 2.6s ease-in-out infinite;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-btn:active { transform: scale(.985); }
.cta-btn svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 8px 26px rgba(255,45,120,.32); }
  50%     { box-shadow: 0 8px 34px rgba(255,45,120,.52); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-btn, .pulse-dot, .chat-msg, .chat-typing span { animation: none; }
  .chat-msg { opacity: 1; transform: none; }
}

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 11px 0 20px;
  font-size: .82rem;
  color: var(--text-mute);
}
.trust-line i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-mute);
  opacity: .55;
}

/* ---------- Blur-fallback ---------- */

.blurred { margin-bottom: 18px; }

.blurred-caption {
  margin: 0 0 9px;
  font-size: .84rem;
  color: var(--text-dim);
}

.blurred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.blurred-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.blurred-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(7px) saturate(1.15);
  transform: scale(1.14);       /* ukrywa przezroczyste brzegi po blurze */
}

.blurred-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,7,12,.82), rgba(15,7,12,.12));
}

.blurred-label {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  z-index: 1;
  text-align: center;
  font-size: .76rem;
  font-weight: 600;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* ---------- Social proof ---------- */

.social-proof {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mini-grid { display: flex; flex-shrink: 0; }

.mini-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  margin-left: -9px;
  background: var(--surface);
}
.mini-avatar:first-child { margin-left: 0; }

.mini-caption {
  margin: 0;
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.3;
}
.mini-caption strong { color: var(--text); font-weight: 700; }

/* ---------- Stopka ---------- */

.disclaimer {
  max-width: 460px;
  margin: 18px auto 0;
  font-size: .68rem;
  line-height: 1.45;
  color: var(--text-mute);
  text-align: center;
}

/* ============================ DESKTOP =================================== */

@media (min-width: 900px) {
  .page {
    flex-direction: row;
    height: 100svh;
    overflow: hidden;
  }

  .photo-panel {
    width: 46%;
    max-width: 620px;
    height: 100%;
  }

  .photo-main { object-position: center 18%; }

  .photo-scrim {
    background: linear-gradient(to right,
      rgba(20,10,17,.15) 0%,
      rgba(20,10,17,0)   45%,
      rgba(20,10,17,.5)  100%);
  }

  /* Na desktopie imię jest w prawej kolumnie, nie na zdjęciu */
  .photo-caption { display: none; }
  .desk-header   { display: block; margin-bottom: 14px; }

  .name {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.08;
  }

  .location {
    margin: 6px 0 0;
    font-size: .98rem;
    color: var(--text-dim);
  }

  .content-panel {
    width: 54%;
    justify-content: center;
    padding: 44px 52px;
    overflow-y: auto;
  }

  .content-inner { max-width: 480px; margin: auto; }

  .pitch { font-size: 1.14rem; margin-bottom: 20px; }

  .disclaimer { margin-top: 26px; }
}

@media (min-width: 1500px) {
  .content-inner { max-width: 540px; }
  .name { font-size: 2.9rem; }
}

/* Krótkie ekrany poziome — nie pozwól CTA wyjść poza ekran */
@media (max-height: 620px) and (max-width: 899px) {
  .photo-panel { height: 40svh; min-height: 220px; }
  .chat { display: none; }
  .pitch { font-size: .98rem; margin-bottom: 12px; }
}
