/* Provenance Systems – vizuálny systém podľa loga
   Studený papier, tmavomodrý atrament (navy z loga), oceľovo modrá pečiatka.
   Jediný výrazný prvok: pečiatka s odtlačkom dokumentu. Všetko ostatné je tiché. */

:root {
  --paper: #f2f4f7;
  --sheet: #ffffff;
  --ink: #0d1628;
  --muted: #56607a;
  --rule: #d3d9e3;
  --stamp: #1e4a82;
  --navy: #0c1f3f;
  --sky: #3d90c8;
  --stamp-soft: #e6eef7;
  --ok: #24644a;
  --ok-soft: #e3f1ea;
  --warn: #7a5200;
  --warn-soft: #f7eed9;
  --err: #a3261f;

  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* modulárna škála 1.25 */
  --s-1: 0.8rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.563rem; --s3: 1.953rem; --s4: 2.441rem; --s5: 3.052rem;
  --measure: 36rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--stamp); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hlavička ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 68rem; margin: 0 auto; padding: 1.5rem 1.5rem 0;
}
.wordmark {
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.wordmark-mark { width: 34px; height: auto; display: block; }
.wordmark-text { width: auto; height: 30px; display: block; }
@media (max-width: 520px) { .wordmark-text { height: 22px; } .wordmark-mark { width: 26px; } }
.site-nav { display: flex; gap: 1.5rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 520px) { .site-nav { gap: 1rem; font-size: 0.88rem; } .site-nav a[href$="#ako-to-funguje"] { display: none; } }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- rozloženie ---------- */
main { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem 4rem; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem 4rem; align-items: start;
  padding: 3.5rem 0 3rem;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero .seal-wrap { width: 14rem; justify-self: center; }
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); }
h1 { font-size: var(--s5); line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 1rem; max-width: 14em; }
h2 { font-size: var(--s3); line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: var(--s1); line-height: 1.3; margin: 0 0 0.35rem; }
@media (max-width: 560px) { h1 { font-size: var(--s4); } }
.lead { font-size: var(--s1); line-height: 1.5; color: var(--muted); max-width: var(--measure); margin: 0 0 2rem; }
p { max-width: var(--measure); }

