/* ============================================================
   anPOS — osnovni stil (brez zunanjih odvisnosti)
   ============================================================ */
:root {
    --bg:        #0f172a;
    --bg-soft:   #f1f5f9;
    --surface:   #ffffff;
    --border:    #e2e8f0;
    --text:      #0f172a;
    --muted:     #64748b;
    --primary:   #2563eb;
    --primary-d: #1d4ed8;
    --success:   #16a34a;
    --shadow:    0 1px 3px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.06);
    --radius:    14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg-soft);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

/* ---------- Gumbi ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; padding: .65rem 1.1rem; border-radius: 10px;
    border: 1px solid transparent; font-size: .95rem; font-weight: 600;
    cursor: pointer; transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-block { width: 100%; }

/* ---------- Prijava ---------- */
.auth-body {
    min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
    background: radial-gradient(1200px 600px at 50% -10%, #1e293b, var(--bg));
}
.auth-card {
    width: 100%; max-width: 400px; background: var(--surface);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem;
}
.brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.5rem; }
.brand h1 { font-size: 1.4rem; margin: 0; }
.brand-sub { margin: 0; color: var(--muted); font-size: .9rem; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
    display: grid; place-items: center; font-weight: 800; font-size: 1.3rem;
    color: #fff; background: linear-gradient(135deg, var(--primary), #7c3aed);
}
.brand-sm .brand-mark { width: 34px; height: 34px; font-size: 1rem; border-radius: 9px; }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field span { font-size: .85rem; font-weight: 600; color: #334155; }
.field input {
    padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 10px;
    font-size: 1rem; 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(37,99,235,.15);
}
.auth-foot { margin: 1.25rem 0 0; text-align: center; color: var(--muted); font-size: .82rem; }

.alert { padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; margin-bottom: 1rem; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Topbar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner {
    max-width: 1100px; margin: 0 auto; padding: .8rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.user-chip { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.user-name { font-weight: 600; font-size: .92rem; }
.user-company { color: var(--muted); font-size: .8rem; }

/* ---------- Vsebina ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.page-head h1 { margin: 0 0 .25rem; font-size: 1.6rem; }
.section-title { font-size: 1.1rem; margin: 2rem 0 1rem; }
.upsell { border-top: 1px dashed var(--border); margin-top: 2rem; padding-top: .5rem; }

/* ---------- Mreza modulov ---------- */
.grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.module-card {
    position: relative; display: flex; flex-direction: column; gap: .75rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
a.module-card:hover {
    transform: translateY(-3px); border-color: #c7d2fe;
    box-shadow: 0 10px 28px rgba(37,99,235,.15);
}
.module-card--locked, .module-card--disabled { opacity: .85; }
.module-card--locked { background: #fbfcfe; }
.module-icon {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.7rem; background: #eef2ff;
}
.module-icon--muted { background: #f1f5f9; filter: grayscale(.4); }
.module-body h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.module-body p { margin: 0; color: var(--muted); font-size: .88rem; }
.badge {
    position: absolute; top: 1rem; right: 1rem;
    font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
}
.badge-active { background: #dcfce7; color: var(--success); }
.badge-locked { background: #f1f5f9; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
    max-width: 1100px; margin: 0 auto; padding: 1.5rem;
    color: var(--muted); font-size: .82rem; text-align: center;
}

@media (max-width: 520px) {
    .user-chip { display: none; }
    .topbar-inner, .container { padding-left: 1rem; padding-right: 1rem; }
}

/* ============================================================
   Javna predstavitvena / prodajna stran (landing)
   ============================================================ */
html { scroll-behavior: smooth; }
.site { background: var(--surface); }

/* ---------- Navigacija ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-nav-inner {
    max-width: 1100px; margin: 0 auto; padding: .7rem 1.5rem;
    display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; margin-right: 1rem; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .92rem; }
.nav-links a:hover { color: var(--text); }

/* ---------- Gumbi (dodatki) ---------- */
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eef2ff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(1100px 520px at 50% -20%, #1e293b, var(--bg));
    color: #fff; text-align: center; padding: 4.5rem 1.5rem 5rem;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: #a5b4fc;
    background: rgba(99,102,241,.15); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 { font-size: 2.6rem; line-height: 1.12; margin: 0 0 1rem; }
.hero .lead { font-size: 1.15rem; color: #cbd5e1; margin: 0 auto 1.8rem; max-width: 620px; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin: 1.4rem 0 0; color: #94a3b8; font-size: .85rem; }

/* ---------- Sekcije ---------- */
.section { padding: 3.5rem 0; }
.section > .container { padding-top: 0; padding-bottom: 0; }
.section--alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section-head h2 { font-size: 1.9rem; margin: 0 0 .5rem; }

/* ---------- Moduli (dodatki k karticam) ---------- */
.module-tagline { font-size: .8rem; font-weight: 600; color: var(--primary); margin: 0 0 .35rem; }
.module-features { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .4rem; }
.module-features li { position: relative; padding-left: 1.4rem; font-size: .88rem; color: #334155; }
.module-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.module-price { margin: .25rem 0 0; padding-top: .75rem; border-top: 1px solid var(--border); font-size: .95rem; }
.module-price strong { color: var(--text); }

/* ---------- Prednosti ---------- */
.benefits { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.benefit {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow);
}
.benefit-icon { font-size: 1.8rem; margin-bottom: .6rem; }
.benefit h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.benefit p { margin: 0; font-size: .9rem; }

/* ---------- Cenik ---------- */
.price-feature {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.75rem; margin-bottom: 1.5rem;
}
.price-feature-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.price-feature-head h3 { margin: 0 0 .2rem; font-size: 1.25rem; }
.price-feature-head p { margin: 0; font-size: .9rem; }
.price-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }

.calc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.calc-label { display: block; font-size: .85rem; font-weight: 600; color: #334155; margin-bottom: .4rem; }
.calc-input {
    width: 100%; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 10px;
    font-size: 1.1rem; font-weight: 600; background: #fff;
}
.calc-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.calc-out { margin-top: 1rem; display: grid; gap: .5rem; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .92rem; }
.calc-row strong { font-size: 1.05rem; }
.calc-row--big strong { font-size: 1.6rem; color: var(--primary); }
.calc-note { margin: 1rem 0 0; font-size: .78rem; color: var(--muted); }

.tier-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tier-table th, .tier-table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--border); }
.tier-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.tier-table td:last-child, .tier-table th:last-child { text-align: right; font-weight: 600; }
.tier-table tbody tr:last-child td { border-bottom: none; color: var(--muted); }

.price-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem;
}
.price-card h3 { margin: .25rem 0 0; font-size: 1.1rem; }
.price-big { font-size: 1.5rem; font-weight: 800; margin: .25rem 0; }
.price-card .btn { margin-top: auto; }
.price-card--soon { opacity: .9; background: #fbfcfe; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; }
.cta-band-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding-top: 2.5rem; padding-bottom: 2.5rem; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 .3rem; font-size: 1.6rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-band-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- Kontakt ---------- */
.contact-box { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-item {
    display: inline-flex; align-items: center; gap: .6rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.3rem;
    font-weight: 600; box-shadow: var(--shadow);
}
.contact-item:hover { border-color: var(--primary); }
.contact-ico { font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .hero h1 { font-size: 2rem; }
    .price-feature-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Temni nacin (dark theme) — preklop prek [data-theme="dark"]
   ============================================================ */
[data-theme="dark"] {
    --bg:        #020617;
    --bg-soft:   #0b1220;
    --surface:   #111827;
    --border:    #1f2a3a;
    --text:      #e5e7eb;
    --muted:     #94a3b8;
    --primary:   #3b82f6;
    --primary-d: #2563eb;
    --success:   #22c55e;
    --shadow:    0 1px 3px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.4);
}

/* Prilagoditve trdo kodiranih svetlih barv v temnem nacinu */
[data-theme="dark"] .site-nav { background: rgba(17,24,39,.85); }
[data-theme="dark"] .module-icon { background: #1e293b; }
[data-theme="dark"] .module-icon--muted { background: #161f2e; }
[data-theme="dark"] .module-card--locked,
[data-theme="dark"] .price-card--soon { background: #0e1626; }
[data-theme="dark"] .badge-active { background: rgba(34,197,94,.16); }
[data-theme="dark"] .badge-locked { background: #1f2a3a; }
[data-theme="dark"] .field input,
[data-theme="dark"] .calc-input { background: #0b1220; color: var(--text); }
[data-theme="dark"] .field span,
[data-theme="dark"] .calc-label,
[data-theme="dark"] .module-features li { color: #cbd5e1; }
[data-theme="dark"] a.module-card:hover { border-color: #334155; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
[data-theme="dark"] .alert-error { background: #2a1518; color: #fca5a5; border-color: #7f1d1d; }

/* Gumb za preklop teme */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: 0 0 auto;
    border: 1px solid var(--border); border-radius: 10px;
    background: transparent; color: var(--text); cursor: pointer;
    font-size: 1.1rem; line-height: 1;
    transition: background .15s, border-color .15s, transform .05s;
}
.theme-toggle:hover { background: var(--bg-soft); border-color: var(--primary); }
.theme-toggle:active { transform: translateY(1px); }
.theme-toggle .theme-ico { pointer-events: none; }
.theme-toggle--floating {
    position: fixed; top: 1rem; right: 1rem; z-index: 100;
    background: var(--surface); box-shadow: var(--shadow);
}

/* ---------- Logotip (menjava glede na temo) ---------- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-img { height: 30px; width: auto; display: block; }
.logo--lg .logo-img { height: 42px; }
.logo-img--dark { display: none; }
[data-theme="dark"] .logo-img--light { display: none; }
[data-theme="dark"] .logo-img--dark { display: block; }
.brand--stack { flex-direction: column; align-items: flex-start; gap: .4rem; }
@media (max-width: 480px) { .site-nav .logo-img { height: 24px; } }

/* ---------- Krcenje menijske vrstice ob drsenju ---------- */
.site-nav-inner { transition: padding .25s ease; }
.site-nav .logo-img { transition: height .25s ease; }
.site-nav:not(.is-scrolled) .site-nav-inner { padding-top: 1.3rem; padding-bottom: 1.3rem; }
.site-nav:not(.is-scrolled) .logo-img { height: 52px; }
.site-nav.is-scrolled { box-shadow: 0 6px 20px rgba(15,23,42,.06); }
[data-theme="dark"] .site-nav.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.4); }
@media (max-width: 480px) {
    .site-nav:not(.is-scrolled) .logo-img { height: 40px; }
}

/* ---------- SVG ikone ---------- */
.module-icon { color: var(--primary); }
.module-icon svg { width: 26px; height: 26px; }
.module-icon--muted { color: var(--muted); }
.benefit-icon { color: var(--primary); line-height: 0; }
.benefit-icon svg { width: 30px; height: 30px; }
.theme-ico { display: inline-flex; }
.theme-ico svg { width: 20px; height: 20px; display: block; }
