/* Inovačný Cirkus – vstupná brána + predajná stránka archívu */
:root {
  --bg: #0b0d12;
  --bg-2: #12151d;
  --panel: #161a24;
  --panel-2: #1d2230;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f1ea;
  --muted: #a3aabb;
  --orange: #ff5b1f;
  --orange-2: #ff7a45;
  --lime: #c8e84a;
  --gold: #ffd88a;
  --display: 'Archivo Black', 'Inter', sans-serif;
  --label: 'Bebas Neue', 'Inter', sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.55; overflow-x: hidden; }
a { color: var(--lime); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Pozadie: šapitó v noci */
.stage-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse 90% 60% at 50% -10%, #3a1406 0%, #170a07 45%, var(--bg) 80%); }
.rays { position: absolute; left: 50%; top: -30vh; width: 240vmax; height: 240vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(rgba(255, 91, 31, .07) 0 5deg, transparent 5deg 15deg); animation: rays 160s linear infinite; }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.spot { position: absolute; top: -10vh; width: 46vw; height: 120vh; background: linear-gradient(180deg, rgba(255, 216, 138, .16), transparent 75%); filter: blur(24px); transform-origin: top center; }
.spot-l { left: 4vw; transform: rotate(-18deg); animation: sweep-l 11s ease-in-out infinite alternate; clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); }
.spot-r { right: 4vw; transform: rotate(18deg); animation: sweep-r 13s ease-in-out infinite alternate; clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); }
@keyframes sweep-l { to { transform: rotate(-6deg); } }
@keyframes sweep-r { to { transform: rotate(8deg); } }
.star { position: absolute; color: var(--gold); opacity: .25; animation: twinkle 4s ease-in-out infinite; }
.s1 { left: 12%; top: 22%; font-size: 14px; }
.s2 { right: 14%; top: 18%; font-size: 18px; animation-delay: -1s; }
.s3 { left: 20%; bottom: 20%; font-size: 10px; animation-delay: -2s; }
.s4 { right: 22%; bottom: 28%; font-size: 12px; animation-delay: -3s; }
@keyframes twinkle { 50% { opacity: .7; transform: scale(1.3); } }

.brandbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 20px 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); text-transform: uppercase; font-size: .95rem; }
.logo-tent { width: 40px; height: 29px; color: var(--orange); }
.bb-link { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.bb-link:hover { color: var(--text); }

.eyebrow { font-family: var(--label); letter-spacing: 5px; color: var(--lime); font-size: 1.05rem; margin-bottom: 14px; }

/* Tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 100px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-xl { padding: 19px 34px; font-size: 1.08rem; }
.btn-lime { background: var(--lime); color: #0b0d12; box-shadow: 0 12px 30px rgba(200, 232, 74, .25); }
.btn-lime:hover { box-shadow: 0 16px 38px rgba(200, 232, 74, .4); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 12px 30px rgba(255, 91, 31, .35); }
.btn-orange:hover { background: var(--orange-2); box-shadow: 0 16px 40px rgba(255, 91, 31, .5); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn.is-busy { opacity: .75; cursor: progress; }

/* ── Brána ──────────────────────────────────────────────────────────────── */
.gate { max-width: 1080px; margin: 0 auto; padding: 10px 24px 80px; }
.gate.is-simple { min-height: calc(100vh - 90px); display: grid; place-items: center; }
.gate-hero { text-align: center; padding: 30px 0 40px; transition: opacity .35s, transform .35s, max-height .45s; max-height: 800px; }
.gate[data-at="email"] .gate-hero, .gate[data-at="code"] .gate-hero, .gate[data-at="welcome"] .gate-hero { opacity: 0; transform: translateY(-20px); max-height: 0; padding: 0; overflow: hidden; pointer-events: none; }

.speaker-ring { position: relative; width: 300px; height: 76px; margin: 0 auto 26px; }
.speaker-ring img { position: absolute; top: 0; left: calc(50% - 38px + (var(--i) - 3.5) * 36px); width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--orange); animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.speaker-ring img:nth-child(odd) { box-shadow: 0 0 0 2px var(--lime); }
@keyframes bob { 50% { transform: translateY(-8px); } }

.gate-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 7.5vw, 5.4rem); line-height: .95; text-transform: uppercase; letter-spacing: -1.5px; }
.gate-title span { color: var(--orange); }
.gate-lead { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: 1.08rem; }
.gate-note { text-align: center; color: var(--gold); margin-top: 18px; }

