/* ============================================================
   Hledambydlo.cz — design system
   Dvě barevné identity: nájem (teal) × koupě (amber)
   ============================================================ */

:root {
  --ink: #101828;
  --ink-soft: #475467;
  --ink-mute: #98a2b3;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --line: #e6e8ec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 4px 8px rgba(16, 24, 40, .06), 0 20px 48px rgba(16, 24, 40, .12);

  /* Nájem — teal */
  --najem: #0d9488;
  --najem-dark: #0f766e;
  --najem-soft: #ccfbf1;
  --najem-tint: #f0fdfa;

  /* Koupě — amber */
  --koupe: #d97706;
  --koupe-dark: #b45309;
  --koupe-soft: #fef3c7;
  --koupe-tint: #fffbeb;

  --accent: var(--najem);
  --accent-dark: var(--najem-dark);
  --accent-soft: var(--najem-soft);
  --accent-tint: var(--najem-tint);
}

body.theme-najem { --accent: var(--najem); --accent-dark: var(--najem-dark); --accent-soft: var(--najem-soft); --accent-tint: var(--najem-tint); }
body.theme-koupe { --accent: var(--koupe); --accent-dark: var(--koupe-dark); --accent-soft: var(--koupe-soft); --accent-tint: var(--koupe-tint); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -.02em; }
.logo .dot-najem { color: var(--najem); }
.logo .dot-koupe { color: var(--koupe); }
.header-nav { display: flex; gap: 10px; align-items: center; }
.header-link {
  text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; transition: all .15s;
}
.header-link:hover { background: var(--bg-soft); color: var(--ink); }
.header-link.pill-najem { color: var(--najem-dark); background: var(--najem-tint); border: 1px solid var(--najem-soft); }
.header-link.pill-najem:hover { background: var(--najem-soft); }
.header-link.pill-koupe { color: var(--koupe-dark); background: var(--koupe-tint); border: 1px solid var(--koupe-soft); }
.header-link.pill-koupe:hover { background: var(--koupe-soft); }

/* ---------- Hero (homepage) ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }
.hero h1 .hl-najem { color: var(--najem); }
.hero h1 .hl-koupe { color: var(--koupe); }
.hero .sub { margin: 18px auto 0; max-width: 640px; color: var(--ink-soft); font-size: 1.1rem; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-tint); border: 1px solid var(--accent-soft);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- Split cards ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 36px 0 72px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.path-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  border-radius: var(--radius); padding: 34px 30px 30px;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.path-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem;
}
.path-card h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.path-card p { color: var(--ink-soft); font-size: .97rem; }
.path-card ul { list-style: none; margin: 4px 0 8px; display: grid; gap: 7px; }
.path-card li { font-size: .92rem; color: var(--ink-soft); padding-left: 24px; position: relative; }
.path-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.path-card .cta {
  margin-top: auto; align-self: flex-start;
  font-weight: 700; font-size: .98rem; color: #fff;
  padding: 13px 26px; border-radius: 999px; transition: filter .15s;
}
.path-card:hover .cta { filter: brightness(1.08); }

.path-card.najem { background: linear-gradient(160deg, var(--najem-tint), #fff 55%); border-color: var(--najem-soft); }
.path-card.najem .icon { background: var(--najem-soft); }
.path-card.najem h2 { color: var(--najem-dark); }
.path-card.najem li::before { color: var(--najem); }
.path-card.najem .cta { background: var(--najem); }

.path-card.koupe { background: linear-gradient(160deg, var(--koupe-tint), #fff 55%); border-color: var(--koupe-soft); }
.path-card.koupe .icon { background: var(--koupe-soft); }
.path-card.koupe h2 { color: var(--koupe-dark); }
.path-card.koupe li::before { color: var(--koupe); }
.path-card.koupe .cta { background: var(--koupe); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section h2.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; text-align: center; }
.section .section-sub { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 12px auto 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.step-card .num {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--najem), var(--koupe));
}
.step-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step-card p { color: var(--ink-soft); font-size: .93rem; }

.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
@media (max-width: 760px) { .usp { grid-template-columns: 1fr; } }
.usp-item { text-align: center; padding: 10px; }
.usp-item .emoji { font-size: 2rem; }
.usp-item h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.usp-item p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 42px auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; overflow: hidden; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; font-weight: 400; color: var(--ink-mute); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Wizard ---------- */
.wizard-page { min-height: calc(100vh - 64px); background: linear-gradient(180deg, var(--accent-tint), var(--bg) 320px); padding: 44px 0 80px; }
.wizard-head { text-align: center; margin-bottom: 30px; }
.wizard-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -.02em; }
.wizard-head p { color: var(--ink-soft); margin-top: 8px; }

.wizard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 30px; max-width: 640px; margin: 0 auto;
}
@media (max-width: 520px) { .wizard { padding: 22px 18px; } }

