/* Client Space — marketinška strana proizvoda (R02). Svetla, urednička; marker oznake preko pravog softvera. */
@font-face { font-family: "Brico"; src: url(../shared/fonts/BricolageGrotesque-var-latinext.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JBMono"; src: url(../shared/fonts/JetBrainsMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f2f3f5; --paper-2: #e8eaee; --surface: #fbfbfc; --ink: #1a1c22; --stage: #202227; --stage-2: #2a2d34;
  --muted: #5e626b; --line: #d9dbe0; --marker: #dde84a; --marker-ink: #1a1c22;
  --r: 10px; --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 4vw, 56px); --max: 1360px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) { --paper: #15161a; --paper-2: #1d1f24; --surface: #1b1d22; --ink: #eceef1; --muted: #a3a7b0; --line: #2d3038; --stage: #0f1013; --stage-2: #1a1b20; color-scheme: dark; }
}
:root[data-theme=dark] { --paper: #15161a; --paper-2: #1d1f24; --surface: #1b1d22; --ink: #eceef1; --muted: #a3a7b0; --line: #2d3038; --stage: #0f1013; --stage-2: #1a1b20; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 "Brico", system-ui, sans-serif; font-variation-settings: "opsz" 14; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 720; font-variation-settings: "opsz" 96; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; font-variation-settings: "opsz" 32; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--marker); background: var(--marker); color: var(--marker-ink); font: 600 17px/1 "Brico", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 160ms var(--ease), background-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn.line { background: transparent; border-color: var(--ink); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #e6f05f; } .btn.line:hover { background: var(--ink); color: var(--paper); } }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* navigacija */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.nav.stuck { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; border: 2.5px solid var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--marker); border: 2px solid var(--paper); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* hero */
.hero { padding-top: clamp(40px, 7vw, 92px); }
.hero-title { font-size: clamp(3rem, 7.4vw, 7.6rem); font-weight: 760; letter-spacing: -0.045em; line-height: 0.96; }
.hero-title span { display: block; }
.hero-row { display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between; align-items: end; gap: 28px; margin-top: clamp(24px, 3vw, 40px); }
.hero-sub { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.stage { position: relative; margin-top: clamp(36px, 5vw, 64px); padding-block: clamp(32px, 5vw, 72px) clamp(48px, 6vw, 96px);
  background: radial-gradient(120% 80% at 70% 0%, var(--stage-2), var(--stage) 60%) ; background-size: cover; }
.stage[data-slot-ok] { background: var(--stage) var(--plate) center / cover no-repeat; }
.stage-in { position: relative; }
.sheet { margin: 0; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(255 255 255 / 0.06); }
.browser { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #eceef1; border-bottom: 1px solid #dcdee3; }
.browser i { width: 11px; height: 11px; border-radius: 50%; background: #cfd2d8; }
.browser span { margin-left: 14px; font: 13px/1 "Brico", sans-serif; color: #6a6e77; background: #fff; border-radius: 6px; padding: 6px 12px; }
.sheet figcaption { position: absolute; left: var(--gutter); bottom: -38px; font-size: 14px; color: #a5a9b2; }
.phone-float { position: absolute; right: calc(var(--gutter) - 8px); bottom: -64px; width: clamp(150px, 17vw, 236px); margin: 0; border-radius: 30px; overflow: hidden; border: 7px solid #0d0e11; box-shadow: 0 30px 70px -20px rgb(0 0 0 / 0.7); }
.phone-float img { width: 100%; }

/* marker oznake na pravim snimcima: koordinate su izmerene (states.json), u % kadra 1440x900 */
.shot { position: relative; overflow: hidden; }
.shot img { width: 100%; }
.mark { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); pointer-events: none; }
.mark.box { border-radius: 8px; box-shadow: 0 0 0 4px rgb(255 255 255 / 0), 0 0 0 5px var(--ink), 0 0 0 8px var(--marker), 0 0 0 9px var(--ink), 0 0 0 9999px rgb(20 22 28 / 0.14); }
.mark.ring { border-radius: 50%; box-shadow: 0 0 0 6px rgb(255 255 255 / 0), 0 0 0 7px var(--ink), 0 0 0 10px var(--marker), 0 0 0 11px var(--ink); }
.stage .mark.box { box-shadow: 0 0 0 5px var(--ink), 0 0 0 8px var(--marker), 0 0 0 9px var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .mark { clip-path: inset(0 100% 0 0 round 8px); transition: clip-path 620ms var(--ease) 180ms; }
  .is-in .mark, .stage.in .mark { clip-path: inset(-12px -12px -12px -12px round 12px); }
  .hero-title span { opacity: 0; transform: translateY(18px); animation: rise 700ms var(--ease) forwards; }
  .hero-title span + span { animation-delay: 90ms; }
  .hero-row { opacity: 0; animation: fade 600ms ease 260ms forwards; }
  .sheet { opacity: 0; transform: translateY(28px) scale(0.985); animation: rise 900ms var(--ease) 320ms forwards; }
  .phone-float { opacity: 0; transform: translateY(40px); animation: rise 900ms var(--ease) 620ms forwards; }
  .rv { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 700ms var(--ease); }
  .rv.in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* problem: kolaž poruka */
.problem { padding-block: clamp(120px, 14vw, 200px) clamp(72px, 9vw, 128px); }
.quotes { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px 28px; }
.quotes li { font-weight: 560; font-variation-settings: "opsz" 48; letter-spacing: -0.02em; line-height: 1.12; }
.quotes span { display: block; font: 500 13px/1 "Brico", sans-serif; color: var(--muted); letter-spacing: 0; margin-bottom: 10px; }
.q1 { grid-column: 1 / span 6; font-size: clamp(1.6rem, 2.8vw, 2.6rem); }
.q2 { grid-column: 8 / span 5; font-size: clamp(1.2rem, 1.8vw, 1.6rem); align-self: end; }
.q3 { grid-column: 2 / span 4; font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--muted); }
.q4 { grid-column: 6 / span 5; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.q5 { grid-column: 10 / span 3; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); }
.problem-end { margin-top: clamp(48px, 6vw, 80px); max-width: 40rem; font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

/* film */
.film { padding-block: clamp(64px, 8vw, 112px); background: var(--paper-2); }
.film-head { display: grid; gap: 14px; max-width: 46rem; }
.film-head p { color: var(--muted); }
.film-frame { margin-top: 36px; border-radius: var(--r); overflow: hidden; background: var(--stage); aspect-ratio: 16 / 9; box-shadow: 0 30px 70px -40px rgb(0 0 0 / 0.5); }
.film-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.film-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* priča: lepljivi koraci */
.story { padding-block: clamp(80px, 10vw, 140px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(36px, 5vw, 64px); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 24px; }
/* only the text of the steps not in frame steps back; photos stay full, and without JS nothing is dimmed */
.step > * { transition: opacity 300ms ease; }
.steps-live .step:not(.on) > :not(.photo-card) { opacity: 0.62; }
.step .n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 700; font-size: 17px; }
.step.on .n { background: var(--marker); border-color: var(--marker); color: var(--marker-ink); }
.step h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing: -0.03em; }
.step p { color: var(--muted); max-width: 26rem; }
.step-phone { display: none; }
.story-sticky { position: sticky; top: 96px; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--stage); box-shadow: 0 36px 80px -40px rgb(0 0 0 / 0.55), 0 0 0 1px var(--line); }
.story-sticky .shot { position: absolute; inset: 0; opacity: 0; transition: opacity 420ms ease; }
.story-sticky .shot.is-in { opacity: 1; }

/* znak */
.znak { padding-block: clamp(72px, 9vw, 128px); background: var(--stage); color: #eceef1; }
.znak-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.znak-copy { display: grid; gap: 20px; justify-items: start; }
.znak-copy p { color: #b7bbc4; }
.znak .btn.line { border-color: #eceef1; color: #eceef1; }
@media (hover: hover) and (pointer: fine) { .znak .btn.line:hover { background: #eceef1; color: var(--stage); } }
.znak-shot { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.8); }

/* demo */
.demo { padding-block: clamp(80px, 10vw, 128px); }
.demo-sub { margin-top: 14px; color: var(--muted); max-width: 44rem; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 32px 0 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; font: 600 16px/1 "Brico", sans-serif; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.coach { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; font-size: 15px; color: var(--muted); }
.coach li { display: inline-flex; align-items: center; gap: 8px; }
.coach i { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; }
.coach li.now { color: var(--ink); }
.coach li.now i { background: var(--marker); border-color: var(--marker); color: var(--marker-ink); }
.coach li.done { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.coach li.done i { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.demo-frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); height: min(860px, 86vh); }
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 16px; font-size: 15px; color: var(--muted); }
.swatch-row { display: inline-flex; align-items: center; gap: 10px; }
.swatch-row button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch-row button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--ink); }

/* telefon uživo */
.phone-sec { padding-block: clamp(56px, 7vw, 96px); background: var(--paper-2); }
.phone-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.phone-in > div { display: grid; gap: 16px; max-width: 32rem; }
.phone-in p { color: var(--muted); }
.phone-live { width: 340px; height: 690px; border-radius: 40px; border: 9px solid #0d0e11; overflow: hidden; background: #fff; }
.phone-live iframe { border: 0; transform-origin: 0 0; display: block; }

/* šta tačno radi */
.facts { padding-block: clamp(80px, 10vw, 128px); }
.facts-grid { display: grid; grid-template-columns: 1.1fr 1fr 0.8fr; gap: clamp(24px, 3vw, 48px); margin-top: 40px; }
.facts-grid h3 { font-size: 1.05rem; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.facts-grid ul { list-style: none; margin: 0; padding: 0; }
.facts-grid li { padding: 12px 0; color: var(--muted); font-size: 17px; }
.facts-grid li + li { border-top: 1px solid var(--line); }
.facts-open h3 { border-bottom-color: var(--marker); }

/* zaključak */
.final { padding-block: clamp(80px, 10vw, 140px); background: var(--stage); color: #eceef1; }
.final .wrap { display: grid; gap: 22px; justify-items: start; }
.final h2 { font-size: clamp(2.4rem, 5.4vw, 5.2rem); max-width: 16ch; }
.final p { color: #b7bbc4; max-width: 34rem; }
.foot { padding-block: 28px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }


/* ---- enrichment R01 (O-7): real UI callouts, section plates, photo cards, icons ---- */
.ico { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; margin-right: 8px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.callout { position: absolute; margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 28px 60px -24px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.08); z-index: 3; }
.callout img { width: 100%; }
.c-comment { left: calc(var(--gutter) - 36px); top: 22%; width: clamp(200px, 21vw, 300px); }
.c-approved { left: calc(var(--gutter) + 4%); bottom: -84px; width: clamp(200px, 20vw, 290px); }
@media (prefers-reduced-motion: no-preference) {
  .callout { opacity: 0; transform: translateY(24px); animation: rise 900ms var(--ease) 820ms forwards; }
  .c-approved { animation-delay: 1050ms; }
}
.plate-r { position: relative; isolation: isolate; }
.plate-r.has-bg::before { content: ""; position: absolute; z-index: -1; right: 0; top: clamp(40px, 6vw, 96px); width: min(52%, 820px); aspect-ratio: 24 / 11; background: var(--bg) center / cover no-repeat; border-radius: var(--r) 0 0 var(--r); opacity: 0.95; -webkit-mask: linear-gradient(90deg, transparent, #000 34%); mask: linear-gradient(90deg, transparent, #000 34%); }
.quotes span { display: flex; align-items: center; }
.quotes span .ico { margin-right: 6px; width: 15px; height: 15px; }
.story-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.materials { width: clamp(160px, 22vw, 340px); margin: -40px 0 -60px; filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.18)); }
.photo-card { margin: 18px 0 0; max-width: 300px; transform: rotate(-1.6deg); background: var(--surface); padding: 10px 10px 12px; border-radius: 12px; box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.45), 0 0 0 1px var(--line); }
.photo-card.alt { transform: rotate(1.4deg); margin-left: 32px; }
.photo-card img { border-radius: 7px; aspect-ratio: 43 / 30; object-fit: cover; }
.photo-card figcaption { margin-top: 9px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.plate-full { position: relative; isolation: isolate; }
.plate-full.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) center / cover no-repeat; }
.plate-full.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(15 16 19 / 0.92) 0%, rgb(15 16 19 / 0.72) 45%, rgb(15 16 19 / 0.25) 100%); }
.znak.has-bg { background: var(--stage); }
.final.has-bg::after { background: linear-gradient(90deg, rgb(15 16 19 / 0.9), rgb(15 16 19 / 0.55) 60%, rgb(15 16 19 / 0.35)); }
.phone-sec.light.has-bg::after { background: linear-gradient(90deg, color-mix(in oklab, var(--paper-2) 96%, transparent) 0%, color-mix(in oklab, var(--paper-2) 84%, transparent) 42%, transparent 72%); }
.facts-grid h3 { display: flex; align-items: center; }
@media (max-width: 860px) {
  .callout.c-comment { display: none; }
  .callout.c-approved { position: static; width: min(86vw, 320px); margin-top: 22px; }
  .plate-r.has-bg::before { position: static; display: block; width: auto; margin: 0 0 28px; border-radius: 0; -webkit-mask: none; mask: none; }
  .story-head .materials { width: 120px; margin: 0; }
  .photo-card, .photo-card.alt { max-width: 78vw; margin-inline: auto; transform: none; }
  .plate-full.has-bg::after { background: linear-gradient(180deg, rgb(15 16 19 / 0.88), rgb(15 16 19 / 0.7)); }
  .phone-sec.light.has-bg::after { background: color-mix(in oklab, var(--paper-2) 80%, transparent); }
}

.phone-in { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.6fr); }
.phone-in > .phone-scene { max-width: none; display: block; }
.phone-in > .phone-scene:not(.has-bg) { display: contents; }
.phone-scene.has-bg { position: relative; aspect-ratio: 2400 / 1501; border-radius: var(--r); overflow: hidden; background: var(--bg) center / cover no-repeat; box-shadow: 0 36px 80px -40px rgb(0 0 0 / 0.5); }
.phone-scene.has-bg .phone-live { position: absolute; left: 40%; top: 14.86%; width: 19.88%; height: 68.95%; border: 0; border-radius: 8% / 3.8%; box-shadow: none; }
.phone-scene:not(.has-bg) { display: contents; }

/* pregled za vlasnika: ?review=1 pokazuje prazne asset slotove */
.review [data-slot-wait]::after { content: attr(data-slot-wait); position: absolute; left: 12px; top: 12px; z-index: 5; background: #fff3c4; color: #4a3b00; font: 600 13px/1.3 "Brico", sans-serif; padding: 6px 10px; border-radius: 6px; border: 1px dashed #b38f00; max-width: 80%; }

/* telefon: posebna režija, ne smanjen računar */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-links a:not(.btn) { display: none; }
  .hero-title { font-size: clamp(2.6rem, 12.4vw, 4rem); letter-spacing: -0.04em; }
  .hero-row { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 auto; }
  .stage { padding-block: 28px 40px; }
  .stage-in { display: grid; justify-items: center; }
  .sheet { display: none; }
  .phone-float { position: static; width: min(74vw, 300px); border-width: 8px; border-radius: 36px; }
  .quotes { grid-template-columns: 1fr; gap: 26px; }
  .quotes li { grid-column: 1 / -1 !important; }
  .q2, .q4 { padding-left: 14vw; }
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .steps-live .step:not(.on) > :not(.photo-card) { opacity: 1; }
  .step { min-height: 0; padding-block: 28px; border-top: 1px solid var(--line); }
  .step-phone { display: block; width: min(78vw, 320px); margin: 12px auto 0; border-radius: 30px; border: 7px solid #0d0e11; }
  .znak-in, .facts-grid { grid-template-columns: 1fr; }
  .demo-frame { height: 780px; }
  .phone-sec { display: none; }
  .foot .wrap { flex-direction: column; }
}
@media (max-width: 420px) { .cta-row { flex-direction: column; } }
