/* =========================================================
   LifeSaver landing — marketing sections
   (stats bar, screenshot gallery, testimonials, comparison,
    CTA banner, video player)
   ========================================================= */

/* ---------- Stats bar (under hero) ---------- */
.stats-bar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('../assets/img/illustrations/bg-pattern.svg');
    background-size: 36px 36px;
    opacity: .25;
    filter: brightness(4);
}
.stats-bar-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 44px 0;
}
@media (max-width: 768px) { .stats-bar-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; } }
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1; }
.stat-item .stat-label { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 8px; }
.stat-divider { width: 1px; background: rgba(255,255,255,.2); }

/* ---------- Section badge tag ---------- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-primary-50);
    color: var(--c-primary-600);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.03em;
}

/* ---------- Screenshot gallery (tabbed) ---------- */
.gallery { background: linear-gradient(180deg, #fff 0%, var(--c-bg-soft) 100%); }

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}
.gallery-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--c-line);
    font-size: 14px;
    font-weight: 600;
    color: var(--c-ink-soft);
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-tab:hover { border-color: var(--c-primary-100); color: var(--c-primary); transform: translateY(-2px); }
.gallery-tab.active {
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(16,185,129,.6), 0 0 12px rgba(16,185,129,0.3);
    transform: translateY(-2px);
}
.gallery-tab .tab-emoji { font-size: 16px; }

