/* Emzak: spoločný vzhľad (úvodná stránka, okno klienta, backoffice).
   Predloha: prezentácia „LinkedIn asistent“ (tmavomodrá, tyrkysový akcent, svetlé karty). */
/* Písma (OFL) na vlastnom serveri, bez Google Fonts. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/static/fonts/jetbrains-mono-latin-ext-500.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/static/fonts/jetbrains-mono-latin-500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy-950: #0b121a;
  --navy-900: #0f1a24;
  --navy-800: #14202c;
  --navy-700: #1c2c3b;
  --ink: #0b1219;
  --text: #0b1219;
  --muted: #5b6b78;
  --bg: #f4f7fa;
  --card: #ffffff;
  --line: #e3e9ef;
  --sky: #dcf3fb;
  --sky-strong: #c8e6f1;
  --accent: #0089b8;          /* akcent na svetlom pozadí */
  --accent-bright: #22b5ea;   /* tlačidlá a akcent na tmavom */
  --on-accent: #06212d;
  --ok: #138a5b;
  --warn: #b26a00;
  --danger: #c23b3b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 18, 26, .04), 0 8px 24px rgba(11, 18, 26, .06);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

/* Okno klienta a backoffice majú aj tmavý režim. Úvodná stránka má pevné farby. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app {
    --text: #e8eef2; --muted: #9aabb8; --bg: #0b121a; --card: #14202c; --line: #22313f;
    --sky: #0e2a36; --sky-strong: #12384a; --accent: #3cc2f0; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* malý štítok s číslom sekcie, ako v prezentácii */
.label { font: 500 .78rem/1 var(--mono); color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }

/* tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px;
       padding: .7em 1.4em; border-radius: 999px; border: 1px solid transparent; font: 700 1rem/1 var(--font);
       text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.btn-primary { background: var(--accent-bright); color: var(--on-accent); box-shadow: 0 6px 20px rgba(34, 181, 234, .35); }
.btn-light { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-small { min-height: 36px; padding: .5em 1em; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }

/* karty a dlaždice s ikonou */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow); padding: 20px; }
.tile { width: 40px; height: 40px; border-radius: 12px; background: var(--sky); color: var(--accent);
        display: grid; place-items: center; flex: none; }
