/* Start paket, start.motionakademija.com
   Telefon je prioritet (skoro sav saobraćaj je iz reklama na telefonu), desktop je dodatak.
   Stil Motion Akademije (crno, narandžasto, Josefin Sans), bez AI šablona.
   Pravilo: samo dugme je popunjeno narandžastim. Labele su običan tekst.
   Pokret: jedan motiv, "grade" (slika krene kao siv log snimak pa se oboji), plus playhead na timeline-u. */

:root {
  --bg: #090706;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3ede7;
  --muted: #a89d94;
  --or: #ff4500;
  --or-text: #ff8a4d;
  --grad: linear-gradient(135deg, #ff6a00 0%, #ff3c00 55%, #ff4500 100%);
  --head: "Josefin Sans", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --gutter: 20px;
  --max: 1080px;
  --log: saturate(0.12) contrast(0.72) brightness(1.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background-color: #090706; min-height: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  /* sjaj samo na vrhu, ne ponavlja se; linije idu do dna */
  background-repeat: no-repeat, repeat;
  background-size: 100% 900px, auto;
  background-image:
    radial-gradient(ellipse 100% 45% at 50% 0%, rgba(255, 69, 0, 0.2), transparent 70%),
    linear-gradient(90deg, transparent calc(25% - 0.5px), var(--line) 25%, transparent calc(25% + 0.5px), transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px), transparent calc(75% - 0.5px), var(--line) 75%, transparent calc(75% + 0.5px));
}
/* Grain koji "treperi" kao film, jedva primetno */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--or-text); outline-offset: 3px; border-radius: 4px; }

main > section { padding: 52px var(--gutter); max-width: var(--max); margin: 0 auto; }

h1, h2, h3 {
  font-family: var(--head);
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}
h1 { font-size: clamp(34px, 10.2vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 7.6vw, 44px); font-weight: 800; }
h3 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
p { margin: 0 0 14px; max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }

/* Znak evra: manji i podignut, uz broj bez razmaka */
.eur { font-size: 0.62em; vertical-align: 0.34em; margin-left: 0.04em; letter-spacing: 0; }

/* Labela: običan tekst, nikad ne liči na dugme */
.label { font-size: 14px; font-weight: 500; color: var(--or-text); margin: 0 0 4px; }

/* Dugme: jedini popunjen narandžasti element */
.btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 44px -10px rgba(255, 69, 0, 0.75), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}
/* odsjaj koji povremeno pređe preko dugmeta */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: sheen 5s ease-in-out 2s infinite;
}
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn:active { transform: translateY(1px) scale(0.99); box-shadow: 0 8px 22px -8px rgba(255, 69, 0, 0.8), inset 0 2px 0 rgba(0, 0, 0, 0.25); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 20px 52px -10px rgba(255, 69, 0, 0.9), inset 0 -3px 0 rgba(0, 0, 0, 0.22); }
}
.btn-sm { min-height: 50px; font-size: 17px; width: auto; padding: 0 22px; }

/* "Grade": sloj preko slike je siv log, zavesa ga skida s leva na desno, ispred nje narandžasta linija */
.grade { position: relative; overflow: hidden; }
.grade::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: var(--log);
  -webkit-backdrop-filter: var(--log);
  clip-path: inset(0 0 0 0);
  pointer-events: none;
}
.grade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 2px;
  background: var(--or);
  box-shadow: 0 0 14px 2px var(--or);
  opacity: 0;
  pointer-events: none;
}
.grade.on::before { animation: grade-wipe 1.5s cubic-bezier(.6, .05, .25, 1) forwards; }
.grade.on::after { animation: grade-line 1.5s cubic-bezier(.6, .05, .25, 1) forwards; }
@keyframes grade-wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes grade-line {
  0% { left: 0; opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% - 2px); opacity: 0; }
}

/* Header */
.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.top-logo { border-radius: 8px; }

