/* =====================================================================
   FiremníDoklady – landing page
   Konzistentní s aplikací: slate paleta, dokumentový motiv, čisté UI.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&display=swap');

:root {
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --sky: #0284c7;
    --emerald: #059669;
    --violet: #7c3aed;
    --amber: #d97706;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
    --shadow-md: 0 10px 30px -12px rgba(15,23,42,.18);
    --shadow-lg: 0 30px 60px -25px rgba(15,23,42,.28);
    --display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--sky); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font-family: var(--body); font-size: 15px; font-weight: 600; border: 0;
    padding: 13px 22px; border-radius: 999px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(248,250,252,.82); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-color: var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; box-shadow: var(--shadow-sm);
}
.logo-mark svg { width: 21px; height: 21px; }
.logo-text { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.logo-text strong { font-weight: 700; }
.logo-text span { color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 10px; }
.site-nav .nav-links { display: flex; gap: 22px; margin-right: 14px; }
.site-nav .nav-links a { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.site-nav .nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 80px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
      radial-gradient(60% 50% at 50% -10%, rgba(2,132,199,.10), transparent 70%),
      radial-gradient(40% 40% at 85% 10%, rgba(5,150,105,.08), transparent 70%);
}
.hero-grid {
    position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { max-width: 780px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); margin: 0 0 22px; font-weight: 700; }
.hero h1 .grad {
    background: linear-gradient(120deg, var(--sky), var(--emerald)); -webkit-background-clip: text;
    background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); max-width: 640px; margin: 0 0 14px; }
.hero-sub { font-size: 15px; color: var(--muted); margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.hero-note svg { width: 15px; height: 15px; color: var(--emerald); }

/* ---------- Section headings ---------- */
.sec-head { max-width: 680px; margin: 0 0 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
.sec-head p { font-size: 17px; color: var(--muted); margin: 0; }

/* ---------- Chaos band ---------- */
.band { background: var(--ink); color: #e2e8f0; }
.band .eyebrow { color: #38bdf8; }
.band h2 { color: #fff; }
.band p { color: #94a3b8; }
.band-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.band-quote {
    background: linear-gradient(135deg, #1e293b, #0f172a); border: 1px solid #1e293b;
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg);
}
.band-quote .crossed { color: #64748b; text-decoration: line-through; display: block; margin-bottom: 6px; }
.band-quote .good { color: #fff; font-family: var(--display); font-size: 20px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
    width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
    display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px;
    color: var(--sky); margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 17px; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Audience / cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-ic {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
}
.card-ic svg { width: 22px; height: 22px; }
.ic-sky { background: rgba(2,132,199,.12); color: var(--sky); }
.ic-emerald { background: rgba(5,150,105,.12); color: var(--emerald); }
.ic-violet { background: rgba(124,58,237,.12); color: var(--violet); }
.ic-amber { background: rgba(217,119,6,.12); color: var(--amber); }
.card h3 { font-size: 19px; margin: 0 0 8px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 30px; }
.feature { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.feature svg { width: 20px; height: 20px; color: var(--emerald); flex-shrink: 0; margin-top: 2px; }

/* ---------- Overview (years/months) ---------- */
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.overview-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-md); }
.year-block { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.year-block:last-child { margin-bottom: 0; }
.year-block .yr { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.year-block .yr svg { width: 18px; height: 18px; color: var(--sky); }
.months { display: flex; flex-wrap: wrap; gap: 8px; }
.month-pill { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft); }
.month-pill.cur { background: rgba(2,132,199,.1); border-color: rgba(2,132,199,.3); color: var(--sky); font-weight: 600; }

/* ---------- Roles ---------- */
.role-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.rb-admin { background: rgba(124,58,237,.12); color: var(--violet); }
.rb-emp { background: rgba(2,132,199,.12); color: var(--sky); }
.rb-acc { background: rgba(5,150,105,.12); color: var(--emerald); }

/* ---------- Tariffs ---------- */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.tariff {
    background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; transition: transform .18s, box-shadow .2s;
}
.tariff:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tariff.featured { border-color: var(--ink); box-shadow: var(--shadow-lg); transform: scale(1.02); }
.tariff.featured:hover { transform: scale(1.02) translateY(-4px); }
.tariff-flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.tariff-name { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tariff-name.sky { color: var(--sky); }
.tariff-name.violet { color: var(--violet); }
.tariff-name.emerald { color: var(--emerald); }
.tariff-price { font-family: var(--display); font-size: 40px; font-weight: 700; margin: 12px 0 2px; }
.tariff-price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.tariff-desc { font-size: 14px; color: var(--muted); margin: 0 0 20px; min-height: 42px; }
.tariff ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.tariff li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.tariff li svg { width: 18px; height: 18px; color: var(--emerald); flex-shrink: 0; margin-top: 2px; }
.tariff-foot { font-size: 13px; color: var(--muted); margin: 0 0 18px; font-style: italic; }
.tariff .btn { margin-top: auto; }

/* ---------- Unlimited note ---------- */
.note-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--emerald); border-radius: 14px; padding: 22px 24px; }
.note-box h3 { font-size: 17px; margin: 0 0 6px; }
.note-box p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--display); font-weight: 600;
    font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--sky); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ---------- Final CTA ---------- */
.cta-final {
    background: linear-gradient(135deg, #1e293b, #0f172a); border-radius: 26px; padding: 60px 40px;
    text-align: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-final::before {
    content: ''; position: absolute; inset: 0; opacity: .4;
    background: radial-gradient(50% 80% at 50% 0%, rgba(56,189,248,.25), transparent 70%);
}
.cta-final h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin: 0 0 14px; position: relative; }
.cta-final p { color: #94a3b8; max-width: 520px; margin: 0 auto 28px; position: relative; }
.cta-final .btn-dark { background: #fff; color: var(--ink); position: relative; }

/* ---------- Inquiry form ---------- */
.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 12px;
    font-size: 15px; font-family: var(--body); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(2,132,199,.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.form-alert { border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-bottom: 18px; }
.form-alert.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.form-alert.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.inquiry-aside h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 14px; }
.inquiry-aside p { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.inquiry-aside .contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 15px; color: var(--ink-soft); }
.inquiry-aside .contact-row svg { width: 20px; height: 20px; color: var(--sky); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr 1fr; }
    .cards-3, .tariffs, .features { grid-template-columns: 1fr; }
    .features { gap: 12px; }
    .band-cols, .overview, .inquiry { grid-template-columns: 1fr; gap: 32px; }
    .tariff.featured { transform: none; }
    .tariff.featured:hover { transform: translateY(-4px); }
    .section { padding: 64px 0; }
    .hero { padding: 64px 0 56px; }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .site-nav .nav-links { display: none; }
    .wrap { padding: 0 18px; }
    .cta-final { padding: 44px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ===== OPRAVA: hlavicka na uzkych displejich (iPhone SE ~320-375px) ===== */
@media (max-width: 480px) {
    .site-header-inner { height: 60px; gap: 10px; }
    .site-header .btn-dark { padding: 9px 14px; font-size: 13px; white-space: nowrap; box-shadow: none; }
    .logo-text { font-size: 16px; }
    .logo-mark { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
    .logo-text { font-size: 15px; }
    .site-header .btn-dark { padding: 8px 12px; font-size: 12px; }
}
