/* VizShelf — site styles. Plain CSS, no build step.
   Colors are tokens; dark mode follows the system unless the visitor picks one (data-theme). */

:root {
  --bg: #fbfaf8;
  --bg-soft: #f3f1ec;
  --surface: #ffffff;
  --text: #1d1c21;
  --muted: #5f5d66;
  --faint: #8d8a94;
  --line: #e4e1da;
  --accent: #3f7fd0;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(20, 18, 30, .05), 0 8px 28px rgba(20, 18, 30, .07);
  --radius: 16px;
  --max: 1120px;

  --libris: #3f8fd0;
  --libris-2: #4fae78;
  --studio: #7f62f0;
  --studio-2: #2fa894;
  --md: #d9773a;
  --md-2: #c9a23c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121116;
    --bg-soft: #18171e;
    --surface: #1d1c23;
    --text: #ecebf1;
    --muted: #a7a4b1;
    --faint: #7a7784;
    --line: #2c2a33;
    --accent: #79a8ff;
    --accent-ink: #0f0e13;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --libris: #6cb2ec;
    --libris-2: #6fcb95;
    --studio: #b39cff;
    --studio-2: #7bd4c4;
    --md: #f0a06a;
    --md-2: #e7c96a;
  }
}
:root[data-theme="dark"] {
  --bg: #121116;
  --bg-soft: #18171e;
  --surface: #1d1c23;
  --text: #ecebf1;
  --muted: #a7a4b1;
  --faint: #7a7784;
  --line: #2c2a33;
  --accent: #79a8ff;
  --accent-ink: #0f0e13;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --libris: #6cb2ec;
  --libris-2: #6fcb95;
  --studio: #b39cff;
  --studio-2: #7bd4c4;
  --md: #f0a06a;
  --md-2: #e7c96a;
}

/* Each product page sets its own accent */
body.p-libris { --accent: var(--libris); --accent-2: var(--libris-2); }
body.p-studio   { --accent: var(--studio);   --accent-2: var(--studio-2); }
body.p-md       { --accent: var(--md);       --accent-2: var(--md-2); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.08rem; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: .94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.icon-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer; display: grid; place-items: center;
}
.icon-btn svg { width: 17px; height: 17px; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch;
         background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px; }
  .top .wrap > .icon-btn.theme { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-block; text-align: center;
  padding: 11px 20px; border-radius: 11px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .eyebrow, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hero p.lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 640px; }
.hero-product { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-product { grid-template-columns: 1.05fr 1fr; } }
.app-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.home-hero { text-align: center; padding: 88px 0 48px; }
.home-hero p.lead { margin: 0 auto 28px; }
.home-hero .btn-row { justify-content: center; }
.note-line { font-size: .86rem; color: var(--faint); margin-top: 14px; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Product cards (home) */
.products { display: grid; gap: 20px; }
@media (min-width: 860px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--faint); }
.product-card img, .product-card .ico { width: 64px; height: 64px; border-radius: 15px; }
.product-card h3 { font-size: 1.35rem; margin: 8px 0 0; }
.product-card .tagline { font-weight: 600; color: var(--pc); margin: 0; }
.product-card p { color: var(--muted); margin: 0; }
.product-card ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.product-card .more { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--pc); }
.pc-libris { --pc: var(--libris); }
.pc-studio { --pc: var(--studio); }
.pc-md { --pc: var(--md); }
.badge {
  position: absolute; top: 22px; right: 22px; font-size: .74rem; font-weight: 700; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--pc, var(--accent)) 16%, transparent); color: var(--pc, var(--accent));
}
.badge.inline { position: static; display: inline-block; }

/* Value grid */
.values { display: grid; gap: 18px; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value .vi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 14px; }
.value .vi svg { width: 20px; height: 20px; }
.value p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Features */
.features { display: grid; gap: 18px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .fi { font-size: 1.35rem; margin-bottom: 8px; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 13%, transparent); }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.feature ul { color: var(--muted); font-size: .94rem; margin: .4em 0 0; padding-left: 18px; }

