/* ─────────────────────────────────────────────
   KakoSi? — landing stranica
   Tokeni, kugla, oznake, pilule i organska pozadina dolaze iz app/app.css (isti dizajn kao aplikacija).
   Ovdje je samo raspored stranice; klase stranice imaju prefiks w-.
   ───────────────────────────────────────────── */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { height: auto; }
body {
  display: block; place-items: normal; overflow: visible; overflow-x: hidden;
  background: var(--snow); color: var(--green);
  font-size: 17px; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; border-radius: 8px; }

.w-wrap { width: min(100% - 48px, 1240px); margin-inline: auto; }

h1, h2 { font-weight: 350; letter-spacing: -.03em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.9vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 3.9vw, 3.4rem); }
h3 { font-weight: 350; letter-spacing: -.02em; line-height: 1.15; }
.w-h-sm { font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; }
.w-lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.45; letter-spacing: -.01em; }
.w-body { font-size: 1.05rem; line-height: 1.55; color: var(--green-soft); max-width: 30em; }
.w-note { font-size: .78rem; line-height: 1.45; }
.link { cursor: pointer; }
.pill { cursor: pointer; }
a.pill:hover, button.pill:hover { transform: translateY(-2px); }
.pill.sm { height: 44px; padding: 0 20px; font-size: 15px; }
.pill-dark:hover { background: var(--green-soft); }
.w-go { font-size: .8em; }

.w-code {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-full);
  border: 1px solid currentColor; font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
}

/* ── Navigacija: staklene pilule ── */
.w-nav { position: fixed; z-index: 100; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; pointer-events: none; }
.w-nav > * { pointer-events: auto; }
.w-pill {
  display: flex; align-items: center; gap: 4px; height: 50px; padding: 0 8px 0 24px; border-radius: var(--r-full);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--snow);
}
.w-pill.end { padding: 0 22px; font-size: 14px; transition: background .25s; }
.w-pill.end:hover { background: rgba(87, 94, 85, .7); }
.w-logo { font-size: 20px; font-weight: 500; letter-spacing: -.03em; margin-right: 16px; }
.w-logo span { color: var(--bright); }
.w-pill .item { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-full); font-size: 14px; transition: background .2s; }
.w-pill .item:hover { background: rgba(252, 252, 247, .14); }

/* ── 1 · Hero ── */
.w-hero {
  position: relative; overflow: hidden; color: var(--snow);
  background: linear-gradient(168deg, var(--hero-a), var(--hero-b) 62%, var(--focus-b));
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  min-height: min(94vh, 880px); display: grid; align-items: center; padding: 120px 0 72px;
}
.w-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.w-flag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-full);
  background: var(--bright); color: var(--green); font-size: 13px; font-weight: 500; letter-spacing: -.005em;
}
.w-hero h1 { margin-top: 22px; max-width: 11em; }
.w-hero .w-lead { margin-top: 22px; max-width: 29em; color: rgba(252, 252, 247, .84); }
.w-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }

.w-hero-visual { position: relative; height: 560px; display: grid; place-items: center; }
.w-orb { position: relative; width: 188px; height: 188px; scale: 1.5; --amp: 0; }
.w-ring { position: absolute; border-radius: 50%; animation: w-breathe 8s ease-in-out infinite; }
.w-ring.r1 { width: 360px; height: 360px; box-shadow: inset 0 0 0 1px rgba(252, 252, 247, .3); }
.w-ring.r2 { width: 460px; height: 460px; box-shadow: inset 0 0 0 1px rgba(252, 252, 247, .16); animation-delay: -.6s; }
.w-ring.r3 { width: 560px; height: 560px; box-shadow: inset 0 0 0 1px rgba(252, 252, 247, .08); animation-delay: -1.2s; }
@keyframes w-breathe { 50% { transform: scale(1.05); } }
.w-heard {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(92%, 370px);
  padding: 16px 20px 18px; border-radius: var(--r-lg);
  background: var(--glass-light); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.w-heard .label { color: rgba(252, 252, 247, .75); }
.w-heard p { margin-top: 10px; font-size: 18px; font-weight: 350; letter-spacing: -.015em; line-height: 1.3; }

/* ── 2 · Tri vremena ── */
.w-times { background: var(--foam); padding: clamp(56px, 6vw, 88px) 0; }
.w-times-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.w-time b { display: block; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 350; letter-spacing: -.025em; line-height: 1.1; }
.w-time p { margin-top: 10px; font-size: .98rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; max-width: 17em; }

/* ── 3 · Glasovni check-in ── */
.w-showcase {
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 72px 24px;
  background: linear-gradient(160deg, #A9B8A0, #7F9476 60%, #62785A);
}
.w-showcase .organic::after { background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(28, 58, 19, .35) 100%); }
.w-showcase .organic i.bokeh { box-shadow: inset 0 0 0 1px rgba(252, 252, 247, .18); }
.w-panel {
  position: relative; width: min(100%, 1180px); padding: 64px; border-radius: var(--r-xl); color: var(--snow);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  display: grid; grid-template-columns: minmax(0, 1fr) 660px; gap: 24px; align-items: center;
}
.w-panel h2 { margin-top: 26px; }
.w-panel .w-lead { margin-top: 18px; max-width: 24em; color: rgba(252, 252, 247, .84); }
.w-stat {
  margin-top: 34px; max-width: 400px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px rgba(252, 252, 247, .3);
}
.w-stat p { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.w-stat .w-code { margin-right: 4px; vertical-align: 2px; }
.w-stat .num { display: flex; align-items: center; gap: 8px; font-size: 36px; font-weight: 350; letter-spacing: -.03em; white-space: nowrap; }
.w-stat .num i { width: 26px; height: 26px; border-radius: 50%; background: var(--snow); color: var(--green); display: grid; place-items: center; font-size: 15px; font-style: normal; }
.w-panel .w-note { margin-top: 10px; color: rgba(252, 252, 247, .6); }

.w-stage { position: relative; height: 650px; }
.w-stage .phone { position: absolute; left: 50%; top: 50%; margin: calc(-438px * var(--s)) 0 0 calc(-208.5px * var(--s)); }
.w-callout { position: absolute; width: 142px; }
.w-callout b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.w-callout p { margin-top: 6px; font-size: 13.5px; line-height: 1.35; color: rgba(252, 252, 247, .86); }
.w-callout::after { content: ""; position: absolute; top: 7px; width: 30px; border-top: 1.5px dotted rgba(252, 252, 247, .75); }
.w-callout.l { left: 0; text-align: right; }
.w-callout.l::after { left: calc(100% + 8px); }
.w-callout.r { right: 0; }
.w-callout.r::after { right: calc(100% + 8px); }

/* ── Sekcije ── */
.w-section { padding: clamp(80px, 9vw, 136px) 0; }
.w-head { max-width: 800px; margin-bottom: clamp(44px, 5vw, 72px); }
.w-head.center { text-align: center; margin-inline: auto; }
.w-head .label { color: var(--fade-60); margin-bottom: 22px; }
.w-head p:not(.label) { margin-top: 16px; font-weight: 500; letter-spacing: -.01em; }

/* ── 4 · Četiri stvari ── */
.w-features { background: var(--foam); }
.w-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.w-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.w-shot {
  width: 100%; aspect-ratio: 1 / 1.08; border-radius: var(--r-md); overflow: hidden; margin-bottom: 26px;
  background: linear-gradient(170deg, #DDE4D2, #C9D4BF); display: grid; place-items: start center; padding-top: 9%;
}
.w-shot img {
  display: block; width: 62%; height: auto; border-radius: 26px 26px 0 0;
  box-shadow: 0 0 0 5px #0B0E0B, 0 0 0 6.5px #8B9288, 0 30px 50px -20px rgba(15, 36, 9, .5);
  transition: transform .7s var(--ease);
}
.w-card:hover .w-shot img { transform: translateY(-10px); }
.w-card h3 { margin-top: 12px; font-size: clamp(1.4rem, 2vw, 1.7rem); }
.w-card p { margin: 6px 0 20px; font-size: .95rem; font-weight: 500; letter-spacing: -.01em; }

/* ── 5 · Zašto ── */
.w-why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.w-why .label { color: var(--fade-60); margin-bottom: 24px; }
.w-why .w-body { margin: 24px 0 32px; }
.w-excuses { background: var(--foam); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 56px); }
.w-excuses .label { color: var(--fade-60); }
.w-excuses ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.w-excuses li { padding: 12px 20px; border-radius: var(--r-full); background: var(--snow); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 350; letter-spacing: -.015em; }
.w-excuses li:nth-child(even) { background: transparent; box-shadow: inset 0 0 0 1px rgba(28, 58, 19, .22); }
.w-excuses-foot { margin-top: 30px; font-weight: 500; letter-spacing: -.01em; }

/* ── 6 · Kako radi ── */
.w-how {
  position: relative; overflow: hidden; color: var(--snow); border-radius: var(--r-xl);
  background: linear-gradient(170deg, var(--hero-a), var(--hero-b) 60%, var(--focus-b));
  padding: clamp(72px, 8vw, 120px) 0;
}
.w-how-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.w-how .label { color: rgba(252, 252, 247, .78); margin-bottom: 24px; }
.w-steps { margin: clamp(32px, 4vw, 52px) 0 24px; border-top: 1px solid var(--hair); }
.w-step { border-bottom: 1px solid var(--hair); }
.w-step button { display: flex; align-items: baseline; gap: 20px; width: 100%; padding: 20px 0; text-align: left; opacity: .55; transition: opacity .3s; }
.w-step button:hover, .w-step.is-on button { opacity: 1; }
.w-step .n { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--bright); width: 26px; }
.w-step .t { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 350; letter-spacing: -.02em; }
.w-step p {
  overflow: hidden; padding-left: 46px; max-width: 31em; color: rgba(252, 252, 247, .8); font-size: 1rem; line-height: 1.5;
  max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s, padding-bottom .5s var(--ease);
}
.w-step.is-on p { max-height: 140px; opacity: 1; padding-bottom: 22px; }
.w-how .w-note { color: rgba(252, 252, 247, .55); }
.w-how-visual { display: grid; place-items: center; }

/* ── 7 · Naš pristup ── */
.w-approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.w-approach-head { position: sticky; top: 110px; }
.w-approach-head .label { color: var(--fade-60); margin-bottom: 24px; }
.w-list li { display: flex; gap: 26px; padding: 28px 0; border-top: 1px solid rgba(28, 58, 19, .12); }
.w-list li:last-child { border-bottom: 1px solid rgba(28, 58, 19, .12); }
.w-list li > span { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--fade-60); width: 20px; flex: none; padding-top: 7px; }
.w-list h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); margin-bottom: 8px; }
.w-list p { color: var(--green-soft); max-width: 30em; font-size: 1rem; }