/* Hero: fotka je pozadina iza naslova, cena i dugme staju u prvi ekran telefona */
.hero { position: relative; isolation: isolate; display: grid; gap: 20px; padding-top: 138px !important; }
.hero-photo {
  position: absolute;
  z-index: -1;
  top: -68px;
  left: 0;
  right: 0;
  height: 430px;
  margin: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 97%);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
  opacity: 0.66;
  animation: drift 16s ease-out both;
}
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65); margin-bottom: 12px; }
.hero .lead { font-size: 18px; color: #ece4dc; margin: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }

.buy { display: grid; gap: 12px; }
.price { display: flex; align-items: center; gap: 14px; }
.price-num { font-family: var(--head); font-weight: 800; font-size: 64px; line-height: 0.9; }
.price-note { color: var(--muted); font-size: 14px; line-height: 1.35; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }

/* Timeline */
.timeline {
  background: #0f0b09;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 10px 12px;
}
.tl-ruler {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 0 2px 6px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.tl-track { position: relative; display: flex; gap: 3px; height: 64px; }
.tl-clip {
  flex: var(--w) 1 0;
  min-width: 0;
  border-radius: 5px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.15;
  color: #fff;
  box-shadow: inset 0 -14px 0 rgba(0, 0, 0, 0.18);
}
.tl-clip b { font-weight: 700; }
.tl-clip i { font-style: normal; opacity: 0.8; font-variant-numeric: tabular-nums; }
.tl-clip.c1 { background: #7b3bd6; }
.tl-clip.c2 { background: #5a4fe0; }
.tl-clip.c3 { background: #0f8f86; }
.tl-clip.locked {
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, #1b1411 0 6px, #231a15 6px 12px);
  border: 1px dashed var(--line-strong);
  box-shadow: none;
  animation: locked 2.8s ease-in-out infinite;
}
@keyframes locked { 50% { border-color: rgba(255, 69, 0, 0.55); color: var(--or-text); } }
.tl-clip.locked svg { width: 20px; height: 20px; }
.tl-playhead {
  position: absolute;
  top: -14px;
  bottom: -4px;
  left: 0;
  width: 2px;
  background: var(--or);
  box-shadow: 0 0 12px var(--or);
}
.tl-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  border: 6px solid transparent;
  border-top: 8px solid var(--or);
}
.timeline.run .tl-playhead { animation: play 3.2s cubic-bezier(.45, .05, .3, 1) 0.2s both; }
@keyframes play { from { left: 0; } to { left: calc(84% - 2px); } }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.benefits li { position: relative; padding-left: 26px; }
.benefits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--or-text);
  border-bottom: 2px solid var(--or-text);
  transform: rotate(-45deg);
}

/* Zašto 5€: najjači tekst na stranici, svaka rečenica kreće iz novog reda */
.why { padding-top: 40px !important; }
.why-text { font-size: 23px; line-height: 1.4; font-weight: 500; }
.why-text span, .why-text strong { display: block; margin-bottom: 10px; }
.why-text strong { color: var(--or-text); font-weight: 700; margin-bottom: 0; }
.sign { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: 20px; color: #d8cfc7; margin: 8px 0 0; }
.sign img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--or); }

/* Lekcije */
.lessons { display: grid; gap: 34px; }
.lessons > h2 { margin-bottom: -8px; }
.lesson { display: grid; gap: 14px; }
.lesson-shot { border-radius: 10px; border: 1px solid var(--line-strong); aspect-ratio: 16 / 9; background: #000; position: relative; overflow: hidden; }
.lesson-shot img { width: 100%; height: 100%; object-fit: cover; }
.tc {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.75);
  padding: 2px 7px;
  border-radius: 4px;
}
/* Oznaka programa na slici lekcije, kao ikonica aplikacije */
.app {
  position: absolute;
  z-index: 3;
  left: 10px;
  top: 10px;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.app-pr { background: #00005b; color: #9999ff; border: 2px solid #9999ff; }
.app-ae { background: #00005b; color: #d291ff; border: 2px solid #d291ff; }
.value { display: grid; gap: 16px; }
.value p { font-size: 20px; font-weight: 500; margin: 0; }
.value s { color: var(--muted); }

/* Dokaz: klip se pušta na klik, ostaje se na stranici */
.people { display: grid; gap: 26px; }
.person { margin: 0; }
.clip {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.clip img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.6);
  animation: ping 2.4s ease-out infinite;
}
.play::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 17px;
  border-left: 15px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.6); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255, 69, 0, 0); } }
