/* HockeyCrew – prezentační web. Barvy stejné jako appka (src/theme.ts). Systémové písmo (bez Google Fonts kvůli GDPR). */
:root {
  --bg: #121316;
  --surface: #1b1c20;
  --raised: #24262b;
  --border: #3a3d42;
  --text: #f4f3ef;
  --muted: #9aa0a6;
  --red: #e63946;
  --red-dark: #c62f3b;
  --green: #3fb67a;
  --orange: #f2a33c;
  --radius: 16px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--red); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 900; font-size: 18px; letter-spacing: .02em; text-transform: uppercase;
  border-radius: 14px; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); text-transform: none; font-weight: 700; }
.btn-ghost:hover { background: var(--raised); }
.hero .btn-ghost { background: rgba(18, 19, 22, .7); border-color: rgba(255, 255, 255, .28); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-big { min-height: 60px; padding: 0 40px; font-size: 20px; }

/* Horní lišta */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(18, 19, 22, .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(58, 61, 66, .5); }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; }
.nav a:hover { color: var(--text); }

/* Úvod */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 25%, rgba(18, 19, 22, .55) 65%, rgba(18, 19, 22, .85)),
    url('img/hero-bg.webp') center / cover no-repeat,
    radial-gradient(ellipse at 75% 40%, rgba(230, 57, 70, .18), transparent 60%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.free-word { color: var(--green); white-space: nowrap; }
.free-word .dot { color: var(--text); }
.nowrap { white-space: nowrap; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 38px; font-size: 18px; }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 900; font-size: 15px;
  display: grid; place-items: center;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-block { display: inline-flex; flex-direction: column; }
.note { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; color: var(--text); font-size: 17px; font-weight: 700; }
.note span { white-space: nowrap; }
.note .tick { color: var(--green); font-weight: 900; }
/* počítač: text pod zařízeními na stejné úrovni jako tlačítka vlevo */
@media (min-width: 961px) {
  .hero-in { align-items: end; }
  .note { min-height: 52px; /* výška tlačítka */ align-items: center; }
}

/* Úvod: fotka zařízení s vystřiženými displeji, pod ní obrazovky appky (poloha displejů v % obrázku) */
.showcase-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stack { position: relative; width: 100%; aspect-ratio: 1 / .9; }
.stack .dev { position: absolute; margin: 0; max-width: none; transition: transform .35s ease, filter .35s ease; }
.stack .st-phone { left: 0; top: 0; width: 43%; z-index: 3; }
.stack .st-laptop { right: 0; top: 30%; width: 72%; z-index: 2; }
.stack .st-tablet { right: 1%; top: 2%; width: 36%; z-index: 1; }
/* telefon: snímek appky začíná pod výřezem fotoaparátu, celý (i spodní lišta) */
.stack .st-phone .slot img { inset: 6% 0 0 0; height: 94%; }
/* počítač s myší: zařízení pod kurzorem vyjede do popředí, ostatní ustoupí */
@media (hover: hover) and (pointer: fine) {
  .stack:hover .dev { filter: brightness(.7); }
  .stack .dev:hover { z-index: 5; transform: scale(1.06) translateY(-2%); filter: none; }
}
.showcase-devices { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.showcase-logo { width: 46%; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.slot { position: absolute; z-index: 1; overflow: hidden; background: linear-gradient(160deg, #23262c, #15161a); display: grid; place-items: center; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.slot span { color: #5c6168; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
/* displeje v obrázku devices2-cut.png; notebook má levý okraj schovaný za telefonem → dopočítaný z poměru 16 : 10 */
.slot-laptop { left: 27.78%; top: 27.15%; width: 57.21%; height: 40.77%; }
.slot-tablet { left: 64.08%; top: 9.53%; width: 32.34%; height: 50.21%; border-radius: 2%; }
.slot-phone { left: 4.41%; top: 2.89%; width: 36.82%; height: 92.6%; border-radius: 12% / 5.5%; background: #121316; }
.slot-phone img { inset: 6% 0 auto 0; height: auto; }
/* levou čtvrtinu notebooku zakrývá telefon → obrazovka appky začíná až vedle něj */
.slot-laptop img { left: 23.5%; width: 76.5%; }

/* Popisky v prázdných rámečcích (dokud nejsou obrázky) */
.pains-photo span, .video-box span { color: #5c6168; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: center; padding: 0 16px; }

/* Zní to povědomě? */
.pains { padding: 72px 0; background: var(--surface); }
.pains-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.pains-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--raised); display: grid; place-items: center; position: relative; }
.pains-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crosses { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.crosses li { position: relative; padding-left: 36px; color: var(--muted); font-size: 18px; }
.crosses li::before { content: '✕'; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 900; font-size: 20px; }
.pains-answer { font-size: 20px; }

/* Funkce */
.features { padding: 88px 0 40px; }
.features h2 { margin-bottom: 56px; }
.feature { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; margin: 0 auto 80px; max-width: 980px; }
.feature.reverse { grid-template-columns: 1fr 320px; }
.feature.reverse .dev, .feature.reverse .crop-phone { order: 2; }
.feature-text p { color: var(--muted); font-size: 18px; }
/* Notebook u výhod (ukázka, že appka jede i na počítači) */
.feature.wide { grid-template-columns: 1.35fr 1fr; max-width: 1100px; }
.feature.wide.reverse { grid-template-columns: 1fr 1.35fr; }
.feature.wide.reverse .dev { order: 2; }
/* Tablet u jedné výhody */
.feature.tab { grid-template-columns: 520px 1fr; max-width: 1100px; }
/* Výhody: velký telefon, vidět jen horní dvě třetiny, spodek se ztrácí do pozadí */
.crop-phone { width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 869 / 1200; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.crop-phone .dev-phone { max-width: none; }
/* Tablet s chatem: velký, vidět horní polovina */
.crop-tablet { width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1086 / 860; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.crop-tablet .dev-tablet { max-width: none; }
/* Výhody: velký notebook se sestavou – přesahuje za okraj stránky, ať jsou jména čitelná */
.bleed { position: relative; min-width: 0; }
.bleed .dev-laptop { max-width: none; width: 135%; }
.features { overflow-x: clip; }
@media (min-width: 961px) {
  .feature.wide:has(.bleed) { grid-template-columns: 1fr 1.25fr; max-width: 1160px; }
  .feature.wide.reverse .bleed { order: 2; }
  .feature:has(.crop-phone) { grid-template-columns: 380px 1fr; }
  .feature.reverse:has(.crop-phone) { grid-template-columns: 1fr 380px; }
}
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border); font-weight: 700; font-size: 15px; }
.badges span { font-size: 20px; }
/* Skutečná zařízení u výhod (fotky od ChatGPT, displej vystřižený, obrazovka appky leží pod ním) */
.dev { position: relative; width: 100%; margin: 0 auto; }
.dev-img { position: relative; z-index: 2; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); }
.dev-phone { max-width: 300px; }
.dev-phone .slot { left: 8.4%; top: 5.14%; width: 83.31%; height: 89.72%; border-radius: 11% / 5%; }
/* obsah appky začíná pod výřezem fotoaparátu (jako stavový řádek iPhonu) */
.dev-phone .slot { background: #121316; }
.dev-phone .slot img { inset: 6% 0 auto 0; height: auto; }
.dev-laptop { max-width: 640px; }
.dev-laptop .slot { left: 14.19%; top: 12.3%; width: 71.68%; height: 64.36%; }
.dev-tablet { max-width: 420px; }
.dev-tablet .slot { left: 11.79%; top: 8.36%; width: 76.8%; height: 81.63%; border-radius: 3%; }
.dev .slot span { text-align: center; padding: 0 12px; }

.mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mini li { position: relative; padding-left: 28px; }
.mini li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }

/* Správci */
.admins { padding: 72px 0; background: var(--surface); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.ico { font-size: 30px; margin-bottom: 10px; }

/* A to není všechno */
.more { padding: 88px 0; }
.more-lead { margin: 0 auto 40px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.more-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.more-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.more-ico { font-size: 24px; flex: none; width: 32px; text-align: center; }
.more-text { flex: 1; }
.tag { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--muted); border: 1.5px solid var(--border); }
.tag-soon { color: var(--orange); border-color: var(--orange); }
.tag-now { color: #fff; background: var(--green); border-color: var(--green); width: 28px; height: 28px; padding: 0; display: grid; place-items: center; font-size: 15px; }

/* Jak začít */
.steps { padding: 88px 0; }
.steps-list { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.steps-list p { color: var(--muted); margin: 0; }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); font-weight: 900; font-size: 20px; margin-bottom: 14px; }

/* Video */
.video { padding: 40px 0 88px; }
.video-box { margin: 32px auto 0; max-width: 860px; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; }

/* Zdarma */
.free { padding: 56px 0; background: linear-gradient(120deg, #1d6e45, #2a8d5a); }
.free-in { text-align: center; }
.free h2 { margin-bottom: 8px; }
.free p { font-size: 20px; margin: 0; }

/* Otázky */
.faq { padding: 88px 0; }
.faq-in { max-width: 820px; }
.faq h2 { margin-bottom: 32px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 18px; list-style: none; position: relative; padding-right: 52px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 22px; top: 14px; font-size: 26px; color: var(--red); }
details[open] summary::after { content: '–'; }
details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Závěr a patička */
.final { padding: 96px 0; background: var(--surface); }
.final .lead { margin: 0 auto 28px; }
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.footer nav { display: flex; gap: 20px; margin-left: auto; }
.footer p { margin: 0; }
.footer a { color: var(--muted); }

/* Tablet */
@media (max-width: 960px) {
  .feature.tab { grid-template-columns: 1fr; gap: 32px; }
  .feature.wide, .feature.wide.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature.wide.reverse .dev, .feature.wide.reverse .bleed { order: 0; }
  .hero-in, .pains-in { grid-template-columns: 1fr; }
  .showcase-wrap { max-width: 560px; margin: 8px auto 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .more-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .topbar-in .btn-small { margin-left: auto; }
}

/* Mobil */
@media (max-width: 640px) {
  /* notebook přes okraj displeje: vidět je hlavně první tým */
  .bleed .dev-laptop { width: 210%; }
  body { font-size: 16px; }
  .hero { padding: 28px 0 40px; }
  .checks li { font-size: 17px; }
  .cta-block { display: flex; }
  .cta-row .btn { flex: 1 1 100%; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .feature.reverse .dev, .feature.reverse .crop-phone { order: 0; }
  .feature.wide, .feature.wide.reverse, .feature.tab { grid-template-columns: 1fr; }
  .dev-tablet { max-width: 320px; }
  .dev-phone { max-width: 240px; }
  .cards, .steps-list { grid-template-columns: 1fr; }
  .footer nav { margin-left: 0; }
}