/* ── 8 · Povjerenje ── */
.w-trust { background: var(--foam); }
.w-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w-principle { background: var(--snow); border-radius: var(--r-md); padding: 28px; transition: transform .5s var(--ease); }
.w-principle:hover { transform: translateY(-4px); }
.w-principle .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--foam); margin-bottom: 40px; }
.w-principle svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.w-principle h3 { font-size: 1.45rem; margin-bottom: 8px; }
.w-principle p { color: var(--green-soft); font-size: 1rem; }

/* ── 9 · Završni poziv ── */
.w-final-wrap { padding: 16px 16px 16px; background: var(--foam); }
.w-final {
  position: relative; overflow: hidden; text-align: center; color: var(--snow); border-radius: var(--r-xl);
  background: linear-gradient(170deg, var(--hero-a), var(--hero-b) 62%, var(--focus-b));
  padding: clamp(88px, 11vw, 150px) 24px;
}
.w-final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.w-final .label { color: rgba(252, 252, 247, .8); }
.w-final h2 { margin: 24px 0 44px; font-size: clamp(3rem, 9vw, 7.4rem); letter-spacing: -.04em; line-height: 1; }
.w-moods { display: flex; gap: clamp(8px, 2vw, 18px); }
.w-moods .face { width: clamp(52px, 7vw, 76px); height: auto; aspect-ratio: 1; opacity: .8; cursor: pointer; transition: transform .4s var(--ease), opacity .3s, box-shadow .3s; }
.w-moods .face:hover { opacity: 1; transform: translateY(-6px); }
.w-moods .face.on { opacity: 1; transform: translateY(-6px) scale(1.08); box-shadow: 0 0 0 3px var(--hero-b), 0 0 0 5px var(--snow); }
.w-reply { margin: 28px 0 38px; min-height: 3.2em; max-width: 28em; font-size: 1.15rem; letter-spacing: -.01em; color: rgba(252, 252, 247, .86); transition: opacity .3s; }

