/* ============================================================
   STAMPRESSO — stranica /pro (Pro funkcije + vodič za domen)
   Nasleđuje site.css (nav, btn, sec-*, device/ph, coupon, foot);
   sve novo je pod .pro-* prefiksom — NE dira postojeće stilove.
   ============================================================ */

/* sidra iz nava/dashboarda (npr. /pro#domen) ne smeju pod fiksni nav */
.pro-sec, .pro-cena { scroll-margin-top: 90px; }

.pro-sec { padding: clamp(80px, 12vh, 140px) 0 0; }
.pro-sec:last-of-type { padding-bottom: clamp(80px, 12vh, 140px); }

/* ---------- hero: plutajući uvidi (chips) ---------- */
.pro-hero { min-height: 92svh; }
.pro-chips {
  position: absolute; z-index: 1; top: 50%;
  right: max(var(--pad), calc((100vw - var(--wrap)) / 2));
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 20px;
  pointer-events: none;
}
.pro-chip {
  background: #fff; border: 1.5px solid var(--cream-deep); border-radius: 18px;
  padding: 16px 24px;
  box-shadow: 0 24px 60px -28px rgba(20, 17, 12, .35);
  animation: floaty 6s ease-in-out infinite;
  width: max-content;
}
.pro-chip span { display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; font-weight: 600; }
.pro-chip b { font-family: var(--disp); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); color: var(--blue); letter-spacing: -.02em; }
.pro-chip:nth-child(1) { transform: rotate(-2deg); }
.pro-chip:nth-child(2) { margin-left: 44px; animation-delay: -2.2s; transform: rotate(1.5deg); }
.pro-chip:nth-child(3) { margin-left: 12px; animation-delay: -4.1s; transform: rotate(-1deg); }

/* ---------- 01 analitika: dashboard kartica ---------- */
.pro-dash {
  background: #fff; border: 1.5px solid var(--cream-deep);
  border-radius: calc(var(--r) + 6px);
  padding: clamp(20px, 3.4vw, 48px);
  margin: clamp(30px, 5vh, 54px) auto 0;
  box-shadow: 0 30px 70px -35px rgba(20, 17, 12, .3);
  max-width: 860px;
}
.pro-dash-title {
  background: var(--blue); color: var(--cream);
  font-family: var(--disp); font-weight: 800; font-size: clamp(18px, 2vw, 24px);
  letter-spacing: .02em; text-align: center;
  border-radius: 16px; padding: 14px 24px;
  margin-bottom: clamp(18px, 2.5vw, 30px);
}
.pro-sep { border: none; border-top: 1px solid rgba(30, 59, 184, .18); margin: clamp(12px, 1.8vw, 20px) 0; }
.pro-an-row { display: flex; align-items: center; gap: 18px; padding: 6px 0; }
.pro-an-num {
  flex-shrink: 0; min-width: 110px;
  font-family: var(--body); font-weight: 600; font-size: clamp(38px, 4.6vw, 52px);
  line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums;
}
.pro-an-txt { display: flex; flex-direction: column; gap: 2px; }
.pro-an-name { font-family: var(--disp); font-weight: 700; font-size: clamp(15px, 1.7vw, 17px); color: var(--blue); }
.pro-an-desc { font-size: 13px; font-style: italic; opacity: .6; }
.pro-block { display: flex; flex-direction: column; padding: 6px 0; }
.pro-peak {
  margin: 12px 0 2px;
  font-family: var(--body); font-weight: 600; font-size: clamp(15px, 1.8vw, 18px);
  color: var(--blue);
  opacity: 0; transform: translateY(8px);
  transition: opacity .6s ease .1s, transform .6s ease .1s;
}
.pro-dash.live .pro-peak { opacity: 1; transform: none; }