.dur { position: absolute; right: 8px; bottom: 8px; font-size: 12px; background: rgba(0, 0, 0, 0.75); padding: 2px 7px; border-radius: 4px; }
.person figcaption { margin-top: 12px; font-size: 17px; }
.num { font-style: normal; font-weight: 700; color: var(--or-text); white-space: nowrap; }
.proof-end { margin-top: 22px; color: var(--muted); }

/* Ko sam ja: tada i danas, dve fotke jedna do druge */
.story { display: grid; gap: 22px; }
.then-now { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.then-now figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4 / 5; }
.then-now img { width: 100%; height: 100%; object-fit: cover; }
.then-now figure:first-child img { filter: saturate(0.6) contrast(0.95); }
.then-now figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.story-text h2 { margin-bottom: 14px; }
.ten { font-weight: 700; color: var(--or-text); }
.story-end { font-weight: 700; margin-bottom: 0; }

.secret { border-left: 2px solid var(--or); padding-left: 14px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; color: var(--or-text); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #d9d0c8; padding-bottom: 12px; }

/* Kraj */
.final { display: grid; gap: 22px; padding-bottom: 40px !important; }
.final-photo { border-radius: 14px; border: 1px solid var(--line-strong); aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; width: 100%; }
.final-copy p { font-size: 18px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px var(--gutter) 110px; border-top: 1px solid var(--line); }
.foot p { margin: 4px auto; }

/* Lepljiva traka na telefonu */
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(9, 7, 6, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky.on { transform: none; }
.sticky-price { font-family: var(--head); font-weight: 800; font-size: 32px; line-height: 1; }
.sticky-note { color: var(--muted); font-size: 13px; line-height: 1.2; flex: 1; }

/* Plejer za klipove polaznika */
.player { padding: 0; border: 0; background: transparent; width: min(100vw - 24px, 900px); max-width: none; overflow: visible; }
.player::backdrop { background: rgba(0, 0, 0, 0.88); }
.player video { display: block; width: 100%; border-radius: 10px; background: #000; }
.player-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 820px) {
  :root { --gutter: 32px; }
  main > section { padding-top: 84px; padding-bottom: 84px; }
  h1 { font-size: 54px; }
  .hero {
    padding-top: 40px !important;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas: "copy photo" "buy photo" "tl photo" "benefits photo";
    column-gap: 56px;
    align-items: start;
  }
  .hero-photo {
    grid-area: photo;
    position: sticky;
    top: 24px;
    z-index: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-photo img { opacity: 1; object-position: 50% 70%; }
  .hero-copy { grid-area: copy; }
  .timeline { grid-area: tl; }
  .benefits { grid-area: benefits; }
  .buy { grid-area: buy; max-width: 420px; }
  .why { max-width: 820px !important; }
  .why-text { font-size: 30px; }
  .lesson { grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
  .lesson:nth-of-type(even) .lesson-shot { order: 2; }
  .value .btn { max-width: 420px; }
  .people { grid-template-columns: 1fr 1fr; gap: 32px; }
  .story { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .final { grid-template-columns: 0.8fr 1fr; gap: 56px; align-items: center; }
  .final .btn { max-width: 420px; }
  .sticky { display: none; }
  .foot { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, .btn::after, .play, .tl-clip.locked, .hero-photo img { animation: none; }
  .grade::before, .grade::after { display: none; }
  .timeline .tl-playhead, .timeline.run .tl-playhead { animation: none; left: calc(84% - 2px); }
  .btn, .sticky, .faq summary::after { transition: none; }
}