.tile svg { width: 22px; height: 22px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4, .grid-5 { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: 28px; min-height: 150px; }
.step .top { display: flex; justify-content: space-between; align-items: flex-start; }
.step .num { font: 500 .8rem var(--mono); color: var(--muted); }
.step h3 { margin: 0; }
.panel { background: var(--sky); border-radius: var(--radius); padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border-radius: 999px;
        background: var(--card); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.chip.ok { color: var(--ok); } .chip.warn { color: var(--warn); } .chip.danger { color: var(--danger); }
.chip.info { color: var(--accent); }

/* logo Emzak */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem;
         letter-spacing: -.02em; color: inherit; text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.brand .client { font-weight: 600; color: var(--muted); font-size: .95rem; }

/* ── úvodná stránka ─────────────────────────────────────── */
.site-nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 18, 26, .86);
            backdrop-filter: saturate(140%) blur(10px); color: #fff; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.site-nav nav { display: flex; gap: 24px; align-items: center; }
.site-nav nav a { color: #c9d6df; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav nav a:hover { color: #fff; }
@media (max-width: 760px) { .site-nav nav a:not(.btn) { display: none; } }

.dark { color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #0d3a4d 0%, rgba(13, 58, 77, 0) 60%), var(--navy-950); }
.dark .muted { color: #9fb1bd; }
.dark .label, .dark .accent { color: var(--accent-bright); }
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .accent { display: block; }
.hero .lead { font-size: 1.2rem; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 48px 0 64px; } }

.section { padding: 88px 0; }
.section.alt { background: var(--card); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { margin-top: 10px; }
@media (max-width: 760px) { .section { padding: 56px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 24px; overflow: hidden;
         background: var(--bg); border: 1px solid var(--line); }
.split > div { padding: 40px; }
.split .visual { background: var(--sky); display: grid; place-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > div { padding: 28px 20px; } }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.time-bar { margin-top: 20px; display: flex; gap: 14px; align-items: center; padding: 18px 20px;
            border-radius: var(--radius); border: 1px solid rgba(34, 181, 234, .35); background: rgba(34, 181, 234, .08);
            font-weight: 700; font-size: 1.1rem; }

.price { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.price .amount { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price.featured { color: #fff; background: linear-gradient(160deg, #0d3a4d, var(--navy-950) 70%); border-color: transparent; }
.price.featured .muted { color: #9fb1bd; }
.price.extra { background: var(--sky); border: 1px dashed #8fd3ee; box-shadow: none; }

.site-footer { padding: 40px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }

/* makety: LinkedIn post, telefón, formulár */
.li-post { background: #fff; color: #191919; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
           padding: 16px; font-size: .9rem; line-height: 1.45; max-width: 440px; justify-self: end; position: relative; }
.li-post .who { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.li-post .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sky-strong); color: var(--accent);
                   display: grid; place-items: center; font-weight: 800; flex: none; }
.li-post .name { font-weight: 700; } .li-post .role { color: #666; font-size: .78rem; }
.li-post .text { white-space: pre-line; }
.li-post .tags { color: #0a66c2; margin-top: 8px; }
.li-post .image { margin-top: 12px; border-radius: 8px; overflow: hidden; position: relative; aspect-ratio: 1200 / 627;
                  background: linear-gradient(135deg, #cfe9f3, #eaf6fb); }
.li-post .image img { width: 100%; height: 100%; object-fit: cover; }
.li-post .actions { display: flex; justify-content: space-around; border-top: 1px solid #e8e8e8; margin-top: 12px;
                    padding-top: 10px; color: #666; font-size: .8rem; font-weight: 600; }
.li-post .approve { position: absolute; left: -28px; bottom: 56px; }
@media (max-width: 900px) { .li-post { justify-self: stretch; max-width: none; } .li-post .approve { left: 12px; bottom: 60px; } }
.badge-source { position: absolute; right: 8px; bottom: 8px; background: rgba(11, 18, 26, .82); color: #fff;
                font: 600 .7rem/1 var(--font); padding: 5px 8px; border-radius: 6px; }

.phone { width: min(320px, 100%); background: var(--navy-950); border-radius: 40px; padding: 12px; box-shadow: var(--shadow); }
.phone .screen { background: #eef3f6; border-radius: 30px; padding: 18px 12px; display: grid; gap: 8px; }
.phone .row { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px;
              font-size: .82rem; font-weight: 600; color: var(--ink); }
.phone .thumb { width: 56px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, #b9dceb, #e5f4fa); flex: none; }

.mock-form { width: min(420px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px; color: var(--ink); }
.mock-form .field { border: 1.5px solid var(--sky-strong); border-radius: 10px; height: 54px; margin: 6px 0 14px; }
.mock-form .field.active { border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(34, 181, 234, .15); }

/* ── okno klienta a backoffice ─────────────────────────── */
.app-header { background: var(--card); border-bottom: 1px solid var(--line); }
.app-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.app main { padding: 32px 0 56px; }
.app h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.app-footer { color: var(--muted); font-size: .875rem; padding: 24px 0 40px; border-top: 1px solid var(--line); }
.stack { display: grid; gap: 14px; }
.proposal { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; text-decoration: none; color: inherit; }
.proposal:hover { border-color: var(--accent-bright); }
.proposal .image { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1200 / 627;
                   background: linear-gradient(135deg, var(--sky-strong), var(--sky)); }
.proposal .image img { width: 100%; height: 100%; object-fit: cover; }
.proposal h3 { margin: 0 0 6px; }
.proposal p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) { .proposal { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; margin: 18px 0 6px; }
.form .hint { color: var(--muted); font-size: .9rem; margin: -2px 0 8px; }
.form textarea, .form input[type=text], .form input[type=email], .form select {
  width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1.5px solid var(--sky-strong);
  border-radius: 12px; padding: 12px 14px; }
.form textarea { min-height: 140px; resize: vertical; }
.form textarea:focus, .form input:focus, .form select:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(34, 181, 234, .18); }
.form .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.inline-icon svg { width: 18px; height: 18px; vertical-align: -3px; }
.notice { border-radius: 12px; padding: 14px 16px; background: var(--sky); border: 1px solid var(--sky-strong); }
.notice.warn { background: #fff6e6; border-color: #f3d69c; color: #6b4300; }
.notice.error { background: #fdecec; border-color: #f2b8b8; color: #7a1f1f; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font: 500 .75rem var(--mono); color: var(--muted); text-transform: uppercase;
                letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi .value { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.kpi .label { color: var(--muted); }
