/* ═══════════════════════════════════════════════════════════
   FinTutor — zajednički stilovi za sve stranice
   Dizajn: knjigovodstvena knjiga — tanke linije, tabelarni
   brojevi, mesing akcent, serif naslovi.
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink:        #0B0F16;
  --ink-2:      #121824;
  --rule:       rgba(232, 237, 244, 0.10);
  --rule-soft:  rgba(232, 237, 244, 0.055);
  --text:       #E9EDF3;
  --text-2:     #98A2B1;
  --text-3:     #6B7482;
  --brass:      #D9A441;
  --brass-soft: rgba(217, 164, 65, 0.12);
  --brass-line: rgba(217, 164, 65, 0.28);
  --credit:     #5FBE95;
  --danger:     #E8736A;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;

  --page: 1080px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 28px;
}

hr.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 14px;
}

.lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 58ch;
  margin: 0;
}

section { padding: 104px 0; }

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 22, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.logo {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.logo b { font-weight: 700; }
.logo i { font-style: normal; color: var(--brass); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 6px;
  background: var(--brass);
  color: #0B0F16;
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}
.btn-quiet:hover { border-color: var(--brass-line); filter: none; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Footer ──────────────────────────────────────────────── */
footer { border-top: 1px solid var(--rule); padding: 36px 0 52px; }
.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
footer a.mail {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
footer a.mail:hover { color: var(--brass); border-color: var(--brass-line); }
.copy { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin: 0; }

/* ── Scroll-progress traka (saldo koji se puni) ──────────── */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brass), #F0C069);
  z-index: 60;
  will-change: transform;
}

/* ── Reveal ──────────────────────────────────────────────── */
.rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.rise.seen { opacity: 1; transform: none; }

/* Blaži pomak ustranu za naizmjenične kartice */
.rise-l { transform: translateY(22px) translateX(-14px); }
.rise-r { transform: translateY(22px) translateX(14px); }
.rise-l.seen, .rise-r.seen { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise, .rise-l, .rise-r { opacity: 1; transform: none; transition: none; }
  .progress { display: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 720px) { section { padding: 76px 0; } }
