/* ───────── PravniAI · custom CSS ───────── */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: #cba14a; color: #0a0a0a; }

.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ───────── Eyebrow label ───────── */
.eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: #cba14a; font-weight: 700; margin-bottom: 1rem; }

/* ───────── Country switcher ───────── */
.country-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; transition: all 200ms var(--ease-out); padding: 4px; }
.country-btn img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.country-btn:hover { background: rgb(0 0 0 / 0.06); transform: scale(1.08); }
.dark .country-btn:hover { background: rgb(255 255 255 / 0.08); }
.country-btn[aria-pressed="true"] { background: rgb(203 161 74 / 0.18); box-shadow: 0 0 0 1.5px #cba14a; }

.country-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; background: rgb(0 0 0 / 0.04); border: 1px solid rgb(0 0 0 / 0.08); border-radius: 9999px; font-size: 0.875rem; font-weight: 500; color: #44403c; transition: all 200ms var(--ease-out); }
.dark .country-pill { background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.08); color: #d6d3d1; }
.country-pill img { width: 20px; height: 20px; border-radius: 50%; }
.country-pill:hover { background: rgb(203 161 74 / 0.10); border-color: rgb(203 161 74 / 0.5); }

/* ───────── Step cards ───────── */
.step-card { padding: 1.75rem; border-radius: 1.25rem; background: white; border: 1px solid #e7e5e4; transition: all 300ms var(--ease-out); }
.dark .step-card { background: #1c1917; border-color: #292524; }
.step-card:hover { border-color: rgb(203 161 74 / 0.5); transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgb(203 161 74 / 0.3); }
.step-num { font-size: 2.5rem; line-height: 1; color: rgb(203 161 74 / 0.3); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
.step-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.step-body { color: #57534e; line-height: 1.6; font-size: 0.9375rem; }
.dark .step-body { color: #a8a29e; }

/* ───────── Comparison table icons ───────── */
.cmp-yes, .cmp-no, .cmp-warn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9999px; }
.cmp-yes { background: rgb(203 161 74 / 0.18); color: #cba14a; }
.cmp-yes::before { content: ""; width: 16px; height: 16px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; background: currentColor; }
.cmp-no { background: rgb(150 150 150 / 0.12); color: #78716c; }
.cmp-no::before { content: ""; width: 14px; height: 14px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/contain no-repeat; background: currentColor; }
.cmp-warn { background: rgb(217 165 75 / 0.18); color: #d4a64a; font-weight: 700; }
.cmp-warn::before { content: "!"; font-size: 14px; }
.cmp-na { color: #a8a29e; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; }

/* ───────── Feature cards ───────── */
.ft-card { padding: 1.5rem; border-radius: 1rem; background: white; border: 1px solid #e7e5e4; transition: all 300ms var(--ease-out); }
.dark .ft-card { background: rgb(28 25 23 / 0.6); border-color: #292524; backdrop-filter: blur(10px); }
.ft-card:hover { border-color: rgb(203 161 74 / 0.5); background: rgb(203 161 74 / 0.04); transform: translateY(-2px); }
.ft-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(203 161 74 / 0.12); color: #cba14a; margin-bottom: 1rem; }
.ft-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.ft-body { color: #57534e; line-height: 1.55; font-size: 0.9rem; }
.dark .ft-body { color: #a8a29e; }

/* ───────── Form fields ───────── */
.form-field { display: block; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #44403c; margin-bottom: 0.5rem; letter-spacing: -0.005em; }
.dark .form-label { color: #d6d3d1; }
.form-input { width: 100%; padding: 0.75rem 1rem; background: white; border: 1.5px solid #e7e5e4; border-radius: 0.625rem; font-size: 1rem; color: #1c1917; transition: all 150ms var(--ease-out); font-family: inherit; }
.dark .form-input { background: #0a0a0a; border-color: #292524; color: #fafaf9; }
.form-input::placeholder { color: #a8a29e; }
.dark .form-input::placeholder { color: #57534e; }
.form-input:focus { outline: none; border-color: #cba14a; box-shadow: 0 0 0 4px rgb(203 161 74 / 0.15); }

/* ───────── FAQ ───────── */
.faq-item { border: 1px solid #e7e5e4; border-radius: 1rem; background: white; overflow: hidden; transition: all 200ms var(--ease-out); color: #1c1917; }
.dark .faq-item { border-color: #44403c; background: #1c1917; color: #fafaf9; }
.faq-item[open] { border-color: rgb(203 161 74 / 0.5); box-shadow: 0 4px 24px -8px rgb(203 161 74 / 0.25); }
.dark .faq-item[open] { background: rgb(41 37 36 / 0.7); border-color: rgb(203 161 74 / 0.6); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.125rem 1.25rem; cursor: pointer; font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; list-style: none; user-select: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform 200ms var(--ease-out); color: #cba14a; flex-shrink: 0; }
.faq-item[open] .faq-q::after { transform: rotate(180deg); }
.faq-a { padding: 0 1.25rem 1.25rem; color: #57534e; line-height: 1.65; font-size: 0.9375rem; }
.dark .faq-a { color: #e7e5e4; }
.faq-a strong { color: #1c1917; font-weight: 700; }
.dark .faq-a strong { color: white; }

/* ───────── Stat counter ───────── */
.stat .counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────────────────
   REVEAL ANIMATIONS — clean, no GSAP, no conflict
   ───────────────────────────────────────────────────── */

/* Hero items: CSS-only sequential fade-in (runs immediately) */
.hero-fade {
  opacity: 0; transform: translateY(20px);
  animation: heroFadeIn 0.7s var(--ease-out) forwards;
  animation-delay: calc(0.05s + var(--i, 0) * 0.1s);
}
.hero-fade:nth-of-type(1) { --i: 0; }
.hero-fade:nth-of-type(2) { --i: 1; }
.hero-fade:nth-of-type(3) { --i: 2; }
.hero-fade:nth-of-type(4) { --i: 3; }
.hero-fade:nth-of-type(5) { --i: 4; }
@keyframes heroFadeIn { to { opacity: 1; transform: translateY(0); } }

/* Section reveals: hidden, JS adds .in-view via IntersectionObserver */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Hard fallback — if JS fails entirely (no IntersectionObserver), show after 1s */
.no-js-reveal .reveal { opacity: 1 !important; transform: none !important; }

/* Modern CSS scroll-driven (Chrome 115+, Safari 26+) — works WITHOUT JS */
@supports (animation-timeline: view()) {
  .reveal:not(.in-view) {
    animation: revealUp linear forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  @keyframes revealUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-fade { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ───────── Hero canvas ───────── */
#heroCanvas { display: block; outline: none; touch-action: pan-y; }

#year { font-variant-numeric: tabular-nums; }

/* sticky CTA spacing on mobile */
@media (max-width: 639px) { body { padding-bottom: 6rem; } }

@media print {
  header, #demo, footer, [aria-label*="3D"] { display: none !important; }
  body { background: white; color: black; }
}

/* Text balance for headings (modern browsers) */
.text-balance { text-wrap: balance; }

/* ───────── Animated demo chat ───────── */
.demo-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  vertical-align: text-bottom;
  background: #cba14a;
  animation: blink 1s steps(1) infinite;
  margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

.thinking-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: thinkBounce 1.4s ease-in-out infinite;
}
.thinking-dot:nth-child(2) { animation-delay: 0.16s; }
.thinking-dot:nth-child(3) { animation-delay: 0.32s; }
@keyframes thinkBounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

#demoAnswer { white-space: pre-wrap; }

/* ───────── Value stats ───────── */
.val-stat {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
.val-num {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1;
}
.val-suffix { color: #e0bc6e; }
.val-lbl { font-size: 0.8125rem; color: #a8a29e; margin-top: 0.5rem; line-height: 1.3; }

/* ───────── Uncensored card ───────── */
.unc-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid #e7e5e4;
}
.dark .unc-card { background: #1c1917; border-color: #292524; }
.unc-card-good { border-color: rgb(203 161 74 / 0.5); background: linear-gradient(135deg, rgb(203 161 74 / 0.06), transparent); }
.dark .unc-card-good { background: linear-gradient(135deg, rgb(203 161 74 / 0.08), #1c1917); }
.unc-q, .unc-q-good { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem; }
.unc-q { background: rgb(220 220 220 / 0.4); color: #78716c; }
.dark .unc-q { background: #292524; }
.unc-q-good { background: rgb(203 161 74 / 0.18); color: #a4822f; }
.dark .unc-q-good { color: #e0bc6e; }
.unc-body { color: #57534e; line-height: 1.6; font-size: 0.95rem; }
.dark .unc-body { color: #d6d3d1; }

/* ───────── Hardware option cards ───────── */
.hw-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: white;
  border: 1px solid #e7e5e4;
  transition: all 300ms var(--ease-out);
}
.dark .hw-card { background: #1c1917; border-color: #292524; }
.hw-card:hover {
  border-color: rgb(203 161 74 / 0.5);
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -20px rgb(203 161 74 / 0.25);
}
.hw-card-accent {
  background: linear-gradient(135deg, rgb(203 161 74 / 0.06), transparent);
  border-color: rgb(203 161 74 / 0.4);
}
.dark .hw-card-accent {
  background: linear-gradient(135deg, rgb(203 161 74 / 0.10), #1c1917);
}
.hw-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgb(203 161 74 / 0.12);
  color: #cba14a;
  margin-bottom: 1rem;
}
.hw-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: #f5f5f4;
  color: #57534e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.dark .hw-tag { background: #292524; color: #d6d3d1; }
.hw-tag-accent { background: rgb(203 161 74 / 0.18); color: #a4822f; }
.dark .hw-tag-accent { color: #e0bc6e; }
.hw-title { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.625rem; letter-spacing: -0.015em; }
.hw-body { color: #57534e; line-height: 1.6; font-size: 0.95rem; margin-bottom: 1.25rem; }
.dark .hw-body { color: #a8a29e; }
.hw-list { list-style: none; padding: 0; margin: 0; }
.hw-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: #44403c;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.dark .hw-list li { color: #d6d3d1; }
.hw-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 14px; height: 14px;
  background: #cba14a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* model-viewer transparent background fix */
model-viewer { background-color: transparent !important; --poster-color: transparent; }

/* ───────── Source tiles ───────── */
.src-tile {
  padding: 1.25rem;
  border-radius: 0.875rem;
  background: white;
  border: 1px solid #e7e5e4;
  transition: all 250ms var(--ease-out);
}
.dark .src-tile { background: #1c1917; border-color: #292524; }
.src-tile:hover { border-color: rgb(203 161 74 / 0.5); transform: translateY(-2px); }
.src-tile-accent { background: linear-gradient(135deg, rgb(203 161 74 / 0.08), transparent); border-color: rgb(203 161 74 / 0.4); }
.src-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: rgb(203 161 74 / 0.12); color: #cba14a; margin-bottom: 0.75rem; }
.src-t { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.src-b { font-size: 0.825rem; line-height: 1.5; color: #57534e; }
.dark .src-b { color: #a8a29e; }

/* ───────── CINEMATIC HERO (5-phase pinned scroll) ───────── */
#cineHero { position: relative; }
#cinePin { position: relative; }

/* Particle canvas */
#cineParticles { display: block; opacity: 0.7; mix-blend-mode: screen; }

/* 3D model wrapper — moves between center and right with scroll */
#cineModelWrap {
  transition: none; /* GSAP handles all transforms */
  will-change: transform, opacity;
}
#cineModelWrap model-viewer {
  background: transparent !important;
  --poster-color: transparent;
}

/* Phase containers — absolutely positioned over model.
   When .cine-managed is present, JS controls opacity/visibility/transform
   directly (deterministic from scroll progress).
   Without JS: .active class falls back to showing the phase. */
.cine-phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 10;
  will-change: opacity, transform;
}
.cine-phase:not(.cine-managed) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cine-phase:not(.cine-managed).active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cine-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1rem 3rem;
  pointer-events: auto;
}
@media (min-width: 640px) { .cine-inner { padding: 7rem 1.5rem 4rem; } }
@media (min-width: 1024px) { .cine-inner { padding: 7rem 2rem 4rem; } }

.cine-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cine-center .eyebrow { margin-bottom: 1.5rem; }

/* Phase 1 hero text — positioned left of model */
#phase1 .cine-inner {
  max-width: 640px;
}
.cine-h1 {
  font-size: clamp(1.875rem, 6.5vw, 4rem);
}
@media (min-width: 1024px) {
  #phase1 .cine-inner { max-width: 720px; }
  .cine-h1 { font-size: clamp(2.25rem, 4vw, 3.75rem); }
}

.cine-h2 {
  text-shadow: 0 4px 40px rgb(0 0 0 / 0.3);
}

/* Hero text reveals as full lines (JS-driven, runs once on load) */
.cine-line { display: block; will-change: opacity, transform; }

/* Hero h1 second line — gold gradient with glow */
.hero-h1-grad {
  background: linear-gradient(120deg, #cba14a 0%, #f0d090 45%, #cba14a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(203, 161, 74, 0.25);
}

/* Hero badge: live pulsing dot in front of "60 sekundi" */
.hero-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cba14a;
  box-shadow: 0 0 0 0 rgba(203, 161, 74, 0.55);
  animation: hero-pulse 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  flex-shrink: 0;
}
@keyframes hero-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(203, 161, 74, 0.6); transform: scale(1); }
  70%  { box-shadow: 0 0 0 10px rgba(203, 161, 74, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(203, 161, 74, 0); transform: scale(1); }
}

/* Inline hero CTA row (desktop only — mobile uses sticky bottom bar) */
.hero-cta-row { margin-top: 0.5rem; }

/* Scroll progress dots */
.cine-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #78716c;
  transition: all 300ms var(--ease-out);
}
.cine-dot.active { background: #cba14a; transform: scale(1.5); }
.dark .cine-dot { background: #44403c; }
.dark .cine-dot.active { background: #cba14a; }

/* Scroll cue fades after first scroll */
#cineScrollCue { transition: opacity 400ms; }
.scrolled #cineScrollCue { opacity: 0; }

/* Mobile: shorter pin (300vh vs 400vh on desktop), tighter text */
@media (max-width: 1023px) {
  #cinePin { height: 220vh; }
  #phase1 .cine-inner { padding-top: 5rem; max-width: 100%; }
  .cine-h1 { font-size: clamp(1.75rem, 7vw, 3rem); }
  /* Position phase 1 text at top so model is visible below */
  #phase1 .cine-inner { justify-content: flex-start; padding-bottom: 0; }
  .cine-phase { align-items: flex-start; padding-top: 5rem; }
  /* Center other phases */
  #phase2 .cine-inner, #phase3 .cine-inner, #phase4 .cine-inner { padding-top: 3rem; }
  /* Mobile model: smaller, lower */
  #cineModelWrap { transform: translateY(15%) scale(0.7); }
}

/* Cinematic phase 2 features */
.cine-feat { padding: 1rem; border-radius: 0.875rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.cine-feat-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: rgb(203 161 74 / 0.15); color: #cba14a; margin-bottom: 0.625rem; }
.cine-feat h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; color: #1c1917; }
.dark .cine-feat h4 { color: #fafaf9; }
.cine-feat p { font-size: 0.85rem; color: #57534e; line-height: 1.45; }
.dark .cine-feat p { color: #a8a29e; }

/* Cinematic phase 3 tags */
.cine-tag {
  padding: 0.875rem;
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; align-items: flex-start;
  font-size: 0.875rem;
}
.cine-tag strong { color: #1c1917; font-weight: 700; }
.dark .cine-tag strong { color: #fafaf9; }
.cine-tag span { color: #78716c; font-size: 0.75rem; margin-top: 0.125rem; }
.dark .cine-tag span { color: #a8a29e; }
.cine-tag-accent { background: linear-gradient(135deg, rgb(203 161 74 / 0.18), transparent); border-color: rgb(203 161 74 / 0.5); }
.cine-tag-accent strong { color: #cba14a !important; }

/* Preloader */
#preloader.done { opacity: 0; pointer-events: none; }

/* Cinematic phase 2 quick tag pills (compact) */
.cine-tag-pill {
  display: inline-flex; align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(203, 161, 74, 0.12);
  border: 1px solid rgba(203, 161, 74, 0.4);
  color: #cba14a;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Mobile-specific tighter pin */
@media (max-width: 1023px) {
  #cinePin { height: 280vh; }
}

/* (Phase 2 model hide is handled by deterministic JS opacity now) */

/* Inline law links in chat demo */
.law-link {
  color: #cba14a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(203, 161, 74, 0.5);
  font-weight: 600;
  transition: all 200ms var(--ease-out);
  cursor: pointer;
}
.law-link:hover {
  color: #e0bc6e;
  text-decoration-color: #cba14a;
  background: rgba(203, 161, 74, 0.1);
  border-radius: 3px;
  padding: 0 2px;
}

/* Law article modal */
#lawModal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
#lawModal.open { display: flex; }
.law-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
.law-dialog {
  position: relative;
  background: white;
  color: #1c1917;
  border-radius: 1.25rem;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 25px 80px -10px rgba(203, 161, 74, 0.5);
  border: 1px solid rgba(203, 161, 74, 0.3);
  animation: slideUp 0.3s var(--ease-out);
}
.dark .law-dialog {
  background: #1c1917;
  color: #fafaf9;
  border-color: rgba(203, 161, 74, 0.5);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.law-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  color: #44403c;
  border: none; cursor: pointer;
  transition: all 200ms;
}
.dark .law-close { background: rgba(255,255,255,0.06); color: #d6d3d1; }
.law-close:hover { background: rgba(203, 161, 74, 0.18); color: #cba14a; }
.law-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cba14a;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.law-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}
.law-body {
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 1rem 1.25rem;
  background: rgba(203, 161, 74, 0.05);
  border-left: 3px solid #cba14a;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: Georgia, 'Times New Roman', serif;
}
.dark .law-body { background: rgba(203, 161, 74, 0.08); }
.law-body strong { color: #a4822f; }
.dark .law-body strong { color: #e0bc6e; }
.law-foot {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(203, 161, 74, 0.1), transparent);
  border-radius: 0.625rem;
  text-align: center;
}
.law-foot p { font-size: 0.85rem; color: #57534e; margin: 0 0 0.875rem; line-height: 1.5; }
.dark .law-foot p { color: #d6d3d1; }
.law-foot strong { color: #1c1917; }
.dark .law-foot strong { color: #fafaf9; }
.law-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #cba14a;
  color: #0a0a0a;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 200ms;
}
.law-cta:hover { background: #e0bc6e; transform: translateY(-1px); }

/* ───────── EXAMPLE SLIDER (4 slides: praksa · komentari · generalno · necenzurisano) ───────── */
.example-slider {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}
.slider-viewport {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(203, 161, 74, 0.08);
}
.slider-track {
  display: flex;
  transition: transform 600ms cubic-bezier(.2,.6,.2,1);
  will-change: transform;
}
.ex-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 0.25rem;
}
.ex-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dark .ex-card {
  background: #1c1917;
  border-color: #292524;
}
.ex-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e7e5e4;
  background: #fafaf9;
}
.dark .ex-head { background: #0a0a0a; border-color: #292524; }
.ex-dots { display: flex; gap: 0.375rem; }
.ex-dots span { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.ex-dots span:nth-child(1) { background: rgba(248, 113, 113, 0.7); }
.ex-dots span:nth-child(2) { background: rgba(250, 204, 21, 0.7); }
.ex-dots span:nth-child(3) { background: rgba(74, 222, 128, 0.7); }
.ex-title {
  font-size: 0.7rem;
  color: #78716c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dark .ex-title { color: #a8a29e; }
.ex-title b { color: #cba14a; font-weight: 600; }

.ex-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ex-badge-praksa { background: rgba(59, 130, 246, 0.12); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }
.dark .ex-badge-praksa { color: #60a5fa; }
.ex-badge-komentari { background: rgba(168, 85, 247, 0.12); color: #9333ea; border: 1px solid rgba(168, 85, 247, 0.3); }
.dark .ex-badge-komentari { color: #c084fc; }
.ex-badge-opste { background: rgba(203, 161, 74, 0.14); color: #a4822f; border: 1px solid rgba(203, 161, 74, 0.4); }
.dark .ex-badge-opste { color: #cba14a; }
.ex-badge-uncen { background: rgba(239, 68, 68, 0.14); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.35); }
.dark .ex-badge-uncen { color: #f87171; }

.ex-body {
  padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  min-height: 28rem;
}
@media (min-width: 640px) {
  .ex-body { padding: 2rem 2rem; min-height: 30rem; }
}

.ex-msg { display: flex; gap: 0.75rem; align-items: flex-start; }
.ex-avatar {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
}
.ex-avatar-user { background: #e7e5e4; color: #44403c; }
.dark .ex-avatar-user { background: #292524; color: #d6d3d1; }
.ex-avatar-ai {
  background: linear-gradient(135deg, #e0bc6e, #a4822f);
  color: #0a0a0a;
}
.ex-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #78716c;
  margin-bottom: 0.375rem;
}
.dark .ex-name { color: #a8a29e; }
.ex-name-ai { color: #a4822f; }
.dark .ex-name-ai { color: #cba14a; }

.ex-q {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1c1917;
  font-weight: 500;
}
.dark .ex-q { color: #fafaf9; }
@media (min-width: 640px) { .ex-q { font-size: 1.05rem; } }

.ex-a {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #292524;
}
.dark .ex-a { color: #f5f5f4; }
.ex-a strong { color: #1c1917; font-weight: 700; }
.dark .ex-a strong { color: #ffffff; }
.ex-a p { margin: 0 0 0.625rem; }
.ex-a p:last-child { margin-bottom: 0; }
.ex-a ul { margin: 0.25rem 0 0.5rem; padding-left: 1.25rem; }
.ex-a ul li { margin-bottom: 0.25rem; }

.ex-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e7e5e4;
  background: rgba(250, 250, 249, 0.5);
  font-size: 0.7rem;
  color: #78716c;
}
.dark .ex-foot { border-color: #292524; background: rgba(10, 10, 10, 0.5); color: #a8a29e; }
.ex-src { display: inline-flex; align-items: center; gap: 0.375rem; }
.ex-live { display: inline-flex; align-items: center; gap: 0.5rem; }
.ex-live-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1c1917;
  border: 1px solid #e7e5e4;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 200ms;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.dark .slider-arrow { background: rgba(28, 25, 23, 0.95); color: #fafaf9; border-color: #44403c; }
.slider-arrow:hover { background: #cba14a; color: #0a0a0a; transform: translateY(-50%) scale(1.06); }
.slider-prev { left: -1.25rem; }
.slider-next { right: -1.25rem; }
@media (max-width: 640px) {
  .slider-prev { left: 0.5rem; }
  .slider-next { right: 0.5rem; }
  .slider-arrow { width: 2.25rem; height: 2.25rem; }
}

/* Slider dots */
.slider-dots {
  display: flex; justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.slider-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background: #d6d3d1;
  border: none;
  cursor: pointer;
  transition: all 250ms;
  padding: 0;
}
.dark .slider-dot { background: #44403c; }
.slider-dot.active {
  background: #cba14a;
  width: 1.5rem;
}

/* Scroll-to-top FAB. Hidden by default; .visible class fades it in. */
#scrollTopBtn {
  /* Desktop: above the WhatsApp circle (bottom: 1.5rem + 3.5rem + .5rem gap) */
  bottom: 5.75rem;
  right: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 250ms, transform 250ms, background-color 200ms;
}
#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Mobile: above the sticky bottom CTA bar (bar is bottom: 0.75rem + ~3.5rem button + small gap) */
@media (max-width: 639px) {
  #scrollTopBtn { right: 1rem; bottom: 4.75rem; }
}

