/* Fakin.app — javni web (landing, prijava) */

:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --subtle: #94a3b8;
    --bg: #ffffff;
    --bg-2: #f6f8f9;
    --border: #e5e7eb;
    --primary: #0672FE;
    --primary-hover: #0559D4;
    --primary-soft: #EEF5FF;
    --primary-bright: #3B8FFF;
    --success: #15803d;
    --success-soft: #ecfdf3;
    --info: #0369a1;
    --info-soft: #f0f9ff;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --shadow-lg: 0 30px 60px -24px rgba(15, 23, 42, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Brand ---------- */

.rk-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.rk-brand-mark { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; }
.rk-brand-mark svg { width: 100%; height: 100%; display: block; }
.rk-brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.rk-brand-name span { color: var(--primary); }

/* ---------- Gumbi ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 10px;
    font: 500 14px/1 "Inter", sans-serif; cursor: pointer;
    border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s;
    white-space: nowrap;
}
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: #d1d5db; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn:focus-visible { outline: 3px solid rgba(6, 114, 254, .3); outline-offset: 2px; }

/* ---------- Navigacija ---------- */

.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, .8);
}
.site-nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.site-links { display: flex; gap: 28px; margin-right: auto; }
.site-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.site-links a:hover { color: var(--ink); }
.site-nav-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 960px) { .site-links { display: none; } }
@media (max-width: 480px) { .hide-sm { display: none; } }

/* ---------- Hero ---------- */

.hero {
    position: relative; overflow: hidden;
    padding: 72px 0 88px;
    background:
        radial-gradient(900px 420px at 85% 10%, rgba(59, 143, 255, .14), transparent 60%),
        radial-gradient(700px 380px at 0% 100%, rgba(29, 78, 216, .06), transparent 60%);
}
.hero:before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(15, 23, 42, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: #fff; border: 1px solid var(--border);
    font-size: 13px; font-weight: 500; color: var(--ink-2);
    box-shadow: var(--shadow); margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--primary-bright); box-shadow: 0 0 0 4px rgba(59, 143, 255, .2); }

