/* „Sveska i račun“. Tokeni su prepisani iz kucni-budzet/src/index.css. */
:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #efece6;
  --text: #1a1d21;
  --muted: #5b6168;
  --border: #e4e0d8;
  --dashed: #b9b3a8;
  --accent: #0e5e57;
  --accent-hover: #0a4842;
  --accent-soft: #7fd1c4;
  --accent-text: #ffffff;
  --up: #b3410f;
  --up-bg: #fbede4;
  --down: #1f55a0;
  --down-bg: #e6eef9;
  --hero: #1a1d21;
  --hero-text: #f5f3ee;
  --hero-muted: #c9c5bc;
  --hero-track: #3a3f46;
  --hero-down: #9cc3ff;
  --paper: #fffdf8;
  --ink: #2a2a28;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121416;
    --surface: #1c1f23;
    --surface-2: #262a2f;
    --text: #eeeae2;
    --muted: #a3a8ae;
    --border: #2e3338;
    --dashed: #4a5057;
    --accent: #4fb3a6;
    --accent-hover: #6cc7bb;
    --accent-text: #0b1513;
    --up: #f08a5d;
    --up-bg: #3a2418;
    --down: #8db4f0;
    --down-bg: #1b2638;
    --hero: #22262b;
    --paper: #e9e5dc;
    --ink: #232321;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; }