.gallery-stage {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #0f172a;
    border: 1px solid #e2e8f0;
}
.gallery-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #1e293b;
}
.gallery-browser-bar .gdot { width: 11px; height: 11px; border-radius: 50%; }
.gallery-browser-bar .gdot.r { background: #ef4444; }
.gallery-browser-bar .gdot.y { background: #f59e0b; }
.gallery-browser-bar .gdot.g { background: #22c55e; }
.gallery-browser-bar .gurl {
    margin-left: 12px;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #94a3b8;
    background: #0f172a;
    padding: 5px 14px;
    border-radius: 8px;
    flex: 1;
    max-width: 360px;
}
.gallery-panels { position: relative; background: #f8fafc; }
.gallery-panel {
    display: none;
    animation: galleryFade .5s ease;
}
.gallery-panel.active { display: block; }
.gallery-panel img { width: 100%; display: block; }
@keyframes galleryFade {
    from { opacity: 0; transform: scale(.99); }
    to { opacity: 1; transform: scale(1); }
}
.gallery-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--c-ink-soft);
}
.gallery-caption strong { color: var(--c-ink); }

/* ---------- Video player ---------- */
.video-section { background: #0f172a; color: #fff; }
.video-section .section-head .lead,
.video-section .section-head .h2 { color: #fff; }
.video-section .section-head .lead { color: #cbd5e1; }
.video-section .eyebrow { color: #818cf8; }

.video-frame {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
    background: #1e1b4b;
    aspect-ratio: 16 / 9;
}
.video-frame video,
.video-frame .video-anim,
.video-frame img.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-frame .video-anim { background: #1e1b4b; }

.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 84px; height: 84px;
    background: rgba(255,255,255,.96);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
    border: none;
    transition: transform .15s;
    z-index: 3;
    cursor: pointer;
}
.play-btn::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
    animation: pulseRing 2s infinite;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.play-btn svg { color: var(--c-primary); margin-left: 5px; }

.video-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.video-tab {
    padding: 8px 16px;
    border-radius: 10px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    transition: all .15s;
}
.video-tab:hover { border-color: var(--c-primary-500); }
.video-tab.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.video-hint { text-align: center; color: #64748b; font-size: 13px; margin-top: 18px; }
.video-hint code { background: #1e293b; color: #cbd5e1; padding: 2px 8px; border-radius: 5px; }

/* ---------- Before / After comparison ---------- */
.comparison {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(820px 440px at 50% -8%, #ecfdf5 0%, transparent 62%),
        linear-gradient(180deg, #ffffff 0%, #f6faf9 100%);
}
.comparison::before {
    content: '';
    position: absolute;
    width: 540px; height: 540px;
    right: -180px; top: 30px;
    background: radial-gradient(circle, rgba(16,185,129,0.12), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.comparison > .container {
    position: relative;
    z-index: 1;
}
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: center;
}
@media (max-width: 860px) { .comparison-grid { grid-template-columns: 1fr; gap: 0; } }

.comp-col {
    padding: 36px 34px 40px;
    transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.35s ease;
}

/* BEFORE — bleda, boleča pot */
.comp-col.before {
    background: linear-gradient(180deg, #ffffff 0%, #fdf3f3 100%);
    border: 1px solid #f6d7d7;
    border-radius: 24px;
    box-shadow: 0 24px 55px -28px rgba(220,38,38,0.20);
}

/* AFTER — svetla, zmagovalna pot */
.comp-col.after {
    background: linear-gradient(180deg, #ffffff 0%, #e9fbf2 100%);
    border: 2px solid #6ee7b7;
    border-radius: 24px;
    box-shadow: 0 38px 75px -24px rgba(5,150,105,0.42);
    transform: translateY(-14px);
    position: relative;
    z-index: 1;
}

/* Ikonska značka v glavi (namesto emoji) */
.comp-icon {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.comp-col.before .comp-icon { background: #fee2e2; color: #ef4444; }
.comp-col.after .comp-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(16,185,129,0.55);
}
.comp-col.after:hover { transform: translateY(-20px); box-shadow: 0 46px 85px -22px rgba(5,150,105,0.5); }

@media (max-width: 860px) {
    .comp-col.before { border-radius: 22px; margin: 0; padding: 32px; }
    .comp-col.after { border-radius: 22px; margin: 18px 0 0; padding: 32px; transform: none; }
    .comp-col.after:hover { transform: none; }
}

.comp-col h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comp-col.before h4 { color: #ef4444; }
.comp-col.after h4 { color: var(--c-primary-600); }
.comp-col .comp-sub {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--c-mute);
    margin-bottom: 22px;
}
.comp-col ul { list-style: none; padding: 0; margin: 0; }
.comp-col li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 2px -8px;
    font-size: 14.5px;
    color: var(--c-ink-soft);
    border-radius: 11px;
    transition: background 0.15s, transform 0.15s;
}
.comp-col.after li { color: #334155; font-weight: 500; }
.comp-col li:hover { background: rgba(15,23,42,0.03); }
.comp-col.after li:hover { background: rgba(16,185,129,0.09); transform: translateX(2px); }
.comp-col .ic {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
.comp-col.before .ic { background: #fee2e2; color: #ef4444; }
.comp-col.after .ic {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 10px -2px rgba(16,185,129,0.5);
}

/* VS gumb — mehak, žareč */
.comp-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    z-index: 3;
}
.comp-vs span {
    position: relative;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399 0%, #10b981 45%, #059669 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 30px -6px rgba(5,150,105,0.6), inset 0 1px 0 rgba(255,255,255,0.35);
    border: 5px solid #fff;
}
.comp-vs span::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(16,185,129,0.4);
    animation: vsPulse 2.4s ease-out infinite;
}
@keyframes vsPulse {
    0%   { transform: scale(1);   opacity: 0.85; }
    100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 860px) {
    .comp-vs { width: auto; padding: 12px 0; }
    .comp-vs span::after { display: none; }
}

/* ---------- Testimonials ---------- */
.testimonials { background: #fff; }
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.testi-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 40px -10px rgba(15,23,42,.08); 
    background: #fff;
}
.testi-stars { color: #f59e0b; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testi-quote { font-size: 15px; color: var(--c-ink); line-height: 1.65; flex: 1; }
.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--c-line);
}
.testi-author img { width: 46px; height: 46px; border-radius: 50%; }
.testi-author .who h6 { font-size: 14px; font-weight: 700; color: var(--c-ink); }
.testi-author .who p { font-size: 12px; color: var(--c-mute); }

.testi-disclaimer {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: var(--c-mute);
    font-style: italic;
}

/* ---------- Mid-page CTA banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 32px;
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.05), inset 0 0 0 1px rgba(255,255,255,1);
}
.cta-banner::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('../assets/img/illustrations/bg-pattern.svg');
    background-size: 32px 32px;
    opacity: .05;
}
.cta-banner::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
    pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h3 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--c-ink); margin-bottom: 16px; line-height: 1.2; }
.cta-banner p { color: var(--c-ink-soft); font-size: 18px; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-banner .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Feature spotlight (image + text alternating) ---------- */
.spotlight { background: #fff; }
.spotlight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 72px;
}
.spotlight-row:last-child { margin-bottom: 0; }
.spotlight-row.reverse .spotlight-text { order: 2; }
@media (max-width: 900px) {
    .spotlight-row { grid-template-columns: 1fr; gap: 32px; }
    .spotlight-row.reverse .spotlight-text { order: 0; }
}
.spotlight-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--c-line);
}
.spotlight-img img { width: 100%; display: block; }
.spotlight-text h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 14px 0 14px; }
.spotlight-text p { font-size: 16px; color: var(--c-ink-soft); line-height: 1.7; }
.spotlight-text .check-list { margin-top: 20px; }

/* ===== STORY CTA — "En dan z LifeSaverjem" ===== */
.story-cta-card{ position:relative; overflow:hidden; display:grid; grid-template-columns:1.15fr .85fr; gap:48px;
  align-items:center; background:linear-gradient(135deg,#ecfdf5 0%,#ffffff 48%,#fff7ed 100%);
  border:1px solid #e2e8f0; border-radius:32px; padding:clamp(32px,5vw,60px);
  box-shadow:0 40px 80px -50px rgba(5,150,105,.45); }
.story-cta-card::before{ content:''; position:absolute; width:320px; height:320px; border-radius:50%;
  background:rgba(16,185,129,.16); filter:blur(70px); top:-90px; right:-60px; pointer-events:none; }
.story-cta-card > *{ position:relative; z-index:1; }
.story-cta-eyebrow{ display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:700;
  color:#059669; background:#fff; border:1px solid var(--c-primary-100); padding:6px 14px; border-radius:999px; box-shadow:var(--shadow-sm); }
.story-cta-text h2{ font-family:'Outfit',sans-serif; font-size:clamp(26px,3.4vw,38px); font-weight:800; color:#0f172a; line-height:1.12; margin:18px 0 14px; }
.story-cta-text p{ font-size:16.5px; line-height:1.65; color:var(--c-ink-soft); max-width:540px; }
.story-cta-avatars{ display:flex; align-items:center; margin:26px 0 28px; }
.sca{ width:104px; height:104px; border-radius:50%; overflow:hidden; border:4px solid #fff; margin-left:-22px;
  box-shadow:0 14px 30px -10px rgba(15,23,42,.45); background:#e2e8f0; position:relative;
  animation:sca-float 4.5s ease-in-out infinite; animation-delay:calc(var(--i,0) * .45s); }
.sca:first-child{ margin-left:0; }
.sca img{ width:100%; height:100%; object-fit:cover; object-position:center 20%; display:block; }
.sca-more{ margin-left:16px; font-weight:700; font-size:14px; color:#059669; white-space:nowrap; }
@keyframes sca-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-9px); } }
.story-cta-btn{ position:relative; animation:sca-pulse 2.8s ease-out infinite; }
@keyframes sca-pulse{ 0%{ box-shadow:0 0 0 0 rgba(16,185,129,.45); } 70%{ box-shadow:0 0 0 18px rgba(16,185,129,0); } 100%{ box-shadow:0 0 0 0 rgba(16,185,129,0); } }
.story-cta-visual{ position:relative; }
.sca-agenda{ background:#fff; border:1px solid #e2e8f0; border-radius:20px; padding:18px 22px;
  box-shadow:0 24px 50px -30px rgba(15,23,42,.35); }
.sca-agenda h4{ font-family:'Outfit',sans-serif; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--c-mute); margin:0 0 8px; }
.sca-hour{ display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid #f1f5f9; }
.sca-hour .t{ font-family:'Outfit',sans-serif; font-weight:800; font-size:14px; color:#059669; width:46px; flex:none; }
.sca-hour .e{ font-size:20px; line-height:1; }
.sca-hour .l{ font-size:14px; font-weight:600; color:#334155; }
.sca-badge{ position:absolute; display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:700;
  background:#fff; border:1px solid #e2e8f0; padding:8px 13px; border-radius:999px;
  box-shadow:0 16px 32px -16px rgba(15,23,42,.4); animation:sca-float 5s ease-in-out infinite; }
.sca-badge.bA{ top:-18px; left:-26px; color:#059669; animation-delay:.2s; }
.sca-badge.bB{ bottom:-16px; right:-22px; color:#2563eb; animation-delay:1.1s; }
@media (max-width:840px){
  .story-cta-card{ grid-template-columns:1fr; gap:36px; }
  .story-cta-visual{ max-width:380px; }
}
@media (prefers-reduced-motion:reduce){
  .sca,.story-cta-btn,.sca-badge{ animation:none !important; }
}

