/* Samostatný vizuální styl pro jirisedek.com/chogan — nenavazuje na hlavní web
   (bez headeru/patičky hlavního webu). Paleta a vzory podle designového
   podkladu z 20.11.2026 (artefakt + PDF leták "Essence Tribe") —
   viz memory/jirisedek-chogan-design.md. */

:root {
  --purple: #605B97;
  --deep: #4A4580;
  --ink: #2E2A5A;
  --night: #14132A;
  --red: #E3222B;
  --line: #E4E2EE;
  --soft: #5D5A7A;
  --tint: #F3F2F8;
  --gold: #E3B42D;
  --paper: #FAF8F3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Montserrat, system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0 0; }
.h2 { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(24px,3vw,32px); font-weight: 900; text-transform: uppercase; line-height: 1.15; }
.h2::before { content: ""; width: 5px; height: 28px; background: var(--red); border-radius: 2px; flex: none; margin-top: 3px; }
.sub { color: var(--soft); font-size: 16px; margin-top: 10px; max-width: 700px; }

/* --- úvod: eyebrow + H1 + text + video (obsah beze změny, jen nový vizuál) --- */
.chg-intro { padding-top: 56px; text-align: center; }
.chg-intro .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--purple); }
.chg-intro h1 { font-size: clamp(30px,4.6vw,48px); font-weight: 900; line-height: 1.12; text-transform: uppercase; margin-top: 14px; color: var(--ink); }
.chg-intro h1 .accent { color: var(--purple); }
.chg-intro p { font-size: 17px; color: var(--soft); max-width: 640px; margin: 18px auto 0; }

/* --- video embed (stejný markup/JS jako zbytek webu, přebarveno) --- */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(46,42,90,.18); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vimeo-play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; border: none; background: transparent; cursor: pointer; padding: 0; }
.vimeo-play-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,var(--purple),var(--deep)); color: #fff; font-size: 24px; opacity: 1; transform: scale(1); transition: opacity .2s ease, transform .2s ease; }
.vimeo-play:hover .vimeo-play-icon { transform: scale(1.06); }
.vimeo-embed.is-playing .vimeo-play-icon { opacity: 0; }
.vimeo-embed.is-playing .vimeo-play:hover .vimeo-play-icon { opacity: 1; }
.vimeo-volume-wrap { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.vimeo-volume-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(20,19,42,.6); backdrop-filter: blur(6px); font-size: 15px; color: #fff; }
.vimeo-volume { width: 0; opacity: 0; margin-left: 0; accent-color: var(--purple); cursor: pointer; transition: width .2s ease, opacity .2s ease; overflow: hidden; }
.vimeo-volume-wrap:hover .vimeo-volume, .vimeo-volume-wrap:focus-within .vimeo-volume { width: 90px; opacity: 1; }

/* --- co s námi získáte: 4 ikonové položky --- */
.feats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 34px; }
.feat { text-align: left; }
.feat .fi { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg,var(--purple),var(--deep)); display: flex; align-items: center; justify-content: center; }
.feat .fi img { width: 26px; height: 26px; }
.feat b { display: block; font-size: 16px; font-weight: 800; margin-top: 14px; }
.feat span { display: block; font-size: 14px; color: var(--soft); margin-top: 4px; }

/* --- náš tým v číslech: 3 stat boxy --- */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; }
.stat-box { border: 1.5px solid var(--line); border-radius: 16px; padding: 24px 22px; background: #fff; }
.stat-box b { display: block; font-size: 32px; font-weight: 900; color: var(--purple); line-height: 1.1; }
.stat-box span { display: block; font-size: 14px; color: var(--soft); margin-top: 6px; }

/* --- na čem stavíme: 4 fotokarty s číslovanou bublinou --- */
.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 34px; }
.pillar .pic { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: var(--tint); }
.pillar .pic img { width: 100%; height: 100%; object-fit: cover; }
/* Bublina je SOUROZENEC .pic (ne potomek) a přes záporný margin si "sedne" přesně
   na hranici foto/text — kdyby byla uvnitř .pic (overflow:hidden), spodní půlka by se neviditelně ořezala. */
.pillar .num { position: relative; z-index: 2; margin: -19px 0 0 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(227,34,43,.35); }
.pillar b { display: block; font-size: 16px; font-weight: 800; margin-top: 12px; }
.pillar p { font-size: 14px; color: var(--soft); margin-top: 6px; }