/* toplotna mapa (isti vizuelni jezik kao u aplikaciji) */
.pro-heat {
  display: grid; grid-template-columns: auto repeat(var(--cols, 16), 1fr);
  gap: 4px; width: 100%; margin-top: 14px;
}
.pro-heat-hour { font-size: 11px; opacity: .55; text-align: center; font-variant-numeric: tabular-nums; overflow: hidden; }
.pro-heat-day { display: flex; align-items: center; padding-right: 7px; font-size: 11px; letter-spacing: .04em; opacity: .55; }
.pro-heat-cell {
  position: relative; aspect-ratio: 1;
  border: 1px solid rgba(30, 59, 184, .13); border-radius: 4px;
  background: rgba(30, 59, 184, .04);
  overflow: hidden; cursor: pointer;
}
.pro-heat-cell::before {
  content: ''; position: absolute; inset: 0; background: var(--blue);
  opacity: 0; transition: opacity .5s ease var(--dl, 0ms);
}
.pro-dash.live .pro-heat-cell::before { opacity: var(--o, 0); }
.pro-heat-cell.peak { border-color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue); }
.pro-dash.live .pro-heat-cell.peak { animation: proPeakPulse 2.2s ease 1.2s 2; }
@keyframes proPeakPulse {
  0%, 100% { box-shadow: 0 0 0 1.5px var(--blue); }
  50% { box-shadow: 0 0 0 4px rgba(30, 59, 184, .4); }
}
.pro-heat-cell.sel { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.pro-heat-info { margin-top: 12px; min-height: 18px; font-weight: 600; font-size: 14px; color: var(--blue); }
.pro-heat-info.hint { font-weight: 400; font-style: italic; font-size: 13px; color: inherit; opacity: .5; }
.pro-heat-legend { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; opacity: .6; }
.pro-heat-scale { display: inline-flex; gap: 4px; }
.pro-heat-scale i { width: 12px; height: 12px; border-radius: 4px; background: var(--blue); }
.pro-heat-scale i:nth-child(1) { opacity: .12; }
.pro-heat-scale i:nth-child(2) { opacity: .3; }
.pro-heat-scale i:nth-child(3) { opacity: .5; }
.pro-heat-scale i:nth-child(4) { opacity: .72; }
.pro-heat-scale i:nth-child(5) { opacity: 1; }

/* mini bar-grafovi */
.pro-trends { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.pro-chart { margin-top: 14px; }
.pro-chart svg { display: block; width: 100%; height: 92px; }
.pro-bar {
  fill: var(--blue); opacity: .55;
  transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.22, .9, .35, 1) var(--dl, 0ms);
}
.pro-bar.last { opacity: 1; }
.pro-dash.live .pro-bar { transform: scaleY(1); }
.pro-chart-x {
  display: flex; justify-content: space-between; margin-top: 7px;
  font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums;
}
.pro-dash-note { margin-top: 22px; font-size: 14.5px; opacity: .65; max-width: 620px; }
.pro-dash-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- zajednički grid sekcija (tekst + demo) ---------- */
.pro-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.pro-demo-col { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.pro-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.pro-list li { padding-left: 30px; position: relative; font-size: 16.5px; }
.pro-list li::before {
  content: '✓'; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: var(--cream);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 02 poruke: pravilo ispod kupona ---------- */
.pro-rule { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font-weight: 600; font-size: 15px; }
.pro-rule-box { border: 1.5px solid var(--blue); border-radius: 14px; padding: 10px 16px; background: #fff; color: var(--blue); }
.pro-rule-box b { font-family: var(--disp); font-weight: 800; }
.pro-rule-arr { color: var(--blue); font-size: 22px; }

/* ---------- 03 brend: telefon + kontrole ---------- */
.pro-device { --w: min(280px, 68vw); }
.pro-ctl { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pro-swatches { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pro-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid transparent; box-shadow: inset 0 0 0 3px var(--cream);
  transition: transform .2s var(--ease), border-color .2s;
}
.pro-swatch:hover { transform: scale(1.14); }
.pro-swatch.on { border-color: var(--ink); }
.pro-themes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pro-theme {
  border: 1.5px solid var(--blue); color: var(--blue);
  border-radius: 999px; padding: 8px 18px;
  font-weight: 600; font-size: 14.5px;
  transition: background .25s, color .25s;
}
.pro-theme.on { background: var(--blue); color: var(--cream); }

/* ---------- 04 domen: browser maketa + koraci ---------- */
.pro-browser {
  width: min(420px, 100%);
  background: #fff; border: 1.5px solid var(--cream-deep); border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px -32px rgba(20, 17, 12, .35);
}
.pro-browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--cream-deep);
}
.pro-browser-dots { display: inline-flex; gap: 5px; }
.pro-browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(20, 17, 12, .22); }
.pro-browser-url {
  flex: 1; background: #fff; border-radius: 999px; padding: 6px 16px;
  font-size: 13.5px; display: flex; gap: 8px; align-items: center;
}
.pro-browser-url b { font-weight: 600; }
.pro-browser-screen { position: relative; height: 430px; overflow: hidden; background: var(--cream); }
.pro-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(40px, 7vh, 70px);
}
.pro-step {
  position: relative;
  background: #fff; border: 1.5px solid var(--cream-deep);
  border-radius: var(--r); padding: clamp(22px, 2.8vw, 34px);
  display: flex; flex-direction: column; gap: 10px;
}
.pro-step-num {
  position: absolute; top: 14px; right: 20px;
  font-family: var(--disp); font-weight: 800; font-size: clamp(44px, 5vw, 64px);
  color: var(--cream-deep); line-height: 1;
}
.pro-step h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -.02em; }
.pro-step p { font-size: 15px; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.pro-step-k { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .55; margin-top: 6px; }
.pro-step-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px dashed color-mix(in srgb, var(--blue) 45%, transparent);
  border-radius: 12px; padding: 9px 12px;
}
.pro-step-row code { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--blue); }
.pro-step-row button {
  font-size: 13px; font-weight: 600; color: var(--blue);
  text-decoration: underline; text-underline-offset: 3px;
  transition: opacity .2s;
}
.pro-step-row button:hover { opacity: .7; }

