/* klajastudio.cz - jeden styl pro cely web. Zadne externi fonty ani skripty. */
:root {
    --purple: #6A35B8;
    --purple-dark: #4F2590;
    --purple-soft: #F1EBFA;
    --ink: #1F1B24;
    --muted: #5E5868;
    --line: #E4DFEA;
    --bg: #FCFBFD;
    --bg-alt: #F5F2F9;
    --radius: 18px;
    --wrap: 1080px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 0.8em; }
h3 { font-size: 1.1rem; margin: 0 0 0.3em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 760px; }
.narrow > table, .narrow > .legal-wide { max-width: 100%; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }

/* Hlavicka */
.site-header { border-bottom: 1px solid var(--line); background: rgba(252, 251, 253, 0.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--purple); color: #fff; font-weight: 800; }
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--purple); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a, .lang-current { padding: 4px 8px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { background: var(--purple-soft); color: var(--purple); }
.lang-current { background: var(--purple); color: #fff; }

/* Uvod studia */
.hero { padding: 96px 0 24px; background: radial-gradient(1200px 400px at 85% -10%, var(--purple-soft), transparent 70%); }
.eyebrow { color: var(--purple); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.6em; }

/* Karta aplikace */
.app-card { display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(31, 27, 36, 0.04), 0 8px 24px rgba(106, 53, 184, 0.06); }
.app-card img { border-radius: 22px; }
.app-card h3 { font-size: 1.5rem; }
.app-tagline { color: var(--purple); font-weight: 600; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--purple-dark); color: #fff; }
.btn-light { background: #fff; color: var(--purple); }
.btn-light:hover { background: var(--purple-soft); color: var(--purple-dark); }
.badge { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px dashed var(--purple); color: var(--purple); font-weight: 600; font-size: 0.95rem; }
.badge-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }

/* Stranka EarnPlay */
.app-hero { background: var(--purple); color: #fff; padding: 80px 0; }
.app-hero-inner { display: grid; grid-template-columns: 128px 1fr; gap: 36px; align-items: start; }
.app-hero-icon { border-radius: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.app-hero h1 { margin-bottom: 0.15em; }
.app-hero-tagline { font-size: 1.35rem; font-weight: 600; opacity: 0.95; }
.app-hero .lead { color: rgba(255, 255, 255, 0.88); }
.platforms { margin-top: 18px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); font-weight: 700; margin-bottom: 12px; }
.steps p, .feature p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature h3 { color: var(--purple-dark); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.doc-links { padding-left: 1.2em; }
.doc-links li { margin-bottom: 0.4em; }

/* Kontakt */
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; }

/* Pravni texty */
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: 0.35em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--bg-alt); }
.legal-meta { color: var(--muted); font-size: 0.95rem; }
.back { margin-bottom: 24px; }
.back a { text-decoration: none; font-weight: 500; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--purple-soft); color: var(--purple-dark); }
.callout { padding: 16px 20px; border-left: 4px solid var(--purple); background: var(--bg-alt); border-radius: 0 12px 12px 0; }

/* Paticka */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 24px; font-size: 0.92rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-note { margin-top: 20px; font-size: 0.85rem; }

.not-found > div + div { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .hero { padding: 64px 0 48px; }
    .main-nav { order: 3; width: 100%; margin-left: 0; gap: 16px; padding-bottom: 10px; }
    .lang-switch { margin-left: auto; }
    .app-card, .app-hero-inner { grid-template-columns: 1fr; }
    .app-card img { width: 72px; height: 72px; }
    .app-hero-icon { width: 96px; height: 96px; }
    .steps, .features, .two-col { grid-template-columns: 1fr; }
    .contact-list { grid-template-columns: 1fr; gap: 2px; }
    .contact-list dd { margin-bottom: 12px; }
}
