.page {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #111827;
  --primary-hover: #1f2937;

  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 16px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.nav a.isCurrent {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.navHighlight {
  font-weight: 600;
  color: var(--text);
}

.headerCta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Wejście dla użytkowników z kodem – na górze */
.userEntry {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  text-align: center;
}

.userEntry h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #fff;
}

.userEntry p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}

.userEntryBtn {
  display: inline-block;
  background: #fff;
  color: #111827;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
}

.userEntryBtn:hover {
  background: #f3f4f6;
}

.userEntryNote {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  margin-bottom: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 32px;
}

.heroText h1 {
  font-size: 38px;
  line-height: 46px;
  margin-bottom: 12px;
}

.heroText p {
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}

.heroLead {
  margin-top: 10px;
  font-weight: 600;
  color: var(--text);
}

.heroCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.quoteTitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.quote {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.quoteNote {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.section {
  margin: 36px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.section h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.section p {
  color: var(--muted);
  line-height: 24px;
}

.bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.bullets div {
  background: #f3f4f6;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
}

.card h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.foldPanel {
  scroll-margin-top: 92px;
}

.foldPanel h2 {
  margin: 0;
}

.foldPanelToggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 26px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.foldPanelHint {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  background: #fff;
}

.foldPanel.isOpen .foldPanelHint {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.foldPanelBody {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.foldPanel.isOpen .foldPanelBody {
  grid-template-rows: 1fr;
}

.foldPanelBodyInner {
  overflow: hidden;
}

.foldPanelBodyInner > :first-child {
  margin-top: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.step {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fcfcfd;
}

.stepNum {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 8px;
}

.demoBox {
  margin-top: 12px;
}

.demoMovie {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  background: linear-gradient(180deg, #dbeafe 0%, #f8fafc 55%, #d1d5db 56%, #9ca3af 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.demoSceneLabel {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(17,24,39,0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.demoSky span {
  position: absolute;
  top: 54px;
  width: 82px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
}

.demoSky span:nth-child(1) {
  left: 10%;
}

.demoSky span:nth-child(2) {
  top: 88px;
  left: 44%;
  animation-delay: -8s;
}

.demoSky span:nth-child(3) {
  top: 42px;
  left: 75%;
  animation-delay: -15s;
}

.building {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: min(420px, 72%);
  height: 310px;
  transform: translateX(-50%);
  border: 4px solid #374151;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #64748b 0 32%, #475569 32% 46%, #64748b 46% 100%);
  box-shadow: 0 18px 30px rgba(15,23,42,0.25);
}

.windows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 20px;
  width: 48%;
}

.windows span {
  height: 28px;
  border: 2px solid rgba(15,23,42,0.35);
  border-radius: 6px;
  background: #e5e7eb;
}

.windows span:nth-child(3n + 1) {
  animation: windowReactionYellow 36s infinite;
}

.windows span:nth-child(3n + 2) {
  animation: windowReactionBlue 36s infinite;
}

.windows span:nth-child(3n) {
  animation: windowReactionGreen 36s infinite;
}

.elevatorShaft {
  position: absolute;
  top: 18px;
  left: 52%;
  width: 70px;
  height: 244px;
  border: 3px solid #1f2937;
  border-radius: 10px 10px 3px 3px;
  background: rgba(15,23,42,0.25);
}

.elevator {
  position: absolute;
  left: 6px;
  bottom: 8px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #facc15;
  color: #111827;
  padding: 4px;
  text-align: center;
  font-size: 9px;
  line-height: 11px;
  font-weight: 700;
  background: #f87171;
  animation: elevatorFilm 36s infinite;
}

.elevatorBrokenText,
.elevatorWorkingText {
  position: absolute;
  inset: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elevatorBrokenText {
  animation: elevatorBrokenTextFilm 36s infinite;
}

.elevatorWorkingText {
  opacity: 0;
  animation: elevatorWorkingTextFilm 36s infinite;
}

.entrance {
  position: absolute;
  right: 34px;
  bottom: 0;
  width: 78px;
  height: 104px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: 12px;
  border-radius: 14px 14px 0 0;
  background: #111827;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.person,
.repairman {
  position: absolute;
  z-index: 5;
  bottom: 50px;
  width: 54px;
  height: 90px;
}

.person {
  left: -70px;
  opacity: 1;
  animation: residentFilm 36s infinite;
}

.repairman {
  right: -80px;
  opacity: 0;
  animation: repairmanFilm 36s infinite;
}

.personHead,
.personBody,
.personLegs,
.personLabel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.personHead {
  top: 0;
  width: 26px;
  height: 26px;
  border: 2px solid #111827;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: inset 6px 0 0 rgba(255,255,255,0.25);
}

.personBody {
  top: 26px;
  width: 36px;
  height: 36px;
  border: 2px solid #111827;
  border-radius: 14px 14px 10px 10px;
  background: #2563eb;
}

.repairman .personBody {
  background: #ea580c;
}

.personBody::before,
.personBody::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 10px;
  height: 30px;
  border-radius: 999px;
  background: #fbbf24;
}

.personBody::before {
  left: -11px;
  transform: rotate(18deg);
}

.personBody::after {
  right: -11px;
  transform: rotate(-18deg);
}

.personLegs {
  top: 60px;
  width: 34px;
  height: 24px;
}

.personLegs::before,
.personLegs::after {
  content: "";
  position: absolute;
  top: 0;
  width: 11px;
  height: 26px;
  border-radius: 999px;
  background: #111827;
}

.personLegs::before {
  left: 5px;
  transform: rotate(8deg);
}

.personLegs::after {
  right: 5px;
  transform: rotate(-8deg);
}

.personLabel {
  bottom: -12px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #111827;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.residentLabel {
  bottom: -16px;
  padding: 5px 10px;
  font-size: 12px;
}

.repairmanLabel {
  bottom: -16px;
  padding: 5px 10px;
  font-size: 12px;
}

.doorKnock {
  position: absolute;
  left: 18%;
  bottom: 310px;
  z-index: 6;
  max-width: 170px;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,0.15);
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
}

.brokenElevatorBubble {
  position: absolute;
  left: 58%;
  bottom: 188px;
  z-index: 8;
  border: 3px solid #111827;
  border-radius: 999px;
  padding: 10px 16px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(15,23,42,0.18);
  opacity: 0;
  animation: brokenBubbleFilm 36s infinite;
}

.consultBubble {
  position: absolute;
  left: 50%;
  bottom: 184px;
  z-index: 8;
  max-width: 260px;
  border: 3px solid #111827;
  border-radius: 22px;
  padding: 12px 16px;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 14px 26px rgba(15,23,42,0.18);
  opacity: 0;
  animation: consultBubbleFilm 36s infinite;
}

.consultationsProgress {
  position: absolute;
  left: 50%;
  top: 118px;
  z-index: 9;
  transform: translateX(-50%);
  border: 3px solid #111827;
  border-radius: 999px;
  padding: 14px 24px;
  background: #16a34a;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 16px 30px rgba(15,23,42,0.22);
  opacity: 0;
  animation: consultationsProgressFilm 36s infinite;
}

.computer {
  position: absolute;
  right: 62px;
  bottom: 58px;
  z-index: 6;
  width: 190px;
  height: 116px;
  border-radius: 12px;
  background: #1f2937;
  box-shadow: 0 16px 24px rgba(15,23,42,0.2);
  opacity: 0;
  animation: computerFilm 36s infinite;
}

.screen {
  margin: 12px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px;
  background: #dbeafe;
  color: #1e3a8a;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.messageBubble {
  position: absolute;
  top: 126px;
  right: 96px;
  z-index: 6;
  border-radius: 999px;
  padding: 10px 16px;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  animation: messageBubbleFilm 36s infinite;
}

.decisionBubble {
  position: absolute;
  top: 172px;
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
  border: 3px solid #111827;
  border-radius: 999px;
  padding: 12px 20px;
  background: #facc15;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(15,23,42,0.2);
  opacity: 0;
  animation: decisionBubbleFilm 36s infinite;
}

.residentsDecision {
  position: absolute;
  top: 112px;
  left: 50%;
  z-index: 9;
  transform: translateX(-50%);
  border: 3px solid #111827;
  border-radius: 999px;
  padding: 13px 22px;
  background: #facc15;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 16px 30px rgba(15,23,42,0.22);
  opacity: 0;
  animation: residentsDecisionFilm 36s infinite;
}

.socialConsultationsFinal {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 10;
  width: min(86%, 640px);
  transform: translateX(-50%);
  border: 3px solid #111827;
  border-radius: 22px;
  padding: 14px 22px;
  background: #111827;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 26px;
  text-align: center;
  box-shadow: 0 18px 34px rgba(15,23,42,0.28);
  opacity: 0;
  animation: finalMessageFilm 36s infinite;
}

.demoFinal {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 7;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 10px 18px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
}

.examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.example {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.faqItem {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.faqItem h4 {
  margin-bottom: 6px;
  font-size: 15px;
}

.form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.form input,
.form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.mail {
  margin-left: 6px;
  color: #2563eb;
  font-weight: 600;
}

.note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

.primary:hover {
  background: var(--primary-hover);
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

@keyframes cloudMove {
  from {
    transform: translateX(-30px);
  }
  to {
    transform: translateX(60px);
  }
}

@keyframes residentFilm {
  0% {
    left: -70px;
    bottom: 50px;
    opacity: 1;
  }
  10%,
  28% {
    left: 72%;
    bottom: 50px;
    opacity: 1;
  }
  36%,
  100% {
    left: 72%;
    bottom: 50px;
    opacity: 0;
  }
}

@keyframes brokenBubbleFilm {
  0%,
  9% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  12%,
  22% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  28%,
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes consultBubbleFilm {
  0%,
  24% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  28%,
  38% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  44%,
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes computerFilm {
  0%,
  35% {
    opacity: 0;
    transform: translateY(16px);
  }
  40%,
  54% {
    opacity: 1;
    transform: translateY(0);
  }
  60%,
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes messageBubbleFilm {
  0%,
  42% {
    opacity: 0;
    transform: scale(0.85);
  }
  46%,
  55% {
    opacity: 1;
    transform: scale(1);
  }
  61%,
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes consultationsProgressFilm {
  0%,
  50% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.95);
  }
  54%,
  66% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  72%,
  100% {
    opacity: 0;
    transform: translate(-50%, -8px) scale(1.02);
  }
}

@keyframes decisionBubbleFilm {
  0%,
  63% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.95);
  }
  67%,
  73% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  78%,
  100% {
    opacity: 0;
    transform: translate(-50%, -8px) scale(1.02);
  }
}

@keyframes residentsDecisionFilm {
  0%,
  70% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.95);
  }
  74%,
  84% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  90%,
  100% {
    opacity: 0;
    transform: translate(-50%, -8px) scale(1.02);
  }
}

@keyframes repairmanFilm {
  0%,
  72% {
    right: -80px;
    opacity: 0;
  }
  78%,
  100% {
    right: 24%;
    opacity: 1;
  }
}

@keyframes elevatorFilm {
  0%,
  78% {
    bottom: 8px;
    background: #f87171;
    transform: translateX(0);
  }
  12%,
  18% {
    transform: translateX(-3px);
  }
  15%,
  21% {
    transform: translateX(3px);
  }
  82% {
    bottom: 8px;
    background: #22c55e;
    transform: translateX(0);
  }
  88% {
    bottom: 176px;
    background: #22c55e;
    transform: translateX(0);
  }
  94% {
    bottom: 8px;
    background: #22c55e;
    transform: translateX(0);
  }
  100% {
    bottom: 176px;
    background: #22c55e;
    transform: translateX(0);
  }
}

@keyframes elevatorBrokenTextFilm {
  0%,
  79% {
    opacity: 1;
  }
  83%,
  100% {
    opacity: 0;
  }
}

@keyframes elevatorWorkingTextFilm {
  0%,
  79% {
    opacity: 0;
  }
  83%,
  100% {
    opacity: 1;
  }
}

@keyframes finalMessageFilm {
  0%,
  84% {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.96);
  }
  90%,
  98% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.96);
  }
}

@keyframes windowReactionYellow {
  0%,
  50%,
  72%,
  100% {
    background: #e5e7eb;
    box-shadow: none;
  }
  54%,
  62%,
  68% {
    background: #fde68a;
    box-shadow: 0 0 18px rgba(250,204,21,0.9);
  }
  58%,
  65% {
    background: #e5e7eb;
    box-shadow: none;
  }
}

@keyframes windowReactionBlue {
  0%,
  52%,
  74%,
  100% {
    background: #e5e7eb;
    box-shadow: none;
  }
  56%,
  64%,
  70% {
    background: #bfdbfe;
    box-shadow: 0 0 18px rgba(59,130,246,0.75);
  }
  60%,
  67% {
    background: #e5e7eb;
    box-shadow: none;
  }
}

@keyframes windowReactionGreen {
  0%,
  54%,
  76%,
  100% {
    background: #e5e7eb;
    box-shadow: none;
  }
  58%,
  66%,
  72% {
    background: #bbf7d0;
    box-shadow: 0 0 18px rgba(34,197,94,0.75);
  }
  62%,
  69% {
    background: #e5e7eb;
    box-shadow: none;
  }
}

@keyframes personStory {
  0% {
    left: -70px;
    bottom: 50px;
    opacity: 1;
  }
  14% {
    left: 72%;
    bottom: 50px;
  }
  24% {
    left: 72%;
    bottom: 50px;
  }
  36% {
    left: 52%;
    bottom: 205px;
  }
  46% {
    left: 22%;
    bottom: 292px;
  }
  58% {
    left: 62%;
    bottom: 50px;
  }
  72% {
    left: 73%;
    bottom: 50px;
    opacity: 1;
  }
  82%,
  100% {
    left: 73%;
    bottom: 50px;
    opacity: 0;
  }
}

@keyframes elevatorBroken {
  0%,
  86% {
    bottom: 8px;
    background: #f87171;
    transform: translateX(0);
  }
  14%,
  20% {
    transform: translateX(-3px);
  }
  17%,
  23% {
    transform: translateX(3px);
  }
  92%,
  100% {
    bottom: 176px;
    background: #22c55e;
  }
}

@keyframes workingElevator {
  0%,
  100% {
    bottom: 8px;
  }
  50% {
    bottom: 176px;
  }
}

@keyframes brokenElevatorNotice {
  0%,
  10% {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  15%,
  27% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  34%,
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes knockCaption {
  0%,
  30% {
    opacity: 0;
    transform: translateY(10px);
  }
  38%,
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  58%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes computerAppears {
  0%,
  54% {
    opacity: 0;
    transform: translateY(16px);
  }
  62%,
  74% {
    opacity: 1;
    transform: translateY(0);
  }
  82%,
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes messageSent {
  0%,
  64% {
    opacity: 0;
    transform: scale(0.85);
  }
  70%,
  78% {
    opacity: 1;
    transform: scale(1);
  }
  86%,
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes decisionAppears {
  0%,
  76% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.92);
  }
  82%,
  88% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  94%,
  100% {
    opacity: 0;
    transform: translate(-50%, -8px) scale(1.03);
  }
}

@keyframes windowBlinkYellow {
  0%,
  100% {
    background: #fde68a;
    box-shadow: 0 0 18px rgba(250,204,21,0.9);
  }
  50% {
    background: #e5e7eb;
    box-shadow: none;
  }
}

@keyframes windowBlinkBlue {
  0%,
  100% {
    background: #bfdbfe;
    box-shadow: 0 0 18px rgba(59,130,246,0.75);
  }
  50% {
    background: #e5e7eb;
    box-shadow: none;
  }
}

@keyframes windowBlinkGreen {
  0%,
  100% {
    background: #bbf7d0;
    box-shadow: 0 0 18px rgba(34,197,94,0.75);
  }
  50% {
    background: #e5e7eb;
    box-shadow: none;
  }
}

@keyframes windowNotify {
  0%,
  66% {
    background: #e5e7eb;
    box-shadow: none;
  }
  72%,
  84% {
    background: #fde68a;
    box-shadow: 0 0 18px rgba(250,204,21,0.9);
  }
  92%,
  100% {
    background: #bfdbfe;
    box-shadow: none;
  }
}

@keyframes repairmanArrives {
  0%,
  84% {
    right: -80px;
    opacity: 0;
  }
  90% {
    right: 24%;
    opacity: 1;
  }
  96%,
  100% {
    right: 46%;
    opacity: 1;
  }
}

@keyframes finalCaption {
  0%,
  88% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  94%,
  98% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
}

@media (max-width: 900px) {
  .header {
    flex-wrap: wrap;
  }
  .hero {
    grid-template-columns: 1fr;
  }

  .demoMovie {
    min-height: 390px;
  }

  .building {
    width: 82%;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-wrap: wrap;
  }
  .heroText h1 {
    font-size: 30px;
    line-height: 38px;
  }

  .demoMovie {
    min-height: 360px;
  }

  .building {
    width: 88%;
    height: 280px;
  }

  .windows {
    gap: 8px;
    padding: 14px;
  }

  .windows span {
    height: 22px;
  }

  .computer {
    right: 18px;
    width: 150px;
  }

  .doorKnock {
    left: 8%;
    max-width: 140px;
  }
}

.sectionLead {
  background: transparent;
  border: 0;
  padding: 8px 4px 0;
}

.materialTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.materialTab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.materialTab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.materialEmpty {
  margin-top: 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  background: #f8fafc;
}

.materialList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.materialItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.materialItem h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.materialItem p {
  font-size: 14px;
  line-height: 20px;
}

.materialItemStack {
  flex-direction: column;
  align-items: stretch;
}

.materialOpen {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
}

.materialPlayer {
  width: 100%;
  margin-top: 8px;
}

.photoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.photoCard {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.photoCard img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photoCard figcaption {
  padding: 10px 12px 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .materialItem {
    flex-direction: column;
    align-items: flex-start;
  }
}

.appLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.appLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.appLink:hover {
  background: rgba(255,255,255,0.12);
}
