/* Vizuální jazyk webu (listopad 2026, podle schváleného návrhu úvodní stránky).
   Načítá se jako POSLEDNÍ styl na všech veřejných stránkách a sjednocuje je.
   Pravidla a paleta: DESIGN.md (interní). Nikdy žlutá vedle modré.
   - nadpisy: Inter Tight 800, normální velikost písmen (žádné verzálky)
   - tlačítka: ploché pilulky; hlavní modré s bílým textem, v modrém bloku bílé; vedlejší s jemným obrysem
   - karty: bílé, zaoblené, jemný obrys a měkký stín
   - hero stránky: modrý zaoblený blok (.hero-blue > .hero-in)
   - logo: kulatá fotka + Jakub • Herrmann */

:root {
    --brand-blue: #2b3cff; --blue-d: #1f2ccc; --acc: #ff5cf4; --ink: #0e1a2e;
    --line: #e3e4ec; --muted: #5f6878;
    --sans: 'Inter Tight', 'Inter', system-ui, sans-serif;
    --cond: var(--sans);
}
html { overflow-x: clip; }
body { overflow-x: clip; }

/* ---------- Nadpisy ---------- */
h1, h2, .cond {
    font-family: var(--sans) !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: -0.035em !important;
    line-height: 1.06 !important;
}
h3 { font-family: var(--sans); letter-spacing: -0.02em; }

/* ---------- Logo s fotkou ---------- */
.wm { align-items: center !important; }
.wm::before {
    content: ""; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; margin-right: 10px;
    background: url(/jakub-avatar.webp) center/cover; box-shadow: 0 0 0 2px var(--acc);
}
.wm .dot { width: 6px !important; height: 6px !important; margin: 0 4px !important; transform: none !important; }
footer .wm::before { width: 28px; height: 28px; }

/* ---------- Zvýraznění ---------- */
.hl {
    background: none !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    color: var(--brand-blue) !important; transform: none !important; display: inline !important;
}
.wavy { text-decoration-color: var(--acc) !important; }
.kruh { position: relative; white-space: nowrap; display: inline-block; }
.kruh::before {
    content: ""; position: absolute; inset: -.08em -.16em -.06em -.14em; border: .07em solid var(--acc);
    border-radius: 50% 46% 54% 48%/56% 50% 46% 52%; transform: rotate(-3deg); pointer-events: none;
}