/* ---------- cena ---------- */
.pro-cena {
  background: var(--blue); color: var(--cream);
  padding: clamp(90px, 13vh, 150px) 0;
  border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0;
  margin-top: clamp(80px, 12vh, 140px);
}
.pro-price-row { display: flex; gap: clamp(16px, 2.5vw, 28px); margin-top: clamp(30px, 5vh, 46px); flex-wrap: wrap; }
.pro-price {
  border: 1.5px solid color-mix(in srgb, var(--cream) 40%, transparent);
  border-radius: 24px; padding: clamp(24px, 3vw, 36px) clamp(28px, 3.4vw, 44px);
  min-width: 230px;
  transition: transform .35s var(--ease), border-color .35s;
}
.pro-price:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--cream) 70%, transparent); }
.pro-price b {
  display: block;
  font-family: var(--disp); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(44px, 5.5vw, 64px); font-variant-numeric: tabular-nums;
}
.pro-price span { font-size: 15px; opacity: .8; }
.pro-price i {
  font-style: normal; display: inline-block; margin-top: 12px;
  font-size: 13px; letter-spacing: .04em;
  border: 1.5px dashed color-mix(in srgb, var(--cream) 65%, transparent);
  border-radius: 999px; padding: 4px 12px;
}
.pro-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(28px, 4vh, 40px); }
.pro-cena-note { margin-top: 24px; font-size: 14.5px; opacity: .85; }
.pro-cena-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  /* chips silaze u tok ispod hero teksta (kao hero telefon na početnoj) */
  .pro-hero { min-height: 0; padding-bottom: 60px; }
  .pro-chips {
    position: static; transform: none;
    flex-direction: row; flex-wrap: wrap; gap: 12px;
    margin: 42px auto 0; max-width: var(--wrap);
    padding: 0;
  }
  .pro-chip, .pro-chip:nth-child(2), .pro-chip:nth-child(3) { margin-left: 0; transform: none; }
  .hero-scroll { display: none; }
}
@media (max-width: 880px) {
  .pro-grid, .pro-grid-rev { grid-template-columns: 1fr; gap: 30px; }
  /* na telefonu demo ide ISPOD teksta u obe varijante */
  .pro-grid-rev .pro-demo-col { order: 2; }
  .pro-trends { grid-template-columns: 1fr; }
  .pro-steps { grid-template-columns: 1fr; }
  .pro-an-num { min-width: 86px; font-size: 36px; }
  .pro-browser-screen { height: 380px; }
}
@media (max-width: 560px) {
  .pro-chip { padding: 12px 18px; }
  .pro-chip b { font-size: 19px; }
  .pro-heat { gap: 2px; }
  .pro-heat-day, .pro-heat-hour { font-size: 9px; }
  .pro-price { min-width: 0; width: 100%; }
  .pro-cta-row .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pro-chip { animation: none; }
  .pro-peak, .pro-heat-cell::before, .pro-bar { transition: none; }
  .pro-dash.live .pro-heat-cell.peak { animation: none; }
}