/* Split rows: text + screenshot */
.split { display: grid; gap: 34px; align-items: center; padding: 34px 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .split.flip > :first-child { order: 2; }
}
.split ul { color: var(--muted); padding-left: 20px; }
.split li { margin-bottom: 6px; }

/* Screenshot placeholder: a Mac window frame with a label */
.shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.shot .bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.shot .bar i:nth-child(1) { background: #ff5f57; } .shot .bar i:nth-child(2) { background: #febc2e; } .shot .bar i:nth-child(3) { background: #28c840; }
.shot .body {
  aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--accent-2, var(--accent)) 14%, transparent), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--line) 45%, transparent) 14px 15px);
  color: var(--faint); font-size: .92rem;
}
.shot .body strong { display: block; color: var(--muted); font-size: 1rem; margin-bottom: 4px; }

/* Pricing */
.pricing { display: grid; gap: 20px; max-width: 900px; }
@media (min-width: 760px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
.plan { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); }
.plan .btn { margin-top: auto; }
.plan .launch-note { margin: -6px 0 0; font-size: .9rem; color: var(--muted); }
.btn.soon { opacity: .6; cursor: default; }
.btn.soon:hover { filter: none; }
.placeholder-tag { font-size: .75rem; font-weight: 700; color: var(--faint); border: 1px dashed var(--faint); border-radius: 6px; padding: 2px 7px; align-self: flex-start; }
.fine { font-size: .86rem; color: var(--faint); margin-top: 16px; }

/* Facts table */
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-weight: 600; } .facts dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Sign-up */
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.signup input {
  flex: 1 1 240px; min-width: 0; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit;
}
.signup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-msg { font-size: .92rem; color: var(--muted); min-height: 1.4em; margin-top: 10px; }

/* Dialog for checkout placeholder */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: .94rem;
  transition: all .2s ease; pointer-events: none; width: max-content; max-width: calc(100% - 32px); z-index: 30;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Legal pages */