/* ---------- Tlačítka: ploché pilulky ---------- */
.btn {
    min-height: 48px; padding: 0 24px !important; gap: 10px;
    border-radius: 999px !important; border: 0 !important;
    font: 700 16px/1 var(--sans) !important; letter-spacing: -0.01em;
    background: var(--brand-blue) !important; color: #fff !important;
    box-shadow: none !important;
    transition: background .2s, color .2s, box-shadow .2s, transform .2s !important;
}
.btn:hover { background: var(--blue-d) !important; transform: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.btn-ghost { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px #c9ccd8 !important; }
.btn-ghost:hover { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
.btn-dark { background: var(--ink) !important; color: #fff !important; }
.btn-dark:hover { background: #000 !important; }
/* Tlačítka psaná Tailwind třídami s modrým pozadím */
a[class*="bg-[#2b3cff]"], button[class*="bg-[#2b3cff]"], input[type="submit"][class*="bg-[#2b3cff]"] {
    background: var(--brand-blue) !important; color: #fff !important; border: 0 !important;
    box-shadow: none !important; border-radius: 999px !important; font-weight: 700 !important;
}
a[class*="bg-[#2b3cff]"] *, button[class*="bg-[#2b3cff]"] * { color: #fff !important; }
a[class*="bg-[#2b3cff]"]:hover, button[class*="bg-[#2b3cff]"]:hover { background: var(--blue-d) !important; }

/* Klub v menu = hlavní produkt: světle růžová pilulka s blikající tečkou. Webináře mají červený štítek "Nový" (.nav-new). */
.nav-klub {
    display: inline-flex !important; align-items: center; gap: 7px;
    background: #ffe8fd !important; color: var(--ink) !important; font-weight: 800 !important;
    padding: 7px 14px !important; border-radius: 999px !important; box-shadow: inset 0 0 0 1.5px var(--acc) !important;
}
.nav-klub::before, .pulse-dot { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex-shrink: 0; animation: jh-pulse 1.6s ease-in-out infinite; display: inline-block; }
@keyframes jh-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,92,244,.55); } 50% { box-shadow: 0 0 0 5px rgba(255,92,244,0); } }
.nav-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #dc2626; color: #fff !important; font: 700 10px/16px var(--sans); vertical-align: 2px; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .nav-klub::before, .pulse-dot { animation: none; } }

/* ---------- Karty a plochy ---------- */
.glass-card, .card, .module-card, .project-card, .report-card, .ad-card {
    background: #fff;
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(14,26,46,.25) !important;
    backdrop-filter: none !important;
}
.blob, .section-glow::before, .section-glow::after { display: none !important; }
.sticker { border: 0 !important; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -16px rgba(14,26,46,.3) !important; border-radius: 14px !important; }
.frame, .hero-frame { box-shadow: 0 24px 60px -30px rgba(14,26,46,.35) !important; border: 0 !important; background: transparent !important; padding: 0 !important; }
.frame img, .hero-frame img { border-radius: 24px; }
/* štítek nad nadpisem: magenta tečka + modrý text, bez pozadí */
.eyebrow {
    background: none !important; padding: 0 !important; border-radius: 0 !important;
    display: inline-flex !important; align-items: center; gap: 8px;
    font: 600 13px/1.35 var(--sans) !important; letter-spacing: .02em !important; text-transform: none !important;
    color: var(--brand-blue) !important;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex-shrink: 0; }
.micro-label { font-family: var(--sans) !important; letter-spacing: .02em !important; text-transform: none !important; font-size: 13px !important; }
/* odrážky ✓: tučná modrá fajfka bez kolečka */
.check, .klub-check {
    background: none !important; box-shadow: none !important; border-radius: 0 !important;
    width: 1.1em !important; height: auto !important; margin-top: 0 !important;
    color: var(--brand-blue) !important; font-size: 1.05em !important; font-weight: 900 !important; line-height: inherit !important;
    display: inline-block !important; flex-shrink: 0;
}
.check-item::before {
    background: none !important; border-radius: 0 !important; width: 1.1em !important; height: auto !important;
    color: var(--brand-blue) !important; font-size: 1.05em !important; font-weight: 900 !important; margin-right: .6rem !important;
}
svg:has(> path[d="M5 13l4 4L19 7"]) { color: var(--brand-blue) !important; }
svg:has(> path[d="M5 13l4 4L19 7"]) path { stroke-width: 3.5; }
.rounded-full:has(> svg > path[d="M5 13l4 4L19 7"]) { background: none !important; box-shadow: none !important; width: auto !important; height: auto !important; }
.rounded-full > svg:has(> path[d="M5 13l4 4L19 7"]) { width: 1.15rem !important; height: 1.15rem !important; }
.btn svg:has(> path[d="M5 13l4 4L19 7"]), [class*="bg-[#2b3cff]"] svg:has(> path[d="M5 13l4 4L19 7"]) { color: inherit !important; }
.field:focus, input:focus, textarea:focus, select:focus { border-color: var(--brand-blue) !important; }

/* ---------- Modrý hero blok ---------- */
section.hero-blue { background: transparent !important; overflow: visible !important; }
.hero-in, .hero-blue:not(section) {
    background: var(--brand-blue);
    color: #fff;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}
.hero-in { padding: clamp(28px, 5vw, 60px) clamp(22px, 5vw, 60px) !important; }
@media (max-width: 640px) { .hero-in { margin-left: 12px; margin-right: 12px; border-radius: 26px; } }
.hero-in h1, .hero-in h2, .hero-blue h1, .hero-blue h2 { color: #fff !important; }
.hero-in p, .hero-in li, .hero-in span, .hero-in div, .hero-in a:not(.btn), .hero-in strong, .hero-in b, .hero-in label { color: inherit; }
.hero-in [class*="text-[#0e1a2e]"], .hero-in [class*="text-[#3a4658]"], .hero-in [class*="text-[#5f6878]"],
.hero-in [class*="text-[#2b3cff]"], .hero-in [class*="text-[#9c1690]"], .hero-in [class*="text-[#6b0f63]"],
.hero-in .micro-label, .hero-in nav, .hero-in nav a { color: rgba(255,255,255,.88) !important; }
.hero-in a:not(.btn):not([class*="bg-"]) { color: #fff !important; text-decoration-color: var(--acc); }
.hero-in .hl, .hero-blue .hl { color: #fff !important; text-decoration: underline !important; text-decoration-color: var(--acc) !important; text-decoration-thickness: .09em !important; text-underline-offset: .12em !important; }
/* tlačítka v modrém bloku: hlavní bílé, vedlejší s bílým obrysem */
.hero-in .btn, .hero-blue .btn, .hero-in a[class*="bg-[#2b3cff]"], .hero-blue a[class*="bg-[#2b3cff]"] { background: #fff !important; color: var(--ink) !important; }
.hero-in .btn *, .hero-blue .btn * { color: var(--ink) !important; }
.hero-in .btn:hover, .hero-blue .btn:hover { background: #e9ebff !important; }
.hero-in .btn-ghost, .hero-blue .btn-ghost, .hero-in .btn-dark, .hero-blue .btn-dark { background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5) !important; }
.hero-in .btn-ghost *, .hero-blue .btn-ghost *, .hero-in .btn-dark *, .hero-blue .btn-dark * { color: #fff !important; }
.hero-in .btn-ghost:hover, .hero-blue .btn-ghost:hover, .hero-in .btn-dark:hover, .hero-blue .btn-dark:hover { background: transparent !important; box-shadow: inset 0 0 0 1.5px #fff !important; }
/* bílé ostrůvky uvnitř hero (karty, nálepky, formuláře) zůstávají tmavé */
.hero-in .glass-card, .hero-in .card, .hero-in .sticker, .hero-in [class*="bg-white"], .hero-in .frame,
.hero-in [class*="bg-[#"]:not([class*="bg-[#2b3cff]"]):not([class*="bg-[#0e1a2e]"]),
.hero-in [style*="background:#fff"] { color: var(--ink) !important; }
.hero-in [class*="bg-[#"]:not([class*="bg-[#2b3cff]"]):not([class*="bg-[#0e1a2e]"]) *,
.hero-in [style*="background:#fff"] *,
.hero-in .glass-card *, .hero-in .card *, .hero-in .sticker *, .hero-in [class*="bg-white"] *, .hero-in input, .hero-in select, .hero-in textarea { color: var(--ink) !important; }
.hero-in .card .btn, .hero-in .glass-card .btn { background: var(--brand-blue) !important; color: #fff !important; }
.hero-in .card .btn *, .hero-in .glass-card .btn * { color: #fff !important; }
.hero-in input, .hero-in select, .hero-in textarea { background: #fff !important; border: 0 !important; border-radius: 999px; }
.hero-in input::placeholder { color: #5f6878 !important; }
.hero-in .eyebrow { color: rgba(255,255,255,.88) !important; }
.hero-in .tag { background: rgba(255,255,255,.14) !important; color: #fff !important; }
.hero-in .check, .hero-in .klub-check, .hero-in .check-item::before, .hero-in svg:has(> path[d="M5 13l4 4L19 7"]) { color: #fff !important; }
.hero-in dt { color: rgba(255,255,255,.72) !important; }

/* ---------- Drobnosti ---------- */
/* strojové písmo (mono, verzálky) se už nepoužívá: štítky a popisky v Inter Tight */
:root { --mono: var(--sans); }
.tag { text-transform: none !important; letter-spacing: .01em !important; font-size: 12.5px !important; }
header .btn, nav .btn { white-space: nowrap; }
.hero-in > * { min-width: 0; }
/* hlavička na úzkém mobilu: "Můj účet" jen jako ikona, ať se nic nezalamuje */
@media (max-width: 420px) {
    header .btn-ghost [data-account-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    header .btn-ghost { padding: 0 14px !important; min-height: 44px; }
    .wm { font-size: 17px !important; }
    .wm::before { width: 30px; height: 30px; margin-right: 8px; }
}

/* Fakta v modrém bloku (termín, délka, cena) bílé; bílé karty v modrém bloku mají vlastní barvy odkazů a štítků */
.hero-in dd { color: #fff !important; }
.hero-in .card a:not(.btn):not([class*="bg-"]), .hero-in .glass-card a:not(.btn):not([class*="bg-"]),
.hero-in [class*="bg-white"] a:not(.btn):not([class*="bg-"]) { color: var(--brand-blue) !important; text-decoration-color: currentColor; }
.hero-in .card .tag, .hero-in .glass-card .tag, .hero-in [class*="bg-white"] .tag { background: var(--brand-blue) !important; color: #fff !important; }

/* Menu se nikdy nezalamuje: položky na jednom řádku, na menších noteboocích těsnější */
.site-nav a, header nav a, .menu a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
    .site-nav { gap: 14px !important; }
    .site-nav a, header nav a { font-size: 13.5px !important; }
    header .btn { padding: 0 16px !important; font-size: 14px !important; }
    .nav-klub { padding: 5px 11px !important; }
}
/* Stránky produktů (Ad Factory, AI Analytik, projekty, reporting): pod 1100 px místo menu jen hamburger */
@media (min-width: 768px) and (max-width: 1199px) {
    header nav[class*="md:flex"] { display: none !important; }
    header #mobile-toggle[class*="md:hidden"] { display: inline-flex !important; }
}

/* ---------- Prvky značky (razítko, pečeť) ---------- */
/* Obsah vkládá js/znacka.js podle data-razitko / data-pecet. Pravidla použití: DESIGN.md. */
.razitko, .pecet { --acc: #ff5cf4; pointer-events: none; }
.razitko svg, .pecet svg { display: block; width: 100%; height: 100%; }
.razitko { aspect-ratio: 300 / 170; filter: drop-shadow(0 2px 0 rgba(14,26,46,.25)); }
.pecet { aspect-ratio: 1; }
/* razítko na rohu fotky v modrém bloku (jako na úvodní stránce) */
.frame { position: relative; }
.frame .razitko { position: absolute; width: 60%; right: -14%; bottom: -7%; z-index: 2; }
/* razítko pod textem (stránky bez fotky v hero) */
.razitko--text { width: 170px; margin-top: 22px; transform: rotate(-3deg); }
/* na mobilu: fotka v hero jen na počítači, razítko malé v rohu modrého bloku */
.razitko--mobil { display: none; }
@media (max-width: 1023px) {
    .hero-in .foto-desktop { display: none !important; }
    .hero-in .razitko--mobil { display: block; position: absolute; top: 14px; right: 12px; width: 112px; z-index: 3; transform: rotate(4deg); }
    /* nadpis má celou šířku; místo pro razítko jen vedle štítku nad nadpisem */
    .hero-in:has(.razitko--mobil) .flex:has(> .eyebrow) { max-width: calc(100% - 112px); min-height: 52px; align-content: center; }
    .hero-in:has(.razitko--mobil) > div > .eyebrow:first-child { display: flex !important; max-width: calc(100% - 112px); min-height: 52px; }
    .hero-in:has(.razitko--mobil) .eyebrow { white-space: nowrap; }
    .razitko--text { width: 140px; }
}
/* pečeť klubu nahoře na kartě s cenou */
.pecet--karta { width: 120px; margin: -8px auto 14px; }
