/* DriveTrack – úvodní stránka. Dva zdroje vzhledu, nic navíc:
   1) rozhraní stránky (pozadí, karty, tlačítka, štítky) = tmavý vzhled webového účtu /app (stejné barvy a tvary),
   2) ukázky aplikace (mapa, sklo, hlášky, tachometr, značky) = iPhone aplikace (noční mapa, stejné ikonky).
   Bez externích písem (rychlé načtení). */
:root {
  /* /app – tmavý vzhled */
  --bg: #0f1218;
  --surface: #161a22;
  --surface-2: #1b2029;
  --hover: #1f2530;
  --border: #262c38;
  --border-strong: #343b49;
  --text: #e7eaf0;
  --text-2: #a4adbd;
  --text-3: #6b7486;
  --primary: #3b82f6;
  --primary-hover: #5b95f7;
  --primary-soft: rgba(59, 130, 246, .14);
  --green: #32d583;
  --orange: #fdb022;
  --red: #f97066;
  --purple: #9b8afb;
  --teal: #2dd4bf;
  --amber: #fbbf24;
  /* iPhone aplikace */
  --accent: #33c7ff;        /* Theme.accent */
  --route: #42a1f5;         /* trasa navigace */
  --go: #29bf66;            /* Theme.go */
  --map: #1d2633;           /* noční mapa: podklad */
  --map-block: #212a38;
  --map-road: #3a475a;
  --glass: rgba(42, 46, 56, .74);
  --radius: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--primary-hover); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--text); letter-spacing: -.025em; line-height: 1.12; font-weight: 700; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 20px; height: 20px; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--primary-hover); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; text-decoration: none; }
/* Čísla aplikace: zaoblené písmo jako v telefonu (SF Rounded), jinde běžné. */
.rounded, .stats-pill b, .bubble b, .sec-avg b, .sign { font-family: ui-rounded, "SF Pro Rounded", Inter, -apple-system, "Segoe UI", sans-serif; }

/* Ikona údaje: barevný symbol v podbarveném čtverci – stejné jako v /app a v aplikaci. */
.ti {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none;
  color: var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 14%, transparent);
}
.ti svg { width: 17px; height: 17px; }
.t-blue { --c: var(--primary); } .t-green { --c: var(--green); } .t-orange { --c: #f79009; } .t-red { --c: var(--red); }
.t-purple { --c: var(--purple); } .t-teal { --c: var(--teal); } .t-amber { --c: var(--amber); }

/* Stavový štítek – stejný jako v /app */
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; font-style: normal; padding: 2px 9px;
  border-radius: 999px; white-space: nowrap; border: 1px solid transparent;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.pill.soon { color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent); border-color: color-mix(in srgb, var(--orange) 25%, transparent); }
.pill.overdue { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); border-color: color-mix(in srgb, var(--red) 25%, transparent); }

/* Tlačítka – tvar a barvy z /app, jen větší */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: background-color .15s, border-color .15s, color .15s, transform .2s var(--ease);
}
.btn:hover { text-decoration: none; background: var(--hover); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }

.store {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px 0 16px; border-radius: 14px;
  background: #fff; color: #000; font-weight: 700; font-size: 19px; line-height: 1.05; transition: transform .2s var(--ease), background-color .2s;
}
a.store:hover { text-decoration: none; background: #e7eaf0; transform: translateY(-1px); }
.store > svg { width: 26px; height: 26px; }
.store > span { display: flex; flex-direction: column; text-align: left; }
.store small { font-size: 11px; font-weight: 600; opacity: .62; letter-spacing: .01em; }
span.store { cursor: default; }
.store-muted { background: var(--surface); color: var(--text-2); border: 1px solid var(--border-strong); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cta.center { justify-content: center; }

/* Hlavička – lišta jako v /app */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(15, 18, 24, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.top.scrolled { border-bottom-color: var(--border); background: rgba(15, 18, 24, .9); }
.top-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.top-nav { display: flex; gap: 2px; margin-left: 12px; }
.top-nav > a { color: var(--text-2); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 8px; transition: color .15s, background-color .15s; }
.top-nav > a:hover { color: var(--text); background: var(--hover); text-decoration: none; }
.top-nav > a.active { color: var(--primary-hover); background: var(--primary-soft); }
.menu-extra { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .ic-close { display: none; }
.menu-open .menu-btn .ic-open { display: none; }
.menu-open .menu-btn .ic-close { display: block; }

/* Úvod */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; isolation: isolate; }
.hero-map {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .55; pointer-events: none;
  mask-image: radial-gradient(ellipse 44% 82% at 78% 46%, #000 14%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 44% 82% at 78% 46%, #000 14%, transparent 74%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; margin: 22px 0; max-width: 15ch; }
.grad { background: linear-gradient(100deg, var(--accent) 0%, var(--route) 55%, var(--primary) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-2); max-width: 34em; margin-bottom: 32px; }
.coverage { margin-top: 28px; display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 14px; }
.coverage svg { width: 16px; height: 16px; color: var(--primary-hover); }

/* ——— Prvky aplikace (telefon i ukázky v kartách) ——— */
/* Sklo: hledání, tlačítka, hlášky a panely na mapě */
.glass {
  background: var(--glass); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
}
/* Značka limitu */
.sign {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: #fff; color: #000;
  border: 4.5px solid #db1419; font-weight: 800; font-size: 15px; line-height: 1; box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
  font-variant-numeric: tabular-nums;
}
/* Tachometr: světlý kruh se šedým lemem, při překročení červený; značka limitu vlevo nahoře */
.speedo { position: relative; width: 88px; height: 88px; flex: none; }
.speedo .sign { position: absolute; left: 0; top: 0; width: 40px; height: 40px; font-size: 16px; z-index: 1; }
.bubble {
  position: absolute; right: 0; bottom: 0; width: 68px; height: 68px; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1; font-size: 10px; font-weight: 600; color: #292b33;
  background: radial-gradient(circle, #fff 10%, #e6e6e6 90%); border: 5.5px solid #8c949f; box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
}
.bubble b { font-size: 27px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bubble.over { color: #fff; background: radial-gradient(circle, #fa5c54 10%, #ed3b36 90%); border-color: #b31c1a; }
/* Kulatá ikona hlášky */
.tile {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c));
}
.tile svg { width: 18px; height: 18px; }
.tile.t-orange, .toast.t-orange { --c: #ff9f0a; }
.toast.t-blue { --c: #0a84ff; }
/* Pokyn navigace */
.ui-turn { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; }
.turn-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--route); color: #fff; }
.turn-ic svg { width: 24px; height: 24px; }
.turn-ic.left svg { transform: scaleX(-1); }
.ui-turn b { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.ui-turn div span { font-size: 13px; color: var(--text-2); }
/* Značky na mapě: spodek obrázku = místo */
.mk { position: absolute; width: 34px; height: auto; transform: translate(-50%, -100%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); pointer-events: none; }

/* Úvod: telefon */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.phone {
  position: relative; width: 312px; aspect-ratio: 312 / 644; border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #39404e, #151920 40%, #232934);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 50px 100px -30px rgba(0, 0, 0, .85), 0 30px 90px -40px rgba(66, 161, 245, .55);
}
.island { position: absolute; z-index: 3; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #000; }
.screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: var(--map); }
.map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Vlastní poloha: navigační šipka aplikace (CarMarkerStyle.arrowImage) – světle modrá s bílým okrajem a stínem */
.puck, .cp-puck { position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%); }
.puck svg, .cp-puck svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }
.puck path, .cp-puck path { fill: #33b8ff; stroke: #fff; stroke-width: 9; stroke-linejoin: round; paint-order: stroke; }
.mk-home { width: 36px; }
.ui-top { position: absolute; top: 56px; left: 10px; right: 10px; display: grid; gap: 8px; }
/* Telefon: pokyn navigace jako v aplikaci (měřítko 0,8 bodu iPhonu) */
.nav-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 21px; }
.nav-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; color: #fff; background: linear-gradient(180deg, #4fb3ff, #1a8cff); }
.nav-ic svg { width: 20px; height: 20px; }
.nav-txt { flex: 1; min-width: 0; line-height: 1.2; }
.nav-txt b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.nav-txt p { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 12.5px; white-space: nowrap; }
.nav-txt em { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 99px; font-style: normal; font-size: 10px; font-weight: 700; color: #1a8cff; background: rgba(26, 140, 255, .18); }
.nav-txt em svg { width: 10px; height: 10px; }
.nav-txt small { display: block; font-size: 10px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-x { display: grid; place-items: center; width: 23px; height: 23px; flex: none; align-self: center; border-radius: 50%; color: var(--text-2); background: rgba(255, 255, 255, .08); }
.nav-x svg { width: 9px; height: 9px; }
.ui-row { display: flex; align-items: center; gap: 6px; }
.stats-pill { flex: 1; min-width: 0; display: flex; align-items: center; height: 42px; border-radius: 21px; padding: 0 4px; }
.stats-pill .g { display: flex; align-items: center; justify-content: center; gap: 4px; }
.stats-pill .g div { border: 0; }
.gm { position: relative; width: 17px; height: 17px; flex: none; border-radius: 50%; border: 1px solid rgba(235, 235, 245, .35);
  background: linear-gradient(rgba(235, 235, 245, .2), rgba(235, 235, 245, .2)) center / 1px 100% no-repeat, linear-gradient(rgba(235, 235, 245, .2), rgba(235, 235, 245, .2)) center / 100% 1px no-repeat; }
.gm i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -6px 0 0 -4.5px; border-radius: 50%; background: #1a8cff; }
/* Nahrávání: červené „Konec“ jako v aplikaci */
.rec-btn { display: inline-flex; align-items: center; gap: 7px; padding: 12px 18px; border-radius: 99px; background: #ff3b30; color: #fff; font-size: 14.5px; font-weight: 800; box-shadow: 0 3px 7px rgba(0, 0, 0, .25); }
.rec-btn i { width: 11px; height: 11px; border-radius: 2.5px; background: #fff; }
.stats-pill div { flex: 1; text-align: center; line-height: 1.1; }
.stats-pill div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.stats-pill b { display: block; font-size: 11.5px; letter-spacing: -.01em; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats-pill span { font-size: 8px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
.glass-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; color: var(--text); }
.glass-ic svg { width: 16px; height: 16px; }
.glass-ic.on { color: var(--accent); }
/* Hlášky: barevný okraj, kulatá ikona, vpravo limit, dole proužek odpočtu od rohu do rohu */
.toasts { position: relative; height: 60px; }
.toast {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px 11px; border-radius: 20px; overflow: hidden;
  border: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent); line-height: 1.25;
  opacity: 0; transform: translateY(-8px) scale(.97); transition: opacity .35s, transform .35s var(--ease);
}
.toast.on { opacity: 1; transform: none; }
.toast div { flex: 1; min-width: 0; }
.toast b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast div span { display: block; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast .sign { width: 34px; height: 34px; font-size: 14px; border-width: 4px; }
.toast .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); transform-origin: left; }
.toast.on .bar { animation: drain 4.2s linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }
.ui-bottom { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ui-eta { padding: 8px 16px; border-radius: 22px; display: flex; flex-direction: column; line-height: 1.2; }
.ui-eta b { font-size: 17px; color: var(--go); }
.ui-eta span { font-size: 11.5px; color: var(--text-2); white-space: nowrap; }

/* Skutečná data – dlaždice jako v /app */
.live { margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.live > div {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.live .ti { grid-row: span 2; width: 36px; height: 36px; }
.live dt { font-size: 13px; color: var(--text-2); line-height: 1.3; }
.live dd { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }

/* Sekce */
.section { padding: 104px 0; }
.section-alt { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); border-block: 1px solid var(--border); }
.head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.head-left { text-align: left; margin: 0; }
.kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-hover); margin-bottom: 14px; }
.head h2, .dash-text h2, .final h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; }
.head p { margin-top: 16px; font-size: 18px; color: var(--text-2); }

/* Funkce: mřížka karet */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card.span-2 { grid-column: span 2; flex-direction: row; align-items: center; }
.card.span-2 .card-text { flex: 1 1 50%; }
.card.span-2 .viz { flex: 1 1 50%; min-width: 0; }
.card h3 { font-size: 21px; margin: 16px 0 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }

.viz { margin-top: auto; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); padding: 14px; font-size: 14px; }
.card.span-2 .viz { margin-top: 0; }
/* Ukázka na výřezu noční mapy */
.viz-map {
  position: relative; overflow: hidden; border-color: #2a3546;
  background:
    linear-gradient(var(--map-road), var(--map-road)) 0 74% / 100% 3px no-repeat,
    linear-gradient(var(--map-road), var(--map-road)) 22% 0 / 3px 100% no-repeat,
    linear-gradient(var(--map-block), var(--map-block)) 100% 0 / 40% 46% no-repeat,
    var(--map);
}
.sec-pill { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 30px; border: 1.5px solid rgba(255, 159, 10, .6); }
.sec-avg { flex: 1; min-width: 0; line-height: 1.1; }
.sec-avg b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sec-avg small { font-size: 10.5px; font-weight: 600; color: var(--text-2); margin-left: 3px; letter-spacing: 0; }
.sec-avg span { font-size: 10.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.sec-max { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .09); white-space: nowrap; }
.sec-max b { font-size: 14.5px; font-weight: 800; margin-left: 2px; }
.sec-track { display: flex; align-items: flex-end; gap: 6px; margin: 18px 4px 8px; }
.sec-track img { width: 26px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.sec-line { position: relative; flex: 1; height: 8px; margin-bottom: 1px; border-radius: 99px; background: rgba(242, 89, 64, .35); }
.sec-line span { position: absolute; inset: 0 36% 0 0; border-radius: inherit; background: #f25940; }
.sec-line i { position: absolute; left: 64%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #7cc4ff; border: 2.5px solid #fff; box-shadow: 0 0 0 6px rgba(66, 161, 245, .25); }
.sec-foot { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; padding: 0 4px; }
.sec-foot b { color: var(--text); }

.viz-limit { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; }
.warn { font-size: 13px; font-weight: 700; color: #fff; background: #ed3b36; padding: 6px 12px; border-radius: 999px; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }

.viz-nav { display: grid; gap: 8px; padding: 12px; }
.viz-nav .ui-turn b { font-size: 16px; }
.nav-alt { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; color: var(--text-2); }
.nav-alt img { width: 28px; }
.nav-alt b { margin-left: auto; color: var(--red); }

.drive-map { position: relative; height: 120px; border-radius: 10px; overflow: hidden; background: var(--map); border: 1px solid #2a3546; }
.drive-map svg { width: 100%; height: 100%; display: block; }
.drive-map img { position: absolute; left: 91.25%; top: 28%; width: 26px; transform: translate(-50%, -100%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.tiles div { padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.tiles b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tiles span { font-size: 11.5px; color: var(--text-3); }

.viz-list { display: grid; gap: 0; padding: 2px 14px; }
.viz-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; }
.viz-list li + li { border-top: 1px solid var(--border); }
em.muted { font-style: normal; color: var(--text-2); white-space: nowrap; }
.viz-list b { white-space: nowrap; }

.viz-explore { display: grid; gap: 8px; }
.ex-row { display: flex; justify-content: space-between; }
.ex-row.muted { color: var(--text-3); }
.ex-bar { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin-bottom: 4px; }
.ex-bar span { display: block; height: 100%; width: 32%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--primary)); }

/* CarPlay: výřez displeje auta */
.viz-carplay { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 12px; min-height: 150px; }
.cp-side { display: grid; gap: 8px; min-width: 0; }
.cp-side .ui-turn b { font-size: 16px; }
.cp-eta { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.cp-eta b { color: var(--text); font-size: 15px; }
.viz-carplay .speedo { width: 72px; height: 72px; }
.viz-carplay .bubble b { font-size: 22px; }
.viz-carplay .speedo .sign { width: 32px; height: 32px; font-size: 13px; }

/* Diagnostika */
.viz-diag { display: grid; gap: 10px; }
.diag-tiles { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.diag-tiles b { font-size: 14.5px; }
.diag-tiles span { display: block; line-height: 1.25; }
.diag-graph { width: 100%; height: 54px; display: block; }
.viz-diag .viz-list { padding: 0 2px; }
.viz-diag .viz-list li { padding: 8px 0; }
.viz-diag .viz-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; margin-right: 6px; }

/* Brzy: vlastní OBD scanner */
.soon-card { margin-top: 16px; flex-direction: row; align-items: center; border-style: dashed; border-color: color-mix(in srgb, var(--purple) 45%, var(--border));
  background: linear-gradient(120deg, color-mix(in srgb, var(--purple) 10%, var(--surface)), var(--surface) 60%); }
.soon-card .card-text { flex: 1 1 60%; }
.soon-card .tag .pill { margin-left: 2px; }
.obd-device { flex: 0 1 260px; display: grid; place-items: center; }
.obd-device svg { width: 100%; max-width: 240px; height: auto; aspect-ratio: 5 / 3; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }
.obd-led { fill: var(--purple); animation: obd-blink 2.4s ease-in-out infinite; }
@keyframes obd-blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 680px) { .soon-card { flex-direction: column; align-items: stretch; } .obd-device { flex-basis: auto; } }

.extras { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
.extras li { display: flex; gap: 14px; align-items: flex-start; }
.extras b { display: block; font-size: 15.5px; }
.extras div span { color: var(--text-2); font-size: 14.5px; }


/* Webový dashboard */
.dash-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.dash-text .sub { margin: 16px 0 28px; font-size: 18px; color: var(--text-2); }
.dash-points { display: grid; gap: 18px; margin-bottom: 32px; }
.dash-points li { display: flex; gap: 14px; }
.dash-points b { display: block; }
.dash-points div span { color: var(--text-2); font-size: 15px; }
.browser {
  margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--bg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 6px rgba(255, 255, 255, .02);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser-bar span { margin-left: 12px; font-size: 12px; color: var(--text-3); }
/* Zmenšený /app: postranní menu, dlaždice, seznam jízd a servis */
.dash { display: grid; grid-template-columns: 148px 1fr; font-size: 11.5px; line-height: 1.4; user-select: none; }
.dash svg { width: 13px; height: 13px; }
.dash-side { display: flex; flex-direction: column; gap: 1px; padding: 12px 8px; background: var(--surface); border-right: 1px solid var(--border); }
.dash-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 12px; font-size: 13px; }
.dash-brand img { border-radius: 6px; }
.dash-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 10px 8px 4px; }
.dash-label:first-of-type { padding-top: 0; }
.dash-tab { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 7px; color: var(--text-2); font-weight: 500; }
.dash-tab svg { color: var(--text-3); }
.dash-tab.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.dash-tab.active svg { color: var(--primary); }
.dash-main { padding: 14px 16px 16px; min-width: 0; display: grid; gap: 12px; align-content: start; }
.dash-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-title b { font-size: 14px; font-weight: 600; }
.dash-title .pill { font-size: 10px; background: var(--surface); border-color: var(--border); color: var(--text-2); }
.dash-title .pill::before { background: var(--green); }
.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-tiles > div, .dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.dash-tiles > div { display: grid; gap: 3px; padding: 10px 12px; min-width: 0; }
.dash-tiles .ti { width: 24px; height: 24px; border-radius: 7px; margin-bottom: 4px; }
.dash-tiles span:not(.ti) { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tiles b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.dash-card { overflow: hidden; }
.dash-card h4 { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0; border-bottom: 1px solid var(--border); }
.dash-card h4 .ti { width: 22px; height: 22px; border-radius: 6px; }
.dash-row { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-top: 1px solid var(--border); }
.dash-card h4 + .dash-row { border-top: 0; }
.dash-row > div { flex: 1; min-width: 0; }
.dash-row b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row div span { display: block; color: var(--text-2); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row em { font-style: normal; text-align: right; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash-row em b { color: var(--text); }
.dash-row .pill { font-size: 10px; padding: 1px 7px; }
.bdg { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; flex: none; color: #fff; background: var(--primary); }
.bdg.purple { background: #7a5af8; }

/* Ceník */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.plan-pro {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  background: radial-gradient(420px 220px at 85% 0%, rgba(59, 130, 246, .16), transparent 70%), var(--surface);
}
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan h3 { font-size: 20px; }
.ribbon { font-size: 12px; font-weight: 600; color: var(--primary-hover); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.price { margin: 18px 0 24px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price span { color: var(--text-3); font-size: 14px; }
.checks { display: grid; gap: 12px; margin-bottom: 32px; }
.checks li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.checks svg { width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.founders { margin: -8px 0 24px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.founders-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.founders-row b { color: var(--text); white-space: nowrap; }
.founders-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.founders-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 1s var(--ease); }
.drivers { margin: 10px auto 0; max-width: 36em; color: var(--primary-hover); font-weight: 600; font-size: 15px; text-wrap: balance; }

/* Soukromí */
.privacy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.privacy li { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 6px; }
.privacy .ti { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 10px; }
.privacy .ti svg { width: 20px; height: 20px; }
.privacy b { font-size: 16px; }
.privacy li > span:not(.ti) { color: var(--text-2); font-size: 14.5px; }

/* Otázky */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .head p { margin-top: 16px; font-size: 17px; color: var(--text-2); }
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer;
  font-weight: 600; font-size: 16.5px; list-style: none; transition: background-color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--hover); }
.faq summary svg { color: var(--text-3); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 56px 20px 20px; }

/* Stažení */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 72px 24px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); }
.final-map {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .6;
  mask-image: radial-gradient(ellipse 75% 95% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 95% at 50% 0%, #000 0%, transparent 78%);
}
.final-body img { margin: 0 auto 22px; border-radius: 15px; box-shadow: 0 12px 30px -8px rgba(12, 79, 174, .8); }
.final-body > p { color: var(--text-2); font-size: 18px; margin: 14px auto 30px; max-width: 32em; }
.final-body .small { margin: 26px auto 0; font-size: 15px; color: var(--text-3); }
.final-body .drivers { margin: 10px auto 0; font-size: 15px; color: var(--primary-hover); }

/* Patička */
.foot { border-top: 1px solid var(--border); padding: 48px 0 32px; color: var(--text-3); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand p { margin-top: 10px; max-width: 30em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot-links a { color: var(--text-2); }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }
.foot-legal a { color: var(--text-2); }

/* Postupné zobrazení při posunu (jen se zapnutým JS, bez omezení pohybu) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-text > *, .hero-visual { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .06s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .18s; }
.hero-text > :nth-child(5) { animation-delay: .24s; }
.hero-visual { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-text { text-align: center; }
  .hero h1, .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .coverage { justify-content: center; }
  .hero-map {
    mask-image: radial-gradient(ellipse 80% 55% at 50% 70%, #000 12%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 70%, #000 12%, transparent 75%);
  }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.span-2 { grid-column: span 2; }
  .dash-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .dash-text { max-width: 640px; }
  .privacy { grid-template-columns: 1fr 1fr; }
}

/* Menu v hamburgeru */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .top-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    padding: 8px 20px 24px; background: var(--bg); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    border-bottom: 1px solid var(--border); opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .menu-open .top-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .top-nav > a { font-size: 17px; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .top-nav > a:hover, .top-nav > a.active { background: none; }
  .menu-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .menu-extra .btn { height: 48px; }
  .live { gap: 12px; }
}

/* Telefon */
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 40px 0; }
  .hero h1 { margin: 18px auto; }
  .lead { margin-bottom: 26px; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .store, .cta .btn { justify-content: center; }
  .cta.center { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .coverage { font-size: 13px; text-align: left; align-items: flex-start; }
  .phone { width: 290px; border-radius: 50px; padding: 10px; }
  .screen { border-radius: 41px; }
  .island { top: 20px; width: 84px; height: 25px; }
  .ui-top { top: 52px; }
  .live { margin-top: 44px; grid-template-columns: 1fr; }
  .live > div { padding: 12px; column-gap: 10px; }
  .live .ti { width: 32px; height: 32px; }
  .live dt { font-size: 12px; }
  .live dd { font-size: 17px; }
  .section { padding: 76px 0; }
  .head { margin-bottom: 40px; }
  .head p, .dash-text .sub, .final-body > p { font-size: 16.5px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .card, .card.span-2 { grid-column: auto; flex-direction: column; align-items: stretch; padding: 20px; }
  .card.span-2 .viz { margin-top: auto; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .extras { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-tiles { grid-template-columns: 1fr 1fr; }
  .dash-cols { grid-template-columns: 1fr; }
  .plans, .privacy { grid-template-columns: 1fr; }
  .plan { padding: 24px 20px; }
  .faq summary { font-size: 16px; padding: 16px; }
  .faq details p { padding: 0 16px 18px; }
  .final { padding: 52px 20px; border-radius: 20px; }
  .foot-grid { flex-direction: column; }
}

/* ——— CarPlay 1:1 (Sources/CarPlay): displej auta 16:9, všechny rozměry v em = 1/80 šířky displeje,
   takže se náhled zmenšuje celý a rozložení zůstává stejné jako v autě ——— */
.cp-section { position: relative; overflow: hidden; isolation: isolate; }
.cp-section::before {
  content: ""; position: absolute; inset: 30% -10% auto; height: 60%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(66, 161, 245, .16), transparent 70%);
}
.cp-show { max-width: 980px; margin: 0 auto; }
.cp-tabs {
  display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 4px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.cp-tabs button {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 10px;
  overflow: hidden; background: transparent; color: var(--text-2); font: 600 14.5px/1 inherit; cursor: pointer; transition: color .2s, background-color .2s;
}
.cp-tabs button svg { width: 17px; height: 17px; }
.cp-tabs button:hover { color: var(--text); }
.cp-tabs button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 2px 6px rgba(0, 0, 0, .3); }
.cp-tabs button i { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; }
.cp-tabs button.on i { animation: cp-progress var(--cp-dur, 9s) linear forwards; }
.cp-show.paused .cp-tabs button.on i { animation-play-state: paused; }
.cp-show.still .cp-tabs button i { display: none; }
@keyframes cp-progress { to { transform: scaleX(1); } }

/* Displej v palubní desce */
.cp-unit {
  position: relative; padding: clamp(8px, 1.4vw, 14px); border-radius: clamp(16px, 2.6vw, 28px);
  background: linear-gradient(160deg, #2b313c, #0d1015 45%, #1a1f27);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset, 0 60px 120px -40px rgba(0, 0, 0, .9), 0 40px 110px -60px rgba(66, 161, 245, .5);
}
.cp-unit::after {
  content: ""; position: absolute; inset: clamp(8px, 1.4vw, 14px); border-radius: clamp(8px, 1.2vw, 12px); pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .07), transparent 32%);
}
.cp-display { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(8px, 1.2vw, 12px); overflow: hidden; background: #000; container-type: inline-size; }
.cp-ui {
  position: absolute; inset: 0; font-size: 1.25cqw; color: #fff; line-height: 1.2; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
}
.cp-ui svg { width: 1em; height: 1em; }

/* Dock CarPlay (systém) */
.cp-dock {
  position: absolute; left: 0; top: 0; bottom: 0; width: 7.4em; padding: 1.4em 0 1.2em; display: flex; flex-direction: column; align-items: center;
  background: #0b0c0e; border-right: 1px solid rgba(255, 255, 255, .06);
}
.cp-clock { font-size: 1.7em; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cp-net { display: flex; align-items: center; gap: .25em; margin-top: .3em; font-size: 1.05em; font-weight: 600; color: rgba(255, 255, 255, .85); }
.cp-ui .cp-net svg { width: 1.2em; height: 1.2em; }
.cp-apps { display: grid; gap: 1.1em; margin-top: 2.2em; }
.cp-app { display: grid; place-items: center; width: 4.6em; height: 4.6em; border-radius: 1.1em; }
img.cp-app { box-shadow: 0 0 0 .2em #0b0c0e, 0 0 0 .38em rgba(255, 255, 255, .55); }
.cp-ui .cp-app svg { width: 2.5em; height: 2.5em; color: #fff; }
.cp-app-phone { background: linear-gradient(180deg, #5cf27a, #2bc451); }
.cp-app-music { background: linear-gradient(180deg, #ff6a7f, #fb2f4e); }
.cp-home { margin-top: auto; display: grid; place-items: center; width: 4.6em; height: 4.6em; border-radius: 1.1em; background: #26282d; }
.cp-ui .cp-home svg { width: 2em; height: 2em; color: rgba(255, 255, 255, .9); }

/* Obrazovky */
.cp-slides { position: absolute; left: 7.4em; right: 0; top: 0; bottom: 0; overflow: hidden; background: #1d2633; }
.cp-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.cp-slide.on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.cp-ui .cp-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-ui .cp-puck { width: 3.6em; height: 3.6em; }
.cp-ui .cp-puck svg { width: 100%; height: 100%; }
.cp-mk { position: absolute; width: 3.3em; height: auto; transform: translate(-50%, -100%); filter: drop-shadow(0 .2em .3em rgba(0, 0, 0, .5)); }
.cp-pin { width: 3.8em; }

/* Lišta a tlačítka mapy (CPMapTemplate): po chvíli bez dotyku se schovají (automaticallyHidesNavigationBar) */
.cp-bar { position: absolute; top: 1em; left: 1em; right: 1em; display: flex; justify-content: space-between; transition: opacity .45s, transform .45s var(--ease); }
.cp-bar-side { display: flex; gap: .8em; }
.cp-btn {
  display: grid; place-items: center; min-width: 4.4em; height: 4.4em; padding: 0 1em; border-radius: 1.3em;
  background: rgba(43, 46, 51, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 .2em .6em rgba(0, 0, 0, .3);
}
.cp-ui .cp-btn svg { width: 2em; height: 2em; }
.cp-text { font-size: 1.6em; font-weight: 600; min-width: 0; height: 2.75em; padding: 0 .9em; border-radius: .8em; }
.cp-slide.clean .cp-bar { opacity: 0; transform: translateY(-1.5em); }

/* Rychlost s limitem (SpeedBubble ×0,72) – pod lištou, dokud je vidět */
.cp-speed { position: absolute; right: 1.2em; top: 6.4em; width: 7em; height: 7em; transition: top .45s var(--ease); }
.cp-slide.clean .cp-speed { top: 1.2em; }
.cp-speed .bubble { font-size: .8em; width: 6.9em; height: 6.9em; border-width: .55em; }
.cp-speed .bubble b { font-size: 2.75em; }
.cp-speed .sign { position: absolute; left: 0; top: 0; z-index: 1; font-size: 1.35em; width: 2.45em; height: 2.45em; border-width: .3em; }

/* Hláška nahoře uprostřed */
.cp-toast {
  position: absolute; top: 1.2em; left: 50%; width: 30em; display: flex; align-items: center; gap: 1em; padding: .9em 1em;
  border-radius: 1.8em; border: .15em solid rgba(255, 159, 10, .6); line-height: 1.25;
  opacity: 0; transform: translate(-50%, -1.5em) scale(.96); transition: opacity .45s .4s, transform .45s .4s var(--ease);
}
.cp-slide.clean .cp-toast { opacity: 1; transform: translate(-50%, 0); }
.cp-toast .tile { width: 3.4em; height: 3.4em; }
.cp-ui .cp-toast .tile svg { width: 1.7em; height: 1.7em; }
.cp-toast div { flex: 1; min-width: 0; }
.cp-toast b { display: block; font-size: 1.45em; }
.cp-toast div span { display: block; font-size: 1.1em; color: var(--text-2); }
.cp-toast .sign { font-size: 1.3em; width: 2.5em; height: 2.5em; border-width: .3em; }

/* Panel jízdy (CarDrivePanel): G-metr, přetížení | ujeto, čas, průměr */
.cp-drive {
  position: absolute; left: 1.2em; bottom: 2.6em; display: flex; align-items: center; gap: 1.4em; padding: 1em 1.4em; border-radius: 1.8em;
  opacity: 0; transform: translateY(1em); transition: opacity .45s .25s, transform .45s .25s var(--ease);
}
.cp-slide.clean .cp-drive { opacity: 1; transform: none; }
.cp-drive-nav { left: 28.4em; bottom: .8em; padding: .6em 1.4em; }
.cp-g {
  position: relative; width: 3.6em; height: 3.6em; border-radius: 50%; border: 1px solid rgba(235, 235, 245, .35); flex: none;
  background: radial-gradient(circle, transparent 42%, rgba(235, 235, 245, .25) 43%, transparent 46%),
    linear-gradient(rgba(235, 235, 245, .22), rgba(235, 235, 245, .22)) center / 1px 100% no-repeat,
    linear-gradient(rgba(235, 235, 245, .22), rgba(235, 235, 245, .22)) center / 100% 1px no-repeat;
}
.cp-g i { position: absolute; width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--accent); left: 58%; top: 34%; transform: translate(-50%, -50%); animation: cp-g 3.2s ease-in-out infinite alternate; }
@keyframes cp-g { 50% { left: 44%; top: 52%; } to { left: 62%; top: 46%; } }
.cp-sep { width: 1px; height: 3.2em; border-radius: 1px; background: rgba(255, 255, 255, .2); }
.cp-item { display: grid; gap: .15em; min-width: 5.6em; }
.cp-item span { font-size: 1.05em; font-weight: 600; color: rgba(235, 235, 245, .6); }
.cp-item b { font-size: 1.55em; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Navigace: panel pokynů a příjezdu (kreslí CarPlay, guidanceBackgroundColor) */
.cp-guide { position: absolute; left: .8em; top: .8em; bottom: .8em; width: 26em; display: flex; flex-direction: column; justify-content: space-between; }
.cp-man, .cp-arrive { background: rgba(43, 46, 51, .9); border-radius: 1.4em; box-shadow: 0 .3em 1em rgba(0, 0, 0, .3); }
.cp-man { display: flex; align-items: center; gap: 1.4em; padding: 1.4em 1.6em; }
.cp-ui .cp-man-ic { width: 4.6em; height: 4.6em; flex: none; }
.cp-man b { display: block; font-size: 3.1em; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.cp-man span { display: block; margin-top: .2em; font-size: 1.75em; font-weight: 600; color: rgba(255, 255, 255, .9); }
.cp-arrive { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1em 1.2em; text-align: center; }
.cp-arrive b { display: block; font-size: 2em; font-weight: 600; font-variant-numeric: tabular-nums; }
.cp-arrive span { font-size: 1.15em; color: rgba(235, 235, 245, .6); }

/* Úsekové měření pod pokynem (CarSectionCard) */
.cp-seccard { position: absolute; left: .8em; top: 12.6em; width: 26em; padding: 1em 1.2em; border-radius: 1.8em; }
.cp-sec-top { display: flex; align-items: center; gap: 1em; }
.cp-seccard .tile { width: 3.2em; height: 3.2em; }
.cp-ui .cp-seccard .tile svg { width: 1.5em; height: 1.5em; }
.cp-sec-avg { flex: 1; min-width: 0; }
.cp-sec-avg b { font-size: 2.2em; font-weight: 700; font-family: ui-rounded, "SF Pro Rounded", Inter, sans-serif; font-variant-numeric: tabular-nums; }
.cp-sec-avg small { font-size: .5em; font-weight: 600; color: rgba(235, 235, 245, .6); margin-left: .25em; }
.cp-sec-avg span, .cp-sec-max span { display: block; font-size: 1.05em; font-weight: 600; color: rgba(235, 235, 245, .6); }
.cp-sec-max { text-align: right; }
.cp-sec-max b { font-size: 1.8em; font-weight: 700; font-family: ui-rounded, "SF Pro Rounded", Inter, sans-serif; }
.cp-seccard .sign { font-size: 1.3em; width: 2.45em; height: 2.45em; border-width: .3em; }
.cp-sec-bar { display: flex; align-items: center; gap: .8em; margin-top: .9em; }
.cp-sec-bar > span { flex: 1; height: .6em; border-radius: 1em; background: rgba(255, 255, 255, .14); overflow: hidden; }
.cp-sec-bar i { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, #29bf66, #34d67a); }
.cp-sec-bar em { display: flex; align-items: center; gap: .3em; font-style: normal; font-size: 1.2em; font-weight: 700; color: rgba(235, 235, 245, .6); }

/* Auto: seznam CarPlay (CPListTemplate) */
.cp-list { background: #000; }
.cp-list-bar { position: absolute; top: 0; left: 0; right: 0; height: 6.4em; display: grid; grid-template-columns: 6em 1fr 6em; align-items: center; padding: 0 1em; background: #000; z-index: 1; }
.cp-list-bar b { text-align: center; font-size: 1.8em; font-weight: 700; }
.cp-back { width: 4.4em; padding: 0; }
.cp-list-scroll {
  position: absolute; top: 6.4em; left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.cp-list-scroll::-webkit-scrollbar { width: 6px; }
.cp-list-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 3px; }
.cp-list-in { padding-bottom: 2em; }
.cp-list h4 { padding: 1.3em 2em .5em; font-size: 1.35em; font-weight: 700; letter-spacing: 0; color: rgba(235, 235, 245, .6); }
.cp-row { position: relative; display: flex; align-items: center; gap: 1.6em; height: 5.8em; padding: 0 4em 0 2em; }
.cp-row + .cp-row::before { content: ""; position: absolute; top: 0; left: 6.2em; right: 0; height: 1px; background: rgba(255, 255, 255, .1); }
.cp-ui .cp-row > svg { width: 2.6em; height: 2.6em; flex: none; }
.cp-row b { display: block; font-size: 1.65em; font-weight: 500; }
.cp-row span { display: block; font-size: 1.3em; color: rgba(235, 235, 245, .6); }
.cp-row.link::after {
  content: ""; position: absolute; right: 2.2em; top: 50%; width: .8em; height: .8em; border: solid rgba(235, 235, 245, .45);
  border-width: .2em .2em 0 0; transform: translateY(-50%) rotate(45deg);
}
.c-blue { color: #0a84ff; } .c-green { color: #30d158; } .c-orange { color: #ff9f0a; } .c-purple { color: #bf5af2; }
.c-indigo { color: #5e5ce6; } .c-teal { color: #40c8e0; }

.cp-caption { display: grid; margin: 24px auto 0; max-width: 640px; text-align: center; color: var(--text-2); font-size: 16px; }
.cp-caption span { grid-area: 1 / 1; opacity: 0; transition: opacity .4s; }
.cp-caption span.on { opacity: 1; }

/* Skutečné značky aplikace ve štítcích karet a odkaz z karty */
.tag-mk { width: auto; height: 30px; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14.5px; font-weight: 600; }
.more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.more:hover { text-decoration: none; }
.more:hover svg { transform: translateX(3px); }

@media (max-width: 680px) {
  .cp-tabs { width: 100%; }
  .cp-tabs button { flex: 1; justify-content: center; padding: 0 8px; }
  .cp-caption { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-g i { animation: none; }
}

/* ——— Telefon v úvodu: iPhone 15 Pro 1:1 (obrazovka 393 × 852 bodů), prvky ve velikostech z aplikace ——— */
.phone { width: 417px; height: 876px; aspect-ratio: auto; border-radius: 67px; padding: 12px; }
.phone .screen { border-radius: 55px; }
.phone .island { top: 23px; width: 126px; height: 37px; border-radius: 20px; }
.phone .sb-time { position: absolute; z-index: 3; top: 30px; left: 12px; line-height: 22px; width: 132px; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.phone .mk { width: 40px; }
.phone .mk-home { width: 42px; }
.phone .puck { width: 36px; height: 36px; }
.phone .ui-top { top: 60px; left: 13px; right: 13px; gap: 10px; }
.phone .nav-card { gap: 12px; padding: 10px; border-radius: 26px; }
.phone .nav-ic { width: 46px; height: 46px; }
.phone .nav-ic svg { width: 25px; height: 25px; }
.phone .nav-txt b { font-size: 20px; }
.phone .nav-txt p { gap: 6px; font-size: 15px; }
.phone .nav-txt em { gap: 3px; padding: 3px 7px; font-size: 12px; }
.phone .nav-txt em svg { width: 12px; height: 12px; }
.phone .nav-txt small { font-size: 12px; }
.phone .nav-x { width: 28px; height: 28px; }
.phone .nav-x svg { width: 11px; height: 11px; }
.phone .stats-pill { height: 48px; border-radius: 24px; padding: 0 6px; }
.phone .stats-pill b { font-size: 15px; }
.phone .stats-pill span { font-size: 8.5px; }
.phone .stats-pill .g { gap: 5px; }
.phone .gm { width: 22px; height: 22px; }
.phone .gm i { width: 12px; height: 12px; margin: -6.5px 0 0 -6px; }
.phone .toasts { height: 68px; }
.phone .toast { gap: 12px; padding: 10px 12px 13px; border-radius: 24px; }
.phone .toast .tile { width: 40px; height: 40px; }
.phone .toast .tile svg { width: 20px; height: 20px; }
.phone .toast b { font-size: 16px; }
.phone .toast div span { font-size: 13px; }
.phone .toast .sign { width: 38px; height: 38px; font-size: 16px; border-width: 4.5px; }
.phone .ui-bottom { left: 12px; right: 13px; bottom: 29px; }
.phone .rec-btn { gap: 8px; padding: 16px 22px; font-size: 17px; }
.phone .rec-btn i { width: 14px; height: 14px; border-radius: 3px; }
.phone .speedo { width: 98px; height: 98px; }
.phone .speedo .sign { width: 46px; height: 46px; font-size: 19px; border-width: 5.5px; }
.phone .bubble { width: 76px; height: 76px; border-width: 6px; font-size: 11px; }
.phone .bubble b { font-size: 30px; }
/* Telefon zmenšený celý (zoom zachová poměry iPhonu), ať se vejde na obrazovku */
.phone { zoom: .8; }
@media (min-height: 1100px) and (min-width: 1061px) { .phone { zoom: .9; } }
@media (max-height: 820px) and (min-width: 1061px) { .phone { zoom: .7; } }
@media (max-width: 400px) { .phone { zoom: .78; } }
@media (max-width: 360px) { .phone { zoom: .72; } }
