/* Stránky novinky.bartech.cz — barvy a písmo z guides/brand.md */
:root {
  --blue: #1890d7;
  --blue-soft: #7cc4ef;
  --dark: #2b4051;
  --deep: #1b2a37;
  --text: #333333;
  --muted: #5b6b78;
  --light: #eeeeee;
  --line: #e1e7ed;
  --page: #f3f6f9;
  --white: #ffffff;
  --max: 1080px;
  --shadow: 0 1px 2px rgba(27, 42, 55, .06), 0 8px 24px rgba(27, 42, 55, .08);
  --shadow-lg: 0 2px 4px rgba(27, 42, 55, .08), 0 24px 60px rgba(27, 42, 55, .22);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.6;
  overflow-x: clip;
}
a { color: var(--blue); }
img, video { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* hlavička */
.top { background: var(--dark); padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top .in { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
@media (min-width: 720px) { .top { padding: 16px 32px; } }
.top a { color: var(--white); text-decoration: none; font-weight: 700; letter-spacing: .08em; }
.top img { height: 28px; }
.top .all { font-weight: 500; letter-spacing: 0; font-size: 14px; opacity: .85; }

main { padding-bottom: 48px; }

/* tmavý pruh: modrá záře + jemný motiv čárového kódu */
.band, .final {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  background:
    radial-gradient(ellipse 55% 90% at 88% -10%, rgba(24, 144, 215, .55), transparent 62%),
    radial-gradient(ellipse 45% 70% at -5% 110%, rgba(24, 144, 215, .28), transparent 60%),
    linear-gradient(165deg, var(--dark) 0%, var(--deep) 100%);
}
.band::before, .final::before {           /* tečkovaná mřížka */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.band::after, .final::after {             /* čárový kód vpravo */
  content: ""; position: absolute; z-index: -1; top: 12%; bottom: 12%; right: -20px; width: min(38%, 380px);
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, .07) 0 3px, transparent 3px 7px, rgba(255, 255, 255, .07) 7px 8px, transparent 8px 12px,
    rgba(255, 255, 255, .07) 12px 17px, transparent 17px 20px, rgba(255, 255, 255, .07) 20px 22px, transparent 22px 29px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
          mask-image: linear-gradient(90deg, transparent, #000 45%);
}

.hero { padding: 40px 16px 44px; }
@media (min-width: 720px) { .hero { padding: 72px 32px 72px; } }
.band.has-media .hero { padding-bottom: 140px; }
@media (min-width: 720px) { .band.has-media .hero { padding-bottom: 200px; } }
.kicker { color: var(--blue-soft); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 6vw, 56px); line-height: 1.1; margin: 0 0 16px; color: var(--white); max-width: 18ch; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 2vw, 20px); margin: 0 0 28px; max-width: 62ch; color: rgba(255, 255, 255, .88); }

/* hlavní obrázek přesahuje přes okraj pruhu */
.media {
  position: relative; z-index: 1; border-radius: 16px; overflow: hidden; background: var(--dark);
  margin: -110px auto 8px; max-width: min(300px, 70vw); box-shadow: var(--shadow-lg);
}
@media (min-width: 720px) { .media { margin-top: -160px; } }
.media video, .media img { width: 100%; height: auto; }
.media.wide { max-width: 100%; background: var(--white); border: 1px solid var(--line); }

.btn {
  display: inline-block; background: var(--blue); color: var(--white); text-decoration: none;
  font-weight: 700; padding: 15px 30px; border-radius: 999px; font-size: 17px;
  box-shadow: 0 6px 20px rgba(24, 144, 215, .35); transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta-row { margin: 0; }

/* přínosy */
.benefits { list-style: none; padding: 0; margin: 48px 0 40px; display: grid; gap: 14px; }
@media (min-width: 720px) { .benefits { grid-template-columns: 1fr 1fr; gap: 16px; } }
.benefits li {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px 20px 18px 60px; position: relative; font-weight: 500;
}
.benefits li::before {
  content: "✓"; position: absolute; left: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(24, 144, 215, .12); color: var(--blue); font-weight: 700; font-size: 15px;
}

/* screenshoty */
.shots { display: grid; gap: 28px; margin: 48px 0; justify-items: center; }
.shots figure { margin: 0; display: grid; justify-items: center; gap: 10px; max-width: 100%; }
.shots figcaption { font-size: 15px; color: var(--muted); text-align: center; }
.shots img { width: auto; max-width: 100%; max-height: 520px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }

details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 32px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--dark); }
details p { margin: 12px 0 0; color: var(--muted); }

.final { border-radius: 20px; padding: 44px 24px; text-align: center; margin: 48px 0 16px; box-shadow: var(--shadow-lg); }
@media (min-width: 720px) { .final { padding: 64px 48px; } }
.final h2 { margin: 0 0 10px; font-size: clamp(24px, 3.5vw, 34px); line-height: 1.2; }
.final p { margin: 0 auto 24px; opacity: .9; max-width: 56ch; }
.docs { text-align: center; font-size: 15px; }

/* rozcestník */
.list { list-style: none; padding: 0; margin: 40px 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .list { grid-template-columns: 1fr 1fr; } }
.list a {
  display: block; height: 100%; text-decoration: none; color: inherit; background: var(--white);
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.list a:hover { border-color: var(--blue); transform: translateY(-2px); }
.list .meta { font-size: 13px; color: var(--blue); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.list h2 { font-size: 21px; margin: 6px 0; color: var(--dark); }
.list p { margin: 0; font-size: 15px; color: var(--muted); }

footer { text-align: center; font-size: 13px; color: #6b7a86; padding: 24px 16px 40px; }


/* nadpisy sekcí */
.sec { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; color: var(--dark); margin: 64px 0 0; letter-spacing: -.01em; }
.sec + .benefits, .sec + .shots { margin-top: 24px; }

/* úvod rozdělený: text + ilustrace chatu */
.hero.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero.split { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero.split h1 { max-width: 14ch; }

.chat-ill { position: relative; max-width: 470px; width: 100%; justify-self: center; padding: 18px 0; }
.win {
  background: rgba(255, 255, 255, .97); color: var(--text); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12);
  transform: rotate(-1.2deg);
}
.win-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #eef2f6; border-bottom: 1px solid var(--line); }
.win-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9d3dc; }
.win-bar em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.win-body { padding: 18px 16px 8px; display: grid; gap: 10px; background: #f7f9fb; min-height: 300px; align-content: start; }
.msg {
  max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45;
  opacity: 0; transform: translateY(10px) scale(.98);
  animation: pop .45s cubic-bezier(.2, .9, .3, 1.2) forwards; animation-delay: calc(.5s + var(--i) * .9s);
}
.msg p { margin: 0; }
.msg b { display: block; font-size: 12px; color: var(--dark); margin-bottom: 2px; }
.msg.you { justify-self: end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.msg.them { justify-self: start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.pic { width: 190px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #e9eef3; padding: 10px; display: grid; gap: 6px; align-content: start; }
.msg.you .pic { background: rgba(255, 255, 255, .92); }
.pic i { display: block; height: 8px; border-radius: 4px; background: #c4d0da; }
.pic i:nth-child(1) { width: 60%; background: var(--blue); opacity: .55; }
.pic i:nth-child(2) { width: 90%; }
.pic i:nth-child(3) { width: 75%; }
.msg.typing { display: flex; gap: 5px; padding: 13px 15px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9fb0bf; animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; }
.msg.typing span:nth-child(3) { animation-delay: .4s; }
.win-input { margin: 0 12px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 13px; color: #8a99a6; }
kbd { font: 600 11px/1 Montserrat, sans-serif; padding: 3px 6px; border-radius: 5px; background: #eef2f6; border: 1px solid #d5dde5; border-bottom-width: 2px; color: var(--dark); }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--dark);
  background: var(--white); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: float 5s ease-in-out infinite;
}
.chip.c1 { top: 0; right: -10px; transform: rotate(4deg); }
.chip.c2 { bottom: -16px; left: -14px; transform: rotate(-3deg); animation-delay: -2.5s; }
@media (max-width: 520px) { .chip.c1 { right: 4px; } .chip.c2 { left: 4px; } }

/* rámeček: starý portál funguje dál */
.callout {
  display: flex; gap: 18px; align-items: flex-start; margin: 40px 0 0; padding: 22px 24px;
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--blue);
  border-radius: 14px; box-shadow: var(--shadow);
}
.callout .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--blue); background: rgba(24, 144, 215, .12); }
.callout h3 { margin: 0 0 4px; font-size: 19px; color: var(--dark); }
.callout p { margin: 0; color: var(--muted); }

/* ve vývoji: časová osa */
.progress {
  position: relative; overflow: hidden; margin: 64px 0 0; padding: 40px 24px 36px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf4fb 100%); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
@media (min-width: 720px) { .progress { padding: 52px 48px 44px; } }
.progress .eyebrow { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; }
.progress h2 { margin: 0 0 10px; font-size: clamp(26px, 3.8vw, 38px); line-height: 1.15; color: var(--dark); max-width: 16ch; }
.progress .sub { margin: 0 0 36px; max-width: 58ch; color: var(--muted); font-size: 17px; }
.gears { position: absolute; right: -10px; top: -6px; width: min(42%, 260px); opacity: .9; pointer-events: none; }
.gears .teeth { fill: none; stroke: #d9eaf7; stroke-width: 16; }
.gears .g1 .teeth { stroke-dasharray: 11.5 11.5; }
.gears .g2 .teeth { stroke-dasharray: 8.5 8.5; }
.gears .body { fill: #d9eaf7; }
.gears .hole { fill: #f4f9fd; }
.gears .g1 { transform-origin: 70px 80px; animation: spin 18s linear infinite; }
.gears .g2 { transform-origin: 146px 44px; animation: spin 12s linear infinite reverse; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.steps li { position: relative; padding: 0 0 26px 44px; display: grid; gap: 2px; }
.steps li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 3px; background: var(--line); border-radius: 2px; }
.steps li:last-child::before { display: none; }
.steps li.done::before { background: var(--blue); }
.steps .dot {
  position: absolute; left: 0; top: 0; width: 29px; height: 29px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 3px solid var(--line);
}
.steps .done .dot { background: var(--blue); border-color: var(--blue); }
.steps .done .dot::after { content: "✓"; color: var(--white); font-weight: 700; font-size: 14px; }
.steps .now .dot { border-color: var(--blue); }
.steps .now .dot::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); }
.steps .now .dot::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--blue); animation: pulse 2s ease-out infinite; }
.steps strong { color: var(--dark); font-size: 16px; padding-top: 3px; }
.steps .note { font-size: 14px; color: var(--muted); }
.steps .now strong { color: var(--blue); }
.steps .next strong, .steps .next .note { opacity: .7; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .steps li { padding: 46px 0 0; }
  .steps li::before { left: 34px; right: -16px; top: 13px; bottom: auto; width: auto; height: 3px; }
}

@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .list a { transition: none; }
  .msg { animation: none; opacity: 1; transform: none; }
  .chip, .gears g, .steps .now .dot::before, .msg.typing span { animation: none; }
}