/* ---------- formulár ---------- */
.form { max-width: 34rem; display: grid; gap: 1.25rem; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.field .hint { color: var(--muted); font-size: 0.9rem; margin: 0.35rem 0 0; }
input[type="email"], input[type="text"] {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 0.75rem 0.85rem;
  border: 1px solid #b9bfcc; border-radius: 4px; background: var(--sheet); color: var(--ink);
}
input[type="email"]:focus { outline: none; border-color: var(--stamp); box-shadow: 0 0 0 3px var(--stamp-soft); }
input[aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: 0.9rem; margin: 0.35rem 0 0; }

.drop {
  position: relative; display: block; cursor: pointer;
  border: 1.5px dashed #a9b0c0; border-radius: 6px; background: var(--sheet);
  padding: 1.6rem 1.25rem; transition: border-color .15s, background-color .15s;
}
.drop:hover, .drop.is-over { border-color: var(--stamp); background: #f8fbfe; }
.drop:focus-within { outline: 3px solid var(--stamp); outline-offset: 2px; }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-title { font-weight: 600; font-size: 1.05rem; }
.drop-sub { color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.drop.has-file { border-style: solid; border-color: var(--rule); }
.file-meta { display: grid; gap: 0.15rem; }
.file-name { font-weight: 600; word-break: break-all; }
.file-size { color: var(--muted); font-size: 0.9rem; }
.progress { height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; margin-top: 0.7rem; }
.progress > span { display: block; height: 100%; width: 0; background: var(--stamp); transition: width .1s linear; }

.hash {
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.5; word-break: break-all; color: var(--ink);
  background: var(--stamp-soft); border-radius: 3px; padding: 0.55rem 0.7rem; margin-top: 0.75rem;
}
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.check input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--stamp); }

.btn {
  appearance: none; border: 0; cursor: pointer; font: 600 1.05rem/1 var(--sans);
  background: var(--stamp); color: #fff; padding: 0.95rem 1.4rem; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 0.6rem; justify-self: start; text-decoration: none;
}
.btn:hover { background: var(--navy); }
.btn:disabled { background: #8fa3bd; cursor: not-allowed; }
.btn-quiet { background: transparent; color: var(--stamp); border: 1px solid #b7c8dd; }
.btn-quiet:hover { background: var(--stamp-soft); }
.form-error { color: var(--err); margin: 0; }
.honeypot { position: absolute; left: -10000px; }

.batch-note { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- pečiatka ---------- */
.seal-wrap { width: 19rem; max-width: 100%; justify-self: end; }
.seal { width: 100%; height: auto; display: block; }
.seal-empty circle { fill: none; stroke: #b9bfcc; stroke-width: 1.5; stroke-dasharray: 4 6; }
.seal-empty text { fill: #8a91a3; font: 15px var(--sans); }
.seal-ink { color: var(--stamp); }
.seal-ink text { font-family: var(--mono); fill: currentColor; }
.seal-ink .seal-center { font-family: var(--serif); }
.seal-caption { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 0.6rem auto 0; max-width: 16rem; }
.seal.is-pressed { animation: press .55s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes press {
  0% { opacity: 0; transform: scale(1.18) rotate(-14deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}
.seal.is-set { transform: rotate(-8deg); }
@media (prefers-reduced-motion: reduce) { .seal.is-pressed { animation: none; transform: rotate(-8deg); } }

/* ---------- postup ---------- */
.steps-section { border-top: 1px solid var(--rule); padding-top: 3rem; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-bottom: 0.8rem;
  border: 1.5px solid var(--stamp); color: var(--stamp); border-radius: 50%; font: 600 0.95rem/1 var(--serif);
}
.steps p { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 3rem; }
.facts p { color: var(--muted); margin: 0; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

/* ---------- výsledok / certifikát ---------- */
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem; }
.success h2 { margin-bottom: 0.5rem; }
.success p { margin: 0 0 1rem; }

.status-badge {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 600;
  padding: 0.3rem 0.65rem; border-radius: 99px; margin-bottom: 1rem;
}
.status-badge::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status-confirmed { background: var(--ok-soft); color: var(--ok); }
.status-pending { background: var(--warn-soft); color: var(--warn); }

.timeline { list-style: none; padding: 0; margin: 0 0 2rem; max-width: 34rem; }
.timeline li { position: relative; padding: 0 0 1.25rem 2rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0.3rem; top: 0.35rem; width: 0.8rem; height: 0.8rem; border-radius: 50%;
  border: 2px solid #b9bfcc; background: var(--paper);
}
.timeline li::after { content: ""; position: absolute; left: 0.68rem; top: 1.25rem; bottom: 0.1rem; width: 2px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { border-color: var(--stamp); background: var(--stamp); }
.timeline li.now::before { border-color: var(--stamp); }
.timeline .t-title { font-weight: 600; }
.timeline .t-when { color: var(--muted); font-size: 0.92rem; }
.timeline li:not(.done):not(.now) .t-title { color: var(--muted); font-weight: 400; }

.details { width: 100%; max-width: 44rem; border-collapse: collapse; margin: 0 0 2rem; }
.details th, .details td { text-align: left; vertical-align: top; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.details th { font-weight: 400; color: var(--muted); width: 9.5rem; padding-right: 1rem; }
.details td.mono { font-family: var(--mono); font-size: 0.88rem; word-break: break-all; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }

.explain { color: var(--muted); font-size: 0.95rem; }

/* ---------- overenie ---------- */
.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 46rem; }
@media (max-width: 640px) { .verify-grid { grid-template-columns: 1fr; } }
.result { margin-top: 2rem; max-width: 46rem; }
.result h2 { font-size: var(--s2); }
.att { border-left: 3px solid var(--rule); padding: 0.2rem 0 0.2rem 1rem; margin: 0 0 1rem; }
.att.ok { border-color: var(--ok); }
.att.pending { border-color: var(--warn); }
.att.bad { border-color: var(--err); }
.att strong { display: block; }
.att span { color: var(--muted); font-size: 0.93rem; }
.verdict { font-family: var(--serif); font-size: var(--s2); line-height: 1.25; margin: 0 0 1rem; }
.verdict.ok { color: var(--ok); }
.verdict.bad { color: var(--err); }

.site-footer { max-width: 68rem; margin: 0 auto; padding: 2rem 1.5rem 3rem; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--rule); }
.site-footer p { max-width: none; margin: 0.2rem 0; }
.site-footer .tagline { color: var(--navy); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.6rem; }