/* --- jak s námi můžete spolupracovat: 3 role --- */
.roles { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 30px; }
.role { background: var(--tint); border-radius: 18px; padding: 26px; }
.role .ri { width: 48px; height: 48px; border-radius: 12px; background: var(--purple); display: flex; align-items: center; justify-content: center; }
.role .ri img { width: 24px; height: 24px; }
.role b { display: block; font-size: 17px; font-weight: 800; margin-top: 16px; }
.role p { font-size: 14px; color: var(--soft); margin-top: 6px; }

/* --- produktové oblasti: grid 8 produktových karet --- */
.prod-head { background: linear-gradient(120deg,var(--ink),var(--purple)); border-radius: 18px; padding: 30px 32px; color: #fff; margin-top: 34px; }
.prod-head h3 { font-size: clamp(20px,2.6vw,26px); font-weight: 900; text-transform: uppercase; }
.prod-head p { opacity: .85; margin-top: 8px; font-size: 14px; }
.prods { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 20px; }
.prod { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.prod .pic { aspect-ratio: 16/9; background: var(--tint); }
.prod .pic img { width: 100%; height: 100%; object-fit: cover; }
.prod .tx { padding: 16px 18px 20px; }
.prod b { display: block; font-size: 16px; font-weight: 800; }
.prod p { font-size: 14px; color: var(--soft); margin-top: 4px; }

/* --- 6 video referencí (zatím placeholder — stejné úvodní video) --- */
.refs { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px 22px; margin-top: 34px; }
.refs .video-embed { aspect-ratio: 9/16; border-radius: 14px; box-shadow: 0 10px 28px rgba(46,42,90,.14); }
.refs .video-embed.wide { aspect-ratio: 16/9; }
.refs .ref-name { text-align: center; margin-top: 12px; font-size: 15px; font-weight: 800; color: var(--ink); }
.refs .ref-name span { display: block; font-weight: 500; font-size: 13px; color: var(--soft); margin-top: 2px; }
/* Vlastní jednotně oříznutý náhled (podle obličeje) — nad iframem, dokud se video nespustí.
   Skrývá se natrvalo (.has-started), ne při každé pauze — jinak by při zastavení videa
   blikavě přeskočilo zpátky na úvodní fotku místo zůstání na aktuálním snímku. */
.ref-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .25s ease; }
.vimeo-embed.has-started .ref-poster { opacity: 0; pointer-events: none; }

/* --- finální CTA: First Look --- */
.final-cta { margin: 80px 0 0; background: linear-gradient(135deg,#2E2A5A 0%,#1E1C36 60%,#14132A 100%); color: #fff; border-radius: 24px; padding: 50px 40px; text-align: center; }
.final-cta .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #C9C4EE; }
.final-cta h2 { font-size: clamp(22px,3vw,30px); font-weight: 900; text-transform: uppercase; margin-top: 12px; }
.final-cta p { opacity: .85; margin: 14px auto 0; max-width: 520px; }
.final-cta .btn-cta { display: inline-flex; margin-top: 26px; }
.final-cta .muted-link { display: block; margin-top: 18px; font-size: 14px; opacity: .75; }
.final-cta .muted-link a { text-decoration: underline; }

/* --- obecné CTA tlačítko --- */
.btn-cta { display: inline-flex; align-items: center; gap: 8px; padding: 16px 30px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; background: linear-gradient(90deg,var(--purple),var(--deep)); color: #fff; border: none; cursor: pointer; transition: .2s; }
.btn-cta:hover { filter: brightness(1.08); }

/* --- email gate: popup s povinným e-mailem --- */
.email-gate { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; background: rgba(20,19,42,.72); backdrop-filter: blur(3px); padding: 20px; }
.email-gate[hidden] { display: none; }
.email-gate-box { background: #fff; border-radius: 20px; max-width: 420px; width: 100%; padding: 36px 32px; text-align: center; box-shadow: 0 30px 70px rgba(20,19,42,.4); }
.email-gate-box .eg-icon { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg,var(--purple),var(--deep)); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.email-gate-box h3 { font-size: 19px; font-weight: 900; text-transform: uppercase; }
.email-gate-box p { font-size: 14px; color: var(--soft); margin-top: 10px; }
.email-gate-box form { margin-top: 20px; }
.email-gate-box input[type="email"] { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line); font-family: inherit; font-size: 15px; }
.email-gate-box input[type="email"]:focus { outline: none; border-color: var(--purple); }
.email-gate-box button { width: 100%; justify-content: center; margin-top: 12px; border: none; }
.email-gate-box .eg-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.email-gate-box .eg-msg.err { color: var(--red); }
.email-gate-box .eg-fine { font-size: 11px; color: var(--soft); opacity: .8; margin-top: 14px; }
body.eg-locked { overflow: hidden; }

/* --- obecné drobnosti sdílené napříč standalone stránkami (/aktivace apod.) --- */
.muted { color: var(--soft); font-size: 13px; }
.card { background: var(--tint); border: 1.5px solid var(--line); border-radius: 18px; padding: 34px; }
.card .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); }
.card h2 { margin-top: 8px; font-size: clamp(22px,2.6vw,28px); font-weight: 900; text-transform: uppercase; }
.card p { color: var(--soft); margin-top: 10px; }
.card .btn-cta { margin-top: 18px; }

/* --- krokový návod s rozbalovacími kroky (/aktivace) --- */
.phase { margin-bottom: 48px; }
.phase:last-child { margin-bottom: 0; }
.phase-head { margin-bottom: 20px; }
.phase-head .phase-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); }
.phase-head h2 { margin-top: 4px; font-size: clamp(22px,2.6vw,28px); font-weight: 900; text-transform: uppercase; }
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.step[open] { border-color: var(--purple); }
.step summary { counter-increment: step; list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.step summary::-webkit-details-marker { display: none; }
.step summary::after { content: "+"; margin-left: auto; font-size: 24px; line-height: 1; color: var(--purple); transition: transform .2s ease; flex: none; }
.step[open] summary::after { transform: rotate(45deg); }
.step-num { width: 40px; height: 40px; flex: none; border-radius: 50%; background: linear-gradient(135deg,var(--purple),var(--deep)); color: #fff; font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.step-num::before { content: counter(step); }
.step-title { font-weight: 800; }
.step-body { padding: 0 22px 22px; }
.step-body p { color: var(--soft); margin-bottom: 16px; }
.step-body img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
@media (max-width: 640px) {
  .step summary { padding: 16px; gap: 12px; }
  .step-body { padding: 0 16px 16px; }
}

/* --- lightbox (zvětšení screenshotů po kliknutí) — logika sdílená v app.js --- */
.lightbox { position: fixed; inset: 0; background: rgba(20,19,42,.92); display: none; align-items: center; justify-content: center; padding: 32px; z-index: 200; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* --- /welcome: uvítací stránka nových členů týmu — klasický rozměr webu
   (stejný `.wrap`/paper vzhled jako /chogan a /aktivace), jen obsah/sled
   sekcí podle šablony boards.com, kterou tým Essence Tribe používá. --- */
.welcome-hero { position: relative; background: linear-gradient(120deg,var(--ink),var(--purple)); border-radius: 20px; padding: 40px 44px; color: #fff; overflow: hidden; }
.welcome-hero-logo { height: 34px; width: auto; }
.welcome-hero-tag { position: absolute; top: 44px; right: 44px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.welcome-hero h1 { margin-top: 28px; font-size: clamp(28px,4.4vw,40px); font-weight: 900; text-transform: uppercase; line-height: 1.18; }
.welcome-hero h1 span { display: block; font-weight: 700; opacity: .7; }
.welcome-signature { margin-top: 22px; font-weight: 800; }
.welcome-steps { list-style: none; margin-top: 22px; display: grid; gap: 16px; }
.welcome-steps li { display: flex; gap: 14px; align-items: flex-start; }
.welcome-steps .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,var(--purple),var(--deep)); color: #fff; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.welcome-steps p { margin: 0; color: var(--soft); font-size: 14px; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-top: 26px; }
.welcome-products { margin-top: 20px; display: flex; justify-content: center; }
.welcome-products img { max-width: 420px; border-radius: 14px; border: 1px solid var(--line); cursor: zoom-in; box-shadow: 0 10px 28px rgba(46,42,90,.12); }
@media (max-width: 480px) {
  .welcome-hero { padding: 28px 24px; }
  .welcome-hero-tag { top: 32px; right: 24px; }
}

@media (max-width: 900px) {
  .feats, .stats-row, .pillars, .roles, .prods, .refs { grid-template-columns: 1fr 1fr; }
  .final-cta { padding: 36px 24px; }
}
@media (max-width: 600px) {
  .feats, .stats-row, .pillars, .roles, .prods, .refs { grid-template-columns: 1fr; }
  section { padding-top: 56px; }
  /* ruční zalomení řádků (viz .br-desktop) jen pro širší obrazovky — na mobilu ať text zalamuje přirozeně */
  br.br-desktop { display: none; }
}