.legal { max-width: 760px; padding: 56px 16px 72px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.draft-note {
  border: 1px dashed var(--faint); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: .94rem; margin: 18px 0 28px;
  background: var(--bg-soft);
}
.ph { background: color-mix(in srgb, #f5c542 30%, transparent); border-radius: 4px; padding: 0 4px; color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; color: var(--muted); font-size: .92rem; }
footer .cols { display: grid; gap: 28px; }
@media (min-width: 760px) { footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer h4 { margin: 0 0 10px; font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--text); }
footer .legal-line { margin-top: 28px; font-size: .84rem; color: var(--faint); }
.lang { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.lang span { border: 1px solid var(--line); border-radius: 7px; padding: 2px 8px; font-size: .82rem; }
.lang span.on { color: var(--text); border-color: var(--faint); }

/* "Notes beside your files" band */
.pitch { padding: 8px 0 24px; }
.pitch-box {
  display: grid; gap: 28px; align-items: center; padding: 32px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--accent-2, var(--accent)) 10%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}
@media (min-width: 900px) { .pitch-box { grid-template-columns: 1fr 1fr; padding: 44px; } }
.pitch-box h2 { margin-bottom: .4em; }
.pitch-box p { color: var(--muted); font-size: 1.06rem; }
.pitch-box p:last-child { margin-bottom: 0; }
.pitch-diagram { display: grid; gap: 10px; }
.pd-row { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; gap: 8px; }
.pd-file, .pd-note {
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; font-size: .9rem;
  overflow-wrap: anywhere; line-height: 1.35;
}
.pd-file small, .pd-note small { display: block; color: var(--faint); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-note { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pd-link { text-align: center; color: var(--accent); font-weight: 700; }
.pd-head { display: grid; grid-template-columns: 1fr 26px 1fr; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.pd-head span:last-child { grid-column: 3; }

/* Capture → knowledge flow */
.flow { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(var(--steps, 5), 1fr); } }
.step {
  position: relative; padding: 20px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .86rem;
}
@media (min-width: 1000px) {
  .step:not(:last-child)::after {
    content: "→"; position: absolute; right: -13px; top: 22px; z-index: 1; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; font-size: .8rem; background: var(--bg-soft); color: var(--accent); border: 1px solid var(--line);
  }
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .93rem; margin: 0 0 .6em; }
.step .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.step .chips span { font-size: .76rem; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); }
.flow-note { color: var(--muted); max-width: 760px; margin-top: 24px; }
@media (min-width: 720px) and (max-width: 999px) { .flow .step:last-child:nth-child(odd) { grid-column: span 2; } }

/* Capability chips in the hero */
.caps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.caps a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: .88rem; font-weight: 550;
  padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.caps a:hover { border-color: var(--accent); }
.caps a.hot { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.hero p.lead { margin-bottom: 18px; }
/* Media trio */
.trio { display: grid; gap: 18px; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio .card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.trio .card .big { font-size: 1.8rem; }
.trio .card p, .trio .card li { color: var(--muted); font-size: .95rem; }
.trio .card ul { margin: 0; padding-left: 18px; }
.trio .card p { margin: 0; }
.shot.real img { width: 100%; height: auto; display: block; }
.shot-credit { font-size: .78rem; color: var(--faint); margin-top: 8px; }
.gallery-pair { display: grid; gap: 22px; }
@media (min-width: 860px) { .gallery-pair { grid-template-columns: 1fr 1fr; } }
.gallery-pair figure { margin: 0; }
.gallery-pair figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
#files .pitch-box { --accent-2: var(--studio); background: linear-gradient(135deg, color-mix(in srgb, var(--explorer) 10%, var(--surface)), color-mix(in srgb, var(--studio) 10%, var(--surface))); border-color: var(--line); }
#files .eyebrow { color: var(--studio); }

/* Graph illustration (inline SVG) */
.graph-illus { width: 100%; height: auto; background:
  radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--studio) 9%, transparent), transparent 70%), var(--surface); }
.graph-illus .g-link { stroke: color-mix(in srgb, var(--muted) 45%, transparent); stroke-width: 1.4; }
.graph-illus .g-link.hot { stroke: var(--studio); stroke-width: 2; }
.graph-illus .g-link.faint { stroke: color-mix(in srgb, var(--muted) 20%, transparent); }
.graph-illus .g-faint { fill: color-mix(in srgb, var(--muted) 25%, transparent); }
.graph-illus .g-tag { fill: var(--studio-2); }
.graph-illus .g-ring { fill: none; stroke: var(--surface); stroke-width: 3; }
.graph-illus .g-ring.center { stroke: var(--studio); stroke-width: 4; }
.graph-illus .g-pulse { fill: none; stroke: var(--studio); stroke-opacity: .35; stroke-width: 2; animation: gpulse 2.4s ease-out infinite; transform-origin: 430px 260px; }
@keyframes gpulse { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .graph-illus .g-pulse { animation: none; } }
.graph-illus .g-label-bg { fill: var(--surface); stroke: var(--line); }
.graph-illus .g-label-bg.center { fill: var(--studio); stroke: none; }
.graph-illus text { font: 600 12.5px -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif; fill: var(--text); }
.graph-illus .g-label.center { fill: #fff; }
.graph-illus .g-small { font-weight: 500; font-size: 10.5px; fill: var(--muted); }
.shot-trio { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 900px) { .shot-trio { grid-template-columns: repeat(3, 1fr); } }
.shot-trio figure { margin: 0; }
.shot-trio figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.hero-shots { display: grid; gap: 16px; }
.hero-shots .shot-credit { margin: 0; }
.product-card ul li.more-li { list-style: none; margin-left: -18px; font-style: italic; color: var(--pc); }
.wide-row { padding: 34px 0; }
.wide-row > div:first-child { max-width: 720px; margin-bottom: 22px; }
.wide-row ul { color: var(--muted); padding-left: 20px; }
.wide-shot { margin: 0; }
.wide-row p, .wide-row ul { max-width: 760px; }

/* ViPKM: svetla i tamna ikonica prate temu sajta (sistem, osim ako posetilac izabere) */
.icon-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-dark { display: inline-block; }
  :root:not([data-theme="light"]) .icon-light { display: none; }
}
:root[data-theme="dark"] .icon-dark { display: inline-block; }
:root[data-theme="dark"] .icon-light { display: none; }
