/* MYIDENTITA.COM – společný design systém. Jediné písmo je systémový bezpatkový řez (bez webfontů). */
:root {
  --navy: #03152f;
  --navy-2: #061d3b;
  --navy-3: #0a2a52;
  --blue: #087dfa;
  --blue-dark: #0669d6;
  --cyan: #26b9f5;
  --ink: #102033;
  --muted: #5c6b80;
  --grey-50: #f5f8fc;
  --grey-100: #eef3f9;
  --grey-200: #e1e8f0;
  --grey-300: #cbd5e1;
  --ok: #15803d;
  --ok-bg: #e8f7ee;
  --warn: #92400e;
  --warn-bg: #fff4d6;
  --bad: #b91c1c;
  --bad-bg: #fde8e8;
  --off: #475569;
  --off-bg: #eaeff5;
  --line: rgba(255, 255, 255, 0.16);
  --card: #ffffff;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(3, 21, 47, 0.06), 0 4px 14px rgba(3, 21, 47, 0.06);
  --shadow: 0 10px 30px rgba(3, 21, 47, 0.12);
  --shadow-lg: 0 30px 70px rgba(3, 12, 32, 0.28);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--grey-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body, button, input, textarea, select, h1, h2, h3, h4, summary, dialog { font-family: var(--sans); }
button, input, textarea, select { font-size: inherit; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.skip {
  position: absolute; left: 12px; top: -56px; background: white; color: var(--ink);
  padding: 8px 12px; border-radius: 8px; z-index: 50;
}
.skip:focus { top: 12px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(560px, calc(100% - 32px)); }
.muted { color: var(--muted); }

/* ---------- Hlavička a logo ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(3, 21, 47, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body[data-page="home"] .site-header { background: rgba(3, 21, 47, 0.78); border-bottom-color: transparent; }
.header-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 18px; min-height: 84px; position: relative;
}
.logo { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; flex: 0 0 auto; }
.logo-mark { width: 52px; height: 52px; display: block; flex: 0 0 auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 20px; white-space: nowrap; }
.brand-name .accent { color: var(--cyan); }
.brand-text small { margin-top: 4px; color: rgba(255, 255, 255, 0.72); font-size: 10px; letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase; }
.header-links { display: contents; }
.primary-links { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.primary-links a { color: rgba(255, 255, 255, 0.9); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.primary-links a:hover, .primary-links a[aria-current="page"] { color: white; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; margin-left: auto; background: transparent; color: white;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 600;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 18px; text-decoration: none; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; line-height: 1.1; min-height: 42px; background: none;
}
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-blue { background: var(--blue); color: white; box-shadow: 0 8px 20px rgba(8, 125, 250, 0.3); }
.btn-blue:hover { background: var(--blue-dark); color: white; }
.btn-lg { padding: 15px 24px; font-size: 16px; min-height: 52px; }
.btn-sm { padding: 7px 12px; font-size: 14px; min-height: 36px; }
.btn-outline { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline:hover { color: white; border-color: white; background: rgba(255, 255, 255, 0.06); }
.btn-outline.dark { color: var(--ink); border-color: var(--grey-300); background: white; }
.btn-outline.dark:hover { color: var(--ink); border-color: var(--blue); }
.btn-teal { background: var(--blue); color: white; }
.btn-teal:hover { background: var(--blue-dark); }
.btn-white { background: white; color: var(--ink); }
.btn-ghost { background: transparent; color: white; border-color: var(--line); }
.btn-danger { background: var(--bad); color: white; }
.btn-danger:hover { background: #991b1b; }

/* ---------- Stavové štítky ---------- */
.state, .chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.03em; white-space: nowrap;
}
.state-ok, .chip-ok { background: var(--ok-bg); color: var(--ok); }
.state-warn, .chip-warn { background: var(--warn-bg); color: var(--warn); }
.state-bad, .chip-bad { background: var(--bad-bg); color: var(--bad); }
.state-off, .chip-off { background: var(--off-bg); color: var(--off); }
.chip-info { background: #e3f1ff; color: #0b5cad; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(700px 420px at 78% 42%, rgba(8, 125, 250, 0.28), transparent 62%),
    linear-gradient(180deg, #03152f 0%, #061d3b 78%, #03152f 100%);
  color: white;
  overflow: hidden;
  padding: 18px 0 0;
}
.face {
  position: absolute; left: 31%; top: 28px; width: min(700px, 46vw); z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 42%, transparent 68%);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 42%, transparent 68%);
}
.face img { width: 100%; height: auto; display: block; filter: brightness(1.12) saturate(1.15); }
.hero-layout {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 48px;
  padding-bottom: 86px;
}
.hero-copy { max-width: 500px; position: relative; z-index: 2; }
.stage { width: min(680px, 54%); flex: 0 0 auto; min-width: 0; position: relative; z-index: 2; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 125, 250, 0.16);
  color: #d7ecff; border-radius: 999px; padding: 7px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.lock { width: 14px; height: 14px; border: 1.6px solid currentColor; border-radius: 3px; position: relative; }