.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero h1 .accent { color: var(--primary); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-points li { font-size: 14px; color: var(--ink-2); padding-left: 22px; position: relative; }
.hero-points li:before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Mockup aplikacije */
.hero-visual { position: relative; }
.mock-window { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.mock-bar span { width: 10px; height: 10px; border-radius: 99px; background: #e2e8f0; }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--subtle); }
.mock-body { padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.mock-kpi small { display: block; font-size: 11px; color: var(--muted); }
.mock-kpi strong { display: block; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mock-kpi i { font-style: normal; font-size: 11px; font-weight: 600; }
.mock-kpi i.up { color: var(--success); }
.mock-kpi i.down { color: var(--danger); }
.mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 16px 0; padding: 0 2px; border-bottom: 1px solid var(--border); }
.mock-chart span { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: #E3EEFF; position: relative; }
.mock-chart b { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #3B8FFF, #0672FE); }
.mock-rows { display: grid; gap: 6px; }
.mock-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; font-size: 12px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); }
.mock-row span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.paid, .open, .late { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.paid { background: var(--success-soft); color: var(--success); }
.open { background: var(--info-soft); color: var(--info); }
.late { background: var(--danger-soft); color: var(--danger); }

.float-card {
    position: absolute; display: flex; gap: 10px; align-items: center;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 13px;
}
.float-card strong { display: block; color: var(--ink); font-size: 13px; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--info-soft); color: var(--info); font-weight: 700; }
.float-icon.ok { background: var(--success-soft); color: var(--success); }
.float-fiskal { left: -28px; bottom: -26px; }
.float-erp { right: -18px; top: -22px; }
@media (max-width: 1180px) { .float-fiskal { left: 12px; bottom: -24px; } .float-erp { right: 12px; } }
@media (max-width: 520px) { .float-card { display: none; } .mock-kpis { grid-template-columns: 1fr 1fr; } .mock-kpi:last-child { display: none; } }

/* ---------- Strip ---------- */

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 18px; padding-bottom: 18px; }
.strip span { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- Sekcije ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { font-size: 17px; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.kicker-light { color: #9DC3FB; }
.pill { text-transform: none; letter-spacing: 0; font-size: 12px; padding: 2px 10px; border-radius: 99px; background: #fef3c7; color: #92400e; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1080px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; scroll-margin-top: 90px; }
.feature:hover { border-color: #CFE2FF; box-shadow: var(--shadow); transform: translateY(-2px); }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }
.f-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.f-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split-reverse .phone { order: 2; } }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li:before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); }

.flow { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.flow-step { display: flex; gap: 14px; align-items: center; }
.flow-step span { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--primary); }
.flow-step strong { display: block; color: var(--ink); }
.flow-step small { color: var(--muted); font-size: 13px; }
.flow-line { width: 2px; height: 22px; margin: 4px 0 4px 16px; background: linear-gradient(var(--primary-bright), #DCEAFF); }

/* Telefon */
.phone { width: 280px; max-width: 100%; margin: 0 auto; padding: 12px; border-radius: 40px; background: #0f172a; box-shadow: var(--shadow-lg); }
.phone-screen { border-radius: 30px; background: var(--bg-2); padding: 22px 16px 26px; min-height: 480px; }
.phone-head { margin-bottom: 18px; }
.phone-head .rk-brand-mark { width: 26px; height: 26px; }
.phone-head .rk-brand-name { font-size: 16px; }
.phone-kpi { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.phone-kpi small { display: block; color: var(--muted); font-size: 12px; }
.phone-kpi strong { color: var(--ink); font-size: 22px; letter-spacing: -0.02em; }
.phone-btn { text-align: center; padding: 12px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.phone-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 8px; font-size: 13px; color: var(--ink-2); }

/* Tamna sekcija */
.section-dark { background: #0b1220; color: #cbd5e1; }
.section-dark h2 { color: #fff; }
.dark-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dark-list li { padding: 16px 18px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 12px; background: rgba(255, 255, 255, .03); color: #e2e8f0; }

/* CTA */
.cta { padding-top: 72px; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; border: 1px solid var(--border); border-radius: 20px; background: radial-gradient(600px 200px at 100% 0%, rgba(59, 143, 255, .12), transparent 70%), #fff; box-shadow: var(--shadow); }
.cta-box h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta-box p { margin: 0; }
.cta-box .hero-actions { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 40px; }
.site-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer p { margin-top: 12px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-links a { color: var(--ink-2); }
.copyright { margin-top: 32px; font-size: 13px; color: var(--subtle); }

/* ---------- Prijava ---------- */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.auth-aside {
    position: relative; overflow: hidden; padding: 48px; color: #DCEAFF;
    display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(700px 400px at 100% 0%, rgba(111, 174, 255, .35), transparent 60%), linear-gradient(160deg, #0672FE 0%, #043E94 55%, #0b1220 100%);
}
.auth-aside:before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.auth-aside > * { position: relative; }
.auth-aside .rk-brand { color: #fff; }
.auth-aside .rk-brand-name span { color: #9DC3FB; }
.auth-aside .rk-brand-mark { filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.auth-aside h2 { color: #fff; font-size: clamp(28px, 3vw, 38px); max-width: 460px; }
.auth-aside ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.auth-aside li { padding-left: 26px; position: relative; color: #DCEAFF; }
.auth-aside li:before { content: "✓"; position: absolute; left: 0; color: #9DC3FB; font-weight: 700; }
.auth-aside small { color: rgba(220, 234, 255, .7); }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .mobile-brand { display: none; margin-bottom: 32px; }
@media (max-width: 900px) { .auth-card .mobile-brand { display: inline-flex; } }
.auth-card h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password] {
    width: 100%; height: 44px; padding: 0 14px; border-radius: 10px;
    border: 1px solid #d1d5db; font: 400 15px "Inter", sans-serif; color: var(--ink); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6, 114, 254, .18); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin: 4px 0 20px; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.auth-error { padding: 10px 14px; border-radius: 10px; background: var(--danger-soft); border: 1px solid #fecaca; color: #7f1d1d; font-size: 14px; margin-bottom: 18px; }
.auth-success { padding: 10px 14px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 14px; margin-bottom: 18px; }
.auth-card .btn { width: 100%; }
.auth-back { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--muted); }

/* Prijava emailom / 2FA */
.auth-code { font-size: 26px !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: #9ca3af; font-size: 13px; }
.auth-divider:before, .auth-divider:after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.auth-alt { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #fff; border: 1px solid #d1d5db; color: #111827; }
.auth-alt:hover { border-color: #9ca3af; }
.auth-hint { margin: 12px 0 0; font-size: 13px; color: #6b7280; text-align: center; }
.auth-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; }
.auth-links form { margin: 0; }
.auth-linkbtn { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
img.rk-brand-mark { display: block; border-radius: 9px; object-fit: contain; }

/* Mobitel: bočni panel prijave skriven (pravilo mora biti iza definicije .auth-aside) */
@media (max-width: 900px) {
    .auth-aside { display: none !important; }
    .auth-main { padding: 32px 20px; align-items: flex-start; }
}
.auth-card input { max-width: 100%; }
.auth-code { width: 100%; box-sizing: border-box; }
/* iOS ne zumira polja s fontom od 16px naviše */
@media (max-width: 900px) { .field input { font-size: 16px; } }
