/* TipidBuddy landing — stilovi (uz bootstrap.min.css) */

/* DM Sans, lokalno (latin) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/dmsans-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/dmsans-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tb-orange: #F77702;
  --tb-orange-soft: #FF9A3D;
  --tb-teal: #14A8BD;
  --tb-ink: #2F5F63;
  --tb-yellow: #FFE9A0;
  --tb-cream: #FFF3E6;
  --tb-bezel: #1E2A2C;
  --tb-brown: #BF6B18; /* tekst na dugmadima (beli i žuti), izabrao korisnik */
}
html, body { height: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--tb-orange);
  color: #fff;
  overflow-x: hidden;
}
.page { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* dekorativni krugovi */
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-teal { width: 760px; height: 760px; right: -180px; top: 120px; background: var(--tb-teal); }
.blob-orange { width: 360px; height: 360px; right: 360px; bottom: -220px; background: var(--tb-orange-soft); }

.brand { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 48px; height: 48px; border-radius: 14px; background: #fff; }
.pill-top {
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: .6rem 1rem; border-radius: 999px;
}

h1.hero-title {
  font-weight: 800; font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.02;
  letter-spacing: -.025em; text-wrap: balance;
}
h1.hero-title em { color: var(--tb-yellow); font-style: italic; }

/* naslov: reč po reč, jednom pri učitavanju; tekst ostaje */
@keyframes tb-rise { from { opacity: 0; transform: translateY(.55em); } to { opacity: 1; transform: none; } }
h1.hero-title .w { display: inline-block; animation: tb-rise .7s cubic-bezier(.2,.8,.2,1) both; }
h1.hero-title .w:nth-child(1) { animation-delay: .10s; }
h1.hero-title .w:nth-child(2) { animation-delay: .18s; }
h1.hero-title .w:nth-child(3) { animation-delay: .26s; }
h1.hero-title .w:nth-child(4) { animation-delay: .34s; }
h1.hero-title .w:nth-child(5) { animation-delay: .42s; }
h1.hero-title .w:nth-child(6) { animation-delay: .50s; }
h1.hero-title .w:nth-child(7) { animation-delay: .58s; }
.lead-text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; font-weight: 500; color: var(--tb-cream); max-width: 32rem; }

/* Google Play dugme */
.btn-play {
  display: inline-flex; align-items: center; gap: .85rem;
  background: #111; color: #fff; text-decoration: none;
  padding: .75rem 1.6rem .75rem 1.25rem; border-radius: 14px;
  border: 0;
  transition: transform .15s ease, background .15s ease;
}
.btn-play:hover, .btn-play:focus-visible { background: #000; color: #fff; transform: translateY(-2px); }
.btn-play > span { text-align: left; } /* „GET IT ON“ levo iznad „Google Play“ i kad je blok centriran (telefon) */
.btn-play small { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .06em; line-height: 1; }
.btn-play strong { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.muted-cream { color: var(--tb-cream); font-weight: 500; }

.chip {
  background: rgba(255,255,255,.22); color: #fff; font: inherit; font-weight: 700; font-size: .95rem;
  padding: .6rem 1rem; min-height: 44px; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.chip:hover { background: rgba(255,255,255,.32); transform: translateY(-2px); }
.chip:focus-visible { outline: 3px solid var(--tb-yellow); outline-offset: 2px; }
.chip.is-active { background: #fff; color: var(--tb-brown); }

/* telefon */
.phone-stage { position: relative; width: 320px; max-width: 100%; height: 640px; margin: 0 auto; }
.peek {
  position: absolute; top: 60px; width: 230px; height: 460px; border-radius: 26px;
  opacity: .55; box-shadow: 0 20px 40px rgba(0,0,0,.2); object-fit: cover;
}
.peek-left { left: -150px; transform: rotate(-8deg); }
.peek-right { right: -150px; transform: rotate(8deg); }
.phone {
  position: relative; width: 320px; height: 640px; padding: 12px;
  background: var(--tb-bezel); border-radius: 48px;
  box-shadow: 0 40px 80px rgba(60,20,0,.35);
}
.phone .carousel, .phone .carousel-inner, .phone .carousel-item { height: 100%; }
.phone .carousel { border-radius: 38px; overflow: hidden; background: #fff; }
.phone .carousel-item img { width: 100%; height: 100%; object-fit: cover; }

.ctrl {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.22); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.ctrl:hover { background: rgba(255,255,255,.35); }
.dots { display: flex; gap: 8px; align-items: center; z-index: auto; }
.dots [data-bs-target] {
  box-sizing: border-box; flex: 0 0 auto;
  width: 10px; height: 10px; margin: 0; padding: 0; border: 0; border-radius: 999px;
  opacity: 1; text-indent: 0; background-clip: border-box;
  background-color: rgba(255,255,255,.45); transition: width .3s ease, background-color .3s ease;
}
.dots .active { width: 26px; background-color: #fff; }

footer { color: var(--tb-cream); font-size: .875rem; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: var(--tb-yellow); text-decoration: underline; }

/* manji ekrani */
@media (max-width: 991.98px) {
  .blob-teal { width: 560px; height: 560px; right: -260px; top: auto; bottom: 40px; }
  .blob-orange { display: none; }
  .hero-copy { text-align: center; }
  .lead-text { margin-inline: auto; }
  .hero-actions, .hero-chips { justify-content: center; }
}
@media (max-width: 575.98px) {
  .phone-stage { width: 260px; height: 520px; }
  .phone { width: 260px; height: 520px; padding: 10px; border-radius: 40px; }
  .phone .carousel { border-radius: 31px; }
  .peek { display: none; }
  .pill-top { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-item, .btn-play, .dots [data-bs-target] { transition: none !important; }
  h1.hero-title .w { animation: none; }
}
