/* Shared styles for the public marketing pages (primerjava-*, izracun-izostankov).
   Same tokens as landing.html: one accent, hairlines instead of shadows, type and
   whitespace doing the work. Colours are unchanged - only how much of them shows. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1d6fa4;
  --blue-dark: #155a87;
  --blue-deep: #0e3a58;
  --sky:       #38bdf8;
  --green:     #16a34a;
  --amber:     #b45309;
  --ink:       #10242f;
  --ink-soft:  #53697a;
  --line:      #dce6ed;
  --paper:     #ffffff;
  --paper-2:   #f2f7fa;

  --w:         1000px;
  --gut:       clamp(1.25rem, 4vw, 2rem);
  --section:   clamp(3rem, 6vw, 5rem);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink); background: var(--paper);
  font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }
section { padding: 0 0 var(--section); }
a { color: var(--blue); }

/* ── Nav / footer ────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
nav > .nav-logo, nav { display: flex; align-items: center; }
nav { justify-content: space-between; height: 68px; padding: 0 var(--gut); }
.nav-logo { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.nav-logo .dot { color: var(--blue); }
.nav-logo .icon { display: none; }                 /* the wordmark is the mark */
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-link { font-size: .9375rem; color: var(--ink-soft); text-decoration: none; }
.nav-link:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.5rem; border-radius: 4px; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 550; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-lg { padding: .9375rem 1.875rem; font-size: 1rem; }
.nav-links .btn { padding: .5rem 1.125rem; font-size: .875rem; }

/* ── Type ────────────────────────────────────────────────────────── */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); margin-bottom: var(--section); }
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); display: block;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; margin: 1rem 0 1.25rem; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.875rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 1.25rem; }
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; margin: 1.5rem 0 .5rem; }
p { margin-bottom: 1rem; color: var(--ink-soft); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.125rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }

.checked { display: block; font-size: .8125rem; color: var(--ink-soft); margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ── Comparison table ────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; min-width: 560px; }
th, td { text-align: left; padding: 1rem .875rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; padding-bottom: .75rem; }
td.us { font-weight: 550; color: var(--ink); }
.yes { color: var(--ink); font-weight: 550; }
.no  { color: var(--ink-soft); }
.src { display: block; font-size: .8125rem; color: var(--ink-soft); margin-top: .25rem; }

/* ── Callouts: a rule and a label, not a coloured card ───────────── */
.box { border-top: 2px solid var(--blue); padding: 1.5rem 0 .5rem; margin: 2.5rem 0; }
.box.fair { border-top-color: var(--amber); }
.box.win  { border-top-color: var(--blue); }
.box h3 { margin-top: 0; }
.box ul, .list { margin: .75rem 0 0 1.1rem; }
.box li, .list li { margin-bottom: .5rem; color: var(--ink-soft); }
.box li strong, .list li strong { color: var(--ink); font-weight: 600; }

/* ── Calculator ──────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin: 0 0 2rem; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.25rem, 3vw, 1.75rem); }
.field { margin-bottom: 1.25rem; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: .8125rem; color: var(--ink-soft); margin-bottom: .4375rem; }
.field input[type=number], .field input[type=text], .field input[type=email], .field textarea {
  width: 100%; padding: .75rem .875rem; border: 1px solid var(--line); border-radius: 4px;
  font: inherit; font-size: .9375rem; color: var(--ink); outline: none; background: var(--paper);
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field input[type=range] { width: 100%; accent-color: var(--blue); }
.field .hint { font-size: .8125rem; color: var(--ink-soft); margin-top: .375rem; }

.result { background: var(--blue-deep); color: #fff; border-radius: 6px; padding: 2rem 1.75rem; }
.result .big { font-size: clamp(2.25rem, 6vw, 3rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; margin: .25rem 0; }
.result .sub { color: rgba(255,255,255,.7); font-size: .875rem; }
.breakdown { margin-top: 1rem; font-size: .9375rem; }
.breakdown div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.breakdown div span:first-child { color: var(--ink-soft); }
.breakdown div:last-child { border-bottom: none; font-weight: 600; }
.status { font-size: .875rem; margin: .75rem 0; min-height: 1.25rem; }
.status.err { color: #c0392b; }
.status.ok  { color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer { border-top: 1px solid var(--line); margin-top: var(--section); padding: 2.5rem 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .8125rem; color: var(--ink-soft); }
footer a { color: var(--ink-soft); text-decoration: none; margin-right: 1.25rem; }
footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .calc { grid-template-columns: 1fr; }
  .nav-links .nav-link { display: none; }
}
