/* Webinar, webinar.motionakademija.com
   Isti jezik kao start.motionakademija.com (crno, narandžasto, Josefin Sans + Space Grotesk, linije mreže),
   samo mirnije: jedna stranica, jedna odluka. Forma je u prvom ekranu telefona, odmah ispod naslova.
   Pravilo: samo dugme je popunjeno narandžastim. */

:root {
  --bg: #090706;
  --panel: #110d0b;
  --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: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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;
  background-image:
    radial-gradient(ellipse 100% 40% at 50% 0%, rgba(255, 69, 0, 0.18), 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));
}
/* Zrno kao na filmu, statično, jedva primetno */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  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");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { 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;
  text-wrap: balance;
}
h1 { font-size: clamp(31px, 9vw, 58px); font-weight: 800; }
h2 { font-size: clamp(27px, 7.2vw, 42px); font-weight: 800; }
p { margin: 0 0 14px; max-width: 62ch; text-wrap: pretty; }

/* Datum i sat, iznad naslova i na kraju */
.when {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: #ece4dc;
  margin: 0 0 12px;
}
.live {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7);
  animation: live 2s ease-out infinite;
}
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 69, 0, 0); } }

/* Dugme: jedini popunjen narandžasti element */
.btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 0 24px;
  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 -12px rgba(255, 69, 0, 0.7), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(0.99); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); box-shadow: 0 20px 52px -12px rgba(255, 69, 0, 0.85), inset 0 -3px 0 rgba(0, 0, 0, 0.22); } }
.btn[disabled] { opacity: 0.75; cursor: default; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-sm { min-height: 50px; font-size: 17px; width: auto; padding: 0 20px; flex: none; }

/* Hero: fotka je pozadina iza naslova, forma staje u prvi ekran telefona */
.hero { position: relative; isolation: isolate; display: grid; gap: 18px; padding-top: 64px !important; padding-bottom: 36px !important; }
.hero-photo {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  margin: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0.5; }
.hero h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7); margin: 0; }
.hero .when { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }

/* Forma */
.signup {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(17, 13, 11, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #0b0807;
  font-size: 17px; /* 16+ da iPhone ne zumira */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #6f655e; }
.field input:focus { outline: none; border-color: var(--or-text); box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.18); }
.field input[aria-invalid="true"] { border-color: #ff5a4d; }
.hint { margin: 2px 0 0; font-size: 14px; color: #ece4dc; }
.hint button { padding: 0; border: 0; background: none; color: var(--or-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.err { margin: 0; font-size: 14px; color: #ff8a80; }
.fine { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.host { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.host img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--or); flex: none; }
.host p { margin: 0; }
.host strong { color: var(--text); }

/* Bol iz reklama, isti redosled i iste reči */
.pains ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.pains li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.pains li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 21px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--or-text);
  border-bottom: 2px solid var(--or-text);
  transform: rotate(-45deg);
}
.turn { font-size: 21px; line-height: 1.4; font-weight: 700; margin: 0; }

/* Plan webinara */
.agenda ol { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 0; }
.agenda li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.agenda li:last-child { border-bottom: 1px solid var(--line-strong); }
.agenda .n { font-family: var(--head); font-weight: 800; font-size: 26px; color: var(--or-text); line-height: 1; }
.agenda li p { margin: 0; font-size: 18px; }
.gift { font-size: 19px; font-weight: 700; margin: 0; }

/* Ko drži webinar */
.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); }
.hl { font-weight: 700; color: var(--or-text); }

/* Dokaz */
.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); }
.play::after { content: ""; position: absolute; left: 21px; top: 17px; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.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; }
.num { font-style: normal; font-weight: 700; color: var(--or-text); white-space: nowrap; }

/* 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; }

.final { display: grid; gap: 6px; text-align: left; padding-bottom: 44px !important; }
.final .btn { margin-top: 10px; }

.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, kad forma ode sa ekrana */
.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-note { color: var(--muted); font-size: 13px; line-height: 1.25; flex: 1; }
.sticky-note b { color: var(--text); font-size: 15px; }

/* Plejer */
.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; }

/* Kad forma dobije fokus iz dugmeta na dnu, kratko zasija */
.signup.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.8); } 100% { box-shadow: 0 0 0 16px rgba(255, 69, 0, 0); } }

@media (min-width: 820px) {
  :root { --gutter: 32px; }
  main > section { padding-top: 80px; padding-bottom: 80px; }
  .hero {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas: "copy photo" "form photo" "host photo";
    column-gap: 56px;
    row-gap: 22px;
    align-items: start;
  }
  .hero-photo {
    grid-area: photo;
    position: relative;
    z-index: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-photo img { opacity: 1; object-position: 50% 35%; }
  .hero-copy { grid-area: copy; }
  .signup { grid-area: form; max-width: 460px; padding: 20px; }
  .host { grid-area: host; }
  .pains, .agenda, .faq, .final { max-width: 780px !important; }
  .pains ul { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .people { grid-template-columns: 1fr 1fr; gap: 32px; }
  .final .btn { max-width: 420px; }
  .sticky { display: none; }
  .foot { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live, .signup.flash, .btn .spin { animation: none; }
  .btn, .sticky, .faq summary::after { transition: none; }
}
