/* "Ťuknutí", "Vstupenky do Apple Wallet" and "Apple Intelligence" on the home page. The demos
   are drawn by extras.js. */

/* ---------- Bump ---------- */

.bump {
  position: relative;
  margin-top: clamp(72px, 11vw, 140px);
  padding: clamp(64px, 9vw, 110px) 0;
  color: #fff;
  background: linear-gradient(180deg, #0a1166 0%, #1529da 55%, #2343ff 100%);
  overflow: hidden;
}
.bump .eyebrow { color: var(--lime); }
.bump .lead { color: rgba(255, 255, 255, 0.78); }
.bump .display { color: #fff; }
.bump-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .bump-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.bump-copy { min-width: 0; }
.bump-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bump-points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.bump-points li > .icon {
  width: 44px; height: 44px; padding: 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16); color: #fff;
}
.bump-points b { display: block; font-size: 17px; font-weight: 850; letter-spacing: -0.01em; margin-top: 2px; }
.bump-points span { display: block; color: rgba(255, 255, 255, 0.75); font-size: 15px; margin-top: 3px; }

.bump-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  aspect-ratio: 1 / 1.18;
  display: grid;
  place-items: center;
}
@media (min-width: 560px) { .bump-stage { aspect-ratio: 1 / 1.05; } }
.bump-radar { position: absolute; inset: 2% 6% 30%; display: grid; place-items: center; }
@media (min-width: 560px) { .bump-radar { inset: 6% 6% 22%; } }
.bump-radar i {
  position: absolute;
  width: 34%; aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: bump-ring 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.bump-radar i:nth-child(2) { animation-delay: 0.85s; }
.bump-radar i:nth-child(3) { animation-delay: 1.7s; }
@keyframes bump-ring {
  from { transform: scale(0.6); opacity: 0.9; }
  to { transform: scale(2.8); opacity: 0; }
}
.bump-stage.near .bump-radar i { animation-duration: 1.2s; }
.bump-stage.done .bump-radar i { animation-duration: 3.4s; border-color: rgba(198, 242, 78, 0.55); }

.bump-phone {
  position: absolute;
  top: 10%;
  width: 26%;
  aspect-ratio: 9 / 17;
  border-radius: 26px;
  background: linear-gradient(160deg, #1d2a8f, #0b1060);
  border: 4px solid #0b0b12;
  box-shadow: 0 24px 50px rgba(0, 0, 20, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: grid; place-items: center;
  transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.5, 1), opacity 0.4s;
}
.bump-phone::before {
  content: ""; position: absolute; top: 7px; width: 34%; height: 7px; border-radius: 99px; background: #0b0b12;
}
.bump-phone img {
  width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: #fff; border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.bump-phone.me { left: 14%; transform: rotate(-8deg); }
.bump-phone.them { right: 14%; transform: translateX(40%) rotate(8deg); opacity: 0; }
.bump-stage.near .bump-phone.them { opacity: 1; transform: translateX(0) rotate(8deg); }
.bump-stage.touch .bump-phone.me { transform: translateX(46%) rotate(-3deg); }
.bump-stage.touch .bump-phone.them { opacity: 1; transform: translateX(-46%) rotate(3deg); }
.bump-stage.done .bump-phone.me { transform: translateX(30%) rotate(-6deg); }
.bump-stage.done .bump-phone.them { opacity: 1; transform: translateX(-30%) rotate(6deg); }

.bump-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 55%);
  opacity: 0; pointer-events: none;
}
.bump-stage.flash .bump-flash { animation: bump-flash 0.6s ease-out; }
@keyframes bump-flash { from { opacity: 1; } to { opacity: 0; } }

.bump-words {
  position: absolute; left: 0; right: 0; bottom: 18%;
  text-align: center;
  display: grid; gap: 4px;
}
@media (min-width: 560px) { .bump-words { bottom: 15%; } }
.bump-words b { font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; letter-spacing: -0.03em; }
.bump-words span { color: rgba(255, 255, 255, 0.78); font-weight: 600; font-size: 15px; }
.bump-go {
  position: absolute; bottom: 2%;
  font: inherit; font-weight: 850; font-size: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--blue);
  box-shadow: 0 12px 30px rgba(0, 0, 30, 0.3);
  transition: transform 0.2s cubic-bezier(.3,1.6,.5,1);
}
.bump-go .icon { width: 18px; height: 18px; }
.bump-go:active { transform: scale(0.94); }
.bump-go:disabled { opacity: 0.6; cursor: default; }
.bump-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bump-confetti i {
  position: absolute; top: 40%; left: 50%;
  width: 8px; height: 12px; border-radius: 2px;
  animation: bump-confetti 1.4s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes bump-confetti {
  from { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

/* ---------- Tickets ---------- */

.tickets-demo { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .tickets-demo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; } }
.ticket-designer {
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
  display: grid; gap: 14px;
}
.ticket-try { margin: 0; font-weight: 850; }
.ticket-name { display: grid; gap: 6px; }
.ticket-name span { font: 700 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); }
.ticket-name input {
  font: inherit; font-size: 17px; font-weight: 750;
  width: 100%; min-width: 0;
  height: 48px; padding: 0 16px;
  border: 0; border-radius: 14px;
  background: var(--fill); color: var(--ink);
}
.ticket-palettes, .ticket-formats { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-palettes button {
  width: 44px; height: 34px; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; outline: 1px solid var(--line);
  display: grid; place-items: end; padding: 3px 6px;
  font: 800 11px var(--display);
  transition: transform 0.2s cubic-bezier(.3,1.6,.5,1);
}
.ticket-palettes button.on { border-color: var(--blue); outline: 0; transform: scale(1.06); }
.ticket-formats button {
  font: inherit; font-size: 13px; font-weight: 800;
  height: 34px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  border: 0; background: var(--fill); color: var(--ink);
}
.ticket-formats button.on { background: var(--ink); color: var(--surface); }

#ticket-pass { width: 100%; max-width: 400px; justify-self: center; box-sizing: border-box; }
.pass {
  position: relative;
  border-radius: 20px;
  padding: 18px 18px 20px;
  box-shadow: 0 18px 40px rgba(14, 14, 20, 0.22);
  transition: background 0.4s, color 0.4s;
  margin-top: 6px;
}
.pass.ticket::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 52px; height: 26px; margin-left: -26px;
  border-radius: 50%; background: var(--surface);
}
.pass-head { display: flex; align-items: flex-start; gap: 9px; }
.pass-head svg.mark { width: 17px; height: 20px; flex: none; margin-top: 2px; }
.pass-head .org { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-head .when { text-align: right; }
.pass-label { font-size: 10px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.pass-value { font-size: 15px; font-weight: 550; }
.pass-title { margin: 16px 0 12px; }
.pass-title .pass-value { font-size: clamp(22px, 3vw, 28px); font-weight: 850; letter-spacing: -0.02em; line-height: 1.08; overflow-wrap: anywhere; }
.pass-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.pass-fields > div:nth-child(even) { text-align: right; }
.pass-fields + .pass-fields { margin-top: 10px; }
.pass-fields.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.pass-fields.four > div:nth-child(even) { text-align: left; }
.pass-fields.four > div:last-child { text-align: right; }
.pass-code {
  margin: 18px auto 0; width: fit-content; max-width: 100%;
  background: #fff; border-radius: 10px; padding: 12px 12px 8px; text-align: center; color: #111;
}
.pass-code svg { display: block; margin: 0 auto; }
.pass-code p { margin: 6px 0 0; font: 600 11px var(--mono); letter-spacing: 0.02em; }

.ticket-door {
  min-width: 0;
  border-radius: var(--radius);
  background: #0b0b12;
  color: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid; gap: 16px;
}
.door-head { display: flex; align-items: center; gap: 10px; }
.door-head div { flex: 1; min-width: 0; }
.door-head small { display: block; font: 700 11px var(--mono); letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.6); }
.door-head b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.door-count { font-weight: 900; font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.door-frame {
  position: relative; width: min(220px, 70%); aspect-ratio: 1; justify-self: center;
  border-radius: 28px; border: 3px dashed rgba(255, 255, 255, 0.55);
  display: grid; place-items: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.door-frame svg { width: 58%; height: auto; background: #fff; padding: 8px; border-radius: 10px; }
.door-frame.ok { border: 5px solid var(--green); box-shadow: 0 0 40px rgba(43, 217, 124, 0.45); }
.door-frame.used { border: 5px solid var(--orange); box-shadow: 0 0 40px rgba(255, 138, 61, 0.45); }
.door-frame.bad { border: 5px solid var(--pink); box-shadow: 0 0 40px rgba(255, 79, 168, 0.45); }
.door-frame .scanline {
  position: absolute; left: 10%; right: 10%; height: 3px; border-radius: 3px; top: 12%;
  background: var(--lime); box-shadow: 0 0 14px var(--lime); opacity: 0;
}
.door-frame.scanning .scanline { opacity: 1; animation: door-scan 0.7s ease-in-out; }
@keyframes door-scan { from { top: 12%; } to { top: 86%; } }
.door-result {
  min-height: 92px;
  border-radius: 22px; padding: 14px 16px;
  display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}
.door-result i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); }
.door-result i .icon { width: 24px; height: 24px; }
.door-result b { display: block; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.door-result span { display: block; font-weight: 600; opacity: 0.9; font-size: 14px; }
.door-result.ok { background: linear-gradient(160deg, #3ee08f, #1fb76f); }
.door-result.used { background: linear-gradient(160deg, #ffa060, #ff7a2a); }
.door-result.bad { background: linear-gradient(160deg, #ff6fb9, #f2348f); }
.door-next {
  font: inherit; font-weight: 850; font-size: 15px;
  height: 48px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.2s cubic-bezier(.3,1.6,.5,1);
}
.door-next .icon { width: 18px; height: 18px; }
.door-next:active { transform: scale(0.95); }

.tickets-points { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 620px) { .tickets-points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tickets-points { grid-template-columns: repeat(4, 1fr); } }
.tickets-points > div {
  background: var(--surface); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-small);
}
.tickets-points i {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 14px;
}
.tickets-points i .icon { width: 22px; height: 22px; }
.tickets-points h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.tickets-points p { margin: 0; color: var(--secondary); font-size: 15px; }

/* ---------- Apple Intelligence ---------- */

.ai-cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .ai-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-card {
  min-width: 0;
  background: var(--surface); border-radius: 28px; padding: 22px; box-shadow: var(--shadow-small);
  display: flex; flex-direction: column;
}
.ai-card > i {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 14px;
}
.ai-card > i .icon { width: 22px; height: 22px; }
.ai-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; letter-spacing: -0.02em; }
.ai-card > p { margin: 0 0 16px; color: var(--secondary); font-size: 15px; }
.ai-demo { flex: 1; border-radius: 20px; padding: 14px; min-height: 230px; font-size: 14px; }
/* Side by side: the texts take the same room, so the three demos start level and end level. */
@media (min-width: 980px) {
  .ai-card h3 { min-height: 1.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ai-card > p { min-height: 4.5em; }
}
#ai-hole { background: #0e0b17; color: #fff; }
#ai-chat, #ai-report { background: var(--background); }

.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 28px; }
.ai-chips span {
  font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(123, 92, 255, 0.2); color: #cbbcff;
  animation: ai-pop 0.35s cubic-bezier(.3,1.6,.5,1) both;
}
.ai-chips span.on { background: #7b5cff; color: #fff; }
.ai-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ai-notes li { background: #17121f; border-radius: 14px; padding: 10px 12px; }
.ai-notes li p { margin: 0; font-weight: 600; }
.ai-notes small {
  display: inline-block; margin-top: 6px; font: 700 10px var(--mono); letter-spacing: 0.1em; color: #a99bd8; min-height: 12px;
}
.ai-notes small.in { animation: ai-pop 0.35s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes ai-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

.ai-pill {
  display: flex; align-items: center; gap: 8px;
  width: fit-content; max-width: 100%;
  padding: 0 14px; height: 36px; border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--blue)); color: #fff; font-weight: 800; font-size: 13px;
  margin-bottom: 12px;
}
.ai-pill .icon { width: 14px; height: 14px; }
.ai-pill em { font-style: normal; background: rgba(255, 255, 255, 0.25); border-radius: 99px; padding: 1px 7px; }
.ai-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ai-topics li {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start;
  background: var(--surface); border-radius: 14px; padding: 10px 12px;
  animation: ai-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.ai-topics li > i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 900 12px var(--display); font-style: normal; color: #fff; background: var(--blue);
}
.ai-topics li.asks > i { background: var(--pink); }
.ai-topics b { display: block; font-weight: 750; }
.ai-topics span { display: block; color: var(--secondary); font-size: 12px; margin-top: 2px; }
.ai-topics span strong { color: var(--pink); }
@keyframes ai-rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.ai-report h4 { margin: 0 0 4px; font-size: 15px; font-weight: 900; }
.ai-report .totals { display: flex; gap: 6px; margin: 10px 0; }
.ai-report .totals div { flex: 1; min-width: 0; background: var(--surface); border-radius: 12px; padding: 8px; }
.ai-report .totals small { display: block; font: 700 9px var(--mono); letter-spacing: 0.1em; color: var(--secondary); }
.ai-report .totals b { display: block; font-weight: 900; font-size: 13px; white-space: nowrap; letter-spacing: -0.01em; }
.ai-report .summary {
  margin: 0; padding: 10px 12px; border-left: 3px solid var(--blue); border-radius: 4px 12px 12px 4px;
  background: var(--surface); font-weight: 600; line-height: 1.45; min-height: 96px;
}
.ai-report .summary::after { content: "▍"; color: var(--violet); animation: ai-caret 0.9s steps(1) infinite; }
.ai-report .summary.done::after { content: ""; }
@keyframes ai-caret { 50% { opacity: 0; } }

.ai-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 20px; }
.ai-foot p { margin: 0; display: flex; gap: 10px; align-items: center; color: var(--secondary); font-weight: 600; }
.ai-foot .icon { width: 18px; height: 18px; flex: none; }
.ai-foot button {
  font: inherit; font-weight: 800; font-size: 14px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-small);
}

@media (prefers-reduced-motion: reduce) {
  .bump-radar i, .door-frame.scanning .scanline, .ai-report .summary::after { animation: none; }
  .bump-phone { transition: none; }
}