.step { display: none; }
.step.is-active { display: block; animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Vstupenky na výber */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ticket-choice {
  --c: var(--lime);
  position: relative; display: grid; grid-template-columns: 86px 1fr; text-align: left; text-decoration: none; color: var(--text);
  min-height: 240px; border-radius: 22px; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), box-shadow .3s, border-color .3s;
  /* výrezy perforácie */
  -webkit-mask: radial-gradient(circle 14px at 86px 0, transparent 13.5px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 86px 100%, transparent 13.5px, #000 14px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 14px at 86px 0, transparent 13.5px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 86px 100%, transparent 13.5px, #000 14px) bottom / 100% 51% no-repeat;
}
.ticket-choice.tc-buy { --c: var(--orange); }
.ticket-choice:hover:not(:disabled) { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px var(--c); }
.ticket-choice.tc-buy:hover { transform: translateY(-6px) rotate(.6deg); }
.tc-stub { position: relative; display: grid; place-items: center; background: var(--c); color: #0b0d12; border-right: 2px dashed rgba(0, 0, 0, .35); }
.tc-admit { font-family: var(--label); font-size: 1.5rem; letter-spacing: 3px; line-height: 1; text-align: center; transform: rotate(-90deg); white-space: nowrap; }
.tc-main { display: flex; flex-direction: column; padding: 26px 26px 24px; background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%); }
.tc-kicker { font-family: var(--label); letter-spacing: 3px; color: var(--c); font-size: 1rem; }
.tc-title { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.18; margin: 10px 0 18px; }
.tc-cta { margin-top: auto; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.tc-cta i { font-style: normal; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #0b0d12; transition: transform .25s; }
.ticket-choice:hover .tc-cta i { transform: translateX(5px); }

/* Karta formulára */
.gate-card { position: relative; max-width: 480px; margin: 20px auto 0; padding: 36px 34px 30px; border-radius: 26px; background: rgba(22, 26, 36, .88); border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); text-align: center; }
.gate.is-simple .gate-card { margin: 0; width: 100%; }
.gate-card::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: repeating-linear-gradient(90deg, var(--orange) 0 18px, #fff 18px 36px); }
.back { position: absolute; left: 18px; top: 16px; font-size: .84rem; font-weight: 600; color: var(--muted); padding: 6px 8px; border-radius: 8px; }
.back:hover { color: var(--text); }
.gc-icon { font-size: 2.6rem; margin: 8px 0 6px; }
.gc-icon.envelope { animation: bob 2.4s ease-in-out infinite; }
.gc-title { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin-bottom: 10px; }
.gc-text { color: var(--muted); margin-bottom: 22px; }
.gc-text strong { color: var(--text); overflow-wrap: anywhere; }
.gc-small { font-size: .84rem; color: var(--muted); margin-top: 16px; }
.field { display: block; text-align: left; margin-bottom: 16px; }
.field-label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.field input { width: 100%; height: 56px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 600 1.05rem var(--font); outline: 0; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 232, 74, .15); }
.form-msg { min-height: 1.4em; margin-top: 12px; color: #ff9a76; font-size: .9rem; font-weight: 600; }
.linkish { color: var(--lime); text-decoration: underline; font-weight: 600; }
.linkish:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.nf-actions { display: grid; gap: 10px; }

.otp { display: flex; justify-content: center; gap: 8px; margin: 4px 0 22px; }
.otp input { width: 52px; height: 64px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--lime); text-align: center; font: 800 1.8rem 'Inter', monospace; outline: 0; caret-color: var(--lime); transition: border-color .15s, transform .15s, box-shadow .15s; }
.otp input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 232, 74, .15); transform: translateY(-2px); }
.otp input.filled { border-color: rgba(200, 232, 74, .55); }
.otp input:nth-child(3) { margin-right: 10px; }
.shake .otp { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Vstup – opona */
.welcome { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; text-align: center; background: #070809; overflow: hidden; }
.curtain { position: absolute; top: 0; bottom: 0; width: 51%; background: repeating-linear-gradient(90deg, #a3230b 0 34px, #c2310f 34px 56px, #8a1c07 56px 80px); box-shadow: inset 0 -60px 80px rgba(0, 0, 0, .45); animation: open 1.4s cubic-bezier(.7, 0, .3, 1) .35s forwards; z-index: 2; }
.curtain-l { left: 0; transform-origin: left; }
.curtain-r { right: 0; transform-origin: right; animation-name: open-r; }
@keyframes open { to { transform: translateX(-100%) scaleX(.6); } }
@keyframes open-r { to { transform: translateX(100%) scaleX(.6); } }
.welcome-kicker { font-family: var(--label); letter-spacing: 6px; color: var(--gold); font-size: 1.2rem; }
.welcome-title { font-family: var(--display); font-size: clamp(2.4rem, 8vw, 5rem); text-transform: uppercase; background: radial-gradient(circle, rgba(255, 216, 138, .18), transparent 70%); padding: 0 30px; }

/* Ďakujeme + konfety */
.thanks-card { overflow: hidden; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: calc(var(--i) * 4.2%); width: 8px; height: 14px; border-radius: 2px; background: var(--orange); animation: fall 3.2s linear infinite; animation-delay: calc(var(--i) * -.13s); opacity: .8; }
.confetti i:nth-child(3n) { background: var(--lime); }
.confetti i:nth-child(3n+1) { background: var(--gold); width: 6px; height: 6px; border-radius: 50%; }
@keyframes fall { to { transform: translateY(620px) rotate(720deg); } }

/* ── Predajná stránka ───────────────────────────────────────────────────── */
.sales { max-width: 1200px; margin: 0 auto; padding: 10px 24px 100px; }
.sales-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 40px 0 70px; }
.sales-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: .95; letter-spacing: -1.5px; }
.sales-title span { color: var(--orange); }
.sales-lead { color: var(--muted); font-size: 1.12rem; margin: 22px 0 30px; max-width: 580px; }
.sh-facts { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; }
.sh-facts li { padding: 14px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); min-width: 130px; }
.sh-facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: var(--lime); line-height: 1.05; }
.sh-facts span { font-size: .82rem; color: var(--muted); }

