/* Početna stranica. Boje i font dolaze iz pay.css. */
body.landing { padding: 0; }
.landing { --wrap: 1120px; --gut: max(20px, env(safe-area-inset-left)); --slip: #fbfaf5; --slip-line: #c9cfdc; }
@media (prefers-color-scheme: dark) { .landing { --slip: #1b2226; --slip-line: #3a4650; } }

.landing a { color: var(--primary); }
.landing a:focus-visible, .landing summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.landing main > section, .top, .bottom { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.landing h1, .landing h2, .landing h3 { margin: 0; color: var(--ink); }
.landing h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 32px; }
.landing h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
.landing p { margin: 0; }

/* Zaglavlje */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink) !important; text-decoration: none; }
.brand span { color: var(--accent); }
.brand.small { font-size: 18px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--primary); }
.btn-sm { background: var(--primary); color: var(--on-primary) !important; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
@media (max-width: 720px) { .top nav a:not(.btn-sm):not([href="/nalog/prijava"]) { display: none; } .top nav { gap: 14px; } }

/* Dugmad */
.btn, .btn-line { display: inline-block; font-weight: 600; text-decoration: none; padding: 14px 22px; border-radius: 10px; font-size: 16px; }
.btn { background: var(--primary); color: var(--on-primary) !important; }
.btn:hover { filter: brightness(1.12); }
.btn-line { border: 1.5px solid var(--line); color: var(--ink) !important; }
.btn-line:hover { border-color: var(--primary); }

/* Glavni deo */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; max-width: 12ch; }
.lead { margin-top: 24px !important; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px !important; font-size: 14px; color: var(--muted); }

/* Nalog za uplatu */
.slip { position: relative; margin: 0; background: var(--slip); border: 1px solid var(--line); border-left: 6px solid var(--primary); border-radius: 4px; padding: 22px 24px 18px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(34, 53, 111, 0.45); transform: rotate(-1.2deg); }
.slip-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.slip-head > span:first-child { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--primary); }
.slip-qr { display: grid; justify-items: center; gap: 4px; background: #fff; padding: 6px; border-radius: 6px; border: 1px solid var(--slip-line); }
.slip-qr svg { width: 104px; height: 104px; display: block; }
.slip-qr small { font-size: 10px; color: #5d6966; }
.slip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.slip-col { display: grid; gap: 12px; align-content: start; }
.field { display: grid; gap: 4px; min-width: 0; }
.field span { font-size: 11px; color: var(--muted); }
.field b { font-weight: 500; font-family: var(--mono); font-size: 13.5px; border: 1px solid var(--slip-line); border-radius: 3px; padding: 7px 8px; background: var(--surface); overflow-wrap: anywhere; min-height: 34px; }
.field-row { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; }
.field-row .field:only-child, .field-row .grow { min-width: 0; }
.field-row:has(> .field:nth-child(2):last-child) { grid-template-columns: auto 1fr; }
.slip figcaption { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: calc(100% - 170px); min-height: 40px; }
.stamp { position: absolute; right: 22px; bottom: 12px; font-weight: 700; font-size: 30px; letter-spacing: 0.02em; color: var(--ok); border: 3px solid var(--ok); border-radius: 8px; padding: 2px 14px; transform: rotate(-9deg); opacity: 0.88; mix-blend-mode: multiply; pointer-events: none; animation: stamp 0.5s cubic-bezier(.2, 1.6, .4, 1) 0.9s both; }
@media (prefers-color-scheme: dark) { .stamp { mix-blend-mode: normal; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.8); } to { opacity: 0.88; transform: rotate(-9deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }

/* Kako radi */
.how { padding-top: 88px; padding-bottom: 88px; border-top: 1px solid var(--line); }
.steps-big { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: k; }
.steps-big li { counter-increment: k; display: grid; gap: 12px; align-content: start; }
.steps-big li::before { content: counter(k); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: var(--primary); color: var(--on-primary); }
.steps-big p { color: var(--muted); line-height: 1.6; }

/* Za koga */
.who { padding-top: 88px; padding-bottom: 88px; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.who article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: grid; gap: 14px; align-content: start; }
.who article:last-child { background: var(--primary); border-color: var(--primary); }
.who article:last-child h3, .who article:last-child p, .who article:last-child li { color: var(--on-primary); }
.who article:last-child li::marker { color: var(--accent); }
.who p { color: var(--muted); line-height: 1.6; }
.who ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* Poređenje */
.compare { padding-top: 88px; padding-bottom: 88px; border-top: 1px solid var(--line); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.compare h3 { margin-bottom: 16px; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; }
.compare li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative; line-height: 1.5; }
.compare li::before { position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.minus li { color: var(--muted); }
.minus li::before { content: "–"; background: var(--line); color: var(--muted); }
.plus li::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }

/* Poverenje */
.trust { padding-top: 88px; padding-bottom: 88px; border-top: 1px solid var(--line); }
.trust-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.trust-list dt { font-weight: 600; font-size: 18px; margin-bottom: 6px; padding-left: 16px; border-left: 3px solid var(--accent); }
.trust-list dd { margin: 0; padding-left: 19px; color: var(--muted); line-height: 1.6; }

/* Pitanja */
.faq { padding-top: 88px; padding-bottom: 88px; border-top: 1px solid var(--line); }
.faq details { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--primary); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); line-height: 1.65; max-width: 62ch; }

/* Završni poziv */
.final { text-align: center; padding-top: 96px; padding-bottom: 104px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 18px; }
.final h2 { margin: 0; max-width: 18ch; }
.final p { color: var(--muted); font-size: 18px; max-width: 36em; margin-bottom: 10px; }

/* Podnožje */
.bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; }
.bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.bottom nav a { color: var(--muted); }

/* Telefon i tablet */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 24px; padding-bottom: 64px; }
  .slip { transform: none; }
  .steps-big, .who-grid, .compare-grid, .trust-list { grid-template-columns: 1fr; }
  .steps-big { gap: 32px; }
  .compare-grid { gap: 32px; }
  .how, .who, .compare, .trust, .faq { padding-top: 64px; padding-bottom: 64px; }
  .landing h2 { margin-bottom: 24px; }
}
@media (max-width: 520px) {
  .slip { padding: 18px 16px 14px; }
  .slip-grid { grid-template-columns: 1fr; gap: 12px; }
  .slip-qr svg { width: 84px; height: 84px; }
  .stamp { font-size: 22px; right: 14px; bottom: 12px; }
  .slip figcaption { max-width: calc(100% - 130px); }
  .who article { padding: 24px; }
  .cta .btn, .cta .btn-line { width: 100%; text-align: center; }
}
