/* Webinar 23.10. "Kako da unovčiš vreme provedeno online"
   Koncept (Nemanja 14.10): webinar je svetlo na kraju tunela. Prvi ekran: mrak i luk (otvor tunela) kroz koji
   se vidi Filip po danu; u naslovu svetle samo reči "unovčiš vreme". Sekcije postaju svetlije kako se skroluje,
   na dnu je dnevno svetlo i poziv. Gejming samo u detaljima (Chakra Petch za naslove i brojeve).
   Odbijeno do sad: plavo staklo (SaaS), story trake, fotka preko cele širine sa naslovom preko dna (isto kao 11.10). */

:root { color-scheme: dark only; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark only; } }
:root {
  --bg: #050505;
  --text: #ecebe8;
  --muted: #8f8d89;
  --line: rgba(255, 255, 255, 0.09);
  --light: #fff3df;
  --head: "Chakra Petch", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --col: 640px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(28px, 7vw, 40px); line-height: 1.08; }
.num { font-family: var(--head); font-size: 1.15em; color: var(--light); white-space: nowrap; }
.muted { color: var(--muted); font-size: 16px; }

/* ================= prvi ekran ================= */
.hero {
  position: relative; padding: 14px 18px 40px; text-align: center;
  /* svetlo iz luka pada na mrak oko njega */
  background: radial-gradient(60% 38% at 50% 26%, rgba(255, 236, 205, 0.13), transparent 70%), var(--bg);
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #bdbbb6; }
.top img { border-radius: 8px; }
.top > span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* fotka bez okvira, ivica do ivice, donji deo se gubi u mrak */
.r-shot { margin: 12px -18px 0; }
.r-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%;
  -webkit-mask-image: linear-gradient(#000 58%, transparent); mask-image: linear-gradient(#000 58%, transparent); }
.hero-copy { margin-top: -8px; position: relative; }
.when { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.02em; color: var(--muted); }
.hero h1 { font-size: clamp(38px, 10.6vw, 56px); line-height: 1.02; }
.hero h1 .dim { color: #5d5b57; }
.hero h1 .lit { color: var(--light); text-shadow: 0 0 18px rgba(255, 236, 205, 0.55), 0 0 46px rgba(255, 226, 180, 0.3); }
.lead { margin: 14px auto 0; font-size: 17px; line-height: 1.5; color: #c9c7c2; max-width: 34ch; }

/* ---------- forma ---------- */
.signup, .hours-step { text-align: left; max-width: 440px; margin: 20px auto 0; }
.signup { display: grid; gap: 10px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 4px 2px; }
.field input, .phone select {
  width: 100%; height: 52px; padding: 0 15px;
  background: #111; border: 1px solid #2a2a2a; border-radius: 10px;
  font-size: 17px; color: var(--text); -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #5f5d5a; }
.field input:focus { outline: none; border-color: #bdbab3; }
.field input[aria-invalid="true"] { border-color: #ff5a4e; }
.phone { display: flex; gap: 8px; }
.phone select { width: 110px; flex: none; padding: 0 10px; }
.hint { margin: 6px 2px 0; font-size: 14px; color: var(--muted); }
.hint button { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; cursor: pointer; }
.err { margin: 0; color: #ff7b70; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.ok-line { margin: 0; color: #9be39b; font-weight: 600; }
.step2-h { font-size: 26px; line-height: 1.1; }
.skip { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 6px; cursor: pointer; font-size: 15px; }
.signup.flash { animation: flash 0.9s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 6px rgba(255, 243, 223, 0.25); border-radius: 12px; } }
.count { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.count b { color: var(--text); }

/* dugme je izvor svetla */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 22px;
  border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
  background: var(--light); color: #0b0b0b;
  font-family: var(--head); font-size: 19px; font-weight: 700; letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(255, 243, 223, 0.6), 0 0 34px rgba(255, 236, 205, 0.35), 0 0 90px rgba(255, 226, 180, 0.18);
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.75; }
.btn-sm { width: auto; min-height: 42px; font-size: 15px; padding: 0 16px; }
.btn.dark { background: #0b0b0b; color: var(--light); box-shadow: none; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 0, 0.2); border-top-color: #0b0b0b; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* klizač: tanka linija, svetla kuglica */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 6px 0 0; background: none; touch-action: pan-y; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--light) var(--p, 38%), #2d2d2d var(--p, 38%)); }
.range::-moz-range-track { height: 3px; border-radius: 3px; background: #2d2d2d; }
.range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--light); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12.5px; border-radius: 50%; background: var(--light); box-shadow: 0 0 0 6px rgba(255, 243, 223, 0.12), 0 0 24px rgba(255, 236, 205, 0.6); }
.range::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--light); box-shadow: 0 0 0 6px rgba(255, 243, 223, 0.12), 0 0 24px rgba(255, 236, 205, 0.6); }

/* forma s: prvo sati, pa ime i mejl */
.hours-step { display: grid; gap: 4px; }
html[data-forma="k"] .hours-step { display: none; }
html[data-forma="s"] #prijava:not(.open) { display: none; }
.hours-step.done { display: none; }
.hs-q { font-size: 17px; font-weight: 600; color: var(--text); }
.hs-row { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.hs-val { font-family: var(--head); font-size: 60px; line-height: 1; color: var(--light); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(255, 236, 205, 0.4); }
.hs-unit { color: #cfcdc8; font-size: 17px; }
.hs-year { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.hs-recap { margin: 0 0 4px; font-size: 16px; color: #d9d7d2; }
.hs-recap b { color: var(--light); font-family: var(--head); }

/* ================= sekcije: svaka malo svetlija od prethodne ================= */
.block { padding: 60px 18px; }
.block > *, .block .cols { max-width: var(--col); margin-left: auto !important; margin-right: auto !important; }
.block h2 + p, .block h2 + .chips { margin-top: 18px; }
.block p { margin: 14px 0 0; font-size: 18px; color: #d4d2cd; }
.screen { background: #070706; }
.where { background: #0a0908; }
.flip { background: #0e0c0a; }
.filip { background: #13110e; }
.proof { background: #181512; }
.faq { background: linear-gradient(#1d1a16, #2b261f); padding-bottom: 90px; }

/* screen time grafikon */
.st { margin: 22px 0 10px; }
.st-top { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 14px; }
.st-top b { font-family: var(--head); font-size: 28px; color: var(--light); }
.st-bars { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 170px; margin-top: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 41px, rgba(255, 255, 255, 0.05) 41px 42px); }
.st-bars span { position: relative; height: calc(var(--h) * var(--fill, 0.43) * 100%); min-height: 4px; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(to top, rgba(255, 243, 223, 0.18), var(--light)); box-shadow: 0 0 18px rgba(255, 236, 205, 0.25);
  transition: height 0.35s cubic-bezier(.2, .8, .2, 1); }
.st-bars i { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font-style: normal; font-size: 12px; color: var(--muted); }
.st-q { display: block; margin-top: 18px; font-size: 15px; color: var(--muted); }
.st-sum { color: var(--text) !important; }
.st-sum b { font-family: var(--head); color: var(--light); font-size: 1.25em; }

/* gde ti odlaze sati */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 15px; border-radius: 999px; border: 1px solid #353535; background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip[aria-selected="true"] { background: var(--light); color: #0b0b0b; border-color: var(--light); box-shadow: 0 0 22px rgba(255, 236, 205, 0.3); }
.answers { min-height: 150px; margin-top: 20px; }
.ans p { margin: 0 !important; font-size: 20px !important; line-height: 1.5; color: var(--text) !important; }
.ans p.sub { margin-top: 12px !important; font-size: 16px !important; color: var(--muted) !important; }
.ans:not([hidden]) { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.not { margin-top: 26px !important; font-size: 16px !important; color: var(--muted) !important; }

/* pre i posle: na telefonu prekidač, na kompu obe strane jedna pored druge */
.flip { transition: background 0.6s ease, color 0.6s ease; }
.flip[data-side="posle"] { background: var(--light); color: #0b0b0b; }
.flip[data-side="posle"] .muted { color: #5a5752; }
.switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 440px; margin-top: 20px; padding: 4px; border-radius: 12px; border: 1px solid #353535; transition: border-color 0.6s; }
.flip[data-side="posle"] .switch { border-color: #cfc6b6; }
.sw { padding: 12px 10px; border: 0; border-radius: 9px; background: transparent; font-size: 15px; font-weight: 600; line-height: 1.25; cursor: pointer; color: inherit; }
/* da se vidi da je dugme (Nemanja 15.10): strelica na strani koja nije izabrana, i blag puls dok se prvi put ne klikne */
.sw[aria-pressed="false"]::after { content: " \203A"; font-size: 1.2em; }
.switch:not(.used) .sw[aria-pressed="false"] { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: inset 0 0 0 1.5px currentColor; } }
.sw[aria-pressed="true"] { background: #1d1d1d; color: var(--text); }
.flip[data-side="posle"] .sw[aria-pressed="true"] { background: #0b0b0b; color: var(--light); }
.side { list-style: none; margin: 22px auto 0; padding: 0; }
.side li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; line-height: 1.4; }
.flip[data-side="posle"] .side li { border-color: rgba(0, 0, 0, 0.1); }
.side:not([hidden]) li { animation: rise 0.4s ease both; }
.side li:nth-child(2) { animation-delay: 0.06s; }
.side li:nth-child(3) { animation-delay: 0.12s; }
.flip > .muted { margin-top: 22px; }

/* tada i danas */
.compare { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.cmp-then img { filter: grayscale(1) brightness(0.85); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--light); box-shadow: 0 0 16px rgba(255, 236, 205, 0.7); pointer-events: none; }
.cmp-line i { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--light); box-shadow: 0 0 22px rgba(255, 236, 205, 0.7); }
.cmp-line i::before, .cmp-line i::after { content: ""; position: absolute; top: 14px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.cmp-line i::before { left: 8px; border-right: 7px solid #0b0b0b; }
.cmp-line i::after { right: 8px; border-left: 7px solid #0b0b0b; }
.cmp-label { position: absolute; top: 12px; padding: 3px 9px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); font-size: 13px; font-weight: 600; pointer-events: none; }
.cmp-label.l { left: 12px; }
.cmp-label.r { right: 12px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100vh; }
.cmp-hint { margin: 8px 0 0 !important; font-size: 13px !important; color: var(--muted) !important; text-align: center; }
.filip .col-b { margin-top: 30px; }

/* polaznici */
.people { display: grid; gap: 34px; margin-top: 24px; }
.person { margin: 0; }
.clip { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.clip img { border-radius: 6px; }
.slavo .clip { width: 70%; }
.slavo .clip img { aspect-ratio: 9 / 13; object-fit: cover; object-position: 50% 30%; }
.play { position: absolute; left: 50%; top: 45%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(255, 243, 223, 0.92); }
.play::after { content: ""; position: absolute; left: 24px; top: 18px; border-left: 17px solid #0b0b0b; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 5px; background: rgba(0, 0, 0, 0.75); font-size: 13px; }
.person figcaption { margin-top: 14px; font-size: 17px; color: #d4d2cd; }
.who { display: block; font-family: var(--head); font-size: 20px; color: var(--text); margin-bottom: 6px; }
.pp { display: grid; gap: 6px; }
.pp .pre { color: var(--muted); font-size: 16px; }
.pp .posle { color: var(--text); font-size: 17px; }
.community { margin-top: 34px !important; display: grid; gap: 14px; }
.community img { width: 70%; border-radius: 6px; }

/* pitanja */
.faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.faq h2 + details { margin-top: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px !important; }

/* ================= izlaz iz tunela ================= */
.exit { position: relative; background: var(--light); color: #141414; }
.exit::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 220px; pointer-events: none;
  background: linear-gradient(rgba(255, 243, 223, 0), rgba(255, 243, 223, 0.1) 40%, rgba(255, 243, 223, 0.45) 75%, var(--light)); }
.exit figure { margin: 0; }
.exit figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.exit-copy { padding: 0 18px 56px; margin-top: -40px; position: relative; }
.exit-small { margin: 0 0 14px; font-size: 16px; color: #4a4843; }
.exit h2 { font-size: clamp(32px, 8.6vw, 46px); line-height: 1.02; color: #0b0b0b; }
.exit .left { margin: 18px 0 14px; color: #4a4843; font-size: 15px; }
.foot { padding: 24px 18px 110px; text-align: center; color: #6d6a65; font-size: 13px; background: var(--light); }
.foot p { margin: 4px 0; }

/* lepljiva traka */
.sticky {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 12px;
  background: rgba(18, 18, 18, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid #2a2a2a; font-size: 14px; line-height: 1.25; color: var(--muted);
  transform: translateY(150%); transition: transform 0.3s ease;
}
.sticky b { color: var(--text); }
.sticky.on { transform: none; }
.sticky.gone { transform: translateY(150%) !important; }

/* plejer */
.player { padding: 0; border: 0; background: transparent; max-width: min(92vw, 420px); max-height: 88vh; overflow: visible; }
.player::backdrop { background: rgba(0, 0, 0, 0.9); }
.player video { display: block; width: 100%; max-height: 82vh; border-radius: 10px; background: #000; }
.player-close { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 26px; cursor: pointer; }

/* ================= komp ================= */
@media (min-width: 960px) {
  body { font-size: 18px; }
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto auto 1fr auto; column-gap: 80px;
    max-width: 1200px; margin: 0 auto; padding: 22px 48px 90px; text-align: left; min-height: 100vh;
    background: radial-gradient(40% 55% at 78% 46%, rgba(255, 236, 205, 0.14), transparent 70%), var(--bg);
  }
  .top { grid-column: 1 / -1; }
  .r-shot { grid-column: 2; grid-row: 2 / span 3; margin: 40px 0 0; align-self: start; }
  .r-shot img { aspect-ratio: 4 / 5; border-radius: 4px; -webkit-mask-image: none; mask-image: none; }
  .hero-copy { grid-column: 1; grid-row: 2; margin-top: 70px; position: static; }
  .hero h1 { font-size: 78px; line-height: 0.98; max-width: 11ch; }
  .lead { margin: 22px 0 0; font-size: 20px; max-width: 36ch; }
  .signup, .hours-step { grid-column: 1; grid-row: 3; margin: 32px 0 0; max-width: 460px; align-self: start; }
  .count { grid-column: 1; grid-row: 4; max-width: 460px; }

  .block { padding: 110px 48px; }
  .block > *, .block .cols { max-width: 1100px; }
  .block > h2 { font-size: 46px; }
  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .screen h2 { font-size: 46px; }
  .screen .col-b p { font-size: 20px; }
  .where .ans p { max-width: 820px; }
  .ans p { font-size: 24px !important; }

  .flip { display: grid; grid-template-columns: 1fr 1fr; column-gap: 120px; align-items: start;
    padding-left: max(48px, calc(50% - 550px)); padding-right: max(48px, calc(50% - 550px));
    background: linear-gradient(90deg, #0e0c0a 50%, var(--light) 50%) !important; }
  .flip > * { max-width: none; margin: 0 !important; }
  .flip h2 { grid-column: 1; }
  .flip .switch { display: none; }
  .flip .side { display: block !important; grid-row: 2; margin-top: 36px !important; }
  .flip .side[data-side="pre"] { grid-column: 1; }
  .flip .side[data-side="posle"] { grid-column: 2; color: #0b0b0b; }
  .flip .side[data-side="posle"] li { border-color: rgba(0, 0, 0, 0.12); animation: none; }
  .flip .side[data-side="pre"] li { animation: none; color: var(--muted); }
  .flip .side::before { display: block; margin-bottom: 8px; font-family: var(--head); font-size: 20px; }
  .flip .side[data-side="pre"]::before { content: "Pre webinara"; color: var(--text); }
  .flip .side[data-side="posle"]::before { content: "Posle webinara"; color: #0b0b0b; }
  .flip > .muted { grid-column: 1; grid-row: 3; margin-top: 30px !important; color: var(--muted) !important; }

  .filip .cols { grid-template-columns: 420px 1fr; }
  .filip .col-b { margin-top: 0; }
  .filip h2 { font-size: 40px; }

  .people { grid-template-columns: 1.5fr 1fr; align-items: start; gap: 56px; }
  .slavo .clip { width: 100%; max-width: 300px; }
  .community { grid-template-columns: 300px 1fr; align-items: center; gap: 32px; }
  .community img { width: 100%; }


  .exit { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .exit figure { align-self: stretch; }
  .exit figure img { aspect-ratio: auto; height: 100%; min-height: 640px; -webkit-mask-image: none; mask-image: none; }
  .exit-copy { margin: 0; padding: 60px 72px; max-width: 620px; }
  .exit h2 { font-size: 56px; }
  .exit .btn { max-width: 380px; }
  .foot { padding-bottom: 30px; }
  .sticky { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