.price-ticket { position: relative; border-radius: 26px; background: #fbf8f1; color: #0e1116; box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .06); overflow: hidden; transform: rotate(1.2deg); transition: transform .4s; }
.price-ticket:hover { transform: rotate(0); }
.pt-top { padding: 30px 30px 26px; text-align: center; background: var(--orange); color: #fff; background-image: repeating-conic-gradient(from 0deg at 50% 130%, rgba(255, 255, 255, .1) 0 6deg, transparent 6deg 14deg); }
.pt-kicker { display: block; font-family: var(--label); letter-spacing: 4px; font-size: 1.05rem; opacity: .9; }
.pt-price { display: block; font-family: var(--display); font-size: 4rem; line-height: 1; margin: 6px 0; }
.pt-note { font-size: .85rem; opacity: .9; }
.pt-perf { height: 0; border-top: 3px dashed rgba(14, 17, 22, .18); margin: 0 22px; position: relative; }
.pt-perf::before, .pt-perf::after { content: ''; position: absolute; top: -16px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); }
.pt-perf::before { left: -38px; } .pt-perf::after { right: -38px; }
.pt-list { list-style: none; padding: 24px 30px 10px; display: grid; gap: 10px; }
.pt-list li { position: relative; padding-left: 30px; font-weight: 600; font-size: .96rem; }
.pt-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: .72rem; font-weight: 900; }
.price-ticket .btn { margin: 14px 30px 0; width: calc(100% - 60px); }
.pt-secure { text-align: center; font-size: .78rem; color: #5b6272; padding: 0 24px; margin-top: 10px; }
.pt-secure:last-child { padding-bottom: 26px; }

.sales-block { padding: 50px 0; border-top: 1px solid var(--line); }
.sb-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.sb-lead { color: var(--muted); margin-bottom: 26px; }
.speaker-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 26px; }
.sw-item { border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .25s; }
.sw-item:hover { transform: translateY(-4px); }
.sw-item img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.9); }
.sw-item figcaption { padding: 12px 14px 14px; }
.sw-item strong { display: block; font-size: .92rem; }
.sw-item span { display: block; font-size: .76rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }

.locked-program { list-style: none; display: grid; gap: 8px; }
.lp-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.lp-time { font-family: var(--label); font-size: 1.4rem; letter-spacing: 1px; color: var(--gold); }
.lp-tag { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--orange-2); }
.lp-title { display: block; font-weight: 700; }
.lp-who { display: block; font-size: .82rem; color: var(--muted); }
.lp-lock { opacity: .5; }
.kind-keynote .lp-tag { color: var(--orange-2); }
.kind-workshop .lp-tag { color: var(--lime); }

.sales-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { padding: 26px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.why-card span { font-size: 2rem; }
.why-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; margin: 10px 0 6px; }
.why-card p { color: var(--muted); font-size: .94rem; }

.sales-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.sales-faq summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.sales-faq summary::after { content: '+'; color: var(--lime); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.sales-faq details[open] summary::after { transform: rotate(45deg); }
.sales-faq p { color: var(--muted); margin-top: 10px; max-width: 760px; }
.sales-final { text-align: center; padding: 70px 0 20px; }
.sf-small { color: var(--muted); margin-top: 16px; font-size: .92rem; }

@media (max-width: 900px) {
  .choice-grid { grid-template-columns: 1fr; }
  .ticket-choice { min-height: 200px; }
  .sales-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 10px; }
  .price-ticket { transform: none; max-width: 460px; margin: 0 auto; width: 100%; }
  .sales-why { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brandbar { padding: 16px; }
  .brand span { display: none; }
  .gate, .sales { padding-left: 16px; padding-right: 16px; }
  .speaker-ring { transform: scale(.72); margin-bottom: 10px; }
  .ticket-choice { grid-template-columns: 62px 1fr; -webkit-mask: none; mask: none; }
  .tc-admit { font-size: 1.15rem; }
  .tc-main { padding: 20px 18px; }
  .gate-card { padding: 32px 20px 24px; }
  .otp { gap: 6px; }
  .otp input { width: 44px; height: 56px; font-size: 1.5rem; }
  .otp input:nth-child(3) { margin-right: 4px; }
  .lp-item { grid-template-columns: 54px 1fr; padding: 12px 14px; }
  .lp-lock { display: none; }
  .pt-price { font-size: 3.2rem; }
  .speaker-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
