:root {
  --blue: #0068b3;
  --blue-dark: #003c66;
  --navy: #0d233f;
  --ink: #111416;
  --gray: #546373;
  --muted: #7c8c9c;
  --line: #c5d1de;
  --light: #dee7f0;
  --lighter: #eef4fa;
  --accent: #219bd7;
  --green: #31b4a4;
  --red: #e4415c;
  --amber: #e8a33d;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(13, 35, 63, 0.08);
  --font-head: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--navy); }
h3 { font-size: 22px; color: var(--navy); }
p { margin: 0 0 1em; }
a { color: var(--blue); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.lead { font-size: 20px; color: var(--gray); max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
section { padding: 72px 0; }
section.alt { background: var(--lighter); }
.section-head { max-width: 760px; margin-bottom: 36px; }

/* top strip + header */
.topstrip { background: var(--light); color: var(--gray); font-size: 13px; padding: 6px 0; font-family: var(--font-head); }
.topstrip .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
header.main { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
header.main .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .logo { height: 30px; width: auto; display: block; }
.brand-sub { font-family: var(--font-head); font-weight: 300; font-size: 20px; color: var(--navy); padding-left: 10px; border-left: 1px solid var(--line); line-height: 1; }
.logo-foot { height: 18px; width: auto; vertical-align: middle; filter: brightness(0) invert(1); opacity: 0.9; margin-right: 6px; }
.logo-contact { height: 26px; width: auto; display: block; margin-bottom: 12px; }
.tab .s, table.t th .s, .show-m { display: none; }
.show-m-cell { display: none; }
nav.primary { display: flex; gap: 4px; flex-wrap: wrap; }
nav.primary a { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none; padding: 8px 12px; border-radius: 4px; }
nav.primary a:hover { background: var(--lighter); color: var(--blue); }
.navbar { background: var(--blue); }
.navbar .container { display: flex; gap: 0; height: 44px; align-items: stretch; overflow-x: auto; }
.navbar a { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 15px; text-decoration: none; padding: 0 16px; display: flex; align-items: center; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.15); }
.navbar a:hover { background: var(--blue-dark); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 16px; padding: 12px 22px; border-radius: 4px; border: 2px solid var(--blue); background: var(--blue); color: var(--white); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.outline { background: transparent; color: var(--blue); }
.btn.outline:hover { background: var(--lighter); }
.btn.light { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn.light:hover { background: var(--light); border-color: var(--light); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }
.btn.sm { font-size: 14px; padding: 8px 14px; }
.btn.block { width: 100%; justify-content: center; }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.green:hover { background: #269a8c; border-color: #269a8c; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: #c7314b; border-color: #c7314b; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.amber:hover { background: #d1902f; border-color: #d1902f; }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 70%, var(--blue) 100%); color: var(--white); padding: 84px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero .eyebrow { color: #9fd1f5; }
.hero h1 { color: var(--white); }
.hero .lead { color: #d6e6f5; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .note { font-size: 14px; color: #9fd1f5; margin-top: 18px; }

.dash { background: var(--white); color: var(--ink); border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); padding: 18px; }
.dash .bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.dash .bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 6px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { background: var(--lighter); border-radius: 6px; padding: 12px; }
.kpi .v { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--blue); line-height: 1; }
.kpi .l { font-size: 13px; color: var(--gray); margin-top: 4px; }
.dash .list { margin-top: 12px; font-size: 14px; }
.dash .list div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--light); }
.pill { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--light); color: var(--blue-dark); }
.pill.green { background: #dcf3ef; color: #1c7f73; }
.pill.red { background: #fbe0e5; color: #a12239; }
.pill.amber { background: #fcefd6; color: #8a5a0a; }
.pill.ai { background: #e3f3fb; color: var(--blue); }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-head); font-weight: 700; color: var(--white); background: var(--blue); width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.step h4 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.step p { margin: 0; font-size: 15px; color: var(--gray); }
.step q { font-style: italic; color: var(--ink); }
.step .ai { margin-top: 10px; }

/* tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.tab { font-family: var(--font-head); font-weight: 700; font-size: 16px; padding: 12px 18px; border: none; background: transparent; color: var(--gray); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.panel { display: none; }
.panel.active { display: block; }
.demo-note { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px dashed var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--gray); margin-bottom: 18px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card h4 { margin: 0 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.email { font-family: var(--font-body); font-size: 15px; white-space: pre-wrap; background: var(--lighter); border-radius: 6px; padding: 14px; color: var(--ink); }
.email .hdr { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.field { border-bottom: 1px solid var(--light); padding: 6px 0; min-height: 44px; }
.field .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: var(--font-head); }
.field .v { font-size: 16px; min-height: 22px; }
.field.low .v { background: #fcefd6; border-radius: 3px; padding: 0 4px; }
.field.empty .v { color: var(--red); font-style: italic; }
.fade { opacity: 0; transform: translateY(4px); transition: opacity 0.4s, transform 0.4s; }
.fade.in { opacity: 1; transform: none; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--light); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.reply { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 14px; white-space: pre-wrap; font-size: 15px; min-height: 120px; }
.missing { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }

table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: var(--muted); text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--line); }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--light); vertical-align: top; }
table.t tr:nth-child(even) td { background: #f7fafd; }
table.t td.n, table.t th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#bomTable td:first-child { white-space: nowrap; font-family: var(--font-head); color: var(--gray); }
table.t tfoot td { font-weight: 700; background: var(--lighter); }
table.t tr.clickable { cursor: pointer; }
table.t tr.clickable:hover td { background: var(--light); }
table.t tr.detail td { background: var(--lighter); font-size: 14px; padding: 10px 10px 14px 44px; }
.conf { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.conf.hi { background: var(--green); } .conf.mid { background: var(--amber); } .conf.lo { background: var(--red); }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.toggle button { font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 6px 12px; border: none; background: var(--white); color: var(--gray); cursor: pointer; }
.toggle button.active { background: var(--blue); color: var(--white); }
.bars { display: grid; gap: 8px; }
.barrow { display: grid; grid-template-columns: 180px 1fr 60px; gap: 10px; align-items: center; font-size: 14px; }
.bar { height: 10px; background: var(--light); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); }
.sum { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--light); font-size: 15px; }
.sum.total { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--navy); border-top: 2px solid var(--navy); }

/* drawing */
.drawing { background: var(--lighter); border-radius: 6px; padding: 10px; }
.drawing svg { width: 100%; height: auto; display: block; }

/* phone */
.phone-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.phone { width: 360px; height: 680px; background: #111; border-radius: 40px; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); margin: 0 auto; }
.screen { background: var(--lighter); border-radius: 28px; height: 100%; overflow: auto; display: flex; flex-direction: column; }
.screen .top { background: var(--blue); color: var(--white); padding: 18px 16px 12px; font-family: var(--font-head); }
.screen .top .t { font-weight: 700; font-size: 18px; }
.screen .top .s { font-size: 13px; opacity: 0.85; }
.screen .body { padding: 12px; display: grid; gap: 10px; }
.task { background: var(--white); border-radius: 10px; padding: 12px; border: 1px solid var(--line); }
.task .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.task .name { font-weight: 700; font-family: var(--font-head); font-size: 16px; color: var(--navy); }
.task .meta { font-size: 13px; color: var(--muted); }
.task.done { opacity: 0.6; }
.task.extra { border-color: var(--amber); background: #fff9ee; }
.task .timer { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--blue); font-variant-numeric: tabular-nums; }
.task .actions { display: flex; gap: 8px; margin-top: 10px; }
.screen .foot { margin-top: auto; padding: 12px; display: grid; gap: 8px; background: var(--white); border-top: 1px solid var(--line); }
.form { display: grid; gap: 8px; }
.form label { font-size: 13px; color: var(--muted); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.sheet { background: var(--white); border-radius: 10px; padding: 12px; border: 1px solid var(--line); }
.feed { font-size: 14px; }
.feed div { padding: 6px 0; border-top: 1px solid var(--light); display: flex; justify-content: space-between; gap: 10px; }

/* modules grid */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.module { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.module h4 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.module p { margin: 0; font-size: 15px; color: var(--gray); }
.module .num { font-family: var(--font-head); font-size: 13px; color: var(--blue); font-weight: 700; }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tl { background: var(--white); border-top: 6px solid var(--blue); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.tl:nth-child(2) { border-top-color: var(--accent); }
.tl:nth-child(3) { border-top-color: var(--green); }
.tl .when { font-family: var(--font-head); font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.tl h3 { margin: 6px 0 10px; }
.tl ul { margin: 0; padding-left: 18px; color: var(--gray); font-size: 15px; }
.tl li { margin-bottom: 4px; }

/* price */
.price { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.pricecard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pricecard .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--light); }
.pricecard .row:last-child { border-bottom: none; }
.pricecard .row .name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy); }
.pricecard .row .desc { font-size: 14px; color: var(--gray); margin-top: 2px; }
.pricecard .row .amt { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--blue); white-space: nowrap; text-align: right; }
.pricecard .row .amt small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.pricecard .row.hl { background: var(--lighter); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--light); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* cta */
.cta { background: var(--blue); color: var(--white); }
.cta h2 { color: var(--white); }
.cta .lead { color: #d6e6f5; }
.cta .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.contact { background: var(--white); color: var(--ink); border-radius: 10px; padding: 24px; }
.contact .who { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--navy); }
.contact a { display: block; margin-top: 8px; font-size: 18px; }

footer { background: var(--navy); color: #9fb3c8; font-size: 14px; padding: 28px 0; }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: #d6e6f5; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* responsive */
@media (max-width: 900px) {
  .hero .container, .two, .three, .timeline, .price, .cta .container, .phone-wrap { grid-template-columns: 1fr; }
  nav.primary { display: none; }
  .pricecard .row { grid-template-columns: 1fr; gap: 6px; }
  .pricecard .row .amt { text-align: left; }
  .pricecard .row .amt small { display: inline; margin-left: 6px; }
  section { padding: 52px 0; }
  .fields { grid-template-columns: 1fr; }
  .barrow { grid-template-columns: 120px 1fr 50px; }
  header.main .container { height: 56px; padding: 0 20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .lead { font-size: 17px; }
  section { padding: 40px 0; }
  .section-head { margin-bottom: 22px; }
  .topstrip, .navbar { display: none; }
  header.main { position: static; }
  .brand .logo { height: 24px; }
  .brand-sub { font-size: 16px; }
  .btn.sm { font-size: 13px; padding: 7px 10px; }
  .hero { padding: 40px 0 36px; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero .actions .btn { justify-content: center; padding: 11px 10px; font-size: 15px; }
  .hero .actions .btn:last-child { grid-column: 1 / -1; }
  .hero .note { font-size: 13px; }
  .dash { padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
  .kpi .v { font-size: 22px; }
  .dash .list { font-size: 13px; }
  .step { padding: 14px; }
  .demo-note { display: block; border-radius: 10px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-bottom: none; margin-bottom: 16px; }
  .tab { font-size: 14px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 6px; margin: 0; background: var(--white); text-align: center; }
  .tab.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
  .tab .l { display: none; }
  .tab .s { display: inline; }
  .card { padding: 14px; }
  .card h4 { font-size: 13px; }
  .email { font-size: 14px; padding: 12px; }
  .reply { font-size: 14px; }
  .hide-m { display: none !important; }
  table.t th .l { display: none; }
  table.t th .s { display: inline; }
  table.t th { white-space: normal; }
  table.t tr.detail table thead { display: none; }
  table.t tr.detail table, table.t tr.detail tbody { display: block; }
  table.t tr.detail table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "a b" "c c" "d d"; padding: 6px 0; border-top: 1px solid var(--line); }
  table.t tr.detail table td { display: block; padding: 1px 0; border: none; background: transparent !important; }
  table.t tr.detail table td:nth-child(1) { grid-area: a; font-weight: 700; color: var(--navy); }
  table.t tr.detail table td:nth-child(2) { grid-area: c; }
  table.t tr.detail table td:nth-child(3) { grid-area: b; font-weight: 700; text-align: right; }
  table.t tr.detail table td:nth-child(4) { grid-area: d; color: var(--muted); font-size: 13px; }
  .show-m { display: inline-block; }
  .show-m-cell { display: table-cell; }
  table.t { font-size: 14px; }
  table.t th { font-size: 11px; padding: 6px 6px; }
  table.t td { padding: 8px 6px; }
  table.t tr.detail td { padding: 8px 6px 12px 10px; }
  .sum { font-size: 14px; }
  .sum.total { font-size: 18px; }
  .barrow { grid-template-columns: 1fr auto; gap: 2px 8px; }
  .barrow .bar { grid-column: 1 / -1; }
  .barrow span:first-child { font-size: 13px; color: var(--gray); }
  .barrow .n { font-weight: 700; color: var(--navy); }
  .phone { width: 100%; height: auto; padding: 0; border-radius: 12px; background: transparent; box-shadow: none; }
  .screen { border-radius: 12px; height: auto; border: 1px solid var(--line); }
  .screen .top { border-radius: 12px 12px 0 0; }
  .task .name { font-size: 15px; }
  .modules { grid-template-columns: 1fr; gap: 10px; }
  .module { padding: 14px; }
  .timeline { gap: 12px; }
  .tl { padding: 16px; }
  .pricecard .row { padding: 14px 16px; }
  .pricecard .row .name { font-size: 16px; }
  .pricecard .row .amt { font-size: 20px; }
  .checklist li { font-size: 15px; }
  .cta { padding: 40px 0; }
  .cta-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cta-actions .btn { justify-content: center; }
  .cta-actions .btn:last-child { grid-column: 1 / -1; }
  .contact { padding: 18px; }
  footer .container { flex-direction: column; gap: 6px; font-size: 13px; }
}

/* print */
@media print {
  .topstrip, header.main, .navbar, .hero .actions, .tabs, #prikaz, .cta, .no-print { display: none !important; }
  body { font-size: 12pt; color: #000; }
  section { padding: 18pt 0; page-break-inside: avoid; }
  .hero { background: none; color: #000; padding: 0; }
  .hero h1, .hero .lead, .hero .eyebrow, .hero .note { color: #000; }
  .dash { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .print-only { display: block !important; }
  a { text-decoration: none; color: #000; }
}
.print-only { display: none; }