/* ── Footer ── */
.w-footer { background: var(--focus-b); color: rgba(252, 252, 247, .78); padding: 72px 0 32px; }
.w-footer .w-logo { color: var(--snow); font-size: 28px; }
.w-footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1.4fr; gap: 40px; }
.w-footer-say { margin-top: 18px; max-width: 15em; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 350; letter-spacing: -.02em; line-height: 1.2; color: var(--snow); }
.w-footer-col { display: grid; gap: 12px; align-content: start; font-size: .95rem; }
.w-footer-col .label { color: rgba(252, 252, 247, .5); margin-bottom: 6px; }
.w-footer-col a:hover { color: var(--snow); }
.w-footer-note { font-size: .84rem; line-height: 1.6; }
.w-footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: .8rem; opacity: .75; }

/* ── Otkrivanje pri skrolanju ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--dly, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .w-panel { grid-template-columns: 1fr; padding: 48px 32px; justify-items: center; text-align: center; }
  .w-panel .w-lead, .w-stat { margin-inline: auto; }
  .w-panel .w-cta { justify-content: center; }
  .w-stat { text-align: left; }
  .w-stage { width: min(100%, 660px); }
  .w-cards { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
@media (max-width: 900px) {
  .w-pill .item { display: none; }
  .w-pill { padding-right: 8px; }
  .w-hero { padding-top: 104px; }
  .w-hero-grid, .w-why-grid, .w-how-grid, .w-approach { grid-template-columns: 1fr; }
  .w-hero-visual { height: 480px; }
  .w-ring.r3 { display: none; }
  .w-times-grid { grid-template-columns: 1fr; gap: 28px; }
  .w-approach-head { position: static; }
  .w-principles { grid-template-columns: 1fr 1fr; }
  .w-how-visual { margin-top: 12px; }
  .w-footer-grid { grid-template-columns: 1fr 1fr; }
  .w-footer-grid > :first-child, .w-footer-note { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .w-callout { display: none; }
  .w-showcase { padding: 48px 12px; }
  .w-panel { padding: 40px 18px; }
  .w-stage { height: 600px; }
  .w-stage .phone { --s: .66 !important; }
  #howPhone { --s: .72 !important; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .w-wrap { width: min(100% - 32px, 1240px); }
  .w-nav { left: 10px; right: 10px; top: 10px; }
  .w-pill.end { display: none; }
  .w-orb { scale: 1.2; }
  .w-ring.r1 { width: 290px; height: 290px; }
  .w-ring.r2 { width: 370px; height: 370px; }
  .w-hero-visual { height: 440px; }
  .w-cards { grid-template-columns: 1fr; }
  .w-shot { aspect-ratio: 1 / .9; }
  .w-principles { grid-template-columns: 1fr; }
  .w-principle .ico { margin-bottom: 26px; }
  .w-cta .pill { flex: 1; }
  .w-final-wrap { padding: 10px; }
  .w-stat { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
