/* QuickClickPOS — qcp.n-soft-solution.rs
   Same design system as the NSoft LPFR+ site (lpfr.n-soft-solution.rs): black + orange,
   Schibsted Grotesk / Manrope / JetBrains Mono. Keep the two in step. */

:root {
  --ink: #0c0c0e;
  --text: #17242b;
  --muted: #55616f;
  --faint: #8a94a3;
  --paper: #f2f4f7;
  --card: #ffffff;
  --line: #dfe4ea;
  --orange: #ff5c00;
  --orange-text: #c24400;
  --orange-wash: #fff1e8;
  --green: #1fa04d;
  --green-deep: #148741;
  --amber: #d1930d;
  --red: #c0392b;
  --blue: #2563c7;

  --display: "Schibsted Grotesk", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
.mono, code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
span.mono { white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 56ch; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(242, 244, 247, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.15rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand b { color: var(--orange); font-weight: 800; }
.brand .mark { width: 34px; height: 34px; }
.brand .logo { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 0.94rem; text-decoration: none; }
.site-nav > a:not(.btn):hover { color: var(--ink); background: #e6eaef; }
.site-nav > a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 8px 8px 0 0; }
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; font: 700 0.94rem var(--body); padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 1rem/1 var(--body); padding: 15px 22px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--orange); color: #fff; }
.btn-ghost { background: transparent; border-color: #c3ccd8; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { padding: 11px 16px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-white { background: var(--card); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); margin: 0; }
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; }
.page-head .lede { margin-top: 18px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 span { display: block; }
.hero .lede { margin-top: 22px; }
.hero-facts { margin: 22px 0 0; font-size: 0.9rem; color: var(--faint); }

/* ---------- how it works ---------- */
.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 88px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 34px 58px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 0.95rem/36px var(--mono); text-align: center; }
.steps li:nth-child(2)::before { background: var(--orange); }
.steps li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; max-width: 52ch; }

/* two audiences */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.door { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 3vw, 34px); border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s; }
.door:hover { border-color: var(--ink); color: var(--text); }
.door h3 { font-size: 1.5rem; }
.door p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.door b { margin-top: auto; padding-top: 8px; color: var(--orange-text); text-decoration: underline; text-underline-offset: 4px; }
.door-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: #e9f7ee; color: var(--green-deep); font-weight: 800; font-size: 0.8rem; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.door-dark { background: #132126; border-color: #132126; color: #d5dee8; }
.door-dark:hover { border-color: var(--orange); color: #d5dee8; }
.door-dark h3 { color: #fff; }
.door-dark p { color: #9fb0c2; }
.door-dark b { color: #ff9d5c; }
.door-dark .door-tag { background: #1d3138; color: #5fe396; font-weight: 600; }

/* ---------- capability rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 56px); padding-block: 26px; border-bottom: 1px solid var(--line); }
.row p { margin: 0; color: var(--muted); }
.row p + p { margin-top: 0.8em; }
.row ul { margin: 0.6em 0 0; padding-left: 1.1em; color: var(--muted); }
.row li + li { margin-top: 0.3em; }

/* ---------- screens ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs button { font: 700 0.94rem var(--body); padding: 10px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.screen { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.screen[hidden] { display: none; }
.screen img { border: 1px solid #cfd6de; border-radius: 12px; box-shadow: 0 24px 48px -28px rgba(12, 12, 14, 0.35); }
.screen p { color: var(--muted); font-size: 0.98rem; }
.screen h3 { margin-bottom: 10px; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 13px 18px; border-bottom: 1px solid #eef1f4; }
tr:last-child > td, tr:last-child > th { border-bottom: 0; }
thead th { background: #f8f9fb; font: 700 0.82rem var(--body); color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 600; color: var(--muted); width: 34%; }
td.mono, th.mono { white-space: nowrap; color: var(--ink); }
.spec tbody td { font-weight: 700; color: var(--ink); }

/* ---------- code ---------- */
pre { margin: 0 0 1.2em; padding: 18px 20px; background: #132126; color: #d5dee8; border-radius: 12px; overflow-x: auto; font-size: 0.8rem; line-height: 1.7; }
p code, li code, td code { background: #e6eaef; padding: 2px 6px; border-radius: 5px; color: var(--ink); }

/* ---------- prose pages ---------- */
.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.prose section > h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: 16px; }
.prose section > h3 { margin: 28px 0 10px; }
.prose ol, .prose ul { max-width: 68ch; padding-left: 1.3em; margin: 0 0 1em; }
.prose li + li { margin-top: 0.4em; }
.prose > section { scroll-margin-top: 96px; }
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 100px; padding-left: 18px; border-left: 2px solid var(--line); font-size: 0.9rem; }
.toc strong { display: block; margin-bottom: 10px; color: var(--ink); }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; display: block; margin-left: -20px; padding-left: 18px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 700; border-left-color: var(--orange); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.note { border-left: 4px solid var(--orange); background: var(--orange-wash); padding: 14px 18px; border-radius: 0 10px 10px 0; max-width: 68ch; font-size: 0.96rem; }
.note.warn { border-color: var(--red); background: #fdf0ee; }
.note p { margin: 0; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 700 1.05rem/1.35 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.5rem var(--mono); color: var(--orange-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 34px); display: grid; gap: 18px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.field label i { font-style: normal; font-weight: 500; color: var(--faint); }
.field input, .field textarea, .field select { font: 500 1rem var(--body); color: var(--ink); padding: 13px 14px; border: 1px solid #c3ccd8; border-radius: 10px; background: #fff; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(255, 92, 0, 0.3); border-color: var(--orange); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 700; }
.form-status.is-ok { color: var(--green-deep); }
.form-status.is-error { color: var(--red); }
.form small { color: var(--faint); font-size: 0.85rem; }
.contact-side { display: grid; gap: 22px; }
.contact-side h2 { font-size: 1.1rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.contact-side p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.contact-side a { font-weight: 700; }

/* ---------- cta + footer ---------- */
.cta { background: linear-gradient(120deg, #ff6a00, #c94300); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 72px); }
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { margin: 12px 0 0; color: #ffe2cf; }
.cta .btn { background: #fff; color: var(--ink); }
.cta .btn:hover { background: var(--ink); color: #fff; }
.site-footer { background: var(--ink); color: #b3bac4; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-block: 56px 36px; }
.site-footer h2 { font: 700 0.95rem var(--body); letter-spacing: 0; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d9dee5; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer p { margin: 16px 0 0; max-width: 34ch; }
.brand-light { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px 26px; border-top: 1px solid #26262b; }

/* ---------- QuickClickPOS ---------- */
/* hero: the real sales screen inside an application frame */
.shot-frame { border-radius: 14px; overflow: hidden; background: #0b1424; border: 1px solid #1f2a3a; box-shadow: 0 30px 60px -30px rgba(12, 12, 14, 0.45); }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--ink); color: #d9dee5; font: 700 0.8rem var(--body); }
.frame-bar .mark { width: 18px; height: 18px; }
.frame-bar .pfr { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #5fe396; font-size: 0.72rem; font-weight: 800; }
.frame-bar .pfr i { width: 7px; height: 7px; border-radius: 50%; background: #5fe396; }
.shot-frame img { width: 100%; }
.hero-note { margin: 14px 4px 0; font-size: 0.9rem; color: var(--muted); }

/* feature: text and screenshot side by side, alternating */
.features { display: grid; gap: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; scroll-margin-top: 96px; }
.feature:nth-child(even) > :first-child { order: 2; }
.feature h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: 14px; }
.feature p { color: var(--muted); }
.eyebrow { display: block; margin-bottom: 12px; font: 800 0.74rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-text); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; max-width: 60ch; }
.prose .checks { padding-left: 0; }
.checks li { position: relative; padding-left: 26px; font-size: 0.98rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 11px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.shot-narrow { max-width: 440px; justify-self: center; }
.shot { border: 1px solid #cfd6de; border-radius: 12px; box-shadow: 0 24px 48px -28px rgba(12, 12, 14, 0.35); }

/* industries, resources */
.doors-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doors-3 .door h3 { font-size: 1.25rem; }
.doors-3 .door p { font-size: 0.95rem; }
.prose .doors, .section-head + .doors { margin-top: 0; }
.shot-hero { margin: 0; }

/* accreditation facts on a dark band */
.section-dark { background: var(--ink); color: #b3bac4; }
.section-dark h2 { color: #fff; }
.section-dark .section-head p { color: #b3bac4; }
.section-dark a { color: #ff9d5c; }
.section-dark a:hover { color: #fff; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { padding: 22px 24px; border: 1px solid #26262b; border-radius: 14px; background: #141418; }
.fact span { display: block; font: 800 0.72rem var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: #8a94a3; }
.fact b { display: block; margin-top: 8px; font: 600 clamp(0.95rem, 1.5vw, 1.15rem)/1.35 var(--mono); color: #fff; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .screen, .split, .contact-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .steps-grid, .doors, .doors-3, .facts, .with-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .feature:nth-child(even) > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) { padding: 12px; font-size: 1rem; }
  .site-nav > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); border-radius: 0 8px 8px 0; }
  .site-nav .btn { margin: 8px 0 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .form-two, .footer-grid { grid-template-columns: 1fr; }
  th, td { padding: 11px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