.progress { height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.progress-bar { height: 100%; width: 25%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }

.wstep { display: none; }
.wstep.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wstep h2 { font-size: 1.25rem; margin-bottom: 4px; letter-spacing: -.01em; }
.wstep .hint { color: var(--ink-soft); font-size: .92rem; margin-bottom: 18px; }

.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field .optional { color: var(--ink-mute); font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label.chip {
  display: inline-block; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); font-size: .92rem; font-weight: 500;
  background: #fff; transition: all .12s; user-select: none;
}
.chips label.chip:hover { border-color: var(--accent); }
.chips input:checked + label.chip {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}
.chips input:focus-visible + label.chip { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .97rem; color: var(--ink); background: #fff; transition: border-color .12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink); }
.consent + .consent { margin-top: 10px; }
.consent .optional-consent { color: var(--ink-soft); }
.consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--accent-dark); }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.btn {
  font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer;
  border: none; border-radius: 999px; padding: 13px 28px; transition: all .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-ghost.hidden { visibility: hidden; }

.form-error { color: #b42318; font-size: .88rem; margin-top: 14px; display: none; }
.form-error.visible { display: block; }

/* Success state */
.success { text-align: center; padding: 30px 10px; display: none; }
.success.visible { display: block; animation: fadeIn .3s ease; }
.success .check {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 2rem;
}
.success h2 { font-size: 1.4rem; margin-bottom: 8px; }
.success p { color: var(--ink-soft); max-width: 420px; margin: 0 auto; }
.success .btn { margin-top: 22px; display: inline-block; text-decoration: none; }

/* Cross-link between funnels */
.crosslink { text-align: center; margin-top: 26px; font-size: .92rem; color: var(--ink-soft); }
.crosslink a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px; background: var(--bg-soft); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer p, .site-footer a { font-size: .85rem; color: var(--ink-soft); }
.footer-links { display: flex; gap: 18px; }

/* ---------- Mobile header ---------- */
.header-link { white-space: nowrap; }
@media (max-width: 560px) {
  .logo { font-size: 1.02rem; }
  .header-link { padding: 6px 11px; font-size: .78rem; }
  .site-header .container { padding: 0 12px; gap: 8px; }
  .header-nav { gap: 6px; }
}

/* ---------- Hero CTA + note ---------- */
.hero .hero-note { margin: 14px auto 0; color: var(--ink-soft); font-size: .95rem; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.btn-najem { background: var(--najem); color: #fff; text-decoration: none; display: inline-block; }
.btn-najem:hover { background: var(--najem-dark); }
.btn-koupe { background: var(--koupe); color: #fff; text-decoration: none; display: inline-block; }
.btn-koupe:hover { background: var(--koupe-dark); }

/* ---------- Path card icons (SVG) ---------- */
.path-card.najem .icon { color: var(--najem-dark); }
.path-card.koupe .icon { color: var(--koupe-dark); }

/* ---------- Kdo za tím stojí ---------- */
.about-card {
  display: flex; gap: 22px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-top: 34px; box-shadow: var(--shadow);
}
@media (max-width: 560px) { .about-card { flex-direction: column; } }
.about-avatar {
  flex-shrink: 0; width: 72px; height: 72px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #fff;
  background: linear-gradient(135deg, var(--najem), var(--koupe));
}
.about-text { display: grid; gap: 12px; color: var(--ink-soft); font-size: .95rem; }
.about-text strong { color: var(--ink); }
.about-honest { border-left: 3px solid var(--line); padding-left: 14px; font-size: .92rem; }
.about-contact a { color: var(--ink); font-weight: 600; }

/* ---------- Ukázka e-mailu ---------- */
.email-sample { margin-top: 30px; }
.email-sample-label { font-weight: 700; font-size: .95rem; }
.email-sample-label span { font-weight: 400; color: var(--ink-mute); font-size: .85rem; }
.email-sample-box {
  margin-top: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow);
}
.email-sample-subject { font-weight: 700; font-size: .95rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.email-sample-box ul { list-style: none; display: grid; gap: 6px; }
.email-sample-box li { font-size: .9rem; color: var(--ink-soft); padding-left: 16px; position: relative; }
.email-sample-box li::before { content: "•"; position: absolute; left: 2px; color: var(--ink-mute); }

/* ---------- Podpis ve wizardu (krok 4) ---------- */
.signature {
  display: flex; gap: 12px; align-items: center;
  background: var(--accent-tint); border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px;
}
.signature .about-avatar { width: 44px; height: 44px; font-size: .95rem; }
.signature p { font-size: .87rem; color: var(--ink-soft); line-height: 1.45; }
.signature strong { color: var(--ink); }

.field .microcopy { font-size: .82rem; color: var(--ink-mute); margin-top: 6px; }
.submit-note { font-size: .85rem; color: var(--ink-soft); margin-top: 16px; text-align: center; }

/* honeypot — skryté pole proti botům */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.contact-line { text-align: center; margin-top: 26px; font-size: .95rem; color: var(--ink-soft); }
.contact-line a { color: var(--ink); font-weight: 600; }
