/* "Propojení" (Slack, Focus, every connection), the weather in "Akce" and "Černá díra" on the
   home page. The demos are drawn by connect.js. */

/* ---------- Slack ---------- */

.slack-demo {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 980px) {
  .slack-demo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
}
.slack-copy h3, .focus-copy h3 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.slack-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.slack-points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.slack-points li > .icon {
  width: 44px; height: 44px; padding: 11px;
  border-radius: 14px;
  background: #4a154b; color: #fff;
}
.slack-points b { display: block; font-size: 17px; font-weight: 850; letter-spacing: -0.01em; margin-top: 2px; }
.slack-points span { display: block; color: var(--secondary); font-size: 15px; margin-top: 3px; }
.slack-try { margin: 28px 0 10px; font-weight: 800; font-size: 15px; }
.slack-scenes { display: flex; flex-wrap: wrap; gap: 8px; }
.slack-scenes button, .focus-toggle {
  font: inherit; font-size: 14px; font-weight: 800;
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 15px; height: 40px; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-small);
  transition: transform 0.2s cubic-bezier(.3,1.6,.5,1), background 0.25s, color 0.25s;
}
.slack-scenes button .icon { width: 17px; height: 17px; }
.slack-scenes button:active, .focus-toggle:active { transform: scale(0.94); }
.slack-scenes button.on { background: #4a154b; color: #fff; }

.slack-window {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 560px;
  font-size: 14px;
}
.sk-side {
  background: linear-gradient(180deg, #4a154b, #350d36);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 16px 0;
}
.sk-team {
  width: 38px; height: 38px; border-radius: 11px;
  background: #fff; color: #4a154b;
  display: grid; place-items: center;
  font-weight: 900; font-size: 15px;
}
.sk-side .icon { width: 22px; height: 22px; color: rgba(255, 255, 255, 0.55); margin-top: 6px; }
.sk-main { display: flex; flex-direction: column; min-width: 0; }
.sk-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.sk-head b { font-size: 16px; font-weight: 900; }
.sk-head .spacer { flex: 1; }
.sk-me { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sk-me img { width: 30px; height: 30px; border-radius: 9px; background: #e4e9ff; }
.sk-status {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--fill); color: var(--secondary);
  font-weight: 800; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px;
  transition: background 0.35s, color 0.35s;
}
.sk-status.set { background: #f4ecf6; color: #4a154b; }
.sk-status .icon { width: 15px; height: 15px; flex: none; }
.sk-status.flash { animation: sk-flash 0.7s cubic-bezier(.3,1.6,.5,1); }
@keyframes sk-flash { 0% { transform: scale(0.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.sk-dnd {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--violet); color: #fff;
  transform: scale(0); transition: transform 0.35s cubic-bezier(.3,1.6,.5,1);
}
.sk-dnd.on { transform: scale(1); }
.sk-dnd .icon { width: 15px; height: 15px; }
.sk-feed { padding: 16px 18px 20px; display: grid; gap: 16px; align-content: start; }
.sk-msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
.sk-msg > img, .sk-msg > .sk-bot {
  width: 38px; height: 38px; border-radius: 10px; background: #e4e9ff;
}
.sk-bot { display: grid; place-items: center; background: linear-gradient(160deg, #3d5cff, #1529da) !important; }
.sk-bot svg { width: 26px; height: 26px; color: #fff; --logo-n: #fff; --logo-dot: #c6f24e; }
.sk-who { font-weight: 900; }
.sk-who small { font-weight: 600; color: var(--tertiary); margin-left: 6px; font-size: 12px; }
.sk-who .app { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; padding: 1px 5px; border-radius: 4px; background: var(--fill); color: var(--secondary); margin-left: 6px; }
.sk-text { margin-top: 2px; }
.sk-text code { font-family: var(--mono); font-size: 13px; background: var(--fill); padding: 1px 5px; border-radius: 5px; }
.sk-only { font-size: 12px; color: var(--tertiary); margin-top: 2px; }
.sk-block {
  margin-top: 8px;
  border-left: 3px solid var(--line);
  padding: 2px 0 2px 12px;
  display: grid; gap: 7px;
}
.sk-block h4 { margin: 0; font-size: 15px; font-weight: 900; }
.sk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-row b { font-weight: 850; }
.sk-row span { color: var(--secondary); }
.sk-row.me { animation: sk-flash 0.7s cubic-bezier(.3,1.6,.5,1); }
.sk-link { color: #1264a3; text-decoration: none; word-break: break-all; }
:root:not([data-theme="light"]) .sk-link { color: #4fa3e3; }
.sk-unfurl {
  margin-top: 8px;
  border-left: 3px solid #3d5cff;
  padding: 2px 0 2px 12px;
}
.sk-unfurl b { display: block; font-weight: 900; }
.sk-unfurl span { display: block; color: var(--secondary); font-size: 13px; margin-top: 2px; }
.sk-unfurl .sk-groups { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.sk-unfurl .sk-groups div b { font-size: 13px; }
.sk-toast {
  align-self: center;
  justify-self: center;
  margin: 2px 0;
  font-size: 12px; font-weight: 800;
  color: #4a154b;
  background: #f4ecf6;
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex; gap: 6px; align-items: center;
  animation: sk-toast 0.5s ease-out;
}
.sk-toast .icon { width: 14px; height: 14px; }
@keyframes sk-toast { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .slack-window { grid-template-columns: 44px minmax(0, 1fr); min-height: 520px; font-size: 13px; }
  .sk-team { width: 30px; height: 30px; font-size: 12px; border-radius: 9px; }
  .sk-head { padding: 12px; }
  .sk-feed { padding: 14px 12px 18px; }
  .sk-msg { grid-template-columns: 32px minmax(0, 1fr); }
  .sk-msg > img, .sk-msg > .sk-bot { width: 32px; height: 32px; }
  .sk-head b.channel { display: none; }
  .sk-status { max-width: 170px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sk-status.set,
  :root:not([data-theme="light"]) .sk-toast { background: #3a1c3b; color: #f1d9f3; }
}

/* ---------- Focus ---------- */

.focus-demo {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  margin-top: clamp(56px, 8vw, 96px);
}
@media (min-width: 900px) {
  .focus-demo { grid-template-columns: auto minmax(0, 1fr); gap: 56px; justify-items: start; }
}
.focus-copy > p { color: var(--secondary); font-size: 17px; margin: 0 0 22px; max-width: 32em; }
.focus-phone {
  width: min(300px, 72vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 48px;
  padding: 10px;
  background: #0d0d12;
  box-shadow: var(--shadow), inset 0 0 0 2px #2a2a33;
}
.fp-screen {
  position: relative;
  height: 100%;
  border-radius: 39px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 40% at 20% 15%, rgba(61, 92, 255, 0.9), transparent 70%),
    radial-gradient(60% 45% at 90% 85%, rgba(55, 215, 255, 0.55), transparent 70%),
    linear-gradient(170deg, #2343ff, #0b1595);
  display: flex; flex-direction: column; align-items: center;
  padding: 54px 16px 20px;
  transition: filter 0.6s;
}
.fp-screen::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(123, 92, 255, 0.85), transparent 75%),
    linear-gradient(170deg, #1e1240, #06040c);
  opacity: 0;
  transition: opacity 0.8s;
}
.fp-screen.on::after { opacity: 1; }
.fp-screen > * { position: relative; z-index: 1; }
.fp-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.fp-date { font-size: 15px; font-weight: 700; opacity: 0.85; }
.fp-time { font-size: 76px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 2px 0 14px; }
.focus-toggle { height: 44px; padding: 0 18px; background: rgba(255, 255, 255, 0.2); color: #fff; box-shadow: none; backdrop-filter: blur(12px); }
.focus-toggle .icon { width: 18px; height: 18px; }
.fp-screen.on .focus-toggle { background: #fff; color: #4b2fd6; }
.fp-cards { margin-top: auto; width: 100%; display: grid; gap: 8px; }
.fp-card {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 10px 12px;
  font-size: 13px;
  opacity: 0; transform: translateY(14px) scale(0.96);
  transition: opacity 0.45s, transform 0.55s cubic-bezier(.3,1.5,.5,1);
}
.fp-card.shown { opacity: 1; transform: none; }
.fp-card i {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #3d5cff, #1529da);
}
.fp-card i svg { width: 22px; height: 22px; --logo-n: #fff; --logo-dot: #c6f24e; color: #fff; }
.fp-card b { display: block; font-size: 13px; }
.fp-card span { display: block; opacity: 0.8; }
.focus-effects { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 520px; }
.focus-effects li {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
  background: var(--surface);
  border-radius: 22px;
  padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow-small);
  transition: transform 0.45s cubic-bezier(.3,1.5,.5,1), box-shadow 0.45s;
}
.focus-effects li.on { transform: translateX(6px); box-shadow: 0 14px 34px rgba(123, 92, 255, 0.22); }
.focus-effects i {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--fill); color: var(--secondary);
  transition: background 0.4s, color 0.4s;
}
.focus-effects li.on i { background: var(--tint, var(--violet)); color: #fff; }
.focus-effects i .icon { width: 22px; height: 22px; }
.focus-effects b { display: block; font-size: 16px; font-weight: 850; }
.focus-effects span { display: block; color: var(--secondary); font-size: 14px; margin-top: 2px; }
.focus-effects em {
  font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--secondary); background: var(--fill);
  padding: 5px 9px; border-radius: 999px;
  transition: background 0.4s, color 0.4s;
}
.focus-effects li.on em { background: var(--violet); color: #fff; }
.focus-note { margin: 14px 0 0; color: var(--secondary); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.focus-note .icon { width: 16px; height: 16px; }

/* ---------- Every connection ---------- */

.integrations-title {
  margin: clamp(56px, 8vw, 96px) 0 20px;
  font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -0.03em;
}
.integrations { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .integrations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .integrations { grid-template-columns: repeat(4, 1fr); } }
.integrations > div {
  background: var(--surface);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow-small);
}
.integrations i {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 14px; color: #fff;
}
.integrations i .icon { width: 22px; height: 22px; }
.integrations h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.integrations p { margin: 0; color: var(--secondary); font-size: 15px; }
.integrations-note { display: flex; gap: 10px; align-items: center; color: var(--secondary); margin: 20px 0 0; font-weight: 600; }
.integrations-note .icon { width: 18px; height: 18px; flex: none; }

/* ---------- Weather in "Akce" ---------- */

.event-weather {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin-top: 56px;
}
@media (min-width: 900px) {
  /* Side by side, both cards are always the same height. */
  .event-weather { grid-template-columns: 0.8fr 1fr 1fr; gap: 22px; align-items: stretch; }
  .event-weather > div:first-child { align-self: center; }
  .weather-card, .weather-plan { display: flex; flex-direction: column; }
  .weather-card .wx-row { flex: 1; }
  .weather-plan .wx-pick { margin-top: auto; }
}
.event-weather h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -0.035em; margin: 0 0 10px; line-height: 1.05; }
.event-weather p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); margin: 0; font-size: 16px; }
.weather-card, .weather-plan {
  background: #fff; color: #0e0e14;
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}
.wx-head {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: #6b6b78; margin-bottom: 8px;
}
.wx-head span:last-child { font-family: var(--display); letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 700; }
.wx-row {
  display: grid; grid-template-columns: 44px 34px minmax(0, 1fr) auto 32px; gap: 8px;
  align-items: center; min-height: 46px;
  font-size: 15px;
}
.wx-row b { font-weight: 800; }
.wx-row .wx-sum { color: #6b6b78; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-row .wx-sum small { display: block; color: #2343ff; font-weight: 800; font-size: 12px; }
.wx-row .hi { font-weight: 900; text-align: right; }
.wx-row .lo { color: #6b6b78; font-weight: 700; text-align: right; }
.wx-icon { width: 28px; height: 28px; display: block; }
.wx-days { display: flex; gap: 7px; margin: 4px 0 12px; }
.wx-day {
  flex: 1; min-width: 0;
  border-radius: 16px;
  background: #ececf1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 9px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  cursor: pointer; border: 0; color: inherit;
  transition: transform 0.25s cubic-bezier(.3,1.6,.5,1), background 0.3s, color 0.3s;
}
.wx-day b { font-family: var(--display); font-size: 19px; font-weight: 900; }
.wx-day .wx-icon { width: 18px; height: 18px; }
.wx-day.on { background: linear-gradient(170deg, #3d5cff, #1529da); color: #fff; }
.wx-day:active { transform: scale(0.94); }
.wx-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wx-pick span:last-child { margin-left: auto; }
.wx-pick b { font-size: 17px; font-weight: 900; }
.wx-pick span { color: #6b6b78; font-weight: 700; font-size: 14px; display: inline-flex; gap: 5px; align-items: center; }
.wx-pick .wx-icon { width: 18px; height: 18px; }

/* ---------- Černá díra ---------- */

.blackhole {
  position: relative;
  margin-top: clamp(72px, 11vw, 140px);
  background:
    radial-gradient(45% 55% at 78% 45%, rgba(123, 92, 255, 0.35), transparent 70%),
    radial-gradient(35% 45% at 10% 90%, rgba(170, 60, 255, 0.18), transparent 70%),
    linear-gradient(170deg, #0d0918, #040308 70%);
  color: #fff;
  border-radius: clamp(36px, 6vw, 72px);
  padding: clamp(64px, 9vw, 120px) 0;
  overflow: hidden;
  isolation: isolate;
}
.hole-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.8; }
.blackhole .eyebrow { color: #b9a6ff; }
.blackhole .lead { color: rgba(255, 255, 255, 0.7); }
.blackhole .display {
  background: linear-gradient(100deg, #fff 30%, #c9b8ff 70%, #8f6bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hole-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hole-copy { min-width: 0; }
@media (min-width: 980px) { .hole-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.hole-form {
  display: flex; gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(185, 166, 255, 0.25), 0 0 40px rgba(123, 92, 255, 0.18);
  max-width: 520px;
}
.hole-form input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px; font-weight: 600;
  color: #fff; background: transparent;
  border: 0; outline: 0;
  padding: 0 14px;
}
.hole-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.hole-form button {
  font: inherit; font-size: 15px; font-weight: 850;
  border: 0; cursor: pointer;
  height: 46px; padding: 0 18px; border-radius: 999px;
  color: #fff;
  background: linear-gradient(160deg, #8f6bff, #4b2fd6);
  box-shadow: 0 10px 30px rgba(123, 92, 255, 0.45);
  transition: transform 0.2s cubic-bezier(.3,1.6,.5,1);
  white-space: nowrap;
}
.hole-form button:active { transform: scale(0.94); }
.hole-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hole-points li {
  font-size: 14px; font-weight: 700;
  padding: 8px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hole-stage { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.hole-stage canvas { display: block; width: 100%; aspect-ratio: 1 / 0.86; }
.hole-list { margin-top: -10px; position: relative; }
.hole-list p {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: rgba(185, 166, 255, 0.8); margin: 0 0 10px;
}
.hole-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hole-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(123, 92, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(185, 166, 255, 0.16);
  font-weight: 650;
}
.hole-list li small { font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.hole-list li.fresh { animation: hole-in 0.9s ease-out; }
@keyframes hole-in {
  from { opacity: 0; transform: scale(0.6); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hole-chip {
  position: fixed; z-index: 50; pointer-events: none;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(30, 18, 64, 0.92); color: #fff;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 0 30px rgba(143, 107, 255, 0.6), inset 0 0 0 1px rgba(185, 166, 255, 0.4);
  white-space: nowrap; max-width: 80vw; overflow: hidden; text-overflow: ellipsis;
  will-change: transform, opacity, filter;
}

/* ---------- Services with their own logos (web/img/brands, from Simple Icons) ---------- */

.brand { position: relative; overflow: hidden; }
.brand span {
  position: absolute; inset: 20%;
  background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}
.brand-spotify { background: #121212 !important; color: #1ed760; }
.brand-spotify span { --mark: url(/img/brands/spotify.svg); inset: 17%; }
.brand-applemusic { background: none !important; }
.brand-applemusic span { --mark: url(/img/brands/applemusic.svg); inset: 0; background: linear-gradient(#fb5c74, #fa233b); }
.brand-slack { background: linear-gradient(#5b1d5c, #4a154b) !important; color: #fff; }
.brand-slack span { --mark: url(/img/brands/slack.svg); inset: 22%; }
.brand-steam { background: linear-gradient(#2a475e, #171a21) !important; color: #fff; }
.brand-steam span { --mark: url(/img/brands/steam.svg); inset: 17%; }
.focus-effects li i.brand, .focus-effects li.on i.brand { color: #fff; }
.brand-spotify { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
