:root {
  --bg: #FFF6F0;
  --card: #FFFFFF;
  --text: #2A211C;
  --muted: #6B5A52;
  --line: #F0DFD4;
  --accent: #FF8A4C;
  --accent-2: #FF5C8A;
  --accent-soft: #FFE8D6;
  --teal-soft: #FFE0EC;
  --success: #1B9E5A;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(42, 33, 28, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 246, 240, 0.88);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1.25rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--text); text-decoration: none;
  line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand-logo,
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FF8A4C 0%, #FF5C8A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 640px) {
  .brand-logo,
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .brand-name { font-size: 1.1rem; }
  .nav { padding: 0.7rem 0; }
  .brand { gap: 0.55rem; }
}
.nav-links {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: nowrap; justify-content: flex-end; flex-shrink: 0;
}
.nav-links a.ghost { color: var(--muted); padding: 0.45rem 0.75rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-links a.ghost:hover { color: var(--text); }
.nav-links .nav-cta,
.nav-links .btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.65rem 1.05rem;
  font-size: 0.92rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 138, 76, 0.32); }
.btn-primary:hover { background: #E86A2F; color: #fff; }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: #E8C9B8; color: var(--text); }
.btn-teal { background: var(--accent-2); color: #fff; }
.btn-teal:hover { background: #E84A72; color: #fff; }
.btn-lg { padding: 0.9rem 1.4rem; font-size: 1rem; }
.hero-cta .btn { white-space: nowrap; flex: 0 1 auto; }
.btn-ghost-light {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding: 4rem 0 5rem; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 0.35rem 0.7rem; border-radius: 999px;
}
.hero h1 {
  margin: 0.9rem 0 0.75rem; font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15; letter-spacing: -0.02em;
}
.hero .lead { margin: 0 0 1.5rem; color: var(--muted); font-size: 1.1rem; max-width: 36rem; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.hero-note { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Demo frame */
.demo-card {
  background: var(--card); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.demo-chrome {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(180deg, #FFFBF8, #FFF6F0);
  border-bottom: 1px solid var(--line);
}
.demo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #E8C9B8;
}
.demo-dot:nth-child(1) { background: #FF8A4C; }
.demo-dot:nth-child(2) { background: #FFB347; }
.demo-dot:nth-child(3) { background: #FF5C8A; }
.demo-chrome-label {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-frame {
  position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #3D2418, #FF8A4C 140%);
  color: #fff; display: grid; place-items: center; overflow: hidden;
}
.demo-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}
.demo-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(42,33,28,.35) 0%, rgba(42,33,28,.55) 55%, rgba(42,33,28,.72) 100%),
    radial-gradient(circle at 30% 30%, rgba(255,138,76,.35), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255,92,138,.25), transparent 45%);
  animation: drift 10s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(2%, 1.5%) scale(1.03); } }
.demo-overlay {
  position: relative; z-index: 1; text-align: center; padding: 1.5rem; max-width: 22rem;
}
.demo-overlay .play {
  width: 68px; height: 68px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: var(--accent);
  box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 0 0 6px rgba(255,255,255,.18);
  margin: 0 auto 1rem; display: grid; place-items: center;
  transition: transform .15s, box-shadow .15s;
}
.demo-overlay .play .play-icon { margin-left: 3px; }
.demo-overlay .play:hover { transform: scale(1.06); box-shadow: 0 12px 32px rgba(0,0,0,.32), 0 0 0 8px rgba(255,255,255,.22); }
.demo-overlay h3 { margin: 0 0 0.4rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.demo-overlay p { margin: 0; opacity: 0.95; font-size: 0.92rem; text-shadow: 0 1px 6px rgba(0,0,0,.2); }
.demo-caption {
  padding: 0.9rem 1.15rem; font-size: 0.88rem; color: var(--muted);
  border-top: 1px solid var(--line); background: #FFF9F5;
}
.demo-caption strong { color: var(--text); }
.demo-subs {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 2; background: rgba(42,33,28,.72); color: #fff; padding: 0.4rem 0.85rem;
  border-radius: 999px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; opacity: 0;
  transition: opacity .3s; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
}
.demo-frame.playing .demo-subs { opacity: 1; }
.demo-frame.playing .demo-poster { filter: saturate(1.08) brightness(0.85); }
.wave {
  display: flex; gap: 3px; justify-content: center; align-items: flex-end; height: 28px; margin-top: 0.75rem;
}
.wave span {
  width: 4px; background: rgba(255,255,255,.85); border-radius: 2px; height: 8px;
  animation: bar 0.9s ease-in-out infinite alternate;
}
.wave span:nth-child(2) { animation-delay: .1s; }
.wave span:nth-child(3) { animation-delay: .2s; }
.wave span:nth-child(4) { animation-delay: .3s; }
.wave span:nth-child(5) { animation-delay: .15s; }
@keyframes bar { to { height: 24px; } }
.demo-frame:not(.playing) .wave { display: none; }

/* Sections */
section { padding: 3.5rem 0; }
section.alt { background: #FFFFFF; border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 {
  margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: 0 2px 10px rgba(26,29,38,.04);
}
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 0.9rem;
}
.card.teal .icon { background: var(--teal-soft); color: var(--accent-2); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-num { font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.chip {
  font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.55rem; border-radius: 999px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line);
}
.chip.voice { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.lang { background: var(--teal-soft); color: var(--accent-2); border-color: transparent; }

/* Stats */
.stats {
  display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  text-align: center; padding: 1.5rem 1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.stat .n { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.stat .l { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #FF8A4C, #FF5C8A);
  color: #fff; border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem 1.75rem; text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 0.5rem; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.cta-band p { margin: 0 0 1.4rem; opacity: 0.92; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-secondary { background: #fff; border-color: #fff; }

/* Footer */

/* Floating demo FAB — warm rainbow, right side */
.demo-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  border: 0;
  box-shadow:
    0 10px 28px rgba(255, 100, 60, 0.35),
    0 2px 8px rgba(42, 33, 28, 0.12);
  background: linear-gradient(
    120deg,
    #FF8A4C 0%,
    #FFB347 18%,
    #FF5C8A 38%,
    #FF8A4C 55%,
    #FFD166 72%,
    #FF6B4A 88%,
    #FF8A4C 100%
  );
  background-size: 280% 280%;
  animation: warmRainbow 6s ease-in-out infinite;
}
.demo-fab:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow:
    0 14px 34px rgba(255, 100, 60, 0.42),
    0 4px 12px rgba(42, 33, 28, 0.14);
  text-decoration: none !important;
  color: #fff !important;
}
.demo-fab:focus-visible {
  outline: 3px solid rgba(255, 138, 76, 0.55);
  outline-offset: 3px;
}
@keyframes warmRainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (max-width: 640px) {
  .demo-fab {
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: none;
    right: max(0.85rem, env(safe-area-inset-right));
    padding: 0.85rem 1.15rem;
    font-size: 0.92rem;
  }
  .demo-fab:hover { transform: scale(1.03); }
}


/* Footer — wzór jak Snapchat: logo + Log in / Sign up */
.site-footer {
  border-top: 1px solid var(--line);
  background: #2A211C;
  color: rgba(255,255,255,.72);
  padding: 1.75rem 0 1.25rem;
  margin-top: 2rem;
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.footer-brand:hover { color: #fff; text-decoration: none; }
.footer-brand img {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: block;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.btn-footer-login,
.btn-footer-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn-footer-login {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,.45);
}
.btn-footer-login:hover {
  background: rgba(255,255,255,.08);
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-footer-signup {
  background: linear-gradient(135deg, #FF8A4C, #FF5C8A);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 100, 60, 0.28);
}
.btn-footer-signup:hover {
  filter: brightness(1.05);
  color: #fff !important;
  transform: translateY(-1px);
}
.footer-meta {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
}
.nav-links .nav-demo {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .footer-actions { width: 100%; }
  .btn-footer-login,
  .btn-footer-signup { flex: 1 1 auto; text-align: center; }
}

/* Media tiles — rounded like demo, phone-full width on mobile */
.card-media {
  overflow: hidden;
  padding-top: 0;
  border-radius: var(--radius);
}
.card-media .card-img {
  display: block;
  width: calc(100% + 2.8rem);
  max-width: none;
  margin: 0 -1.4rem 1rem;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 18%;
  border: 0;
  border-radius: 0;
  background: transparent;
  /* Unify stock lighting toward warm SaaS palette */
  filter: sepia(0.12) saturate(1.12) brightness(1.03) contrast(1.04);
}
/* Inner top corners follow card radius via overflow:hidden on .card-media */

.scenario-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .scenario-wide { grid-column: 1 / -1; }
}
.scenario {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26,29,38,.04);
}
.scenario img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 0;
  filter: sepia(0.12) saturate(1.12) brightness(1.03) contrast(1.04);
}
.scenario figcaption {
  padding: 1rem 1.2rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.scenario figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

/* Face / shot position hints (keep heads in frame) */
.card-media .card-img.face-top,
.scenario img.face-top { object-position: center 12%; }
.card-media .card-img.face-mid,
.scenario img.face-mid { object-position: center 22%; }
.card-media .card-img.shot-top,
.scenario img.shot-top { object-position: center 14%; }
.card-media .card-img.shot-center,
.scenario img.shot-center { object-position: center 30%; }
/* Full subject visible — no face crop */
.card-media .card-img.face-contain,
.scenario img.face-contain {
  object-fit: contain;
  object-position: center center;
  background: linear-gradient(180deg, #FFF9F5 0%, #FFE8D6 100%);
  filter: sepia(0.08) saturate(1.08) brightness(1.02) contrast(1.03);
}

/* Mobile / iPhone: full content width like demo card */
@media (max-width: 767px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .card.card-media {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 1.15rem;
    border-radius: calc(var(--radius) + 2px);
  }
  .card-media .card-img {
    width: 100%;
    margin: 0 0 0.95rem;
    aspect-ratio: 16 / 10;
    border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0;
  }
  .card.card-media h3,
  .card.card-media p {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .scenario {
    border-radius: calc(var(--radius) + 2px);
  }
  .scenario img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0;
  }
}

@media (min-width: 768px) {
  .card-media .card-img {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
  .scenario img {
    aspect-ratio: 16 / 10;
  }
}


/* —— board2: full-figure photo (no head crop) —— */
.card-media .card-img.face-full,
.scenario img.face-full,
.scenario-call-shot img.face-full {
  object-fit: contain;
  object-position: center center;
  background: linear-gradient(180deg, #FFF9F5 0%, #FFE8D6 100%);
}

/* Wide scenario: photo + HTML alert side-by-side */
.scenario-wide-panel {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  background: var(--card);
}
@media (min-width: 900px) {
  .scenario-wide-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
  }
}
.scenario-call-shot {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #FFF9F5, #FFE8D6 70%);
  min-height: 0;
}
.scenario-call-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: clamp(220px, 36vw, 420px);
  object-fit: contain;
  object-position: center center;
  background: transparent;
}
.scenario-call-shot .shot-label {
  margin: 0;
  padding: 0.75rem 1.15rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.72);
}
@media (min-width: 1200px) {
  .scenario-call-shot img {
    max-height: 380px;
    aspect-ratio: 16 / 11;
  }
}

/* SaaS-style dashboard alert mock (no raster stub) */
.dash-alert-mock {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: clamp(1rem, 2.5vw, 1.5rem);
  max-width: min(100% - 0rem, 520px);
  width: auto;
  justify-self: center;
  align-self: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(42, 33, 28, 0.1);
  overflow: hidden;
}
@media (min-width: 900px) {
  .dash-alert-mock {
    margin: clamp(1.25rem, 2vw, 2rem);
    max-width: 100%;
    justify-self: stretch;
    align-self: center;
  }
}
.dash-alert-accent {
  flex: 0 0 6px;
  background: linear-gradient(180deg, #FF8A4C, #FF5C8A);
}
.dash-alert-body {
  flex: 1;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2.2vw, 1.4rem);
  min-width: 0;
}
.dash-alert-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.dash-alert-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.dash-alert-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #FFE0EC;
  color: #C2185B;
}
.dash-alert-time {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.dash-alert-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}
.dash-alert-meta {
  display: grid;
  gap: 0.35rem 1.25rem;
  grid-template-columns: 1fr;
  margin: 0 0 0.75rem;
}
@media (min-width: 480px) {
  .dash-alert-meta { grid-template-columns: 1fr 1fr; }
}
.dash-alert-meta div { margin: 0; }
.dash-alert-meta dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.dash-alert-meta dd {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.dash-alert-msg {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  font-style: italic;
}
.dash-alert-cta {
  width: 100%;
  max-width: 220px;
}
@media (min-width: 1200px) {
  .scenario.scenario-wide {
    max-width: 100%;
  }
  .scenario-wide-panel {
    min-height: 0;
  }
  /* Prevent huge empty stretch on ultra-wide */
  .dash-alert-mock {
    max-width: 480px;
    justify-self: center;
  }
}

/* Constrain media on large desktop — no pixelation stretch */
@media (min-width: 1200px) {
  .card-media .card-img {
    aspect-ratio: 16 / 10;
    max-height: 240px;
    width: calc(100% + 2.8rem);
    object-fit: cover;
  }
  .card-media .card-img.face-full {
    object-fit: contain;
    max-height: 260px;
    background: linear-gradient(180deg, #FFF9F5 0%, #FFE8D6 100%);
  }
  .scenario:not(.scenario-wide) img {
    max-height: 280px;
    object-fit: cover;
  }
}


/* —— wizerunek1: panel strip + grupy thumbs + badges —— */
.panel-strip {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) {
  .panel-strip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 1.5rem; }
}
.panel-shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 40%;
  filter: sepia(0.1) saturate(1.1) brightness(1.02) contrast(1.05);
}
.panel-shot figcaption {
  padding: 0.9rem 1.15rem 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #FFF9F5;
}
.panel-calls-mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.panel-calls-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.panel-calls-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.panel-calls-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--success);
  background: #E8F7EE;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.panel-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(27,158,90,.2);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(27,158,90,.2); }
  50% { box-shadow: 0 0 0 6px rgba(27,158,90,.08); }
}
.panel-calls-table { display: grid; gap: 0; }
.panel-calls-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.55fr 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.panel-calls-row-head {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-calls-row strong { display: block; color: var(--text); font-size: 0.92rem; }
.panel-calls-row small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.1rem; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-urgent { background: #FFE0EC; color: #C2185B; }
.badge-open { background: var(--accent-soft); color: #C45A1A; }
.badge-done { background: #E8F7EE; color: #147A44; }
.panel-calls-footnote {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.45;
}

/* Grupy — photo thumbs + brand icon chip */
.card-grupa { padding-bottom: 1.25rem; }
.grupa-thumb {
  position: relative;
  margin: 0 -1.4rem 1rem;
  width: calc(100% + 2.8rem);
}
.grupa-thumb .card-img {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
}
.grupa-icon {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.94);
  color: var(--accent);
  box-shadow: 0 6px 16px rgba(42,33,28,.12);
  border: 1px solid rgba(240,223,212,.9);
}
.card-grupa .chip-row { margin-top: 0.85rem; padding: 0; }
@media (max-width: 767px) {
  .grupa-thumb {
    margin: 0 0 0.95rem;
    width: 100%;
  }
  .card-grupa .chip-row {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}
@media (min-width: 1200px) {
  .card-media .card-img.face-contain {
    object-fit: contain;
    max-height: 260px;
    background: linear-gradient(180deg, #FFF9F5 0%, #FFE8D6 100%);
  }
  .panel-shot img { max-height: 320px; }
}