/* Navigacija */
.top { position: relative; z-index: 10; border-bottom: 1px solid var(--border); }
/* Meni za telefon se prikazuje samo na uskom ekranu (vidi @media max-width: 620px). */
.mobile-menu { display: none; }
.mobile-menu summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 20px; height: 20px; }
.mobile-menu[open] summary { background: var(--surface-2); }
.mobile-menu nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 16px;
  display: grid;
}
.mobile-menu nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}
.mobile-menu nav a:last-child { border-bottom: 0; }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.word {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.word::after { content: "."; color: var(--accent); }
.nav > nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav > nav a { text-decoration: none; color: var(--muted); }
.nav > nav a:hover { color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-hover); }
.link-arrow {
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.kicker { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
h1 {
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 28px;
  max-width: 10ch;
}
h1 .strike { color: var(--muted); font-weight: 500; text-decoration: line-through var(--up) 0.07em; }
.lead { font-size: 20px; max-width: 34ch; margin: 0 0 32px; color: var(--muted); }
.lead strong { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.small-print { font-size: 14px; color: var(--muted); margin-top: 22px; }

/* Račun + ekran */
.scene { position: relative; min-height: 520px; }
.receipt {
  position: absolute;
  left: 0;
  top: 10px;
  width: 250px;
  background: var(--paper);
  color: var(--ink);
  font: 12px/1.5 var(--mono);
  padding: 22px 20px 30px;
  transform: rotate(-4deg);
  box-shadow: 0 1px 1px #0000000d, 0 14px 30px -12px #00000040;
  --zig: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  -webkit-mask: var(--zig);
  mask: var(--zig);
}
.receipt .r-head { text-align: center; margin-bottom: 12px; }
.receipt .r-head b { display: block; font-size: 13px; letter-spacing: 0.08em; }
.receipt .row { display: flex; justify-content: space-between; gap: 8px; }
.receipt hr { border: 0; border-top: 1px dashed #00000055; margin: 10px 0; }
.receipt .total { font-weight: 700; font-size: 14px; }
.receipt svg { display: block; width: 92px; margin: 14px auto 6px; fill: var(--ink); }
.receipt .r-foot { text-align: center; font-size: 10px; opacity: 0.7; }

.phone {
  position: absolute;
  right: 0;
  top: 70px;
  width: 268px;
  border-radius: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px;
  box-shadow: 0 30px 60px -30px #1a1d2155;
}
.screen-hero {
  background: var(--hero);
  color: var(--hero-text);
  border-radius: 22px;
  padding: 18px;
}
.screen-hero small { color: var(--hero-muted); font-size: 11px; letter-spacing: 0.06em; }
.screen-hero .big { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 2px; }
.screen-hero .big span { font-size: 13px; color: var(--hero-muted); font-weight: 500; }
.bar { height: 6px; border-radius: 6px; background: var(--hero-track); margin: 12px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 58%; background: var(--accent-soft); border-radius: inherit; }
.screen-hero .left { font-size: 12px; color: var(--hero-muted); }
.screen-hero .left b { color: var(--hero-text); }
.entry {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.entry:last-child { border-bottom: 0; }
.entry .ic {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.entry small { display: block; color: var(--muted); font-size: 12px; }
.entry b { font-weight: 600; }
.entry.new { background: var(--down-bg); border-radius: 12px; border-bottom-color: transparent; margin: 8px 0 2px; }
.entry.new .ic { background: var(--accent); color: var(--accent-text); }

.note {
  position: absolute;
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
  font-style: italic;
  max-width: 150px;
}
.note svg { position: absolute; color: var(--muted); overflow: visible; }
.note-scan { left: 52px; bottom: 6px; }
.note-scan svg { left: 120px; top: -42px; width: 70px; height: 50px; }

/* Sekcije */
section { scroll-margin-top: 24px; }
.block { padding: 96px 0; border-top: 1px solid var(--border); }
.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
  display: flex;
  gap: 10px;
}
.label span { color: var(--accent); }
h2 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 18ch;
}
.sub { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0; }

/* Jedan mesec — knjiga troškova */
.month { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.ledger { border-top: 2px solid var(--text); }
.ledger-row {
  display: grid;
  grid-template-columns: 1fr 120px 110px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.ledger-row.head { font-size: 13px; color: var(--muted); padding: 10px 0; }
.ledger-row .cat { font-weight: 600; }
.ledger-row .cat small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.ledger-row .amt { text-align: right; font-weight: 600; }
.delta { justify-self: end; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.delta.down { color: var(--down); background: var(--down-bg); }
.delta.up { color: var(--up); background: var(--up-bg); }
.ledger-row.sum { border-bottom: 2px solid var(--text); font-size: 19px; }
.ledger-row.sum .cat { font-weight: 700; }
.aside { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--down); color: var(--muted); font-size: 16px; max-width: 40ch; }
.aside b { color: var(--down); }

/* Šta radi — spisak kao jelovnik */
.menu { margin-top: 48px; border-top: 1px solid var(--text); }
.menu-item {
  display: grid;
  grid-template-columns: 56px 1fr 1.3fr 140px;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.menu-item .n { color: var(--muted); font-size: 14px; }
.menu-item h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.menu-item p { margin: 0; color: var(--muted); }
.menu-item .plan { text-align: right; font-size: 14px; font-weight: 600; }
.menu-item .plan.p { color: var(--accent); }

/* Privatnost */
.privacy { background: var(--hero); color: var(--hero-text); border-top: 0; }
.privacy .label, .privacy .sub { color: var(--hero-muted); }
.privacy .label span { color: var(--accent-soft); }
.privacy h2 { max-width: 20ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.facts div { border-top: 1px solid #ffffff2e; padding-top: 18px; }
.facts b { display: block; font-size: 18px; margin-bottom: 6px; }
.facts p { margin: 0; color: var(--hero-muted); font-size: 16px; }

/* Cene */
.prices-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.switch {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px;
  font-size: 14px;
  font-weight: 600;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch label { padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.switch input:checked + label { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px #0000001a; }
.switch input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); }
.plan-col { padding: 36px; }
.plan-col + .plan-col { border-left: 1px solid var(--border); }
.plan-col h3 { margin: 0 0 4px; font-size: 20px; }
.plan-col .for { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.amount { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.amount span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.per { font-size: 14px; color: var(--muted); min-height: 22px; margin: 8px 0 26px; }
.plan-col ul { list-style: none; padding: 0; margin: 0 0 30px; }
.plan-col li { padding: 10px 0; border-top: 1px dashed var(--border); font-size: 15px; }
.plan-col .btn-ghost {
  display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: 15px;
}
.plan-col .fine { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.yearly-only { display: none; }
body:has(#god:checked) .yearly-only { display: inline; }
body:has(#god:checked) .monthly-only { display: none; }

/* Pitanja */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq dl { margin: 0; border-top: 1px solid var(--text); }
.faq dt { font-weight: 600; font-size: 18px; padding-top: 22px; }
.faq dd { margin: 6px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--border); color: var(--muted); }

/* Kraj */
.end { padding: 120px 0 64px; border-top: 1px solid var(--border); }
.end h2 { font-size: clamp(40px, 7vw, 92px); max-width: 14ch; line-height: 0.98; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }

@media (max-width: 900px) {
  .hero-grid, .month, .faq { grid-template-columns: 1fr; gap: 40px; }
  .scene { min-height: 500px; max-width: 460px; }
  .menu-item { grid-template-columns: 36px 1fr; gap: 6px 14px; }
  .menu-item p, .menu-item .plan { grid-column: 2; text-align: left; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav > nav { display: none; }
  .nav .btn { margin-left: auto; }
  .mobile-menu { display: block; }
  .hero { padding: 40px 0 64px; }
  .lead { font-size: 18px; }
  .block { padding: 72px 0; }
  .scene { min-height: 620px; }
  .receipt { width: 210px; left: 0; }
  .phone { width: 232px; top: 150px; }
  .note-scan { display: none; }
  .ledger-row { grid-template-columns: 1fr auto 58px; gap: 10px; }
  .ledger-row.head span:nth-child(3) { font-size: 0; } .ledger-row.head span:nth-child(3)::after { content: "razlika"; font-size: 13px; }
  .plans { grid-template-columns: 1fr; }
  .plan-col { padding: 28px 22px; }
  .plan-col + .plan-col { border-left: 0; border-top: 1px solid var(--border); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Politika privatnosti (privatnost.html) */
.legal { padding: 56px 0 88px; }
.legal-wrap { max-width: 760px; }
.legal h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
  max-width: none;
}
.legal-date { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal-lead { font-size: 18px; line-height: 1.6; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; max-width: none; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 20px; display: grid; gap: 10px; }
.page-foot { margin-top: 0; padding-bottom: 40px; }

/* 404 */
.not-found { padding-block: 96px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.not-found h1 { font-size: 40px; margin: 0; }
.not-found p { color: var(--muted); margin: 0; }