.lock::before {
  content: ""; position: absolute; left: 2px; top: -6px; width: 6px; height: 6px;
  border: 1.6px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0;
}
.hero h1 { margin-top: 18px; font-size: clamp(48px, 5.6vw, 78px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; }
.lede { margin-top: 18px; color: rgba(232, 241, 255, 0.84); font-size: 17px; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.play-link { display: inline-flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-weight: 600; }
.play { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.55); display: grid; place-items: center; }
.play::before { content: ""; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent white; margin-left: 3px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 28px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.86); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: "✓"; color: #7ee0ff; font-weight: 800; }

/* Ilustrační rozhraní aplikace v hero */
.product { position: relative; transform: perspective(1600px) rotateY(-9deg) rotateX(2deg); transform-origin: 80% 50%; filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.38)); }
.demo-flag {
  position: absolute; top: -14px; right: 18px; z-index: 2;
  background: #fff4d6; color: #7a4b00; border-radius: 999px; padding: 5px 12px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.product-body {
  display: grid; grid-template-columns: 184px 1fr; min-height: 520px;
  background: var(--grey-50); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2); color: var(--ink);
}
.side { background: #07182f; color: white; padding: 16px 12px; }
.side-brand { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
.side-brand img { width: 22px; height: 22px; }
.who { display: flex; gap: 8px; align-items: center; margin: 16px 0; }
.who img, .mini-avatar { border-radius: 50%; object-fit: cover; }
.who strong { display: block; font-size: 13px; }
.who span { color: #8ef0c2; font-size: 11px; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side li { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 8px 10px; color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.side li .icon { width: 16px; height: 16px; }
.side li.on { background: rgba(8, 125, 250, 0.28); color: white; }
.canvas { padding: 14px; min-width: 0; }
.canvas-bar { display: flex; align-items: center; gap: 8px; }
.fake-search { flex: 1; background: white; border: 1px solid var(--grey-200); border-radius: 999px; color: #7b8a9c; padding: 8px 12px; font-size: 12px; }
.dot-btn { width: 28px; height: 28px; border-radius: 50%; background: white; border: 1px solid var(--grey-200); display: grid; place-items: center; color: var(--muted); }
.dot-btn .icon { width: 14px; height: 14px; }
.canvas-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin: 14px 0; }
.canvas-head h2 { font-size: 19px; letter-spacing: -0.02em; }
.canvas-head p, .map-note, .feature-note { color: var(--muted); font-size: 13px; }
.canvas-head .btn { padding: 9px 12px; font-size: 13px; white-space: nowrap; min-height: 36px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metric { background: white; border-radius: var(--radius-sm); padding: 10px; border: 1px solid #e7eef6; }
.metric b { display: block; font-size: 26px; letter-spacing: -0.04em; }
.metric span, .metric small { display: block; }
.metric span { font-size: 12px; font-weight: 700; }
.metric small { color: var(--muted); font-size: 11px; }
.metric.red b { color: #e11d48; }
.metric.orange b { color: #ea580c; }
.metric.yellow b { color: #ca8a04; }
.metric.green b { color: #16a34a; }
.product-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 8px; margin-top: 8px; }
.panel { background: white; border-radius: var(--radius-sm); padding: 10px; border: 1px solid #e7eef6; }
.panel-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.panel h3 { font-size: 14px; }
.panel-head span { color: #9a3412; font-size: 11px; font-weight: 700; }
.finds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.finds li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; }
.finds strong { display: block; font-size: 12px; }
.finds small { color: var(--muted); font-size: 11px; }
.mark-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #e8f3ff; color: var(--blue); }
.mark-ic .icon { width: 15px; height: 15px; }
.tag { font-style: normal; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 3px 7px; }
.tag.high { background: #ffe4e6; color: #be123c; }
.tag.mid { background: #ffedd5; color: #c2410c; }
.tag.low { background: #ecfdf3; color: #15803d; }
.mini-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-sources li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; }
.mini-sources .chip { font-size: 10px; padding: 2px 8px; }
.mini-alert { margin-top: 8px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 8px 10px; font-size: 11px; color: #7c2d12; }
.mini-alert strong { display: block; font-size: 12px; }

/* ---------- Sekce ---------- */
.features { position: relative; z-index: 2; background: white; border-radius: 48px 48px 0 0; margin-top: -44px; padding: 64px 0 56px; }
.section-head { max-width: 44rem; margin-bottom: 28px; }
.section-head p, .prose p, .plain, .info-card p, .privacy-card p { color: var(--muted); }
.section-head .eyebrow, .eyebrow { color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.section { padding: 72px 0; }
.section-muted { background: var(--grey-100); }
.section h2, .features h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.035em; margin-bottom: 8px; line-height: 1.1; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: white; border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); display: grid; gap: 8px; align-content: start;
}
.feature-card h3 { font-size: 19px; letter-spacing: -0.02em; }
.feature-card p { color: var(--muted); font-size: 15px; }
.bubble { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #e8f3ff; color: var(--blue); }
.bubble .icon { width: 26px; height: 26px; }
.feature-note { margin-top: 28px; max-width: 62rem; }
.card-grid, .price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.price-grid { grid-template-columns: 1fr 1fr; max-width: 800px; }
.info-card, .privacy-card, .card-form, .stat, .finding, .post {
  background: white; color: var(--ink); border-radius: var(--radius-lg); padding: 20px;
  border: 1px solid var(--grey-200); box-shadow: var(--shadow-sm);
}
.info-card h3, .finding h3, .post h3 { font-size: 18px; margin-bottom: 6px; }
.price { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); margin: 8px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 52rem; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.steps span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: white; font-weight: 800; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); }
.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.source-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: white; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.source-name { font-weight: 700; }
.privacy-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.faq-list { display: grid; gap: 10px; max-width: 52rem; }
.faq-item { border: 1px solid var(--grey-200); box-shadow: var(--shadow-sm); border-radius: var(--radius-sm); }
.close-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.contact-card p + p { margin-top: 6px; }

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 32px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-grid p { margin-top: 10px; max-width: 28rem; }
.footer-grid nav { display: grid; gap: 6px; align-content: start; }
.footer-grid a { color: #b9d9ff; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.fine { font-size: 14px; margin-top: 14px; }

/* ---------- Formuláře a přihlášení ---------- */
.auth-split { width: min(1080px, calc(100% - 32px)); margin: 28px auto 64px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: stretch; }
.auth-visual {
  background: radial-gradient(420px 240px at 20% 20%, rgba(38, 185, 245, 0.25), transparent 60%), linear-gradient(180deg, #03152f, #061d3b);
  color: white; border-radius: 28px; padding: 36px 28px;
}
.auth-visual h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.035em; line-height: 1.06; margin-top: 16px; }
.auth-visual p { margin-top: 14px; color: rgba(255, 255, 255, 0.8); }
.trust.light { color: rgba(255, 255, 255, 0.9); display: grid; margin-top: 22px; }
.card-form { display: grid; gap: 12px; box-shadow: var(--shadow); align-content: start; }
.card-form h1, .card-form h2 { font-size: 28px; letter-spacing: -0.03em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.field small { font-weight: 400; color: var(--muted); }
input, textarea, select {
  width: 100%; border: 1px solid #d5deea; border-radius: var(--radius-sm); padding: 12px 14px;
  background: #f8fbff; color: var(--ink); min-height: 44px;
}
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--blue); }
input:focus, textarea:focus, select:focus { border-color: var(--blue); background: white; outline: 3px solid rgba(8, 125, 250, 0.2); }
textarea { min-height: 96px; resize: vertical; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-weight: 500; }
.form-foot, .form-error, .form-ok { font-size: 15px; }
.form-error { background: var(--bad-bg); color: #9f1239; padding: 10px 12px; border-radius: 12px; }
.form-ok { background: var(--ok-bg); color: #14532d; padding: 10px 12px; border-radius: 12px; }
.form-error ul { margin: 8px 0 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.plain { padding-left: 18px; }
.band { padding: 36px 0 72px; }
.system-status { margin: 0 auto; background: #3f2a12; color: #ffedd5; border-radius: 0 0 12px 12px; padding: 6px 12px; font-size: 13px; }
.prose { display: grid; gap: 12px; }
.prose h1, .prose h2 { letter-spacing: -0.03em; }
.prose h2 { font-size: 28px; margin-top: 8px; }
.draft { background: #3f2a12; color: #ffedd5; border-radius: 12px; padding: 10px 12px; }
details { background: white; color: var(--ink); border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid var(--grey-200); }
details summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; color: var(--muted); }
.banner { background: #fff7ed; color: #7c2d12; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }

@media (max-width: 1100px) {
  .hero-layout { flex-direction: column; align-items: stretch; }
  .stage { width: 100%; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .face { left: 0; width: min(520px, 80vw); opacity: 0.35; top: 0; }
  .product { transform: none; }
  .hero-copy { max-width: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .primary-links { gap: 14px; }
  .primary-links a { font-size: 14px; }
}
@media (max-width: 900px) {
  .brand-text small { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { display: flex; flex-wrap: wrap; min-height: 76px; }
  .header-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #03152f; padding: 8px 16px 16px; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
  }
  .header-links.is-open { display: flex; }
  .primary-links, .nav-actions { flex-direction: column; align-items: stretch; margin: 0; }
  .primary-links a { padding: 12px 4px; }
  .primary-links a, .nav-actions .btn { width: 100%; }
}
@media (max-width: 760px) {
  .wrap { width: min(1180px, calc(100% - 28px)); }
  .hero { padding-top: 8px; }
  .hero h1 { font-size: 44px; }
  .face { display: none; }
  .hero-layout { padding-bottom: 60px; gap: 32px; }
  .product-body, .product-split, .metric-grid, .auth-split, .form-layout, .close-grid, .two, .price-grid, .privacy-points { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .side { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .canvas-head { flex-direction: column; }
  .features { border-radius: 28px 28px 0 0; padding-top: 44px; }
  .section { padding: 52px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .logo-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 17px; }
  .auth-visual { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product { transform: none; }
}
