/* earBeacon — vizuální jazyk sdílený s aplikací (Views/Theme.swift) */
:root {
  --paper: #F6F4F1;
  --card: #FFFFFF;
  --ink: #131A1E;
  --body: #4A565E;
  --muted: #6B7780;
  --faint: #7C8891;
  --hairline: #E2DDD6;
  --well: #ECEEE9;
  --accent: #0A6B7A;
  --accent-dark: #075059;
  --green: #1F8F4E;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Hlavička */
header {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
header .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
header img { width: 40px; height: 40px; mix-blend-mode: multiply; }
header .name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
header .name:hover { color: var(--ink); text-decoration: none; }
header nav { margin-left: auto; display: flex; gap: 22px; }
header nav a { font-size: 16px; font-weight: 500; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero img.mark { width: 128px; height: 128px; mix-blend-mode: multiply; }
.hero h1 {
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 22px 0 8px;
}
.hero .tagline { font-size: 20px; color: var(--accent); font-weight: 600; margin: 0 0 20px; }
.hero p.lead {
  font-size: 24px; color: var(--body); max-width: 620px;
  margin: 0 auto 30px; text-wrap: pretty;
}
.note { font-size: 15px; color: var(--faint); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: 17px 30px; border-radius: 15px;
  font-size: 19px; font-weight: 600;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* Sekce */
section { padding: 52px 0; }
section h2 {
  font-size: 32px; letter-spacing: -0.02em; margin: 0 0 12px;
}
section h3 { font-size: 23px; margin: 30px 0 8px; }
section p { color: var(--body); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 30px; }
.card {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; font-size: 19px; }
.card .icon { color: var(--accent); margin-bottom: 12px; display: block; }

/* Upřímná sekce omezení */
.limits { background: var(--well); border-radius: 20px; padding: 30px; margin-top: 30px; }
.limits h3 { margin-top: 0; }
.limits ul { margin: 0; padding-left: 22px; color: var(--body); }
.limits li { margin-bottom: 16px; }

/* Snímky */
.shots {
  display: flex; gap: 20px; overflow-x: auto; padding: 10px 0 24px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shots figure { margin: 0; flex: 0 0 auto; width: 280px; scroll-snap-align: center; }
.shots img {
  width: 100%; height: auto; display: block;
  border-radius: 20px; border: 1px solid var(--hairline);
}
.shots figcaption {
  margin-top: 12px; font-size: 16px; color: var(--muted);
  line-height: 1.4; text-wrap: pretty;
}
@media (max-width: 720px) { .shots figure { width: 236px; } }

/* Dokumenty */
.doc { padding: 44px 0 72px; }
.doc h1 { font-size: 38px; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--faint); font-size: 15px; margin-bottom: 34px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; }
.doc p, .doc li { color: var(--body); }
.doc li { margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 650; }
.doc td { color: var(--body); }

.callout {
  background: var(--card); border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 18px 22px; margin: 22px 0;
}
.callout p { margin: 0; }

/* Blog — seznam článků sdílí dokumentový styl, jen řádkuje položky */
.postlist { list-style: none; padding: 0; margin: 30px 0 0; }
.postlist li { margin: 0 0 34px; }
.postlist h2 { margin: 0 0 2px; font-size: 26px; }
.postlist .date { font-size: 15px; color: var(--faint); }
.postlist p { margin: 6px 0 0; }

/* Patička */
footer {
  border-top: 1px solid var(--hairline);
  padding: 38px 0 54px; margin-top: 40px;
  font-size: 15px; color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
footer address { font-style: normal; line-height: 1.7; }

/* Popisek nad jménem a evropská pečeť pod kontaktem. Obojí je doplněk,
   ne hlavní sdělení — proto slabší barva a menší písmo než zbytek adresy. */
footer address .role {
  display: block;
  font-size: 13px; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}
footer address .made {
  display: block; margin-top: 12px;
  font-size: 14px; color: var(--faint);
}
footer nav { display: flex; flex-direction: column; gap: 8px; }

/* Přepínač jazyka */
.lang { margin-left: auto; display: flex; gap: 6px; align-items: center; font-size: 15px; }
.lang a, .lang .off { padding: 5px 10px; border-radius: 999px; }
.lang a.on { background: rgba(10, 107, 122, 0.12); font-weight: 650; }
/* Článek, který v druhém jazyce neexistuje. Přepínač zůstává na místě —
   zmizet by znamenalo, že se hlavička mění stránku od stránky — ale
   nedostupný jazyk je zšedlý a neklikatelný, ne odkaz na cizí obsah. */
.lang .off { color: var(--faint); cursor: default; }

@media (max-width: 720px) {
  body { font-size: 19px; }

  /* Hlavička na dvou řádcích: značka a jazyk nahoře, odkazy pod tím. */
  header { padding: 16px 0; }
  header .wrap { gap: 10px; row-gap: 12px; }
  header img { width: 34px; height: 34px; }
  header .name { font-size: 20px; }
  header .lang { order: 2; margin-left: auto; }
  header nav {
    order: 3; width: 100%; margin-left: 0;
    gap: 18px; flex-wrap: wrap;
    padding-top: 4px; border-top: 1px solid var(--hairline);
  }
  header nav a { font-size: 16px; }

  .wrap { padding: 0 18px; }
  .hero { padding: 40px 0 34px; }
  .hero img.mark { width: 104px; height: 104px; }
  .hero p.lead { font-size: 21px; }
  .btn { padding: 16px 26px; font-size: 18px; width: 100%; justify-content: center; }
  section { padding: 34px 0; }
  section h2 { font-size: 27px; }
  .limits { padding: 22px; }

  /* Tabulky v dokumentech se na úzkém displeji rozpadají do bloků. */
  .doc h1 { font-size: 31px; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { border-bottom: 1px solid var(--hairline); padding: 12px 0; }
  .doc td { border: none; padding: 3px 0; }
  .doc td:first-child { font-weight: 650; color: var(--ink); }

  footer .wrap { flex-direction: column; gap: 20px; }
}

@media (max-width: 400px) {
  header nav { gap: 14px; }
  header nav a { font-size: 15px; }
  .phone { width: 210px; height: 440px; }
}

/* ---------- Makety obrazovek ---------- */
/* Jsou to živé HTML prvky, ne bitmapy — ostré v každém rozlišení
   a drží se stejných barev jako aplikace. */
.mockups {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 38px;
}
.phone {
  width: 268px; height: 560px; flex: 0 0 auto;
  border-radius: 40px; padding: 14px;
  background: #22282b; box-shadow: 0 26px 60px rgba(0,0,0,0.18);
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column;
  padding: 22px 16px 16px; gap: 12px;
}
.phone .screen.dark { background: #0F1C17; align-items: center; justify-content: center; gap: 18px; }
.phone .caption { text-align: center; font-size: 15px; color: var(--muted); margin-top: 14px; }

.m-title { font-size: 21px; font-weight: 700; letter-spacing: -0.4px; color: var(--ink); }
.m-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 15px;
  padding: 13px; display: flex; flex-direction: column; gap: 9px;
}
.m-row { display: flex; align-items: center; gap: 8px; }
.m-chip {
  font-size: 9px; font-weight: 700; letter-spacing: 0.6px; color: #fff;
  background: var(--accent); padding: 3px 8px; border-radius: 999px;
}
.m-state { font-size: 14px; font-weight: 600; color: var(--ink); }
.m-dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; }
.m-band { font-size: 13px; font-weight: 600; }
.m-rssi { font-size: 11px; color: var(--faint); margin-left: auto; }
.m-bar { height: 8px; border-radius: 4px; background: var(--well); overflow: hidden; }
.m-bar span { display: block; height: 100%; border-radius: 4px; }
.m-foot { font-size: 11px; color: var(--muted); }
.m-btn {
  margin-top: auto; background: var(--accent); color: #fff; border-radius: 14px;
  height: 48px; display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 16px; font-weight: 600;
}

/* Prstencový ukazatel */
.rings { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.rings i {
  position: absolute; border-radius: 50%; border: 3px solid #35C47A; display: block;
}
.rings i:nth-child(1) { inset: 0; }
.rings i:nth-child(2) { inset: 22px; }
.rings i:nth-child(3) { inset: 44px; }
.rings b { position: absolute; inset: 66px; border-radius: 50%; background: #35C47A; }
.rings .val { position: relative; text-align: center; color: #06231A; }
.rings .val .d { font-size: 34px; font-weight: 750; letter-spacing: -1px; line-height: 1; }
.rings .val .l { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; margin-top: 2px; }
.m-hot { font-size: 24px; font-weight: 700; color: #35C47A; }
.m-trend {
  display: inline-flex; align-items: center; gap: 7px; background: #172F26;
  padding: 8px 15px; border-radius: 999px; font-size: 13px; color: #CFE6DA; font-weight: 600;
}
.m-stats { display: flex; gap: 9px; width: 100%; }
.m-stat { flex: 1; background: #172F26; border-radius: 13px; padding: 11px; }
.m-stat .k { font-size: 9px; color: #7FB79A; letter-spacing: 0.5px; }
.m-stat .v { font-size: 16px; font-weight: 600; color: #F2F5F3; margin-top: 2px; }

@media (max-width: 640px) {
  .phone { width: 230px; height: 482px; }
}
